Bug 351458 - Suspend to RAM does not suspend, but locks screen
Summary: Suspend to RAM does not suspend, but locks screen
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.3.90
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-18 20:08 UTC by Manuel Bärenz
Modified: 2015-12-29 21:24 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 Manuel Bärenz 2015-08-18 20:08:10 UTC
When I do suspend to RAM, the screen turns black for a few seconds, then goes to the lock screen.

Reproducible: Always




An excerpt from my .xsession-errors:

Opening item with URL "leave:/suspendram"
powerdevil: Suspend session triggered with QMap(("Explicit", QVariant(bool, true) ) ( "Type" ,  QVariant(uint, 1) ) ) 
powerdevil: Suspend session triggered with QMap(("Explicit", QVariant(bool, true) ) ( "SkipFade" ,  QVariant(bool, true) ) ( "Type" ,  QVariant(uint, 1) ) ) 
powerdevil: Starting Login1 suspend job
QObject::connect: No such signal org::freedesktop::ConsoleKit::Manager::PrepareForSleep(bool)
lock called
kscreen.kded: System is going to suspend, won't be changing config (waited for  1001 ms)
powerdevil: Failed to start suspend job "org.freedesktop.DBus.Error.AccessDenied" "Rejected send message, 2 matched rules; type="method_call", sender=":1.21" (uid=1000 pid=2955 comm="kded5 [kdeinit5]                                  ") interface="org.freedesktop.ConsoleKit.Manager" member="Suspend" error name="(unset)" requested_reply="0" destination="org.freedesktop.ConsoleKit" (uid=0 pid=2693 comm="/usr/sbin/console-kit-daemon --no-daemon ")"
Lock window Id:  33554439

I do have suspend capabilities and rights:

$ qdbus --system org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.SuspendAllowed
true
$ qdbus --system org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.CanSuspend
true
$  qdbus org.kde.kded5 /org/freedesktop/PowerManagement CanSuspend
true
$ upower -d
Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          AC
  power supply:         yes
  updated:              Tue 18 Aug 2015 20:49:59 BST (941 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    online:             yes

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               Notebook
  model:                BAT
  serial:               0001
  power supply:         yes
  updated:              Tue 18 Aug 2015 20:50:04 BST (936 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               fully-charged
    energy:              47.5413 Wh
    energy-empty:        0 Wh
    energy-full:         47.5413 Wh
    energy-full-design:  62.16 Wh
    energy-rate:         0 W
    voltage:             12.786 V
    percentage:          100%
    capacity:            76.4821%
    technology:          lithium-ion                                                                                                                                                                          
Daemon:                                                                                                                                                      daemon-version:  0.9.23                                                                                                                                                                    

can-suspend:   yes
can-hibernate:   yes
on-battery:     no
on-low-battery:  no
lid-is-closed:   no
lid-is-present:  yes
is-docked:       no
Comment 1 Kai Uwe Broulik 2015-08-18 20:11:06 UTC
Is this perhaps Plasma 5.4 Beta?
Comment 2 Manuel Bärenz 2015-08-18 21:01:32 UTC
Hmm, no, although I just noticed that my version is 5.3.95, so basically 5.4-rc. Yes, I had the versions tagged incorrectly. Wouldn't mind downgrading to 5.3.2 if that's helpful.
Comment 3 Kai Uwe Broulik 2015-08-18 21:03:57 UTC
I fixed that yesterday. In 5.4 there'll be a ConsoleKit 2 backend but we accidentally tried to suspend through it even in case of CK1.
Comment 4 Manuel Bärenz 2015-08-25 20:37:36 UTC
Works on my machine with 5.4. Thanks :)