Skip to content

Instantly share code, notes, and snippets.

@pedroportales
Created November 25, 2021 13:38
Show Gist options
  • Save pedroportales/ffee6dbaa7bb191000d844769437aa75 to your computer and use it in GitHub Desktop.
Save pedroportales/ffee6dbaa7bb191000d844769437aa75 to your computer and use it in GitHub Desktop.
cpupower systemd powersave
[Unit]
Description=CPU powersave
[Service]
Type=oneshot
ExecStart=/usr/bin/cpupower -c all frequency-set -g powersave
[Install]
WantedBy=multi-user.target
@pedroportales
Copy link
Author

After creating cpupower.service, run the following commands:

$ sudo systemctl daemon-reload
$ sudo systemctl enable cpupower.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment