After a fresh install (Tumbleweed KDE/Plasma) I’ve left my desktop computer with it’s default power saving configuration.
However I find that on automatically going into sleep mode it terminates running applications. Not all, I have 4 apps that I leave open all the time including at shutdown and which are restored on boot, these are conserved. Anything else is killed.
This last time Firefox and RawTherapee - and they are killed, not shut down. When I re-opened Rawtherapee it opened in the folder I was using at the start of the session and I’d lost the edits I’d been working on.
It would seem to revert to the beginning of the session at boot - the apps I deliberately leave open so they open automatically on startup.
It would help if you can open an application from the command line, leave that running, and sleep. If the application is gone with after restore share what is on that console.
For firefox that does not work, it detaches itself for the consolse, but for most application it should work.
Looking at the power-saving settings, which I’d left on default, it’s supposed try to hibernate after having slept for a while… so it would seem to be that process.
I tried your idea of using Konsole to start an app and see what would happen if I hibernated it - it refused to go into hibernation!
I changed the configuration.
It’s a pity they can’t get hibernation to work properly, particularly as energy saving is vitally important now.
Update
Actually it’s not trying to hibernate… The bloody thing’s rebooting the machine! I was on the phone and I thought it was going to sleep and instead it rebooted.
I checked in KDE system power settings and it says nothing about rebooting, so where it’s got the idea from god alone knows…
Might I respectfully suggest putting “sudo” at the beginning of root code - that way idiots like me who copy blindly what is there would automatically be root…
This time it wouldn’t wake at all from sleep and then rebooted (without me hitting the button)