serverroom-components/systemd/no-turbo.service

12 lines
292 B
SYSTEMD
Raw Permalink Normal View History

[Unit]
Description=Disable Turbo Boost on startup
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=sh -c 'echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo'
ExecStop=sh -c 'echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo'
[Install]
WantedBy=multi-user.target default.target