[Suspend2-devel] Cpufreq governors and suspend2
swsusp-devel at lnx.ro
Sun Jun 19 08:00:04 UTC 2005
Recently I started using "ondemand" cpufreq governor instead "userspace"
and there seems to be some confusion on resume between the default
cpufreq governor and the active one at the moment of suspend.
The default governor of my current kernel is "performance", but I use
"ondemand" for normal operation. If I suspend while "ondemand" is active
at resume time the kernel thinks that "ondemand" is active but actually
"performance" is in place (cpu at full speed), and it seems to ignore
what I set in /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor (cpu
always at full speed)
If I activate performance at suspend time (using OnSuspend from
hibernate.conf) and after resume I activate ondemand, everything works
In the kernel config you can only select "performance" and "userspace"
as the default governors, and if I select "userspace" as the default
governor and use it also at suspend time (using the cpuspeed daemon),
this problem does not exhibit.
I did not try using userspace as the default governor and use "ondemand"
for normal operation (maybe I should) but I think this problem should be
If this matter I am using the cpufreq-acpi driver.
Is this an suspend2 problem (needs some hooks in cpufreq space) or I
should bug the cpufreq folks, or both ?
More information about the TuxOnIce-devel