FreeBSD: powerd and power_profile in my Thinkpad R61

I’m not satisfied with the PC-BSD power management or FreeBSD standards. It seems the default powerd configuration in PC-BSD and the stuff you cand find in the FreeBSD Handbook is more appropiate for a desktop-computer. With the default PC-BSD power configuration my R61 gets too hot. So I had to tune my rc.conf and the script ‘/etc/rc.d/power_profile. The changes are:

/etc/rc.conf :

powerd_flags=”-a adaptive -b adaptive -n adaptive -i 85 -r 75 -p 500″

/etc/rc.d/power_profile (excerpt):

case ${state} in
0x01 | ”)
${LOGGER} “changed to ‘performance'”
sysctl dev.acpi_ibm.0.lcd_brightness=7
sysctl dev.cpu.0.freq=800
sysctl debug.cpufreq.lowest=800
sysctl hw.acpi.cpu.cx_lowest=C1
sysctl dev.cpu.0.cx_lowest=C1
sysctl dev.cpu.1.cx_lowest=C1

${LOGGER} “changed to ‘economy'”
sysctl dev.acpi_ibm.0.lcd_brightness=3
sysctl dev.cpu.0.freq=800
sysctl debug.cpufreq.lowest=0
sysctl hw.acpi.cpu.cx_lowest=C2
sysctl dev.cpu.0.cx_lowest=C2
sysctl dev.cpu.1.cx_lowest=C3

echo “Usage: $0 [0x00|0x01]”
exit 1

Only bold-italic lines were added to /etc/rc.d/power_profile.

It’s great FreeBSD can manage the CPU C-States. It helps to save power when putting the CPU in C2 or even C3. I don’t recommend use C3 in all CPUs because your system will be too much slow and irresponsive.

About jjjesss

I'm a guy interested in technology, bsd fan and concerned about the world around.
This entry was posted in BSD, FreeBSD. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s