CPU governor changes automatically


I am currently working on a camera streaming application on Jetson TK1 board which requires the CPU to operate in performance mode. Hence I am running the following set of commands to maximize CPU performance.

echo 0 > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable
echo 1 > /sys/devices/system/cpu/cpu0/online
echo 1 > /sys/devices/system/cpu/cpu1/online
echo 1 > /sys/devices/system/cpu/cpu2/online
echo 1 > /sys/devices/system/cpu/cpu3/online
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

The scaling_governor changes automatically from performance to interactive while running the camera application. Could anyone let me know why is the governor changing automatically ?

Thanks in advance

You’re probably running into the rc.d script which is part of the regular Ubuntu files. It’s the “ondemand” script. You can remove this via:

sudo update-rc.d -f ondemand remove

You may also be interested in this:

Hello linuxdev,

Thanks for the information. I will check it and get back to you