Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-02-28 05:49:03

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Power Manager Randomly Suspending

Problem

For one of the two users on my machine (Xubuntu 20.04) the system has been randomly suspending recently. This will happen nowhere near the specified timeout to do so, while it is actively in use. I have chased through dmesg and journalctl to this output from `xfce4-power-manager --no-daemon --debug` which I got immediately after one of these spurious suspends, having received no other output for 3 days:

Feb 26 01:37:41 TRACE[xfpm-power.c:907] xfpm_power_add_device(): Battery device type 'mouse' detected at: /org/freedesktop/UPower/devices/mouse_hidpp_battery_0
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 213 : ((XfpmButtonKey) BUTTON_HIBERNATE)
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 233 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 232 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 244 : ((XfpmButtonKey) BUTTON_BATTERY)
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 238 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 237 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
Feb 26 01:37:41 TRACE[xfpm-power.c:210] xfpm_power_check_polkit_auth(): using logind suspend backend
Feb 26 01:37:41 TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 1431>, 'start-time': <uint64 5113>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
Feb 26 01:37:41 TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
Feb 26 01:37:41 TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 1431>, 'start-time': <uint64 5113>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
Feb 26 01:37:41 TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=FALSE
Feb 26 01:37:41 TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
Feb 26 01:37:41 TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
Feb 26 01:37:41 TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
Feb 26 01:37:41 TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
Feb 26 01:37:41 TRACE[xfpm-manager.c:647] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch
Feb 26 01:37:41 TRACE[xfpm-polkit.c:241] xfpm_polkit_free_data(): Destroying Polkit data

My trouble is I don't fully understand what I am looking at or what is causing the machine to suspend in order to prevent it in the future.

After this happened, I got this in the output several times an hour:

Feb 26 01:37:41 TRACE[xfpm-inhibit.c:400] xfpm_inhibit_inhibit(): Inhibit send application name=firefox reason=video-playing sender=:1.79
Feb 26 01:37:41 TRACE[xfpm-inhibit.c:96] xfpm_inhibit_has_inhibit_changed(): Inhibit added
Feb 26 01:37:41 TRACE[xfpm-power.c:960] xfpm_power_inhibit_changed_cb(): is_inhibit TRUE, screensaver_inhibited FALSE, presentation_mode FALSE
Feb 26 01:37:41 TRACE[xfpm-power.c:985] xfpm_power_inhibit_changed_cb(): is_inhibit TRUE, screensaver_inhibited TRUE, presentation_mode FALSE
Feb 26 01:37:41 TRACE[xfpm-inhibit.c:400] xfpm_inhibit_inhibit(): Inhibit send application name=firefox reason=audio-playing sender=:1.79
Feb 26 01:37:41 TRACE[xfpm-inhibit.c:418] xfpm_inhibit_un_inhibit(): UnHibit message received
Feb 26 01:37:41 TRACE[xfpm-inhibit.c:418] xfpm_inhibit_un_inhibit(): UnHibit message received
Feb 26 01:37:41 TRACE[xfpm-inhibit.c:90] xfpm_inhibit_has_inhibit_changed(): Inhibit removed
Feb 26 01:37:41 TRACE[xfpm-power.c:960] xfpm_power_inhibit_changed_cb(): is_inhibit FALSE, screensaver_inhibited TRUE, presentation_mode FALSE
Feb 26 01:37:41 TRACE[xfpm-power.c:985] xfpm_power_inhibit_changed_cb(): is_inhibit FALSE, screensaver_inhibited FALSE, presentation_mode FALSE

How can I fix this? Thanks in advance.

Offline

#2 2022-02-28 11:37:18

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Power Manager Randomly Suspending

Hello and welcome.

Can we get some additional information about your version and settings?

xfce4-power-manager --dump
xfconf-query -c xfce4-power-manager -lv

which I got immediately after one of these spurious suspends

We'd need to see to debug output from xfce4-power-manager and any content from the journal from about 1 minute before the suspend event to see if we can identify what is triggering it.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2022-02-28 16:37:33

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Re: Power Manager Randomly Suspending

> xfce4-power-manager --dump
---------------------------------------------------
       Xfce power manager version 1.6.6
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: False
Has power button: True
Has hibernate button: True
Has sleep button: True
Has battery button: True
Has LID: False

