You are not logged in.
During a bad storm last night, I lost power 3 times. I had been meaning to set up power configuration for some time, so I took advantage of all these opportunities for testing it. I watched the power level of my battery power level falling as reported by the xfce-power-manager applet. The critical level was set for 10%, but even at 8%, the system had not begun its shutdown. I have seen at least one other post that refers to this same issue (albeit 5 years old): https://bbs.archlinux.org/viewtopic.php?id=182055
My hardware configuration is:
Devuan Ascii 2.1
Linux kernel 4.9.0-11
M5A78L-M/USB3 (BIOS is up to date; I check frequently)
AMD FX8350 8X
xfce4 4.12
xfce4-power-manager v. 1.4.1-1+devuan1.1
(I know you will want this info, based on other posts related to this topic, so I include it for you):
root 3267 1 0 Nov26 ? 00:00:04 /usr/lib/upower/upowerd
myuserid 8578 3256 0 Nov27 ? 00:00:06 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-1.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libxfce4powermanager.so 22 21161783 power-manager-plugin Power Manager Plugin Display the battery levels of your devices and control the brightness of your display
myuserid 10812 1 0 00:39 ? 00:00:00 xfce4-power-manager
TRACE[xfpm-main.c:192] xfpm_start(): Starting the power manager
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for general-notification
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for lock-screen-suspend-hibernate
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for critical-power-level
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for show-brightness-popup
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for handle-brightness-keys
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for show-tray-icon
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for hibernate-button-action
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for sleep-button-action
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for lid-action-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for lid-action-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-level-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-level-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-slider-min-level
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-enabled
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-on-ac-sleep
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-on-ac-off
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-on-battery-sleep
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-on-battery-off
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-sleep-mode
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-sleep-mode-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for network-manager-sleep
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-power-key
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-suspend-key
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-hibernate-key
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-lid-switch
TRACE[xfpm-power.c:833] xfpm_power_add_device(): 'ups' device added
TRACE[xfpm-power.c:843] xfpm_power_add_device(): Battery device type 'ups' detected at: /org/freedesktop/UPower/devices/ups_hiddev1
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)
(xfce4-power-manager:10786): xfce4-power-manager-WARNING **: could not map keysym 1008ffa8 to keycode
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 213 : ((XfpmButtonKey) BUTTON_HIBERNATE)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 233 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 232 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 244 : ((XfpmButtonKey) BUTTON_BATTERY)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 238 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 237 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 4
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-ups-charged
TRACE[xfpm-polkit.c:314] xfpm_polkit_init_data(): Using unix session polkit subject
TRACE[xfpm-polkit.c:406] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.upower.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:406] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.upower.hibernate is authorized=TRUE
TRACE[xfpm-power.c:1366] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1366] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1380] xfpm_power_change_presentation_mode(): presentation mode FALSE, changing to TRUE
TRACE[xfpm-dpms.c:337] xfpm_dpms_inhibit(): dpms inhibited TRUE
TRACE[xfpm-power.c:1366] xfpm_update_blank_time(): Timeout: 0
TRACE[xfpm-manager.c:553] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch
** (xfce4-power-manager:10786): WARNING **: No outputs have backlight property
(xfce4-power-manager:10786): xfce4-power-manager-WARNING **: Failed to get keyboard max brightness level : Method "GetMaxBrightness" with signature "" on interface "org.freedesktop.UPower.KbdBacklight" doesn't exist
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 4
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-ups-charged
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 4
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-ups-charged
TRACE[xfpm-polkit.c:251] xfpm_polkit_free_data(): Destroying Polkit data
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 4
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-ups-charged
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 4
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-ups-charged
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 4
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-ups-charged
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 4
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-ups-charged
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 4
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-ups-charged
(The last 2 lines showing the batter state and icon repeat many more times.)
I may be missing some software somehow, or maybe I need to twiddle with the BIOS power config settings. I would really appreciate some help with this. I am happy to supply more information.
Thanks
HM
Last edited by retiredipcop (2019-11-28 12:23:27)
Offline
For anyone responding, please keep in mind that Devuan does NOT use systemd and there are no plans for that to change going forward. Thank you for this consideration.
Offline
Hello and welcome.
TRACE[xfpm-power.c:1380] xfpm_power_change_presentation_mode(): presentation mode FALSE, changing to TRUE
It appears that presentation mode is active on your setup. This will disable other power management activities (it was buggy in earlier versions). Try disabling it (left click the battery icon on the panel).
If that doesn't work, can you also post back your current configuration settings:
xfconf-query -c xfce4-power-manager -lv
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
Thanks for pointing that out. I disabled presentation mode.
/xfce4-power-manager/critical-power-action 4
/xfce4-power-manager/inactivity-sleep-mode-on-battery 2
/xfce4-power-manager/power-button-action 0
/xfce4-power-manager/presentation-mode false
I am noticing that there are much newer versions of the power manager. I am hoping that Devuan will release Beowulf soon because that has a number of updates (Ascii is pretty good but some of the packages are a bit out of date), including xfce4-power-manager 1.6.1, still not the newest but much more recent. Maybe that will address this issue?
Also, I realize this may be a different topic, but I don't see AC power in the Devices tab, only the UPS. I should point out this is a desktop PC with an external UPS. Not sure if this is anything to be concerned about, and maybe the newer 1.6.1 version could address that as well.
Either way, thanks for looking into this and so promptly!
Offline
same problem in debian 10, Package: xfce4-power-manager Version: 1.6.1-1
Offline
Now that you have disabled presentation mode, can you post back the debug statements again - preferably when the power is disconnected and the system is running on the UPS.
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
TRACE[xfpm-main.c:192] xfpm_start(): Starting the power manager
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for general-notification
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for lock-screen-suspend-hibernate
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for show-brightness-popup
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for handle-brightness-keys
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for show-tray-icon
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for hibernate-button-action
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for sleep-button-action
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for lid-action-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for lid-action-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-level-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-level-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-slider-min-level
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-enabled
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-on-ac-sleep
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-on-ac-off
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-on-battery-sleep
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-on-battery-off
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-sleep-mode
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-sleep-mode-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for network-manager-sleep
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-power-key
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-suspend-key
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-hibernate-key
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-lid-switch
TRACE[xfpm-power.c:833] xfpm_power_add_device(): 'ups' device added
TRACE[xfpm-power.c:843] xfpm_power_add_device(): Battery device type 'ups' detected at: /org/freedesktop/UPower/devices/ups_hiddev1
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)
(xfce4-power-manager:7454): xfce4-power-manager-WARNING **: could not map keysym 1008ffa8 to keycode
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 213 : ((XfpmButtonKey) BUTTON_HIBERNATE)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 233 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 232 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 244 : ((XfpmButtonKey) BUTTON_BATTERY)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 238 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 237 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-ups-100-charging
TRACE[xfpm-polkit.c:314] xfpm_polkit_init_data(): Using unix session polkit subject
TRACE[xfpm-polkit.c:406] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.upower.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:406] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.upower.hibernate is authorized=TRUE
TRACE[xfpm-power.c:1366] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1366] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-manager.c:553] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch
** (xfce4-power-manager:7454): WARNING **: No outputs have backlight property
(xfce4-power-manager:7454): xfce4-power-manager-WARNING **: Failed to get keyboard max brightness level : Method "GetMaxBrightness" with signature "" on interface "org.freedesktop.UPower.KbdBacklight" doesn't exist
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-ups-100-charging
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-ups-100-charging
TRACE[xfpm-polkit.c:251] xfpm_polkit_free_data(): Destroying Polkit data
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-ups-100-charging
But now I am having another issue, which seems to be related to having unplugged the UPS in order to insert a power strip: When I unplugged the UPS from the wall outlet, it did *not* beep this time(!?). I plugged it into a power strip that has a switch so I could easily enable/disable UPS power. But since I did that, the behavior of the unit has been entirely different. It no longer chirps when switching modes, and worse, the xfce4-power-manager does not update with these events. Sometimes switching can take a minute or more until the plugin displays a mode change.
I am looking into a new battery for the UPS. But I am also looking into possibly resurrecting another unit that has more power storage and a nice LED display; I used to use that unit but had to leave it behind when I moved several times. I've had it for about 3 years again now, but haven't had an opportunity to figure out if it still works/needs new batteries (though I'm pretty sure it would, especially not having been used for the last 8 or 9 years).
Offline
[ Generated in 0.015 seconds, 8 queries executed - Memory usage: 601.09 KiB (Peak: 617.94 KiB) ]