powersaved: frequency scaling not working [FIX included]

Bug #68423 reported by Arnaud
6
Affects Status Importance Assigned to Milestone
powersave (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Binary package hint: powersaved

VERSION: using fully updated kubuntu edgy.

- Frequency scaling is not working

because

- powersaved fails to load cpu frequency governors, and frequency scaling doesn't work

because

- at the start of the load_governors() function, script /etc/init.d/powersaved checks for readable "/sys/devices/system/cpu/cpu0/cpufreq". And that folder doesn't exist _at that time_. If the folder does not exist or is not readable, cpu freq governors kernel modules are not loaded.

because

- the folder "/sys/devices/system/cpu/cpu0/cpufreq" is created by the kernel after the appropriate cpufreq module is loaded (in load_cpufreq_modules() function)

and

- load_governors() is called too early after loading cpufreq module

a quick FIX:
- in function load_cpufreq_modules() of /etc/init.d/powersaved, a small delay could be introduced between the loading of cpufreq module and the call to load_governor. I tried a sleep .2 which was too short, but a sleep 1 works perfectly.

Hoping this reporting is useful, thanks for your work

Tags: packaging
Arnaud (arnaud-oss)
description: updated
Revision history for this message
Benjamin Wohlwend (piquadrat) wrote :

I can confirm that adding sleep 1 before load_governor fixes the problem.

Revision history for this message
Arve Bersvendsen (arve-bersvendsen) wrote :

This problem seems to also affect laptops when coming out of sleep

Daniel T Chen (crimsun)
Changed in powersave:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Arnaud (arnaud-oss) wrote :

This is history, closing...

Changed in powersave (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.