mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Add disable-turbo-boost.service
This commit is contained in:
parent
92b662e6dd
commit
a8ccb3324c
2 changed files with 10 additions and 0 deletions
10
system-units/disable-turbo-boost.service
Normal file
10
system-units/disable-turbo-boost.service
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Disable Turbo Boost on Intel CPU
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/bin/sh -c "/usr/bin/echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo"
|
||||||
|
ExecStop=/bin/sh -c "/usr/bin/echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo"
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sysinit.target
|
||||||
Loading…
Add table
Add a link
Reference in a new issue