SUMMARY Can not use hybrid suspend STEPS TO REPRODUCE Try adding hybrid suspend to Logout.qml OBSERVED RESULT No way to trigger hybrid suspend from here EXPECTED RESULT A way to do so from Logout.qml SOFTWARE/OS VERSIONS: Linux/KDE Plasma: Kubuntu 19.04 (available in About System) KDE Plasma Version: 5.15.4 KDE Frameworks Version: 5.56.0 Qt Version: 5.12.2
If by "Hybrid Suspend" you mean "Suspend and then hibername after a few hours", that needs to be turned on in System Settings > Power management, assuming your system supports it. Once it's turned on, it's automatically engaged every time you suspend.
Not at all. By hybrid suspend I mean the power state triggered by this command: "systemctl hybrid-sleep"
Ah ok, we don't support that one yet.
*** Bug 432694 has been marked as a duplicate of this bug. ***
The changes in PowerDevil for Plasma 6 include a change where you can set one of three modes for the "Sleep" action: "Standby", "Hybrid sleep" and "Standby, then hibernate". This can be configured with a new field in the Energy Savings settings page with a label that says "When sleeping, enter: (...)" which replaces the previous awkward checkbox named "While asleep, hibernate after a period of inactivity. The idea is that "Sleep" will do system-wide whichever of the three you select. There's a chance that the changes have provided a way to get hybrid suspend into the logout screen, because selecting "Hybrid sleep" as sleep mode and then pressing "Sleep" should do the trick. I think so, at least. I wasn't able to test it because on my (imperfectly configured?) Plasma 6 dev environment, showing the logout screen made my display go grey with no further interaction possible. Maybe it works for the rest of you folks though. Someone please test on Plasma 6... thanks!
I have tested what Jakob Petsovits mentioned. I'm running plasma 6.1.5 on gentoo with systemd. I have changed the config setting in PowerDevil "When sleeping, enter" to "Hybrid sleep". When initiating sleep via the lock screen "Sleep button" systemd executes the sleep operation "hyprid-sleep" systemd and systemd-sleep logged following messages: systemd[1]: Reached target Sleep. systemd[1]: Starting System Hybrid Suspend+Hibernate... systemd-sleep[28878]: Performing sleep operation 'hybrid-sleep'... Also the whole process needed more time to succeed due the additional task to create the hibernation image before entering suspend 2 ram