Does this mean I can pause online games?
/s
/us I'm assuming this is like pressing Ctrl+Z in a Terminal window, and then fg to unpause.
Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME
away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.
This page can be subscribed to via RSS.
Original /r/linux_gaming pengwing by uoou.
No memes/shitposts/low-effort posts, please.
WWW:
Discord:
IRC:
Matrix:
Telegram:
Does this mean I can pause online games?
/s
/us I'm assuming this is like pressing Ctrl+Z in a Terminal window, and then fg to unpause.
Haha, yes! Ctrl+Z sends a TSPT signal to a terminal process, while this script sends a STOP signal to every process in a game's process tree. Both get resumed with a SIGCONT so they're kinda similar.
That's cool! Do you know about any similar solution for KDE Plasma/Kwin by any chance? Also, would it be theoretically possible to save the process to some kind of swapfile on disk so it doesn't take up space in RAM?
There is Nyrna, but it doesn't work on Wayland.
Afaik saving to swap isn't possible as it's something managed by the kernel, although you can try tweaking cgroups. Nyrna also mentions that this isn't currently possible.
Pretty simple and elegant solution. Nice job!