[Powerdevil] [Bug 344456] New: Plasma 5 desktop does not suspend with only upower, no systemd

Eric Hameleers alien at slackware.com
Sun Feb 22 18:38:54 UTC 2015


https://bugs.kde.org/show_bug.cgi?id=344456

            Bug ID: 344456
           Summary: Plasma 5 desktop does not suspend with only upower, no
                    systemd
           Product: Powerdevil
           Version: 5.2.0
          Platform: Slackware Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: plasma-devel at kde.org
          Reporter: alien at slackware.com

Symptom: The system does not offer suspend or hibernate options, whereas the
old KDE 4.x versions that were installed prior to Plasma 5 have always offered
shutdown and hibernate options.
Additionally, the laptop can not be left running on battery because it will
never suspend and will drain the battery completely.


Reproducible: Always

Steps to Reproduce:
1. Install Slackware-current (Slackware's development tree)
2. Install Plasma 5 packages from
http://taper.alienbase.nl/mirrors/alien-kde/current/testing/
3. Run the Plasma 5 desktop

Actual Results:  
In the Leave menu: Shutdown and Hibernate are missing. If a laptop running this
software is left alone and on battery power, it will not suspend (thereby
preserving battery charge) but instead it will keep running until the battery
is drained.

Expected Results:  
In the Leave menu: Shutdown and Hibernate are present.
If the Slackware laptop running Plasma 5 is left unattended while on battery
power, it will suspend before the battery is fully drained.

Affected system: Slackware-current (development tree of Feb 2015) combined with
Framework 5.7.0, Plasma 5.2.0 and Applications 14.12.2.

Points of interest: Slackware uses upower 0.9.17 and does not have systemd or a
shim. It uses ConsoleKit (1, not 2) for session and seat management, and
polkit-0.105 for handling the privileges. Additional packages for the KDE 4 and
Plasma 5 environments are, polkit-qt-1, polkit-qt5-1, polkit-kde-agent-1,
polkit-kde-framework, polkit-kde-kcmodules-1, polkit-kde-kcmodules-framework.

Note: this older version of UPower which Slackware uses, still offers the
shutdown and hibernate functionality which was ultimately removed after 0.9.23.
Diagnostics: Here is output of the relevant programs, feel free to ask more
detail:
$ upower -d
...
Daemon:
  daemon-version:  0.9.17
  can-suspend:     yes
  can-hibernate    no
  on-battery:      no
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:  yes
  is-docked:       no

$ qdbus  org.kde.kded5 /org/freedesktop/PowerManagement CanSuspend
false

$ qdbus  org.freedesktop.PowerManagement /org/freedesktop/PowerManagement
CanSuspend
false

$ qdbus --system org.freedesktop.login1 /org/freedesktop/login1
org.freedesktop.login1.Manager.CanSuspend
Service 'org.freedesktop.login1' does not exist.

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


More information about the Plasma-devel mailing list