I run Hoary on a laptop and it, per default, loads the powernowd daemon at startup. This was kind of annoying because I don't care about CPU frequency when my laptop is plugged in - especially when the cool screensavers were running. As such, I wanted mt laptop to not run powernowd when it's plugged in.
To accomplish this, I had to do two things:
1. Modify the /etc/init.d/powernow init script to check the ac power is disconnected before starting the daemon
2. Modify the /etc/acpi/power.sh script to start and stop the daemon appropriately.
But maybe it's possible to improve it ?
I had notice this :
- when I'm booting with AC, the CPU working at 100%. OK no problem.
- when I'm unplugging the AC during the laptop is power on, the CPU slow down to work at 50%. OK, perfectly
- if I re-plugged AC without rebooting the laptop, the CPU is still working at 50%. Is it possible to make it work at 100% again automaticaly, without rebooting ?
Interesting approach. I solved this problem using a different technique. Instead of powernowd, I installed "cpufreqd". Its a daemon similar to powernowd, but their default policy is something I like much better. Its more customizable than powernowd, and keeps my laptop at 100% cpufreq when I am plugged into AC power.
Bookmarks