Luis,
for me hal changes the CPU freq scaling governor too.

However, you cannot edit the file 
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor until you are in a root 
environment (sudo will not work). So, to edit the file, just type:
sudo -i
echo "powersave" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Remember that you have to do this for all your cores.

To automate the process you can append that lines to your power-switch
scripts. So we have:

/etc/acpi/ac.d/power-switch.sh containing:
hal-set-property --udi `hal-find-by-capability --capability ac_adapter` --key 
ac_adapter.present --bool true
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

/etc/acpi/battery.d/power-switch.sh containing:
hal-set-property --udi `hal-find-by-capability --capability ac_adapter` --key 
ac_adapter.present --bool false
echo "powersave" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "powersave" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

Anyway, probably the best way to configure your CPU freq scaling policy is 
through the guidance-power-manager so you can easily change it later. To do 
that, just click with the left mouse button on the guidance-power-manager icon 
in you system tray: a configuration panel will pop up.
(I configure my policies through the guidance-power-manager and it works well 
with hal)

Hope it helps.

-- 
[Hardy] Guidance-power-manager doesn't know when laptop is mains unplugged
https://bugs.launchpad.net/bugs/213128
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to