> xfconf-query -c xfce4-power-manager -lv
/xfce4-power-manager/blank-on-ac                       10
/xfce4-power-manager/blank-on-battery                  10
/xfce4-power-manager/dpms-enabled                      true
/xfce4-power-manager/dpms-on-ac-off                    0
/xfce4-power-manager/dpms-on-ac-sleep                  11
/xfce4-power-manager/dpms-on-battery-off               30
/xfce4-power-manager/dpms-on-battery-sleep             15
/xfce4-power-manager/inactivity-sleep-mode-on-ac       1
/xfce4-power-manager/inactivity-sleep-mode-on-battery  1
/xfce4-power-manager/lock-screen-suspend-hibernate     true
/xfce4-power-manager/logind-handle-lid-switch          false
/xfce4-power-manager/power-button-action               3
/xfce4-power-manager/show-panel-label                  0
/xfce4-power-manager/show-tray-icon                    false

My original post was the only xfce4-power-manager in the 3 days before the incident.

Here is the jounralctl, the timestamps do not align, I believe this to be an unrelated issue.

Feb 26 01:15:01 topaz CRON[18829]: pam_unix(cron:session): session opened for user root by (uid=0)
Feb 26 01:15:01 topaz CRON[18831]: (root) CMD (/home/jpc/move_crashes.bash)
Feb 26 01:15:01 topaz CRON[18829]: pam_unix(cron:session): session closed for user root
Feb 26 01:17:01 topaz CRON[18859]: pam_unix(cron:session): session opened for user root by (uid=0)
Feb 26 01:17:01 topaz CRON[18860]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Feb 26 01:17:01 topaz CRON[18859]: pam_unix(cron:session): session closed for user root
Feb 26 01:17:25 topaz rtkit-daemon[940]: Supervising 10 threads of 5 processes of 2 users.
Feb 26 01:17:25 topaz rtkit-daemon[940]: Supervising 10 threads of 5 processes of 2 users.
Feb 26 01:17:30 topaz dbus-daemon[541]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.102" (uid=1001 pid=1938 comm="xfce4-power-manager " label="unconfined") interface="org.freedesktop.NetworkManager" member="Sleep" error name="(unset)" requested_reply="0" destination=":1.8" (uid=0 pid=545 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
Feb 26 01:17:30 topaz kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
Feb 26 01:17:30 topaz kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
Feb 26 01:17:30 topaz ModemManager[644]: <info>  [sleep-monitor] system is about to suspend
Feb 26 01:17:30 topaz NetworkManager[545]: <info>  [1645859850.9647] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Feb 26 01:17:30 topaz NetworkManager[545]: <info>  [1645859850.9648] manager: NetworkManager state is now ASLEEP
Feb 26 01:17:30 topaz whoopsie[1018]: [01:17:30] offline
Feb 26 01:17:30 topaz dbus-daemon[541]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.102" (uid=1001 pid=1938 comm="xfce4-power-manager " label="unconfined") interface="org.freedesktop.NetworkManager" member="Sleep" error name="(unset)" requested_reply="0" destination=":1.8" (uid=0 pid=545 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
Feb 26 01:17:30 topaz systemd[1]: Reached target Sleep.
Feb 26 01:17:30 topaz systemd[1]: Starting Record successful boot for GRUB...
Feb 26 01:17:30 topaz systemd[1]: Starting Suspend...
Feb 26 01:17:31 topaz systemd-sleep[18928]: Suspending system...
Feb 26 01:17:31 topaz kernel: PM: suspend entry (s2idle)
Feb 26 01:17:31 topaz systemd[1]: grub-common.service: Succeeded.
Feb 26 01:17:31 topaz systemd[1]: Finished Record successful boot for GRUB.
Feb 26 01:17:31 topaz systemd[1]: Starting GRUB failed boot detection...
Feb 26 01:17:31 topaz kernel: Filesystems sync: 0.014 seconds
Feb 26 01:17:55 topaz kernel: Freezing user space processes ... (elapsed 0.007 seconds) done.
Feb 26 01:17:55 topaz kernel: OOM killer disabled.
Feb 26 01:17:55 topaz kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Feb 26 01:17:55 topaz kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Feb 26 01:17:55 topaz kernel: serial 00:01: disabled

The dbus message mentioning xfce4-power-mamanger is what lead me to suspect xfce4-power-mamanger.
As mentioned before, I do not know why the timestamps are 20 minutes out of sync.

Offline

#4 2022-02-28 17:42:55

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Power Manager Randomly Suspending

james wrote:

