Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: uggla on September 06, 2010, 02:24:46 AM
-
Hi!
Is there a way to set the default cpufreq governor without installing cpufreq-tools and set cpufreq-set to run at every boot?
regards
/Uggla
-
The info and control files are at
/sys/devices/system/cpu/cpuX/cpufreq/
Replace X with the core you want to control.
You can (as root) echo the governor you want into the current_governor (IIRC) file. I tend to do this as well, if there's a way via /proc or /sys I never use an util.
-
Works like a charm. Thanks!
/Uggla
-
I tend to do this as well...
Works like a charm.
I tried to poke 'conservative' into /sys/devices/system/cpu/cpu0/cpufreq/scalling_governor, but it's impossible to modify this file and other files in this directory. Your posts are from 2010 year. Can you do this actually ?
What version do you use now ?
-
echo "conservative" | sudo tee /sys/devices/system/cpu/cpu[0-99]/cpufreq/scaling_governor
-
I think the problem is here:
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave
$ sudo su
# echo 'conservative' > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
sh: write error: Invalid argument
# echo 'performance' > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
Edit: This has me puzzled though: # modprobe cpufreq_conservative
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave
-
echo "conservative" | sudo tee . . .
conservative
tee: /sys/devices/system/cpu/cpu0/cpufreqd/scalling_governor: I/O Error
and lsmod lists cpufreq_conservative.
Do your computers blow worm when do nothing ?