mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Update
This commit is contained in:
parent
1776e07a20
commit
f716032523
2 changed files with 18 additions and 0 deletions
8
system-bin/processor-performance
Executable file
8
system-bin/processor-performance
Executable file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
if [ "$1" == "start" ]; then
|
||||||
|
for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo performance > "${fgovernor}"; done
|
||||||
|
exit
|
||||||
|
elif [ "$1" == "stop" ]; then
|
||||||
|
for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo powersave > "${fgovernor}"; done
|
||||||
|
exit
|
||||||
|
fi
|
||||||
10
system-units/enable-processor-performance.service
Normal file
10
system-units/enable-processor-performance.service
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Enable/Disable performance governor in the processor
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/processor-performance start
|
||||||
|
ExecStop=/usr/bin/processor-performance stop
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sysinit.target
|
||||||
Loading…
Add table
Add a link
Reference in a new issue