LXDE shutdown menu needs to check CanSuspend/CanHibernate
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | lxsession (Ubuntu) |
Undecided
|
Julien Lavergne | ||
| | Trusty |
Undecided
|
Unassigned | ||
Bug Description
Lbuntu 14.04 hibernation does not work from shutdown menu
If I press hibernation in the shut down menu of Lubuntu 14.04 beta 2 I am forced to enter password and then (after entering correct password) the error "GDBus.
A similar bug report exists forubuntu 13.10 under number 1245074 , maybe it has the same origin.
| h koch (hkoch) wrote : | #1 |
| Martin Pitt (pitti) wrote : | #2 |
Yes, we disable hibernation by default in policykit-
| affects: | systemd (Ubuntu) → lxsession (Ubuntu) |
| summary: |
- lubuntu 14.04 beta2, hibernate fails with - "GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Operation not - permitted" + LXDE shutdown menu needs to check CanSuspend/CanHibernate |
| h koch (hkoch) wrote : | #3 |
Is there any guide, hint or workaround available how I can enable hibernation in Lubuntu until the bug ix fixed? As I mentioned above, hibernation works on my PC, but I like to have it by button instead of a console command and password input.
| Launchpad Janitor (janitor) wrote : | #4 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in lxsession (Ubuntu): | |
| status: | New → Confirmed |
| FColz (anywhere88) wrote : | #5 |
Please, tell us how to enable this. I have the same problem, hibernation was working out of the box in 12.04.
None of the tricks for other distributions worked so far.
Thanks.
| Pepperpot (pepperpot666) wrote : | #6 |
I have the same problem with Ubuntu Server 14.04 with an LXDE-installation from the repository. I cannot even shutdown/ restart the system that way. I get the same error message.
| h koch (hkoch) wrote : | #7 |
I found that you can at least active the menu by doing the following:
Create the file /etc/polkit-
The file must have the following content:
[Re-enable hibernate by default]
Identity=
Action=
ResultActive=yes
This will only help, if you can at least hibernate by using the command sudo pm-hibernate as described above.
| Andrea Zwirner (andrea-6) wrote : | #8 |
In may case, as stated here: https:/
I had to create the file:
/etc/polkit-
with the content:
[Re-enable hibernate by default]
Identity=
Action=
ResultActive=yes
note upower instead of login1, as suggested by hkoch
| tchick (monsorno-nospam) wrote : | #9 |
I make hibernate work by creating the file as described. And I can activate hibernate through the energy settings.
But I cannot activate hibernate through the shutdown menu. This leads to the described error message.
| Dmitry (dst-works) wrote : | #10 |
I have the same result:
I make hibernate work by creating the file as described. And I can activate hibernate through the energy settings.
But I cannot activate hibernate through the shutdown menu. This leads to the described error message.
Problem still here.
| Dmitry (dst-works) wrote : | #11 |
sorry guys - I was wrong.
Original file content variant works great:
[Re-enable hibernate by default]
Identity=
Action=
ResultActive=yes
I can hibernate from shutdown menu now.
| A. Eibach (andi3) wrote : | #12 |
to comment 2 :
"Yes, we disable hibernation by default in policykit-
Exactly my opinion! DO NOT DISPLAY "Hibernate" if CanHibernate is set to false! Just omit it. When there is no permission, it must not show up and then output this ugly error to the user (which normally will only be useful to power users anyhow).
| Ahmed (megamorphg) wrote : | #13 |
1. paste both entries found here:
https:/
2. restart your computer
3. enjoy hibernate in lubuntu! (even though restart is faster on my old laptop lol)
| mkoniecz (matkoniecz) wrote : | #14 |
"Yes, we disable hibernation by default in policykit-
| Julien Lavergne (gilir) wrote : | #15 |
It should be fixed by adding upstream patch http://
| Changed in lxsession (Ubuntu): | |
| assignee: | nobody → Julien Lavergne (gilir) |
| Aleksandr (akonstantinov) wrote : | #16 |
Ubunu 14.04 and none of mentioned solutions work.
| postadelmaga (postadelmaga) wrote : | #17 |
+1
| Launchpad Janitor (janitor) wrote : | #18 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in lxsession (Ubuntu Trusty): | |
| status: | New → Confirmed |


Hibernation by typing "sudo pm-hibernate" in the console works perfectly.