[opensuse] how to make cpu clock rate step down dynamically on low load?
Now I can only manually slow down my iBook G4 CPU from 1.2GHz to 600MHz by setting scaling governor to 'powersave' but I want it automatic. What I tried: I. Try to set /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor to ondemand, doesn't work, because ondemand is not one of scaling_available_governors II. Try to set /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor to conservative, result is CPU clockrate is always at highest, never slows down III. Try add gnome frequency monitor to the gnome panel and select frequency manually. Result: I can click the applet but no menu pops up. On other friends' intel CPU based notebooks there is a menu following click on the applet. IV. I tried to google around and found on this post: http://linux.derkeiler.com/Newsgroups/comp.os.linux.hardware/2006-01/msg0020... suggesting me running a daemon called 'cpufreqd' which could not be found on packman or opensuse official repository. V. My friend who runs debian suggest me install cpufrequtils and start /etc/init.d/cpufrequtils which I did, but I found in opensuse the package does not include an init script. VI. cry to opensuse mailing list for help. which is what I am trying now. Using OpenSUSE 11 on iBook G4. Thanks! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
在 2009-07-04六的 17:03 +0800,Zhang Weiwu写道:
V. My friend who runs debian suggest me install cpufrequtils and start /etc/init.d/cpufrequtils which I did, but I found in opensuse the package does not include an init script.
Not helpful. The script simply sets value for scaling_governer, not setting any daemon to monitor loads and change it dynamically. I think I have an option VII, which is to write my own daemon to check load once a minute and set scaling_governer accordingly. I wish to avoid maintain my own script if there are something to use. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 4 Jul 2009, Zhang Weiwu wrote:
Now I can only manually slow down my iBook G4 CPU from 1.2GHz to 600MHz by setting scaling governor to 'powersave' but I want it automatic.
What I tried: I. Try to set /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor to ondemand, doesn't work, because ondemand is not one of scaling_available_governors II. Try to set /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor to conservative, result is CPU clockrate is always at highest, never slows down III. Try add gnome frequency monitor to the gnome panel and select frequency manually. Result: I can click the applet but no menu pops up. On other friends' intel CPU based notebooks there is a menu following click on the applet. IV. I tried to google around and found on this post: http://linux.derkeiler.com/Newsgroups/comp.os.linux.hardware/2006-01/msg0020... suggesting me running a daemon called 'cpufreqd' which could not be found on packman or opensuse official repository. V. My friend who runs debian suggest me install cpufrequtils and start /etc/init.d/cpufrequtils which I did, but I found in opensuse the package does not include an init script. VI. cry to opensuse mailing list for help. which is what I am trying now.
Firt I thought writing my own script takes time, it turns out not. It is as easy as adding this to /etc/crontab * * * * * root awk '$1 > 1 { print "performance"; } $1 < 1 {print "powersave";}' /proc/loadavg > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor So I solved my own problem now. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
Zhang Weiwu