popsUlfr / SDH-PauseGames

Decky Loader Plugin for Steam Deck to Pause and Resume games
GNU General Public License v3.0
76 stars 8 forks source link
decky-loader game pause plugin python quick-resume react sigcont signal sigstop steam steam-deck typescript

Pause Games

A Steam Deck plugin for the Decky Plugin Loader that makes it possible to pause and resume games even for those that don't have an immediate pause option.

Useful for when you wish to temporarily suspend an application in order to redirect the cpu and gpu ressources to another without having to close it.

Since used RAM and VRAM won't be able to be recovered from paused apps you might look into tweaking your swapfile to make things smoother: https://github.com/CryoByte33/steam-deck-utilities

It sends the SIGSTOP signal to all the children of the reaper process to stop the execution and SIGCONT to resume them. (Signal (IPC))

It also allows to pause all games prior to system suspend which seems to fix some issues with crackling audio or freezing emulators.

The Pause on focus loss feature will automatically pause apps that are not in focus when switching between them. A bit like the Xbox quick-suspend/resume feature (without the dump to disk functionality unfortunately). If you manually change the state of an app (pause/resume) in this mode it will be stickied and not change state automatically anymore on focus change (depicted by a blue play/pause icon). To reset the stickied states, disable and re-enable Pause on focus loss.

In addition to Pause on focus loss, Also on overlay will also pause apps when the Steam Overlay is on (by pressing the STEAM button).

Known Issues

Future ideas

Usage Examples

Tips