Today, I will show you how to set all tunable PowerTOP options at boot time using systemd service.

Create systemd service file.

$ 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
Notice that I have used idle process start-up type and defined TERM environment variable.

Reload systemd manager configuration.

$ sudo systemctl daemon-reload

Enable service at boot time.

$ sudo systemctl enable powertop.service

References