Create a systemd service to apply powertop tunings at startup. For some reason, the GPU won't go into low power mode until after the desktop is good and started, so the service will be executed on a systemd timer 1 minute after boot.
Create powertop tunings file at:
/usr/bin/
#!/bin/sh
echo 'auto' > '/sys/bus/pci/devices/0000:03:00.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:08.0/power/control';
Create powertop-tunings.service and powertop-tunings.timer
/etc/systemd/system/powertop-tunings.service
[Unit]
Description=PowerTOP Tunings
#Requires=display-manager.service
#After=syslog.target network.target multi-user.target display-manager.service
[Service]
Type=oneshot
ExecStart=/usr/bin/powertop-tunings
TimeoutStartSec=0
/etc/systemd/system/powertop-tunings.timer
[Unit]
Description=PowerTOP Tunings
[Timer]
OnBootSec=1min
[Install]
WantedBy=default.target
Now enable the timer so it get started at every boot
sudo systemctl enable powertop-tunings.timer