Launchpad has imported 5 comments from the remote bug at https://bugzilla.xfce.org/show_bug.cgi?id=12317.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2015-11-17T16:23:46+00:00 Si Dedman wrote: 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. I suspect that this [https://bugs.launchpad.net/ubuntu/+source/xfce4-power-manager/+bug/1441460] is close but irrelevant? 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. Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power- manager/+bug/1768038/comments/0 ------------------------------------------------------------------------ On 2016-08-16T02:06:43+00:00 Si Dedman wrote: This is still an issue in v.1.6.0 Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power- manager/+bug/1768038/comments/1 ------------------------------------------------------------------------ On 2016-11-21T03:01:13+00:00 Drrnrss-e wrote: I had this exact error in Xubuntu 16.04 and fixed it with this solution: http://askubuntu.com/a/851760/83302 Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power- manager/+bug/1768038/comments/2 ------------------------------------------------------------------------ On 2017-02-22T21:47:36+00:00 Fernandsaussure wrote: The fix in the link (http://askubuntu.com/a/851760/83302) worked for me as well on Xubuntu 16.04. Incidentally, someone on the Ubuntu-devel- discuss mailing list reported what I think is the same bug and workaround and suggested a more permanent fix: https://lists.ubuntu.com/archives/ubuntu-devel- discuss/2016-July/016779.html. Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power- manager/+bug/1768038/comments/3 ------------------------------------------------------------------------ On 2017-08-26T22:33:30+00:00 Erik wrote: The error message "GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied" is unrelated to inactivity sleep not working. It is caused by a separate bug. Bug: NetworkManager.Sleep access denied The access denied error is caused by xfce4-power-manager attempting to call org.freedesktop.NetworkManager.Sleep, but access is denied by Network Manager's polkit policy. This bug could be fixed by creating a polkit rule to allow xfce4-power-manager to call the Sleep DBus message. However, a better fix would be to not call org.freedesktop.NetworkManager.Sleep at all, at least when using logind for suspend, because Network Manager automatically sleeps by using a logind suspend inhibit delay. I reported this bug on the Ubuntu bug tracker https://bugs.launchpad.net/ubuntu/+source/xfce4-power- manager/+bug/1713224. 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_class_init() function in xfpm-xfconf.c) * Hibernate is disabled by default on some systems. * In xfce4-power-manager-settings, there is a GComboBox to select the sleep mode on battery. This combo box displays only one item, suspend, because hibernate is disabled. The "inactivity-sleep-mode-on-battery" setting is only updated after the GComboBox changed signal fires. The changed signal never fires if there is only one item in the combo box, so selecting suspend does not change the sleep mode from hibernate. 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-sleep-mode-on-battery" and "inactivity-sleep-mode-on-ac" when these settings are not explicitly set. The value should be based on can_suspend, auth_suspend, can_hibernate, and auth_hibernate. 2. In xfce4-power-manager, after an inactivity timeout, override "inactivity-sleep-mode-on-battery" and "inactivity-sleep-mode-on-ac" when the preferred sleep mode is not available. 3. In xfce4-power-manager-settings, change the functions xfpm_settings_on_ac() and xfpm_settings_on_battery() in xfpm-settings.c: gtk_combo_box_set_active (GTK_COMBO_BOX (inact_action), 0); // Change this line gtk_combo_box_set_active (GTK_COMBO_BOX (inact_action), -1); // To this 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. Reply at: https://bugs.launchpad.net/ubuntu/+source/xfce4-power- manager/+bug/1768038/comments/4 ** Changed in: xfce4-power-manager Status: Unknown => Confirmed ** Changed in: xfce4-power-manager Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1768038 Title: xubuntu, clean bionic, power manager suspend fails To manage notifications about this bug go to: https://bugs.launchpad.net/xfce4-power-manager/+bug/1768038/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
