Games prevent the system from entering sleep mode
Games prevent the system from entering sleep mode. All I've managed to do with the system so far is create a systemctl service that temporarily enables WoL via ethtool on PC startup. That's all, no further interaction with the system.
Log: https://paste.centos.org/view/0073fa7d
The graph shows the PC performance after 20 minutes of AFK time. The system is configured to enter sleep mode after 20 minutes of inactivity.

10 Replies
@Bazzite Maintainer Has anyone at least tried to figure out this problem please?
I think I am seeing something similar.
In my case I am using the power button instead of waiting for idle sleep.
The game will keep running instead of the system going to sleep. Exiting the game will immediately put the system to sleep.
Asus Prime b550m-k argb
Ryzen 3900x
RX 7600
This happens in both game mode and desktop.
From journalctl it looks like systemd does start the sleep process. systemd-sleep starts and networking gets disabled. It just does not actually get the system to sleep.
I played around with bazzite-rollback-helper and found that stable-41.20241209 is the last version in which sleep worked correctly.
It fails from stable-41.20241210 and onwards.
What hardware are you working with?
I had a similar issue on a gigabyte mobo I’m wondering if this is that
mobo: Asus Prime b550m-k argb
cpu: amd Ryzen 3900x
gpu: amd RX 7600
Solution
I have found a workaround for me:
and then add
Not sure what horrible bugs this could cause but it got sleep working for me again.
I did some digging regarding that setting. Looks like it got set to
false
in this commit https://src.fedoraproject.org/rpms/systemd/c/6162965002f9e6052e0ce8d6810028da4679e55a?branch=rawhide as a fix for this bug https://bugzilla.redhat.com/show_bug.cgi?id=2321268
Not sure why this is having an effect now since it was already set to false
in stable-41.20241209 so it is not responsible for my issue on its own.Is this safe? Should I input this to fix the issue?
I'm like 90% sure this is because steam is actively preventing sleep. You should see a notification about it in the lower right and you can change that setting someplace I'm sure
From the same location you can tell it to allow sleeping to even manually prevent sleeping when steam isn't on iirc
I'll check next time it happens. But tbc, it happens to me even when I click "exit Steam."
Oh huh
Weird
At least from my testing a few weeks ago disallowing steam or the game I tested from preventing sleep in the KDE power menu in the bottom right had no effect.
All that I can really say is that it worked on my machine. It should only effect sleeping and not the system as a whole.
The first command will start a text editor in the terminal into which you have to add the second snippet. If you are not familiar with terminal based text editors like nano and vim that could be a bit difficult.