Bug 417036 - powerdevil tries to do hybrid-sleep despite selecting regular suspend
Summary: powerdevil tries to do hybrid-sleep despite selecting regular suspend
Status: RESOLVED NOT A BUG
Alias: None
Product: Powerdevil
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 5.17.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-01 21:05 UTC by Daniel
Modified: 2020-02-03 14:02 UTC (History)
0 users

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


Attachments
screenshot of the settings of powerdevil and log (66.39 KB, image/png)
2020-02-01 21:05 UTC, Daniel
Details

Note You need to log in before you can comment on or make changes to this bug.
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.