Hello, I'm trying to develop a script based on Daniel-42-z's suspend script, but for KDE Plasma on OpenSUSE using Wayland. For background, this laptop (in title) does not currently support suspend w/o disabling fans, keyboard backlight, and some other things. To avoid using hibernation, I am trying to adapt an existing script that tries to "simulate" suspend. Currently, these features are being worked on:
- Detect when lid is closed/opened using dbus-monitor (working)
- Save/restore keyboard backlight level (semi-working)
- Turn off/on LCD backlight (working)
- Save/restore radios (WiFi, Bluetooth) (working)
- Sending SIGSTOP to all user processes, besides the script itself (not working)
I'm currently stuck on having the script restoring itself after SIGSTOP is sent. I'm not sure how to debug why it won't resume. Currently, I am attempting to send a SIGSTOP to any user processes, besides ancestors to $BASHPID and and children of $BASHPID. Dbus-monitor should be running as a system-level process, so it should be spared. Currently, doing everything but sending SIGSTOP gets about 1 watts. I want to see if I can do better. Any suggestions are appreciated.
Repository
Back in high school my friends would show me cartel beheading videos on the bus to track meets. It sounds far-fetched, but it really happened. I couldn’t even believe it either.