#729659 general: problem with laptop suspend after dist-upgrade

Package:
upower
Source:
upower
Description:
abstraction for power management
Submitter:
Kuba
Date:
2014-08-27 09:09:05 UTC
Severity:
normal
#729659#5
Date:
2013-11-15 11:47:16 UTC
From:
To:
Dear Maintainer,
After running apt-get dist-upgrade, my laptop does not suspend properly:
Problems:
1) key shortcut - used to work (standard shortcut, worked out of the box), now
instead suspending, it causes screen lock
2) menu option - used to be above power off option (in gnome menu, this in top
right), now disapeared
3) closing lid - does nothing, used to suspend

when I type some magical command (found on http://askubuntu.com/questions/1792
/how-can-i-suspend-hibernate-from-command-line):
dbus-send --system --print-reply \
    --dest="org.freedesktop.UPower" \
    /org/freedesktop/UPower \
    org.freedesktop.UPower.Suspend
system suspends propperly

laptop: Lenovo thinkpad t61p

Chears,
Kuba

#729659#12
Date:
2013-11-15 18:12:21 UTC
From:
To:
reassign 729659 upower
# if it affects upower those maintainer know better than the '"general"
# maintainers' what to do with this bug...
thanks

#729659#19
Date:
2014-06-01 17:51:35 UTC
From:
To:
I have exactly the same problem and it starts annoying me quite a lot
because it's happening on all my machines:

qdbus org.kde.kded /org/freedesktop/PowerManagement CanSuspend
false

dbus-send --system --print-reply --dest="org.freedesktop.UPower"
/org/freedesktop/UPower org.freedesktop.UPower.Suspend
Error org.freedesktop.DBus.Error.UnknownMethod: Method "Suspend" with
signature "" on interface "org.freedesktop.UPower" doesn't exist


of course calling pm-suspend directly works as expected!

#729659#24
Date:
2014-08-27 09:08:04 UTC
From:
To:
Eric Valette is being bugged by this issue:

I ran into this too and as far as I can tell this happens because UPower
has been superseded by Systemd.Logind. So the fix I found is to make the
following call instead:

dbus-send --print-reply --system --dest=org.freedesktop.login1 \
    /org/freedesktop/login1 org.freedesktop.login1.Manager.Suspend \
    boolean:true

There are similar commands for HybridSleep and Hibernate. The
Systemd.Logind documentation can be found there:

http://www.freedesktop.org/wiki/Software/systemd/logind/