Hi:
I have in my rc.conf the following lines:
powerdxx_enable=“YES”
powerdxx_flags="-a adaptive -b adaptive -n adaptive -M 2501 -m 800 -i 75 -r 85 -p 500"
But what I’ve seen is that trueos starts powerdd++ without any flag. I suspect the openrc script to start has a bug but I couldn’t debug it. I use another script called /etc/acpi_ac to start powerd++ and configure other powersaving related things. In devd.conf by default we have.
notify 10 {
match "system" "ACPI";
match "subsystem" "ACAD";
action "/etc/acpi_ac $notify";
};
so, when an acpi event ocurrs I can control some things like usb devices to powersave mode, or even modify the maximum cpu frequency when on battery or when in ac.
This /etc/acpi_ac scripts is executed as well when the machine starts:
ls -l /etc/local.d:
lrwxr-xr-x 1 root wheel 12 May 12 21:52 10_acpi_ac.start -> /etc/acpi_ac
The scripts in deed doesn’t rely in what devd sends, it detects if AC is present or not with:
apm -a
If AC is present powerd++ is invoked with the following flags:
-a adaptive -b adaptive -n adaptive -M 2501 -m 800 -i 75 -r 85 -p 500
If AC is off then:
-a adaptive -b adaptive -n adaptive -M 1300 -m 800 -i 75 -r 85 -p 500
In this way, when in battery mode, my laptop can reach a lower cpu frequency saving battery than when in AC. And at the same time, I ensure powerd++ starts with the right flags when machine boots.
This web doesn’t permit to upload the script, but I can send you by email or another method.
In the other side, I read in a thread, I guess that in this same forum, that TrueOs people detected some load problem with powerd++. I use powerd++ since FreeBSD 10 and in my experience the laptop’s cpu frequency scales up and down better. With -hiadaptive it works better than powerd, more responsive when load goes . And with -adaptive the cpu is more time with low frequency than with powerd. In my tests, powerd tends to put my cpu much more hottest than powerd++. For me, in my laptop, this is very important, to avoid a hot cpu (70-80 ºC) and for battery saving.
BR,
Jes