Bug 417036

Summary: powerdevil tries to do hybrid-sleep despite selecting regular suspend
Product: [Unmaintained] Powerdevil Reporter: Daniel <daniel-other+kdebug>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.17.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot of the settings of powerdevil and log

Description Daniel 2020-02-01 21:05:05 UTC
Created attachment 125601 [details]
screenshot of the settings of powerdevil and log

SUMMARY
When I select suspend in the settings for a lid-close-action, and then close the lid, powerdevil tries to do a hybrid-sleep (despite selecting suspend)

STEPS TO REPRODUCE
1. Enable hybrid-sleep in /etc/systemd/sleep.conf
2. Set action to regular suspend
3. disable hybrid-sleep in /etc/systemd/sleep.conf (to show that indeed a hybrid-sleep is tried)
4. close the lid

OBSERVED RESULT
the laptop isn't suspended and the log shows 

   powerdevil: Failed to start suspend job "org.freedesktop.login1.SleepVerbNotSupported" "Sleep verb \"hybrid-sleep\" not supported"


EXPECTED RESULT
the laptop should suspend just as it happens with systemctl suspend


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version:  5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.1

ADDITIONAL INFORMATION
I previously set the action to hybrid-sleep, but then disabled hybrid-sleep in systemd/sleep.conf
Comment 1 Daniel 2020-02-03 14:02:13 UTC
So, powerdevil actually tries to do suspend-then-hibernate.

I have no idea why hybrid-sleep is a requirement for that, but you can change in systemd' sleep.conf the HybridSleepMode and HybridSleepState to the same value as the SuspendMode/State. Then it will work.