Skip to content

Instantly share code, notes, and snippets.

@enly1
Created March 29, 2019 08:39
Show Gist options
  • Save enly1/05a85ddfdd7d2238acb8942a7c6e43a2 to your computer and use it in GitHub Desktop.
Save enly1/05a85ddfdd7d2238acb8942a7c6e43a2 to your computer and use it in GitHub Desktop.
Powertop as service for auto-tune
cat << EOF | sudo tee /etc/systemd/system/powertop.service
[Unit]
Description=PowerTOP auto tune
[Service]
Type=idle
Environment="TERM=dumb"
ExecStart=/usr/sbin/powertop --auto-tune
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable powertop.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment