Bug 258029 - There is no option to suspend to RAM or disk while using upower.
Summary: There is no option to suspend to RAM or disk while using upower.
Status: RESOLVED DUPLICATE of bug 258400
Alias: None
Product: solid
Classification: Frameworks and Libraries
Component: powermanagement (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-26 23:59 UTC by zarzych
Modified: 2010-12-02 10:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zarzych 2010-11-26 23:59:16 UTC
Version:           unspecified (using KDE 4.5.80) 
OS:                Linux

DBus call to org.freedesktop.PowerManagement.CanSuspend returns false.

Both org.freedesktop.PowerManagement.Suspend and org.kde.Solid.PowerManagement.suspendToRam cause system to lock screen and nothing more.

Reproducible: Didn't try

Steps to Reproduce:
Call DBus org.freedesktop.PowerManagement.Suspend or org.kde.Solid.PowerManagement.suspendToRam

Actual Results:  
The screen is locked and the computer doesn't suspend.

Expected Results:  
Computer is suspended.

Suspending by doing 
# echo mem > /sys/power/state
works as it should.
Comment 1 zarzych 2010-11-27 00:00:06 UTC
As usual, I'm more than willing to help with this issue if I get a bit of guidance :)
Comment 2 zarzych 2010-11-27 00:03:16 UTC
I forgot to mention that the 'Power management' applet (the one that you get when clicking on battery icon in tray) lacks suspend and hibernate buttons.

Also, the wrench icon doesn't open configuration, but it's probably for a separate bug.
Comment 3 Dario Freddi 2010-11-28 19:25:27 UTC
Hi, you should first of all verify that UPower is able to suspend your PC: this can be done by calling on the system bus the method SuspendAllowed on the service org.freedesktop.UPower (interface with the same name). You can then subsequently try suspending calling Suspend.

If you are able to suspend this way, the bug is in KDE and in the UPower backend. If you are not able and you are sure suspension used to work before that, then it's a bug in UPower and you should report it to the UPower guys.
Comment 4 Dario Freddi 2010-11-28 19:28:05 UTC
P.S.: The other bugs you mentioned have already been fixed
Comment 5 zarzych 2010-11-28 20:02:59 UTC
(In reply to comment #3)

Hi, calls to UPower over DBus return *true* for both HibernateAllowed and SuspendAllowed. I can also successfully suspend and hibernate using respective DBus calls so I think the problem lays somewhere in KDE's UPower backend.

I'm using beta 1 with UPower 0.9.7.

P.S.: Thanks for the other bugs :)
Comment 6 Dario Freddi 2010-12-02 10:42:42 UTC
This bug should be a duplicate of the mentioned bug. If that is not the case (so you still experience this problem with Beta2) please reopen this bug.

*** This bug has been marked as a duplicate of bug 258400 ***