Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-08-30 22:33:11

ngcbg
Member
Registered: 2020-08-30
Posts: 2

XFCe4 power manager issue/s

Hello,

I have an issue with the system section at xfce4-power-manager UI and need some help to investigate and solve it eventually smile .
There are two sliders at "System" tab at "Power Manager" window, which are needed to set time for automatic suspend/hibernate. In my case these two are greyed out - inactive.
First I've ran

 xfce4-power-manager --dump
 
---------------------------------------------------
       Xfce power manager version 1.6.6
With policykit support
With network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: True
Authorized to suspend: False
Authorized to hibernate: False
Authorized to shutdown: True
Has battery: True
Has brightness panel: True
Has power button: True
Has hibernate button: False
Has sleep button: True
Has battery button: True
Has LID: True

These "Authorized to....:False" forced me to dig a bit and next I used

xfce4-power-manager -q

to kill the daemon first. After that I executed

xfce4-power-manager --debug
** (xfce4-power-manager:69900): WARNING **: 01:18:45.742: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.PowerManagement': no such name


** (xfce4-power-manager:69900): WARNING **: 01:18:45.743: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.xfce.PowerManager': no such name

TRACE[xfpm-main.c:210] xfpm_start(): Starting the power manager
TRACE[xfpm-xfconf.c:651] xfpm_xfconf_init(): lock screen TRUE
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 hibernate-button-action
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for battery-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-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 inactivity-sleep-mode-on-battery
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-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for heartbeat-command

(xfce4-power-manager:69900): GLib-GObject-WARNING **: 01:18:45.849: ../glib-2.62.6/gobject/gsignal.c:2529: signal 'Changed' is invalid for instance '0x13f705f589e0' of type 'GDBusProxy'
TRACE[xfpm-power.c:940] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/line_power_ac
TRACE[xfpm-power.c:898] xfpm_power_add_device(): 'line-power' device added
TRACE[xfpm-power.c:940] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/battery_batt
TRACE[xfpm-power.c:898] xfpm_power_add_device(): 'battery' device added
TRACE[xfpm-power.c:908] xfpm_power_add_device(): Battery device type 'battery' detected at: /org/freedesktop/UPower/devices/battery_batt
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 222 : ((XfpmButtonKey) BUTTON_POWER_OFF)

(xfce4-power-manager:69900): xfce4-power-manager-WARNING **: 01:18:45.927: could not map keysym 1008ffa8 to keycode


(xfce4-power-manager:69900): xfce4-power-manager-WARNING **: 01:18:45.927: could not map keysym 1008ffa7 to keycode

TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)

(xfce4-power-manager:69900): xfce4-power-manager-WARNING **: 01:18:45.927: could not map keysym 1008ff02 to keycode


(xfce4-power-manager:69900): xfce4-power-manager-WARNING **: 01:18:45.927: could not map keysym 1008ff03 to keycode

TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 244 : ((XfpmButtonKey) BUTTON_BATTERY)
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 217 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 216 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
TRACE[xfpm-power.c:221] xfpm_power_check_polkit_auth(): using consolekit2 suspend backend

(xfce4-power-manager:69900): xfce4-power-manager-WARNING **: 01:18:45.934: Unable to create polkit subject

(xfce4-power-manager:69900): GLib-CRITICAL **: 01:18:45.934: g_variant_new_string: assertion 'string != NULL' failed
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('[Invalid UTF-8]', @a{sv} {}), 'org.freedesktop.consolekit.system.suspend', @a{ss} {}, uint32 0, '')

(xfce4-power-manager:69900): xfce4-power-manager-WARNING **: 01:18:45.935: 'CheckAuthorization' failed with GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Error getting subject: Unknown subject of kind `[Invalid UTF-8]'
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.consolekit.system.suspend is authorized=FALSE
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('[Invalid UTF-8]', @a{sv} {}), 'org.freedesktop.consolekit.system.hibernate', @a{ss} {}, uint32 0, '')

(xfce4-power-manager:69900): xfce4-power-manager-WARNING **: 01:18:45.936: 'CheckAuthorization' failed with GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Error getting subject: Unknown subject of kind `[Invalid UTF-8]'
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.consolekit.system.hibernate is authorized=FALSE
TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10

(xfce4-power-manager:69900): xfce4-power-manager-WARNING **: 01:18:45.942: Unable to set the kernel brightness switch parameter to 0.
TRACE[xfpm-backlight.c:254] xfpm_backlight_brightness_on_ac_settings_changed(): Alarm on ac timeout changed 9
TRACE[xfpm-backlight.c:275] xfpm_backlight_brightness_on_battery_settings_changed(): Alarm on battery timeout changed 120

(xfce4-power-manager:69900): xfce4-power-manager-WARNING **: 01:18:45.946: Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.UPower.KbdBacklight” on object at path /org/freedesktop/UPower/KbdBacklight
^CTRACE[xfpm-main.c:68] xfpm_quit_signal(): sig 2
TRACE[xfpm-manager.c:941] xfpm_manager_stop(): Stopping
TRACE[xfpm-manager.c:262] xfpm_manager_quit(): Exiting

(xfce4-power-manager:69900): xfce4-power-manager-WARNING **: 01:18:47.966: Unable to restore the kernel brightness switch parameter to its original value, still resetting the saved value.

(xfce4-power-manager:69900): Gtk-WARNING **: 01:18:47.968: A floating object was finalized. This means that someone
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_ref_sink().

Here I am already stuck...There is not much info, related to

TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('[Invalid UTF-8]', @a{sv} {}), 'org.freedesktop.consolekit.system.hibernate', @a{ss} {}, uint32 0, '')

, which I strongly believe is the root of the issue.
However I am able to trigger suspend & hibernate via XFCE Panel "action buttons" without any problem. The behavior is absolutely the same with the root user, which confused me even more. I am really not sure where and how to dig further.

I am running XFCE 4.14 on OpenBSD 6.7. XFCE is executed via .xinitrc with "exec ck-launch-session startxfce4" and the display manager is Slim. I can provide more info if needed.

Thank you all in advance!

Last edited by ngcbg (2020-08-30 23:30:21)

Offline

#2 2020-09-01 21:14:14

ngcbg
Member
Registered: 2020-08-30
Posts: 2

Re: XFCe4 power manager issue/s

If anyone interested there is a workaround called "xautolocker"
It is a small tool, which allows to provide desired time of no activity and to execute virtually whatever I want.
I my case it looks like this:

xautolock -time 20 -locker /usr/sbin/zzz

where zzz is an alias for openBSD's apm -z (suspend).

Now I have only to run it silently via .xinitrc on starting XFCE.

OpenBSD reddit user "desnudopenguino" provide me with the tip and it is working like a charm.

Still I am very curious what is wrong with the xfce4-power-manager... smile

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 8 queries executed - Memory usage: 562.78 KiB (Peak: 581.17 KiB) ]