My original post was the only xfce4-power-manager in the 3 days before the incident.

There is something wrong with that output - there should be more - especially if its sending a dbus message to suspend/hibernate. Can you try first quitting the power manager then running it in debug mode to see if you can generate ongoing content? And also wait for the next errant suspend to see if anything is output:

xfce4-power-manager -q
xfce4-power-manager --no-daemon --debug

To ensure that output to the terminal is happening, go into power manager settings and change a setting (and back again) - there should be some output regarding the change in the terminal window. If xfce4-power-manager is initiating the suspend, the debug log will show the event.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2022-02-28 18:04:47

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Re: Power Manager Randomly Suspending

What is missing? I appreciate the help.
This is the entire output prior to the incident:

Feb 23 12:43:03 TRACE[xfpm-main.c:210] xfpm_start(): Starting the power manager
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:651] xfpm_xfconf_init(): lock screen FALSE
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for general-notification
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for critical-power-level
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for show-brightness-popup
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for handle-brightness-keys
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for critical-power-action
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for hibernate-button-action
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for sleep-button-action
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for battery-button-action
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for lid-action-on-ac
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for lid-action-on-battery
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-level-on-ac
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-level-on-battery
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-slider-min-level
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-sleep-mode
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-on-ac
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-on-battery
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-on-ac
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-on-battery
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for network-manager-sleep
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-power-key
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-suspend-key
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-hibernate-key
Feb 23 12:43:03 TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for heartbeat-command
Feb 23 12:43:03 TRACE[xfpm-polkit.c:284] xfpm_polkit_init_data(): Using unix session polkit subject
Feb 23 12:43:03 TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 1431>, 'start-time': <uint64 5113>}), 'org.freedesktop.login1.power-off', @a{ss} {}, uint32 0, '')
Feb 23 12:43:03 TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.power-off is authorized=TRUE
Feb 23 12:43:03 TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 1431>, 'start-time': <uint64 5113>}), 'org.freedesktop.login1.reboot', @a{ss} {}, uint32 0, '')
Feb 23 12:43:03 TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.reboot is authorized=TRUE
Feb 23 12:43:03 TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 1431>, 'start-time': <uint64 5113>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
Feb 23 12:43:03 TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
Feb 23 12:43:03 TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 1431>, 'start-time': <uint64 5113>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
Feb 23 12:43:03 TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=FALSE
Feb 23 12:43:03 TRACE[xfpm-power.c:940] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/mouse_hidpp_battery_0
Feb 23 12:43:03 TRACE[xfpm-power.c:898] xfpm_power_add_device(): 'mouse' device added
Feb 26 01:37:41 TRACE[xfpm-power.c:907] xfpm_power_add_device(): Battery device type 'mouse' detected at: /org/freedesktop/UPower/devices/mouse_hidpp_battery_0
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 213 : ((XfpmButtonKey) BUTTON_HIBERNATE)
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 233 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 232 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 244 : ((XfpmButtonKey) BUTTON_BATTERY)
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 238 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
Feb 26 01:37:41 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 237 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
Feb 26 01:37:41 TRACE[xfpm-power.c:210] xfpm_power_check_polkit_auth(): using logind suspend backend
Feb 26 01:37:41 TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 1431>, 'start-time': <uint64 5113>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
Feb 26 01:37:41 TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
Feb 26 01:37:41 TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 1431>, 'start-time': <uint64 5113>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
Feb 26 01:37:41 TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=FALSE
Feb 26 01:37:41 TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
Feb 26 01:37:41 TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
Feb 26 01:37:41 TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
Feb 26 01:37:41 TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
Feb 26 01:37:41 TRACE[xfpm-manager.c:647] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch
Feb 26 01:37:41 TRACE[xfpm-polkit.c:241] xfpm_polkit_free_data(): Destroying Polkit data

This was generated by killing (with kill -9, I was not aware of -q at the time) xfce4-power-manager on the 23rd and restarting it with:

xfce4-power-manager --no-daemon --debug | ts > /home/<user>/Desktop/xfpm.txt

If I was to restart it, it may take a couple days before this user is on in the evening and experiences the issue again. Were you expecting something on stderr? I can certainly add 2>&1 before the pipe and report back when I have new data.

Offline

#6 2022-02-28 20:44:47

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Power Manager Randomly Suspending

Whats interesting is that this is happening:

