Bug 410029 - Support suspend-and-hibernate (i.e. systemctl hybrid-sleep)
Summary: Support suspend-and-hibernate (i.e. systemctl hybrid-sleep)
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (show other bugs)
Version: 6.2.4
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 432694 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-07-20 10:59 UTC by ask4support
Modified: 2024-12-18 21:41 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ask4support 2019-07-20 10:59:08 UTC
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
Comment 1 Nate Graham 2020-01-31 18:52:18 UTC
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.
Comment 2 ask4support 2020-02-01 07:02:54 UTC
Not at all. By hybrid suspend I mean the power state triggered by this command: "systemctl hybrid-sleep"
Comment 3 Nate Graham 2020-02-01 15:20:33 UTC
Ah ok, we don't support that one yet.
Comment 4 David Edmundson 2022-09-22 13:55:32 UTC
*** Bug 432694 has been marked as a duplicate of this bug. ***
Comment 5 Jakob Petsovits 2023-12-05 05:39:45 UTC
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!
Comment 6 Stephan Wezel 2024-09-26 16:43:04 UTC
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