[Powerdevil] [Bug 358957] New: laptop won't hybrid-suspend when KDE is running

Bas Zoetekouw via KDE Bugzilla bugzilla_noreply at kde.org
Wed Feb 3 15:37:49 UTC 2016


            Bug ID: 358957
           Summary: laptop won't hybrid-suspend when KDE is running
           Product: Powerdevil
           Version: 5.4.3
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: plasma-devel at kde.org
          Reporter: bas at debian.org

Even though my laptop supports hybrid-suspend very well, KDE doesn't seem to
want to use it, and there doesn't seem to be a way to configure this.

I'm quite sure hybrid suspend works as expected: "systemctl hybrid-sleep" works
as expected, and after adding "HandleLidSwitch=hybrid-sleep" to
/etc/systemd/logind.conf, the laptop automatically hybrid-sleeps when the lid
is closed.  Unless KDE is running, that is....

Note that KDE seems aware that my system supports hybrid sleep:
> bas at miranda]~> qdbus org.freedesktop.PowerManagement /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.CanHybridSuspend
> true

However, there is no way to explicitly specify hybrid-sleep in the config panel
(just sleep and hibernate).  A number of other bug reports seem to indicate
that KDE should automatically shoudl hybrid-sleep instead of sleep, if it is
available, but it is inclear if that was ever implemented.  It doesn't work
here, at least: I've added a script "echo "$(date) $0 $1 $2 >> /tmp/pmlog" to
/lib/systemd/system/sleep/, which clearly shows that systemd is running
"suspend" instead of "hybrid-sleep".

Reproducible: Always

Steps to Reproduce:
1. close laptop lid

Actual Results:  
system suspends

Expected Results:  
system should have hybrid-suspended.

You are receiving this mail because:
You are the assignee for the bug.

More information about the Plasma-devel mailing list