Hey all! If you do any gaming on Hyprland, you might be interested in hyprfreeze.
It’s a very simple bash script I made to “freeze” a game process (or any other process) in Hyprland, which you may find useful to:
- Pause games during unpausable cutscenes
- Save system resources (CPU and GPU are free, the process is saved in RAM)
Should just work^^TM in most scenarios but my testings can only go so far and any feedback would be very appreciated.
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.