Feb 26 01:17:30 topaz dbus-daemon[541]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.102" (uid=1001 pid=1938 comm="xfce4-power-manager " label="unconfined") interface="org.freedesktop.NetworkManager" member="Sleep" error name="(unset)" requested_reply="0" destination=":1.8" (uid=0 pid=545 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")

...but that there isn't a corresponding entry in the xfce4-power-manager log.

xfce4-power-manager will (by default unless disabled) try to notify the network manager when it is going to sleep. Apparently, the message is being rejected, most likely because the user account doesn't have any permissions to affect the network manager (from a system sleep perspective).

I'm hoping that the xfce4-power-manager log will show some activity leading up to and including the request to suspend that might indicate the cause.

Can you also compare the "xfconf-query -c xfce4-power-manager -lv" between the user that is and isn't having the issue?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2022-02-28 22:43:15

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Re: Power Manager Randomly Suspending

I will restart the xfce4-power-manager logging, and be sure to include stderr this time. It may take a couple days to get back with logs of an errant suspend. I will bring the journalctl at that time too.

Here is the result of diffing xfconf-query -c xfce4-power-manager -lv between a user that doesn't have this problem and a user that does.

$ diff broken.txt working.txt 
7a8,9
> /xfce4-power-manager/general-notification              false
> /xfce4-power-manager/inactivity-on-ac                  60
10c12
< /xfce4-power-manager/lock-screen-suspend-hibernate     true
---
> /xfce4-power-manager/lock-screen-suspend-hibernate     false

Offline

#8 2022-03-01 00:33:05

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Power Manager Randomly Suspending

This is the message that I get when xfce4-power-manager times out due to inactivity and suspends the system:

TRACE[xfpm-manager.c:492] xfpm_manager_alarm_timeout_cb(): Alarm inactivity timeout id 4

Is something like this possible?
- user plays music/video in browser that inhibits power management
- timeout to suspend passes but suspend is inhibited because of above
- user stops playing music/video
- suspend event happens soon thereafter (regardless of idle time)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2022-03-01 03:02:55

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Re: Power Manager Randomly Suspending

I just grep'd for 'xfpm_manager_alarm_timeout' in all of my files relating to this (including many prior to the specific logs I've sent here) and I don't see that anywhere, despite the fact that there should be "normal" timeouts in those logs.

I will ensure that happens in the logs going forward.

Offline

#10 2022-03-01 04:26:18

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Re: Power Manager Randomly Suspending

I've noticed something interesting - the broken user's settings had disabled suspend timeout entirely. Which would explain the lack of messages to that effect, and would also rule out anything to do with media playing as suggested earlier. I have my monitoring running now and have changed the user's settings to suspend after 60 minutes of inactivity.

Here is the updated diff of the broken and working users' settings:

$ diff broken.txt works.txt 
7a8
> /xfce4-power-manager/general-notification              false
11c12
< /xfce4-power-manager/lock-screen-suspend-hibernate     true
---
> /xfce4-power-manager/lock-screen-suspend-hibernate     false

Offline

#11 2022-03-01 10:57:41

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Power Manager Randomly Suspending

james wrote:

I've noticed something interesting - the broken user's settings had disabled suspend timeout entirely.

Sorry I missed that from your previous post (the settings output) and that would probably explain why your not seeing the timeout messages. But that would just disable the timeout function - it shouldn't cause a suspend event.

Which screensaver are you using?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#12 2022-03-02 17:57:50

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Re: Power Manager Randomly Suspending

Monitoring is still running, we have yet to have an issue.
I don't believe any screensaver is running.
I did notice that caffeine was installed (which inhibits screensavers and suspend) it has now been removed, but since there was no screensaver or suspend timeout I doubt that had much effect.

Offline

#13 2022-03-14 20:52:23

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Re: Power Manager Randomly Suspending

I've had another incident. But the logs are useless, it looks like the first time this incident happens, makes diagnosing future occurrences too difficult, and the user didn't catch it the first time.

We are trying again.

Offline

#14 2022-04-23 19:19:23

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Re: Power Manager Randomly Suspending

I have new logs.

dmesg:

[Apr23 02:21] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[  +0.008908] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[  +0.037505] PM: suspend entry (s2idle)
[  +0.025991] Filesystems sync: 0.025 seconds
[  +0.000414] Freezing user space processes ... (elapsed 0.006 seconds) done.
[  +0.006388] OOM killer disabled.
[  +0.000003] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  +0.001664] printk: Suspending console(s) (use no_console_suspend to debug)
[  +0.002758] serial 00:01: disabled
[  +0.088719] e1000e: EEE TX LPI TIMER: 00000011
[  +4.529159] serial 00:01: activated
[  +0.332163] ata1: SATA link down (SStatus 4 SControl 300)
[  +0.000070] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[  +0.000065] ata4: SATA link down (SStatus 4 SControl 300)
[  +0.006076] ata3.00: configured for UDMA/100
[  +0.037225] OOM killer enabled.
[  +0.000003] Restarting tasks ... 
[  +0.000515] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
[  +0.006654] done.
[  +0.000188] video LNXVIDEO:00: Restoring backlight state
[  +0.000003] PM: suspend exit

jctl:

Apr 23 02:20:32 topaz systemd[1]: Starting Network Manager Script Dispatcher Service...
Apr 23 02:20:32 topaz dbus-daemon[708]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Apr 23 02:20:32 topaz systemd[1]: Started Network Manager Script Dispatcher Service.
Apr 23 02:20:42 topaz systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Apr 23 02:21:01 topaz rtkit-daemon[978]: Supervising 13 threads of 8 processes of 2 users.
Apr 23 02:21:01 topaz rtkit-daemon[978]: Supervising 13 threads of 8 processes of 2 users.
Apr 23 02:21:16 topaz dbus-daemon[708]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.62" (uid=1001 pid=1354 comm="xfce4-power-manager " label="unconfined") interface="org.freedesktop.NetworkManager" member="Sleep" error name="(unset)" requested_reply="0" destination=":1.8" (uid=0 pid=710 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
Apr 23 02:21:16 topaz kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
Apr 23 02:21:16 topaz kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
Apr 23 02:21:16 topaz NetworkManager[710]: <info>  [1650698476.5449] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Apr 23 02:21:16 topaz ModemManager[792]: <info>  [sleep-monitor] system is about to suspend
Apr 23 02:21:16 topaz NetworkManager[710]: <info>  [1650698476.5451] manager: NetworkManager state is now ASLEEP
Apr 23 02:21:16 topaz whoopsie[1062]: [02:21:16] offline
Apr 23 02:21:16 topaz dbus-daemon[708]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.62" (uid=1001 pid=1354 comm="xfce4-power-manager " label="unconfined") interface="org.freedesktop.NetworkManager" member="Sleep" error name="(unset)" requested_reply="0" destination=":1.8" (uid=0 pid=710 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
Apr 23 02:21:16 topaz systemd[1]: Reached target Sleep.
Apr 23 02:21:16 topaz systemd[1]: Starting Record successful boot for GRUB...
Apr 23 02:21:16 topaz systemd[1]: Starting Suspend...
Apr 23 02:21:16 topaz systemd-sleep[123431]: Suspending system...
Apr 23 02:21:16 topaz kernel: PM: suspend entry (s2idle)
Apr 23 02:21:16 topaz systemd[1]: grub-common.service: Succeeded.
Apr 23 02:21:16 topaz systemd[1]: Finished Record successful boot for GRUB.
Apr 23 02:21:16 topaz systemd[1]: Starting GRUB failed boot detection...
Apr 23 02:21:21 topaz kernel: Filesystems sync: 0.025 seconds
Apr 23 02:21:21 topaz kernel: Freezing user space processes ... (elapsed 0.006 seconds) done.
Apr 23 02:21:21 topaz kernel: OOM killer disabled.
Apr 23 02:21:21 topaz kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Apr 23 02:21:21 topaz kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Apr 23 02:21:21 topaz kernel: serial 00:01: disabled
Apr 23 02:21:21 topaz kernel: e1000e: EEE TX LPI TIMER: 00000011
Apr 23 02:21:21 topaz kernel: serial 00:01: activated
Apr 23 02:21:21 topaz kernel: ata1: SATA link down (SStatus 4 SControl 300)
Apr 23 02:21:21 topaz kernel: ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Apr 23 02:21:21 topaz kernel: ata4: SATA link down (SStatus 4 SControl 300)
Apr 23 02:21:21 topaz kernel: ata3.00: configured for UDMA/100
Apr 23 02:21:21 topaz kernel: OOM killer enabled.
Apr 23 02:21:21 topaz kernel: Restarting tasks ... 
Apr 23 02:21:21 topaz kernel: mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
Apr 23 02:21:21 topaz systemd-sleep[123431]: System resumed.

xfce4-power-manager:

Apr 23 02:17:21 nt_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)
Apr 23 02:17:21 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 213 : ((XfpmButtonKey) BUTTON_HIBERNATE)
Apr 23 02:17:21 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
Apr 23 02:17:21 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 233 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
Apr 23 02:17:21 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 232 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
Apr 23 02:17:21 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 244 : ((XfpmButtonKey) BUTTON_BATTERY)
Apr 23 02:17:21 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 238 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
Apr 23 02:17:21 TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 237 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
Apr 23 02:17:21 TRACE[xfpm-power.c:210] xfpm_power_check_polkit_auth(): using logind suspend backend
Apr 23 02:17:21 TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 121283>, 'start-time': <uint64 84175648>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
Apr 23 02:17:21 TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
Apr 23 02:17:21 TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 121283>, 'start-time': <uint64 84175648>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
Apr 23 02:17:21 TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=FALSE
Apr 23 02:17:21 TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
Apr 23 02:17:21 TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
Apr 23 02:17:21 TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
Apr 23 02:17:21 TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
Apr 23 02:17:21 TRACE[xfpm-manager.c:647] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch
Apr 23 02:17:21 TRACE[xfpm-polkit.c:241] xfpm_polkit_free_data(): Destroying Polkit data
Apr 23 02:17:21 TRACE[xfpm-inhibit.c:400] xfpm_inhibit_inhibit(): Inhibit send application name=firefox reason=video-playing sender=:1.640
Apr 23 02:17:21 TRACE[xfpm-inhibit.c:96] xfpm_inhibit_has_inhibit_changed(): Inhibit added
Apr 23 02:17:21 TRACE[xfpm-power.c:960] xfpm_power_inhibit_changed_cb(): is_inhibit TRUE, screensaver_inhibited FALSE, presentation_mode FALSE
Apr 23 02:17:21 TRACE[xfpm-power.c:985] xfpm_power_inhibit_changed_cb(): is_inhibit TRUE, screensaver_inhibited TRUE, presentation_mode FALSE
Apr 23 02:17:21 TRACE[xfpm-inhibit.c:400] xfpm_inhibit_inhibit(): Inhibit send application name=firefox reason=audio-playing sender=:1.640
Apr 23 02:17:21 TRACE[xfpm-inhibit.c:418] xfpm_inhibit_un_inhibit(): UnHibit message received
Apr 23 02:17:21 TRACE[xfpm-inhibit.c:418] xfpm_inhibit_un_inhibit(): UnHibit message received
Apr 23 02:17:21 TRACE[xfpm-inhibit.c:90] xfpm_inhibit_has_inhibit_changed(): Inhibit removed
Apr 23 02:17:21 TRACE[xfpm-power.c:960] xfpm_power_inhibit_changed_cb(): is_inhibit FALSE, screensaver_inhibited TRUE, presentation_mode FALSE
Apr 23 02:17:21 TRACE[xfpm-power.c:985] xfpm_power_inhibit_changed_cb(): is_inhibit FALSE, screensaver_inhibited FALSE, presentation_mode FALSE
Apr 23 02:17:21 TRACE[xfpm-inhibit.c:400] xfpm_inhibit_inhibit(): Inhibit send application name=firefox reason=video-playing sender=:1.640
Apr 23 02:17:21 TRACE[xfpm-inhibit.c:96] xfpm_inhibit_has_inhibit_changed(): Inhibit added
Apr 23 02:17:21 TRACE[xfpm-power.c:960] xfpm_power_inhibit_changed_cb(): is_inhibit TRUE, screensaver_inhibited FALSE, presentation_mode FALSE
Apr 23 02:17:21 TRACE[xfpm-power.c:985] xfpm_power_inhibit_changed_cb(): is_inhibit TRUE, screensaver_inhibited TRUE, presentation_mode FALSE
Apr 23 02:17:21 TRACE[xfpm-inhibit.c:400] xfpm_inhibit_inhibit(): Inhibit send application name=firefox reason=audio-playing sender=:1.640
Apr 23 02:17:21 TRACE[xfpm-inhibit.c:418] xfpm_inhibit_un_inhibit(): UnHibit message received
Apr 23 02:17:21 TRACE[xfpm-inhibit.c:418] xfpm_inhibit_un_inhibit(): UnHibit message received
Apr 23 02:17:21 TRACE[xfpm-inhibit.c:90] xfpm_inhibit_has_inhibit_changed(): Inhibit removed
Apr 23 02:17:21 TRACE[xfpm-power.c:960] xfpm_power_inhibit_changed_cb(): is_inhibit FALSE, screensaver_inhibited TRUE, presentation_mode FALSE
SE, presentation_mode FALSE
Apr 23 01:21:41 TRACE[xfpm-manager.c:493] xfpm_manager_alarm_timeout_cb(): Alarm inactivity timeout id 3
Apr 23 01:21:41 TRACE[xfpm-manager.c:493] xfpm_manager_alarm_timeout_cb(): Alarm inactivity timeout id 3
Apr 23 01:21:41 TRACE[xfpm-manager.c:1080] xfpm_manager_dbus_quit(): Quit message received
Apr 23 01:21:41 
Apr 23 01:21:41 TRACE[xfpm-manager.c:262] xfpm_manager_quit(): Exiting

Once again, the XFPM logs are off a few minutes time-wise, inexplicably. The first line at the time of the error seems to have been partially cut off at the front. Furthermore, the last few entries are an hour before the incident? I have not idea how that got written to disk in this botched way.

Offline

#15 2022-04-23 19:25:45

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Re: Power Manager Randomly Suspending

I can provide additional context on these logs, but this is everything within an hour of the incident for xfpm and dmesg.
Jctl recorded some other Network Manager stuff just prior, I captured the tail end of that above.
Here is the rest of the network manager activity in jctl:

Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6470] dhcp4 (eno1): option dhcp_lease_time      => '3600'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6471] dhcp4 (eno1): option domain_name          => 'tx.rr.com'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6471] dhcp4 (eno1): option domain_name_servers  => '209.18.47.61 209.18.47.62'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6472] dhcp4 (eno1): option expiry               => '1650702032'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6472] dhcp4 (eno1): option ip_address           => '192.168.0.15'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6472] dhcp4 (eno1): option next_server          => '192.168.0.1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6472] dhcp4 (eno1): option requested_broadcast_address => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6472] dhcp4 (eno1): option requested_domain_name => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6472] dhcp4 (eno1): option requested_domain_name_servers => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6473] dhcp4 (eno1): option requested_domain_search => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6473] dhcp4 (eno1): option requested_host_name  => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6473] dhcp4 (eno1): option requested_interface_mtu => '1'
Apr 23 02:20:32 topaz dbus-daemon[708]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.8' (uid=0 pid=710 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6473] dhcp4 (eno1): option requested_ms_classless_static_routes => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6474] dhcp4 (eno1): option requested_nis_domain => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6474] dhcp4 (eno1): option requested_nis_servers => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6474] dhcp4 (eno1): option requested_ntp_servers => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6474] dhcp4 (eno1): option requested_rfc3442_classless_static_routes => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6474] dhcp4 (eno1): option requested_root_path  => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6475] dhcp4 (eno1): option requested_routers    => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6475] dhcp4 (eno1): option requested_static_routes => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6475] dhcp4 (eno1): option requested_subnet_mask => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6475] dhcp4 (eno1): option requested_time_offset => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6475] dhcp4 (eno1): option requested_wpad       => '1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6476] dhcp4 (eno1): option routers              => '192.168.0.1'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6476] dhcp4 (eno1): option subnet_mask          => '255.255.255.0'
Apr 23 02:20:32 topaz NetworkManager[710]: <info>  [1650698432.6476] dhcp4 (eno1): state changed extended -> extended
Apr 23 02:20:32 topaz systemd[1]: Starting Network Manager Script Dispatcher Service...

NB: the last line here is the first line in my prior reply. This includes everything that happened within 30 seconds of the incident in jctl.

Last edited by james (2022-04-23 19:26:20)

Offline

#16 2022-04-23 21:29:15

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Power Manager Randomly Suspending

Apr 23 01:21:41 TRACE[xfpm-manager.c:493] xfpm_manager_alarm_timeout_cb(): Alarm inactivity timeout id 3

"id 3" is TIMEOUT_INACTIVITY_ON_AC.

In one of your previous posts, you showed the output of xfconf-query and there was no "inactivity_on_ac" setting/value. Can you re-run:

xfconf-query -c xfce4-power-manager -lv

...on the problem machine as well as posting back a screenshot of the "System" tab in the power manager preferences?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#17 2022-04-23 21:59:01

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Re: Power Manager Randomly Suspending

kpc@topaz:~$ xfconf-query -c xfce4-power-manager -lv
/xfce4-power-manager/blank-on-ac                       10
/xfce4-power-manager/blank-on-battery                  10
/xfce4-power-manager/dpms-enabled                      true
/xfce4-power-manager/dpms-on-ac-off                    0
/xfce4-power-manager/dpms-on-ac-sleep                  11
/xfce4-power-manager/dpms-on-battery-off               30
/xfce4-power-manager/dpms-on-battery-sleep             15
/xfce4-power-manager/inactivity-on-ac                  60
/xfce4-power-manager/inactivity-sleep-mode-on-ac       1
/xfce4-power-manager/inactivity-sleep-mode-on-battery  1
/xfce4-power-manager/lock-screen-suspend-hibernate     true
/xfce4-power-manager/logind-handle-lid-switch          false
/xfce4-power-manager/power-button-action               3
/xfce4-power-manager/show-panel-label                  0
/xfce4-power-manager/show-tray-icon                    false

I believe I changed the settings to those of the user that doesn't have the issue with the hope that would help.
I'm working on figuring out how to attach an image.

Offline

#18 2022-04-23 22:01:06

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Re: Power Manager Randomly Suspending

Well. I can't figure that out. I'll describe it.
System sleep mode is "Suspend"
When inactive for is "One hour"
Lock screen when system is going to sleep is checked.

Offline

#19 2022-04-23 22:14:39

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: Power Manager Randomly Suspending

1. Launch xfce4-screenshot, take a screenshot of the window, select Host on Imgur:
jdxfT87s.png
2. Copy the link with the full BB-code and paste it in your reply.
OykH6mys.png
3. Make sure all of the code is on a single line.
bLqDEXxs.png

Last edited by KBar (2022-04-23 22:15:46)


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#20 2022-04-23 22:30:22

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Power Manager Randomly Suspending

My best guess is that you are experiencing some sort of bug related to the inhibit code. However, you are running an older version of power-manager (there have been many changes since the version that has been packaged with 20.04). Are you able/willing to try the latest git version of xfce4-power-manager to see if it fixes the issue?

If so, here are the instructions to manually install the latest git version on 20.04 for testing purposes:

sudo apt install git
# uncomment src entries in /etc/apt/sources.list
sudo apt update
sudo apt build-dep xfce4-power-manager

cd ~/Downloads
git clone https://gitlab.xfce.org/xfce/xfce4-power-manager.git
cd xfce4-power-manager
./autogen.sh --prefix=/usr --libdir=/usr/lib/$(uname -m)-linux-gnu --enable-maintainer-mode
make

xfce4-power-manager -q
sudo apt remove xfce4-power-manager

sudo make install

xfce4-power-manager --no-daemon --debug

If you ever want to restore back to the repository version:

xfce4-power-manager -q

cd ~/Downloads/xfce4-power-manager
sudo make uninstall

sudo apt install xfce4-power-manager

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#21 2022-04-23 22:34:25

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Re: Power Manager Randomly Suspending

KBar - thanks.

1smvY0f.png

This isn't behaving like the example, but close enough.

Last edited by james (2022-04-23 22:41:26)

Offline

#22 2022-04-24 17:20:50

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Re: Power Manager Randomly Suspending

I will give the git version a go and report back.
Thanks for your help and patience.

Offline

#23 2022-05-03 05:13:12

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Re: Power Manager Randomly Suspending

Installed the version from git, no change. Still suspends randomly during use.

Offline

#24 2022-05-03 23:33:13

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Power Manager Randomly Suspending

Apr 23 02:17:21 TRACE[xfpm-power.c:960] xfpm_power_inhibit_changed_cb(): is_inhibit FALSE, screensaver_inhibited TRUE, presentation_mode FALSE
SE, presentation_mode FALSE
Apr 23 01:21:41 TRACE[xfpm-manager.c:493] xfpm_manager_alarm_timeout_cb(): Alarm inactivity timeout id 3

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

I think it would be best to create a bug report. Its really odd what is happening and maybe one of the developers might have an idea.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#25 2022-05-04 20:54:08

james
Member
From: Texas, USA
Registered: 2022-02-28
Posts: 18

Re: Power Manager Randomly Suspending

What do you recommend I include in the bug report?
Should I include what you put in your last post?

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 793.59 KiB (Peak: 858.43 KiB) ]