Skip to content

Instantly share code, notes, and snippets.

@sir-farfan
Last active March 20, 2020 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sir-farfan/7323dc7095378221613a84d215a65420 to your computer and use it in GitHub Desktop.
Save sir-farfan/7323dc7095378221613a84d215a65420 to your computer and use it in GitHub Desktop.
# Keey the system quiet and cool by disabling Turbo Boost technology
# using Linux Systemd service without installing external scripts
# that could be a security issue.
#
#
# Installing:
#
# Create this file: /etc/systemd/system/IntelNoTurbo.service
# and COPY/PASTE the contents of this snippet there.
#
#
# Execute the following commands:
#
# Se Privileges: $ sudo chmod +x /etc/systemd/system/IntelNoTurbo.service
# Test: $ sudo systemctl start IntelNoTurbo
# Run at boot: $ sudo systemctl enable IntelNoTurbo
[Unit]
Description=Disable Intel Turbo Boost
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/sh -c 'echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo'
ExecStop=/bin/sh -c 'echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo'
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment