View Single Post
Guest | Posts: n/a | Thanked: 0 times | Joined on
#393
Originally Posted by juiceme View Post
Of course it is possible. Just add that line to a startup script so it will be run when you boot the device.
To change cpu governor at boot, do something like this
create /etc/systemd/system/cpug.service:

Code:
 
# nano /etc/systemd/system/cpug.service
(CTRL+O to save file, CTRL+X to exit nano)

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
 
[Install]
WantedBy=multi-user.target
start the cpug.service:

Code:
 
# systemctl start cpug.service
enable the cpug.service at boot:

Code:
 
# systemctl enable cpug.service
I attached the cpug.service file for you.
Remember to rename to cpug.service from cpug.service.txt

Test performance with terminal
https://openrepos.net/content/nieldk/sysbench

Attached Files
File Type: txt cpug.service.txt (325 Bytes, 119 views)

Last edited by nieldk; 2014-03-17 at 16:02. Reason: added cpug.server(.txt)
 

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