[ltp] X60s: scaling_governor on resume
Johannes Boy
linux-thinkpad@linux-thinkpad.org
Fri, 13 Oct 2006 22:12:43 +0200
I have no idea why the CPU ends up this way, but you could just create
a script "governor_wrapper" that checks, after resuming, if the
notebook is on battery or cable and calls the proper one of your
scripts.
You can make it beeing called by editing /etc/hibernate/common.conf:
#misc launch
OnResume 99 /etc/governor_wrapper
However, I'm not sure about the 99... I *think* it means that it is
beeing called once the resuming process is complete. Someone correct
me here if I am wrong, please.
On 10/13/06, Justin Mazzola Paluska <jmp@mit.edu> wrote:
> Hi,
>
> I'm running an X60s with Debian Testing and a 2.6.17-1-686 SMP kernel.
> Using Debian's hibernate script I can get the laptop to both
> suspend-to-RAM and suspend-to-disk reliably. However, when the system
> resumes, the scaling_governor for CPU1 is always set to "performance",
> when I'd like it to be set to "powersave" when on battery and
> "ondemand" when on AC.
>
> I have two scripts (attached) that set the governor on battery
> (/etc/acpi/battery.d/scale-down-cpus.sh) or AC
> (/etc/acpi/ac.d/scale-up-cpus.sh) events from acpid. They work fine
> if I plug and unplug the power while the machine is running.
>
> However, no matter if the machine stays plugged or unplugged when it's
> asleep, when it wakes up CPU1's governor gets set to performance. Any
> ideas on why?
>
> Thanks,
> =97Justin
>
>
>