[xubuntu] Failing to sleep after inactivity - power manager error?
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | xfce4-power-manager (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
Newly installed XUbuntu 14.10 on 2 different machines but both experience the same problem.
Problem:
Failing to sleep after inactivity and a "xfce4 power manager error"
When setting the machine in xfce4-power-manager to suspend after e.g. 15 minutes the machine will fail to suspend.
This is the message that meets me when I login after a failed suspend:
Power Manager Error
GDBus.Error:
Did not receive a reply. Possible causes include: the
remote application did not send a reply, the message
bus security policy blocked the reply, the reply
timeout expired, or the network connection was
broken.
http://
I can suspend from the logout dialog box.
The following command suspends the system just fine:
$ dbus-send --system --print-reply --dest=
$ xfce4-power-manager --dump
-------
Xfce power manager version 1.4.1
With policykit support
With network manager support
-------
Can suspend: True
Can hibernate: False
Authorized to suspend: True
Authorized to hibernate: False
Authorized to shutdown: True
Has battery: False
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has LID: False
So I guess It's some kind of auth or policykit issue.
| john (av6john) wrote : | #2 |
I had the same error with a laptop.
Some output.
-------
Xfce power manager version 1.4.3
With policykit support
With network manager support
-------
Can suspend: True
Can hibernate: False
Authorized to suspend: True
Authorized to hibernate: False
Authorized to shutdown: True
Has battery: True
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has LID: True
| Michael Kalisz (michael-kalisz) wrote : | #3 |
Just updated to latest release:
Description: Ubuntu 15.04
Release: 15.04
Codename: vivid
An wanted to let you know that it is still ta same problem except that now after it fails to suspend you get the following auth dialog: http://
Does the system lock the screen at some point before it tries to suspend?
| Michael Kalisz (michael-kalisz) wrote : | #5 |
Yes it does.
Please set light-locker to lock the session “When the screensaver is deactivated” and test again.
| Michael Kalisz (michael-kalisz) wrote : | #7 |
Testing... :)
Noticed though that teh setting does not seem to "stick" i.e I set "“When the screensaver is deactivated” and logout/login the setting is back to "“When the screensaver is activated”
| Michael Kalisz (michael-kalisz) wrote : | #8 |
changing the light-locker setting to “When the screensaver is deactivated” solves the problem :)
Just tested by setting the timeout to something low and the machine got suspended....
If we can just make this setting persistent i.e. survive a logout or reboot. Does that work for you?
| Sean Davis (bluesabre) wrote : | #9 |
Since you're using 15.04 now, can you try the following steps?
Light Locker now persists its own settings, so we will want to do away with the current autostart launcher. Remove the following file:
~/.config/
Log out and back in.
Then open Xfce Power Manager Settings (xfce4-
Let me know if this works for you.
| Michael Kalisz (michael-kalisz) wrote : | #10 |
Yes, it works for me :)
Thank you for taking the time to help me out.
The initial bug will be fixed once light-locker does not depend on VT switching anymore [1].
Changing the mentioned light-locker option or allowing inactive user sessions to suspend the system (logind policy) are possible workarounds.
| Changed in xfce4-power-manager (Ubuntu): | |
| status: | New → Invalid |
| Michael Kalisz (michael-kalisz) wrote : | #12 |
I noticed that the above procedure works fine AFTER you login.
Another scenario is when you just start the machine and leave it at the login prompt/dialog without logging in...The machine will the not get suspended.
This is not a big issue for me...but I guess others might be bothered.
Is there a global "“When the screensaver is deactivated” setting somewhere?
This is a known limitation (bug 894484) and some workarounds may be available.
xfce4-power-manager can only do power management if 1) it is started after login and 2) the user session is not marked as inactive.
A session will be marked as inactive once you lock the screen and the VT switch occurs. Enabling the mentioned setting will delay the switch and prevent the session from becoming inactive.
| Changed in xfce4-power-manager (Ubuntu): | |
| status: | Invalid → Confirmed |
| Markus Kwaśnicki (mrkskwsnck) wrote : | #14 |
I just stumbled over this issue, because I am experiencing similar behaviour on a freshly installed Xubuntu 17.04 Zesty Zapus:
In a logged in session my laptop cannot suspend and after some inactivity time it displays an "Access Denied" notification. The only constraint for me is, this issue occurs only when battery powered. Though, with the power cord plugged in, suspend after inactiity works, indeed.


I expect xfce4-power-manager isn't necessarily the right target for this, but it's certainly closer to the mark than Launchpad itself.