Comment 7 for bug 63834

Revision history for this message
derp (dgharibi) wrote :

I thought it would be better to outline the solution instead of just giving a link with my vague description.

Make a new file (with sudo) in /etc/acpi/suspend.d called "04-set-cpu-scaling.sh" containing:

#!/bin/sh

echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Make another file (with sudo) in /etc/acpi/resume.d called "99-reset-cpu-scaling.sh" containing:

#!/bin/sh

echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Also make sure to chmod ugo+x for both files.

ls -l should give:
-rwxr-xr-x 1 root root 81 2007-03-19 21:40 99-reset-cpu-scaling.sh