Nice idea. I'm amazed that no one has done it before it seems so obvious.
You might want to consider offering --performance as an option as well, this doesn't require a module to be loaded.
Localization too.
The \n in your localization string doesn't create a newline on the terminal. This seems to work for me
*) echo $l_usage | sed 's/\\n/\n/g';;
It would also be nice to get a message at the end confirming that something had been done. Maybe something like
cpu scaling set
scaling govenor: ondemand
CPU frequency: 800MHz
excellent
Howto get CPU frequency scaling to work in 2.xx
-
- Posts: 141
- Joined: Sun 27 May 2007, 17:31
- Location: Bucharest, Romania
Yess... I made GUI-script.
And its contain script cpu_power_save_eee directly for ASUS eeePC, that use module p4-clockmod...
This script use some script from Xubuntu that auto find needed cpu module, but it not find anymore for ASUS eeePC CPU
Maybe I use old version?
And don't work switching to perfomance mode (from another mode).
Because don't work this command:
echo perfomance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
And its contain script cpu_power_save_eee directly for ASUS eeePC, that use module p4-clockmod...
This script use some script from Xubuntu that auto find needed cpu module, but it not find anymore for ASUS eeePC CPU
Maybe I use old version?
And don't work switching to perfomance mode (from another mode).
Because don't work this command:
echo perfomance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- Attachments
-
- cpu_power_save_loc.pet
- (4.81 KiB) Downloaded 543 times
Last edited by Kazm on Fri 25 Apr 2008, 22:20, edited 2 times in total.
Good idea to make an autodetect script, Kazm.
.
Anyway I much prefer the ondemand mode, for reasons explained in [url=ttp://www.murga-linux.com/puppy/viewtopic.php?t=28443]how to keep your cpu cool and you fan quiet[/url]
Correct spelling is performance (with two r), and it does work on my laptop. It's also the default mode in Puppy, as one can verify (e.g. after fresh live-CD boot with pfix=ram) withKazm wrote:Because don't work this command:
echo perfomance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Code: Select all
cd /sys/devices/system/cpu/cpu0/cpufreq/
cat scaling_governor
Anyway I much prefer the ondemand mode, for reasons explained in [url=ttp://www.murga-linux.com/puppy/viewtopic.php?t=28443]how to keep your cpu cool and you fan quiet[/url]
[size=84][i]If it ain't broke, don't fix it.[/i] --- erikson
hp/compaq nx9030 (1.6GHz/480MB/37.2GB), ADSL, Linksys wireless router
[url]http://www.desonville.net/[/url]
Puppy page: [url]http://www.desonville.net/en/joere.puppy.htm[/url][/size]
hp/compaq nx9030 (1.6GHz/480MB/37.2GB), ADSL, Linksys wireless router
[url]http://www.desonville.net/[/url]
Puppy page: [url]http://www.desonville.net/en/joere.puppy.htm[/url][/size]