View Single Post
w00t's Avatar
Posts: 1,055 | Thanked: 4,107 times | Joined on Oct 2009 @ Norway
#405
Originally Posted by nieldk View Post
To change cpu governor at boot, do something like this

...

[CODE]
[Unit]
Description=Change CPU Govenor performance
[Service]
Type=forking
ExecStart=/bin/sh -c "/bin/echo 'performance' > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor"
# If you install my cpufrequtils
# ExecStart=/usr/bin/cpufreq-set -g performance
This is the GPU, not CPU governor. CPU governor is at:
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

(and related tunables). The second core is also at cpu1, but 'mpdecision' (a qualcomm binary) will leave it switched off, thus, the sys entries won't be there a lot of the time unless you explicitly power it on, iirc something like:

echo 1 > /sys/devices/system/cpu/cpu1/online

Note that while altering the GPU governor doesn't seem to have much impact on battery (more studies ongoing, which is why we don't alter it by default at this time), the CPU governor has a very real chance to mess with your battery life, as currently, it clocks down to minimum frequency very fast when idle.
__________________
i'm a Qt expert and former Jolla sailor (forever sailing, in spirit).
if you like, read more about me.
if you find me entertaining, or useful, thank me. if you don't, then tell me why.
 

The Following 15 Users Say Thank You to w00t For This Useful Post: