You are not logged in.

#1 2025-01-14 03:29:41

mwigzell
Member
Registered: 2016-01-29
Posts: 29

[SOLVED] xfce desktop tries to suspend since recent update

I did not have much use for suspend, sleep etc. since I am running a desktop computer and like to have it run even when screen saver comes up. Recently I updated system, and I began to notice that the system was coming back from sleep/suspend when I sat down to use it. This started happening right after a system update. So I decided to mask the events with systemd command:

systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

The result is the system no longer suspends. Great! but now I get an error status message on screen telling me "Power Manager\nGDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied".
So my XFCE power manager is apparently trying to suspend the desktop. However I "think" I have it all off. If I run
xfconf-query -c xfce4-power-manager -l -v

/xfce4-power-manager/blank-on-ac                    15
/xfce4-power-manager/dpms-enabled                   false
/xfce4-power-manager/dpms-on-ac-off                 18
/xfce4-power-manager/dpms-on-ac-sleep               17
/xfce4-power-manager/general-notification           false
/xfce4-power-manager/inactivity-on-ac               14
/xfce4-power-manager/inactivity-sleep-mode-on-ac    1
/xfce4-power-manager/lock-screen-suspend-hibernate  true
/xfce4-power-manager/show-tray-icon                 false

If I run the power manager in foreground with debug turned on:

TRACE[xfpm-main.c:178] xfpm_start(): Starting the power manager
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for critical-power-level
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for show-brightness-popup
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for handle-brightness-keys
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for brightness-step-count
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for brightness-exponential
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for critical-power-action
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for power-button-action
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for hibernate-button-action
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for sleep-button-action
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for battery-button-action
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for lid-action-on-ac
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for lid-action-on-battery
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for brightness-level-on-ac
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for brightness-level-on-battery
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for brightness-slider-min-level
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for dpms-on-battery-sleep
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for dpms-on-battery-off
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for dpms-sleep-mode
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for inactivity-on-battery
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for inactivity-sleep-mode-on-battery
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for brightness-on-ac
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for brightness-on-battery
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for logind-handle-power-key
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for logind-handle-suspend-key
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for logind-handle-hibernate-key
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for logind-handle-lid-switch
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for heartbeat-command
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for profile-on-ac
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for profile-on-battery
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for show-panel-label
TRACE[xfpm-xfconf.c:151] xfpm_xfconf_load(): Using default configuration for show-presentation-indicator
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)
TRACE[xfpm-button.c:173] xfpm_button_xevent_key(): could not map keysym 1008ffa8 to keycode

TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 213 : ((XfpmButtonKey) BUTTON_HIBERNATE)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 244 : ((XfpmButtonKey) BUTTON_BATTERY)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 238 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 237 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 236 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_CYCLE)
TRACE[xfpm-brightness-x11.c:182] xfpm_brightness_x11_setup(): Could not find output to control
TRACE[xfpm-brightness-polkit.c:85] helper_get_value(): Executing command: /usr/bin/xfpm-power-backlight-helper --get-max-brightness
TRACE[xfpm-brightness-polkit.c:89] helper_get_value(): Failed to get value: Child process exited with code 4
TRACE[xfpm-brightness-polkit.c:119] xfpm_brightness_polkit_setup(): get-max-brightness returned -1
TRACE[xfpm-brightness.c:106] xfpm_brightness_new(): No brightness controls available
TRACE[xfpm-kbd-backlight.c:93] xfpm_kbd_backlight_init_max_level(): Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/UPower/KbdBacklight”
TRACE[xfpm-manager.c:550] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch
TRACE[xfpm-manager.c:443] xfpm_manager_set_idle_alarm_on_ac(): setting inactivity sleep timeout on ac to 14
TRACE[xfpm-idle.c:150] xfpm_idle_alarm_add(): Adding alarm id 8 with timeout 840000
TRACE[xfpm-manager.c:459] xfpm_manager_set_idle_alarm_on_battery(): setting inactivity sleep timeout on battery to never
TRACE[xfpm-idle.c:178] xfpm_idle_alarm_remove(): Alarm id 16 already removed
TRACE[xfpm-manager.c:618] name_appeared(): org.xfce.SessionManager started up, owned by :1.7

I will post the trace that results if I let the screen saver come up, but I'm posting this lot first, since I don't want to get timed out of this session without posting.

After coming back to the desktop, the screensaver was running. The further TRACE messages are:

TRACE[xfpm-manager.c:395] xfpm_manager_alarm_timeout_cb(): Alarm inactivity timeout id 8
TRACE[xfpm-brightness-x11.c:182] xfpm_brightness_x11_setup(): Could not find output to control
TRACE[xfpm-brightness-polkit.c:85] helper_get_value(): Executing command: /usr/bin/xfpm-power-backlight-helper --get-max-brightness
TRACE[xfpm-brightness-polkit.c:89] helper_get_value(): Failed to get value: Child process exited with code 4
TRACE[xfpm-brightness-polkit.c:119] xfpm_brightness_polkit_setup(): get-max-brightness returned -1
TRACE[xfpm-brightness.c:106] xfpm_brightness_new(): No brightness controls available

(xfce4-power-manager:208370): xfce4-power-manager-WARNING **: 19:46:15.452: Failed to suspend via systemd: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied
TRACE[xfpm-suspend.c:201] xfpm_suspend_try_action(): Executing command: pkexec /usr/bin/xfce4-pm-helper --suspend

(xfce4-power-manager:208370): xfce4-power-manager-WARNING **: 19:46:15.464: Failed to suspend/hibernate: Child process exited with code 1

Obviously its the power manager that is trying to force suspend, but why? Is this a bug or am I already stopping it in the right way?

Last edited by mwigzell (2025-01-14 23:59:46)

Offline

#2 2025-01-14 07:00:32

lambdarch
Member
From: France
Registered: 2021-01-10
Posts: 106
Website

Re: [SOLVED] xfce desktop tries to suspend since recent update

/xfce4-power-manager/inactivity-on-ac               14

Run xfce4-power-manager-settings and set it to 0 (system tab). '14' meant 'disabled' in 4.18, which was a very bad idea. This is now fixed in 4.20, but this is a change for which backward compatibility wasn't possible to achieve (at a reasonable cost).

Offline

#3 2025-01-14 23:58:18

mwigzell
Member
Registered: 2016-01-29
Posts: 29

Re: [SOLVED] xfce desktop tries to suspend since recent update

Yes! thanks.

Offline

Board footer

Powered by FluxBB