Bug 304705

Summary: The plasma battery does no more offer suspend or hibernate
Product: [Frameworks and Libraries] solid Reporter: Blindauer Emmanuel <bugs.kde.org>
Component: powermanagementAssignee: Dario Freddi <drf>
Status: RESOLVED FIXED    
Severity: normal CC: afiestas, kde, lamarque, nick, railmaniac
Priority: NOR    
Version: 4.9.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Blindauer Emmanuel 2012-08-07 05:31:55 UTC
Since 4.9, the widget in plama, which shows the state of the battery, does no more offer suspend to ram or hibernate.
The system still support them.
root@vautour:~# upower -d |grep can
  can-suspend:     yes
  can-hibernate    yes



Reproducible: Always
Comment 1 railmaniac 2012-08-08 07:01:35 UTC
Can confirm.

My system is Ubuntu 12.04 x86-64 with KDE 4.9.00 installed from the kubuntu PPA.

Workaround: Hibernate from the logout plasmoid works.
Comment 2 Blindauer Emmanuel 2012-08-08 18:16:44 UTC
Something new: after 2 reboots, I have only the "suspend to ram" button, not the hibernate.
Comment 3 Nick Leverton 2012-09-11 14:08:09 UTC
Confirmed for me also.  Lock/logout doesn't offer Hibernate, only Sleep.  Same for the PM applet.  I can only hibernate using command-line tools.
Comment 4 Kai Uwe Broulik 2012-10-01 22:48:31 UTC
Can you check in plasmaengineexplorer in the engine "powermanagement" in the node "Sleep states" whether Hibernate is true or false? The plasmoids check the powermanagement dataengine what suspend options they should offer. If it is false but upower reports true, it is an issue in the plasma engine.
Comment 5 Nick Leverton 2012-10-02 19:11:42 UTC
I have checked plasmaengineexplorer (what a nifty little tool, thanks) and it says Suspend true, Hibernate and Standby false.

I'm not sure how to query upower, it doesn't seem to have much of a cli ...

Nick
Comment 6 Kai Uwe Broulik 2012-10-29 16:16:16 UTC
To query upower use "upower -d" (d for dump) and check for can-hibernate and can-suspend
Comment 7 Nick Leverton 2012-10-30 11:56:16 UTC
Thanks, Kai.
However I'm glad to say that for me the problem has gone away following an upgrade to Ubuntu 12.10 and KDE 4.9.2.  So it could have been an Ubuntu-ism.  Could the other Ubuntu reporter perhaps check if he or she now has suspend-to-disk back again ?
Comment 8 Alex Fiestas 2013-03-03 17:30:37 UTC
I fixed this (the problem was on config generation)