Tiny Core Base > piCore Test Releases

piCore 6.0 Beta355

<< < (5/5)

jgrulich:

--- Quote from: bmarkus on December 30, 2014, 06:34:37 AM ---cpufrequtils.tcz is not needed to change governor, this code can do the job in bootlocal.sh:

--- Code: ---cat ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
--- End code ---
Also you can tune ondemand parameters like tresholds to change its behavior.
--- End quote ---

Yes, you're right that this utility is not mandatory to control the governor, but it is easy way how to do so and
the part of the utility is the cpufreq-info which is nice tool to display all the CPU parameters instead of searching them in the

--- Code: (bash) ---/sys/devices/system/cpu/cpu0/cpufreq/
--- End code ---
directory.

jgrulich:
Hi Béla,

the

--- Code: (bash) ---cat ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

--- End code ---
command is not working this way.
The "Permissio denied" message appears when writing to this folder, even with the "sudo" command in front.
It need to be done exactly this way:

--- Code: (bash) ---sudo chown tc /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
sudo chown root /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

--- End code ---
This will change the governor and returns the write access rights back to root.

bmarkus:
I made a typo, in fact it is


--- Code: ---echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
--- End code ---

which works fine.

Navigation

[0] Message Index

[*] Previous page

Go to full version