How can I prevent Bazzite GNOME from sleeping ?

I'm using my laptop as a makeshift server and I don't want it to go to sleep, Caffeine works but only when I'm logged in. When no user is logged in and I'm on GDM screen, it will go to sleep itself eventually. I want to prevent my laptop from sleeping, even if there is no user logged in so the Docker containers can stay on.
3 Replies
nagito || Knight of Emilia
that's pretty simple the way i know isn't gnome kde or anything specific systemd-inhibit COMMAND should do COMMAND being the container launch command though it has to be done in a way that the command doesn't exit when the command exits sleep is re enabled
nezu
nezuOP2mo ago
ok so i absolutely don't know how that even work i guess it's systemd-inhibit docker ?
nagito || Knight of Emilia
docker & akk the other stuff needed to launch the container essentially it's something like systemd-inhibit docker run IMAGE COMMAND_TO_RUN

Did you find this page helpful?