this post was submitted on 24 Sep 2024
60 points (98.4% liked)

Linux Gaming

15842 readers
30 users here now

Gaming on the GNU/Linux operating system.

Recommended news sources:

Related chat:

Related Communities:

Please be nice to other members. Anyone not being nice will be banned. Keep it fun, respectful and just be awesome to each other.

founded 4 years ago
MODERATORS
 

Hello fellow Linux gamers,

Is there a way to pause or suspend games and turn off the PC similar to how the Steam Deck handles it? Or is this functionality exclusive to the Steam Deck?

I'm using Arch btw, but feel free to share solutions for other distros as well.

I came across Nyrna, but it seems to only support X11 and not Wayland, according to the description.

top 17 comments
sorted by: hot top controversial new old
[–] Max_P@lemmy.max-p.me 52 points 1 month ago

The Steam Deck doesn't fully shut down, it's just regular sleep mode.

[–] ziviz@lemmy.sdf.org 21 points 1 month ago* (last edited 1 month ago) (1 children)

I just tried it on Nobara. Just... application launcher (The start menu icon)->sleep. Waited, and then woke the machine back up and when the machine came back up, the game was still running. No idea if all games will play nice with that, but Satisfactory did.

[–] SacralPlexus@lemmy.world 4 points 1 month ago

I’m confused - doesn’t everyone just leave Satisfactory running to increase production??

/joke

[–] PeachMan@lemmy.world 11 points 1 month ago (2 children)
[–] flashgnash@lemm.ee 7 points 1 month ago

Shame it doesn't support wayland

[–] ouch@lemmy.world 1 points 1 month ago

How does it work?

[–] flashgnash@lemm.ee 6 points 1 month ago

Systemctl hibernate/suspend not work?

I don't know exactly how they do it - but I believe it's related to gamescope. I'm pretty sure it just dumps the ram and enters sleep mode.

[–] MonkderVierte@lemmy.ml 4 points 1 month ago (1 children)

Weren't there a kill command to pause any app and another to wake it up?

[–] ReversalHatchery@beehaw.org 3 points 1 month ago (2 children)

there is, you send the SIGSTP and SIGCONT to any process for it to be suspended or resumed

[–] MonkderVierte@lemmy.ml 1 points 1 month ago

Yeah, those. Thanks!

[–] ReakDuck@lemmy.ml 1 points 1 month ago* (last edited 1 month ago) (1 children)

It doesn't work for all games. I think Grey Goo was problematic

(I remember doing thid when I had an Nvidia. Someone noted down that Nvidia does have issues. Maybe I should try again with my AMD)

[–] ReversalHatchery@beehaw.org 2 points 1 month ago

Technically it works, but they are doing something that makes them bug away when resumed. It is not rare that this is related to graphics

[–] vinzenz@lemmy.chaos.berlin 3 points 1 month ago

I guess the solution is configuring your power button to enter sleep? That works for Wayland as well. Just don't long-press it to open the power menu...

[–] bjoern_tantau@swg-empire.de 3 points 1 month ago (1 children)

Never had problems with that on laptops, except when I enabled nVidia graphics. So stay away from that.

It's been a long while since I've tried it on a desktop, never felt the need. I don't even remember if I was on Linux or Windows last time I tried it on a desktop.

So, I guess in general it should work. It's just a simple suspend to RAM. Should be supported by every distribution out of the box.

[–] cron@feddit.org 3 points 1 month ago

Thanks for the hint on nVidia. That might explain my issue

[–] Strayce@lemmy.sdf.org 2 points 1 month ago

I'm running Bazzite on LeGo and it does this. No idea what until or settings it uses to achieve it tho.