Bug 432694 - Suspend-then-hibernate not working as expected
Summary: Suspend-then-hibernate not working as expected
Status: RESOLVED DUPLICATE of bug 410029
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 5.20.5
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-09 16:17 UTC by Alex Hermann
Modified: 2022-09-22 13:55 UTC (History)
4 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 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 ***