Bug 432694

Summary: Suspend-then-hibernate not working as expected
Product: [Plasma] Powerdevil Reporter: Alex Hermann <gaaf>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde.bugzilla.2012, kde, kde, nate
Priority: NOR    
Version: 5.20.5   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alex Hermann 2021-02-09 16:17:03 UTC
SUMMARY

Laptop does not hibernate after suspend when configured in Plasma to do so.

Manually executing "systemctl suspend-then-hibernate" does the right thing.


STEPS TO REPRODUCE
1. Enable "While asleep,hibernate after a period of inactivity" in Energy Saving
2. Select "Sleep" for the option "When laptop lid closed"
3. Close lid

OBSERVED RESULT

Laptop goes to sleep, and stays in that state.


EXPECTED RESULT

Laptop goes to sleep, wakes after 10sec (HibernateDelaySec=10sec) to hibernate.



SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.20.5 
(available in About System) there is no "About System"
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION

/etc/systemd/sleep.conf:
[Sleep]
#AllowSuspend=yes
#AllowHibernation=yes
#AllowSuspendThenHibernate=yes
#AllowHybridSleep=yes
#SuspendMode=
#SuspendState=mem standby freeze
HibernateMode=shutdown
#HibernateState=disk
#HybridSleepMode=suspend platform shutdown
#HybridSleepState=disk
HibernateDelaySec=10sec
Comment 1 Kai Uwe Broulik 2021-02-09 16:37:34 UTC
Yeah that looks like the implementation only does that in idle, not in any of the explicit actions (lid close, power button press, etc)...
Comment 2 David Edmundson 2022-09-22 13:55:32 UTC

*** This bug has been marked as a duplicate of bug 410029 ***