Inactivity sleep mode on battery fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Xfce4 Power Manager |
Confirmed
|
Medium
|
||
| xfce4-power-manager (Ubuntu) |
Undecided
|
Unassigned | ||
| xubuntu-default-settings (Ubuntu) |
Undecided
|
Unassigned |
Bug Description
I did a clean install of xubuntu bionic (formal release) on my laptop. Both / and /home were formatted first.
In all prior versions I could auto-suspend my laptop after x minutes using power manager when on battery. In 18.04 it fails with:
GDBus.Error:
I tried with the lock option, and the screen was locked, but the suspend still failed.
I looked for more error information in syslog but didn't find anything.
If I can provide more information, please tell me what, and how.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: xfce4-power-manager 1.6.1-0ubuntu1
ProcVersionSign
Uname: Linux 4.15.0-20-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Apr 30 15:04:36 2018
InstallationDate: Installed on 2018-04-27 (3 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: xfce4-power-manager
UpgradeStatus: No upgrade log present (probably fresh install)
|
#5 |
I had this exact error in Xubuntu 16.04 and fixed it with this solution:
|
#6 |
The fix in the link (http://
|
#7 |
The error message "GDBus.
Bug: NetworkManager.
The access denied error is caused by xfce4-power-manager attempting to call org.freedesktop
Bug: Inactivity sleep mode on battery when hibernate is disabled
Not suspending when on battery is a separate bug. It is a duplicate of Bug 12497. It is caused by a combination of things:
* The default sleep action on AC is suspend. The default sleep action on battery is hibernate. (see xfpm_xfconf_
* Hibernate is disabled by default on some systems.
* In xfce4-power-
To reiterate, xfce4-power-manager attempts to hibernate on an inactivity timeout even when hibernate is disabled, and you cannot switch to suspend using the settings GUI. If hibernate was enabled and suspend disabled, then a similar bug would happen during inactivity timeouts on AC.
There are a number of potential solutions to this bug.
1. In xfce4-power-manager intelligently select a default value for "inactivity-
2. In xfce4-power-
3. In xfce4-power-
gtk_
gtk_
This will make it so if the current sleep mode is not available, the sleep mode combo box will not have an active item. When selecting the only item, the combo box changed signal will fire and the setting will be updated.
Tim Passingham (tim-8aw3u04umo) wrote : | #1 |
Launchpad Janitor (janitor) wrote : | #2 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in xfce4-power-manager (Ubuntu): | |
status: | New → Confirmed |
Changed in xfce4-power-manager: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
This bug is still present in Cosmic xubuntu, installed on 20th October.
Tim Passingham (tim-8aw3u04umo) wrote : | #9 |
For laptop users, the ability to suspend after an idle period is, I would have thought, quite important.
Tim, does the workaround from your comment still work?
https:/
That line could be added to the config file which is provided by Xubuntu:
summary: |
- xubuntu, clean bionic, power manager suspend fails + Inactivity sleep mode on battery fails |
Tim Passingham (tim-8aw3u04umo) wrote : | #11 |
No, the old workaround doesn't work. I've failed to find any solution.
Running the power manager in debug mode could give us a hint:
$ xfce4-power-manager -q && xfce4-power-manager --no-daemon --debug
Tim Passingham (tim-8aw3u04umo) wrote : | #13 |
I did this. I got the same error notification. This is the last bit of the debug output (I then killed it). It means nothing to me, but maybe it does to someone else.
TRACE[
TRACE[xfpm-
TRACE[xfpm-
TRACE[xfpm-
TRACE[xfpm-
TRACE[xfpm-
TRACE[xfpm-
TRACE[xfpm-
TRACE[xfpm-
** (xfce4-
(xfce4-
TRACE[xfpm-
^[[C^CTRACE[
TRACE[xfpm-
TRACE[xfpm-
xfce4-power-
(xfce4-
called g_object_unref() on an object that had only a floating
reference; the initial floating reference is not owned by anyone
and must be removed with g_object_
(xfce4-
Some configuration related output is printed in the beginning, so please attach the whole terminal output.
It would help to have the syslog also (journalctl -b --no-pager).
Tim Passingham (tim-8aw3u04umo) wrote : | #15 |
This is the journalctl as requested
Tim Passingham (tim-8aw3u04umo) wrote : | #16 |
And this is the full power-manager output
My guess would be that xfce4-power-manager still tries to hibernate the system, but that operation is not permitted. What do the following two commands return?
$ xfce4-power-manager --dump
$ xfconf-query -c xfce4-power-manager -lv
no longer affects: | xubuntu-default-settings (Ubuntu) |
Tim Passingham (tim-8aw3u04umo) wrote : | #18 |
Here they are:
...:~$ xfce4-power-manager --dump
-------
Xfce power manager version 1.6.1
With policykit support
With network manager support
-------
Can suspend: True
Can hibernate: False
Authorised to suspend: True
Authorised to hibernate: False
Authorised 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
...:~$ xfconf-query -c xfce4-power-manager -lv
/xfce4-
/xfce4-
/xfce4-
/xfce4-
/xfce4-
/xfce4-
/xfce4-
/xfce4-
/xfce4-
/xfce4-
/xfce4-
/xfce4-
/xfce4-
/xfce4-
/xfce4-
/xfce4-
/xfce4-
/xfce4-
/xfce4-
Did you remove the following entry?
/xfce4-
Tim Passingham (tim-8aw3u04umo) wrote : | #20 |
No! xubuntu/xfce4 deleted it all by itself when I logged off and then back on again (I did it twice to make sure).
I was editing the version in mu home directory .config/
You have to edit this file while not being logged into the Xfce session.
Alternatively, use the Xfce Settings Editor or run this command:
$ xfconf-query -c xfce4-power-manager -p /xfce4-
Tim Passingham (tim-8aw3u04umo) wrote : | #22 |
Thanks very much. That worked. Sorry I was so dim editing it in place.
Now I'll have to sort out why some things don't come back (mainly the network) on resuming - but that's a separate issue.
If someone somewhere can see their way to adding this to the standard set-up this bug report can be closed.
So, it would be best to add this entry to the Xubuntu default settings (comment #10) until the actual issue is resolved (comment #7, second part).
Tom Hutchison (hutchy68) wrote : | #24 |
Try running this command>>>
$ xfconf-query -c xfce4-power-manager -p /xfce4-
Then run>>>
$ xfconf-query -c xfce4-power-manager -lv
Make sure you see>>>
... /xfce4-
Listed in the output
Worked for me on a fresh install of Xubuntu 18.04 and it has been tested on other laptops. Also solved 16.04 issue too.
It seems as if this statement above in one of the replies... "In xfce4-power-
I also ended up having to run>>>
$ xfconf-query -c xfce4-power-manager -p /xfce4-
Which solved the issue of suspend on ac too.
Launchpad Janitor (janitor) wrote : | #25 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in xubuntu-default-settings (Ubuntu): | |
status: | New → Confirmed |
Sean Davis (bluesabre) wrote : | #26 |
Resolved with the below commit.
Changed in xubuntu-default-settings (Ubuntu): | |
status: | Confirmed → Fix Committed |
Launchpad Janitor (janitor) wrote : | #27 |
This bug was fixed in the package xubuntu-
---------------
xubuntu-
* Add Terminal (F4) and Find (Primary+Shift+F) shortcuts to Thunar (LP: #1793395)
- etc/xdg/
- etc/xdg/
* debian/
- Set GNOME/GTK 3 dconf keys for fonts (LP: #1769774)
* etc/xdg/
- Removed, obsolete (LP: #1805005)
* etc/xdg/
- Enable startup-notify in Thunar's uca.xml (LP: #1794118)
* etc/xdg/
- Add shortcut for xfce4-screenshooter region capture (Shift+Print) (LP: #1812234)
* etc/xdg/
- Set default inactivity mode to Suspend on AC and battery (LP: #1768038)
* etc/xdg/
- Removed, obsolete (LP: #1805007)
* usr/share/
- Replace invalid macroEnabled mimetypes (LP: #1802582)
- Remove invalid x-scheme-
-- Sean Davis <email address hidden> Mon, 28 Jan 2019 22:44:14 -0500
Changed in xubuntu-default-settings (Ubuntu): | |
status: | Fix Committed → Fix Released |
nils_se (nils.se) wrote : | #28 |
This worked like a charm for me:
https:/
Sorry, if already known, haven't read all links. It solved my "permission denied" problem. Maybe you can extract a fix out of this workaround. I would help, but my knowledge is pretty limited.
Hi. With Xubuntu 15.10 (was same w/ 15.04) when suspend is initiated through inactivity, it fails with the quoted text: "GDBus. Error:org. freedesktop. DBus.Error. AccessDenied: Permission denied".
I've tried this [https:/ /askubuntu. com/questions/ 627356/ xubuntu- 15-04-cannot- suspend- when-inactive] fix but it didn't help. /bugs.launchpad .net/ubuntu/ +source/ xfce4-power- manager/ +bug/1441460] is close but irrelevant?
I suspect that this [https:/
Seems to fail the same when powered or on battery - I haven't noticed a difference in any case.
Any thoughts / guesses appreciated. When I come back to it and wiggle the mouse, hit the keyboard, or sometimes hit the power button, it comes back to the session login screen then returns with that failure warning. So I suspect it has been sitting there unsuspended but with the screen off.
edit: just noticed I'm using v1.4.4-4ubuntu (per software manager); given we're not on 1.5.2 is there a reason why this hasn't been upgraded as part of xubuntu 15.10? Cheers.