There is a bug in my AMD Ryzen 1700 which manifests on Linux during power sleep states. Now that I’m on Fedora KDE Spin, I need to implement it again. Fedora KDE Spin does startup scripts a little differently than the previous systems I’ve used before.
Previously, I’d used /etc/init.d/
Well, Fedora KDE Spin doesn’t use that; it uses Systemd and systemctl
As root:
cd /etc/systemd/system
vim set_c6_acpi_state_disabled.service
Paste in the following:
[Unit]
Description=Set C6 ACPI State Disabled
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/python3 /home/bazoozle/zenstates.py --c6-disable
[Install]
WantedBy=multi-user.target
Technically, I don’t need to wait until after the network is started to run the zenstates.py python script. But it isn’t obvious what would be the equivalent to @reboot in a crontab.
Then we do this:
systemctl start set_c6_acpi_state_disabled.service
systemctl enable set_c6_acpi_state_disabled.service