I use PowerTOP to get the most out of my battery on my laptop. Since PowerTOP doesn’t remember the settings from the previous bootup, I’ve made this quick and dirty SystemD unit file to fix my powertop settings on each boot:
[Unit] Description=PowerTOP tunings [Service] Type=oneshot ExecStart=/usr/sbin/powertop --auto-tune [Install] WantedBy=multi-user.target
Save it in /etc/systemd/system/powertop.service, run systemctl daemon-reload; systemctl enable powertop.service
, and Bob’s your uncle.