Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-11-10 09:11:23

gour
Member
From: Croatia
Registered: 2011-09-24
Posts: 8
Website

[SOLVED] Another power manager is already running

Hello!

I've a problem with power manger on my Debian/Sid machine...seeing things like:

[...]
** (xfce4-power-manager:1440): WARNING **: 08:06:45.449: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.PowerManagement': no such name

Xfce power manager is not running

(xfce4-power-manager:1440): GLib-GObject-WARNING **: 08:06:45.486: ../../../gobject/gsignal.c:2614: signal 'Changed' is invalid for instance '0x55f2d7173080' of type 'GDBusProxy'

(xfce4-power-manager:1440): xfce4-power-manager-WARNING **: 08:06:45.678: could not map keysym 1008ffa8 to keycode


(wrapper-2.0:1344): Gtk-WARNING **: 08:06:45.679: Negative content height -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkButton)

** (xfce4-power-manager:1440): WARNING **: 08:06:45.699: No outputs have backlight property

(xfce4-power-manager:1440): xfce4-power-manager-WARNING **: 08:06:45.723: Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/UPower/KbdBacklight”
weather-Message: 08:06:45.727: getting https://api.met.no/weatherapi/locationforecast/2.0/classic?lat=46.520533&lon=16.396157&altitude=173

** (xfce4-power-manager:1440): WARNING **: 08:06:45.748: No outputs have backlight property

(xfce4-power-manager:1440): xfce4-power-manager-WARNING **: 08:06:45.752: ../panel-plugins/power-manager-plugin/power-manager-button.c:858: invalid property id 2 for "show-panel-label" of type 'GParamInt' in 'PowerManagerButton'

(xfce4-power-manager:1440): xfce4-power-manager-WARNING **: 08:06:45.752: ../panel-plugins/power-manager-plugin/power-manager-button.c:858: invalid property id 3 for "presentation-mode" of type 'GParamBoolean' in 'PowerManagerButton'

(xfce4-power-manager:1440): xfce4-power-manager-WARNING **: 08:06:45.752: ../panel-plugins/power-manager-plugin/power-manager-button.c:858: invalid property id 4 for "show-presentation-indicator" of type 'GParamBoolean' in 'PowerManagerButton'

(xfce4-power-manager:1440): xfce4-power-manager-WARNING **: 08:06:45.754: ../panel-plugins/power-manager-plugin/power-manager-button.c:858: invalid property id 3 for "presentation-mode" of type 'GParamBoolean' in 'PowerManagerButton'

(wrapper-2.0:1366): Gtk-WARNING **: 08:06:46.165: Negative content height -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkToggleButton)
Xfce Power Manager: Another power manager is already running
[...]

in my .xsession-errors file.

Any clue what is going on?

In recent times I was exploring both Devuan/MXLinux, but never had such issue with Xfce-4.16... hmm

Last edited by gour (2021-11-11 15:46:30)

Offline

#2 2021-11-10 09:29:53

Tamaranch
Member
Registered: 2020-12-31
Posts: 267

Re: [SOLVED] Another power manager is already running

Allocation warnings can be ignored ("Negative content…").
Some of the others have been fixed on git master, but this has not been backported to the 4.16 branch (e.g. "signal 'Changed' is invalid…").
Overall these are just warnings (no "critical"), so it shouldn't be too bad.

Last edited by Tamaranch (2021-11-10 09:40:39)

Offline

#3 2021-11-10 10:50:29

gour
Member
From: Croatia
Registered: 2011-09-24
Posts: 8
Website

Re: [SOLVED] Another power manager is already running

Tamaranch wrote:

Overall these are just warnings (no "critical"), so it shouldn't be too bad.

What about

Xfce power manager is not running

since I experience that my screen does not get blanked at all?

Offline

#4 2021-11-10 11:18:41

Tamaranch
Member
Registered: 2020-12-31
Posts: 267

Re: [SOLVED] Another power manager is already running

I think it doesn't matter, since it's running afterwards, the warnings show it.
It goes through there I think: https://gitlab.xfce.org/xfce/xfce4-powe … ain.c#L407

For the warning above, I had removed it in https://gitlab.xfce.org/xfce/xfce4-powe … 030e2e3769
I could be wrong, but if you have a problem with xfce4-power-manager, I don't think it's related to these warnings.

But you can always try to compile from git master if you want, to see what it gives...

Offline

#5 2021-11-11 11:56:43

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [SOLVED] Another power manager is already running

What does the following return?

ps -ef | grep power

It might also be useful to clear your saved sessions cache. Delete the contents of ~/.cache/sessions from a tty console before you log in (to ensure a clean slate).


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

#6 2021-11-11 12:23:17

gour
Member
From: Croatia
Registered: 2011-09-24
Posts: 8
Website

Re: [SOLVED] Another power manager is already running

ToZ wrote:

What does the following return?

ps -ef | grep power
$  ps -ef | grep power
root        1354       1  0 07:17 ?        00:00:02 /usr/libexec/upowerd
root       20078       2  0 13:08 ?        00:00:00 [kworker/0:0-events_power_efficient]
root       20285       2  0 13:15 ?        00:00:00 [kworker/7:1-events_power_efficient]
gour       20667   20464  0 13:19 ?        00:00:00 xfce4-power-manager --restart --sm-client-id 262a863a6-6460-4c1d-8391-a8c2da305d92
gour       21859   20807  0 13:20 pts/3    00:00:00 grep --color=auto power

It might also be useful to clear your saved sessions cache. Delete the contents of ~/.cache/sessions from a tty console before you log in (to ensure a clean slate).

I did it, but it does not help - screen is neither blanked nor put to sleep. hmm

Offline

#7 2021-11-11 12:46:48

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [SOLVED] Another power manager is already running

gour wrote:

I did it, but it does not help - screen is neither blanked nor put to sleep. hmm

Can you detail out the issue a little more? What are you expecting will happen and what actually happens?

Also, post back:

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

...and the contents of /etc/systemd/logind.conf

And one final thing, run xfce4-power-manager in debug mode and post back the output:

xfce4-power-manager -q
xfce4-power-manager --debug

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

#8 2021-11-11 13:51:45

gour
Member
From: Croatia
Registered: 2011-09-24
Posts: 8
Website

Re: [SOLVED] Another power manager is already running

ToZ wrote:

Can you detail out the issue a little more? What are you expecting will happen and what actually happens?

I expect that my screen gets blank after certain period of inactivity as it always did in the past.

Also, post back:

xfconf-query -c xfce4-power-manager -lv
$ xfconf-query -c xfce4-power-manager -lv
/xfce4-power-manager/blank-on-ac                       1
/xfce4-power-manager/dpms-on-ac-off                    12
/xfce4-power-manager/dpms-on-ac-sleep                  2
/xfce4-power-manager/dpms-on-battery-sleep             2
/xfce4-power-manager/general-notification              true
/xfce4-power-manager/inactivity-on-ac                  15
/xfce4-power-manager/inactivity-sleep-mode-on-battery  1
/xfce4-power-manager/lock-screen-suspend-hibernate     false
/xfce4-power-manager/logind-handle-lid-switch          false
/xfce4-power-manager/logind-handle-suspend-key         true
/xfce4-power-manager/power-button-action               4
/xfce4-power-manager/presentation-mode                 true
/xfce4-power-manager/show-tray-icon                    true

...and the contents of /etc/systemd/logind.conf

$  cat /etc/systemd/logind.conf 
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it under the
#  terms of the GNU Lesser General Public License as published by the Free
#  Software Foundation; either version 2.1 of the License, or (at your option)
#  any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the logind.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/logind.conf' to display the full config.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#UserStopDelaySec=10
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#HandleRebootKey=reboot
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#RebootKeyIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodes=400k
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192

And one final thing, run xfce4-power-manager in debug mode and post back the output:

xfce4-power-manager -q
xfce4-power-manager --debug
$ xfce4-power-manager -q
$ xfce4-power-manager --debug

** (xfce4-power-manager:24280): WARNING **: 14:48:22.260: 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:24280): WARNING **: 14:48:22.261: 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:679] xfpm_xfconf_init(): lock screen FALSE
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for critical-power-level
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for show-brightness-popup
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for handle-brightness-keys
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for brightness-step-count
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for brightness-exponential
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for critical-power-action
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for hibernate-button-action
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for sleep-button-action
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for battery-button-action
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for lid-action-on-ac
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for lid-action-on-battery
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for brightness-level-on-ac
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for brightness-level-on-battery
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for brightness-slider-min-level
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for dpms-enabled
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for dpms-on-battery-off
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for dpms-sleep-mode
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for inactivity-on-battery
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for inactivity-sleep-mode-on-ac
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for brightness-on-ac
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for brightness-on-battery
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for network-manager-sleep
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for logind-handle-power-key
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for logind-handle-hibernate-key
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for heartbeat-command

(xfce4-power-manager:24280): GLib-GObject-WARNING **: 14:48:22.305: ../../../gobject/gsignal.c:2614: signal 'Changed' is invalid for instance '0x555fa6e851a0' of type 'GDBusProxy'
TRACE[xfpm-polkit.c:284] xfpm_polkit_init_data(): Using unix session polkit subject
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 24280>, 'start-time': <uint64 2711757>}), 'org.freedesktop.login1.power-off', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.power-off is authorized=TRUE
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 24280>, 'start-time': <uint64 2711757>}), 'org.freedesktop.login1.reboot', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.reboot is authorized=TRUE
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 24280>, 'start-time': <uint64 2711757>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 24280>, 'start-time': <uint64 2711757>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=TRUE
TRACE[xfpm-power.c:930] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/ups_hiddev1
TRACE[xfpm-power.c:889] xfpm_power_add_device(): 'ups' device added
TRACE[xfpm-power.c:898] xfpm_power_add_device(): Battery device type 'ups' detected at: /org/freedesktop/UPower/devices/ups_hiddev1
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)

(xfce4-power-manager:24280): xfce4-power-manager-WARNING **: 14:48:22.352: 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 233 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 232 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
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-power.c:210] xfpm_power_check_polkit_auth(): using logind suspend backend
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 24280>, 'start-time': <uint64 2711757>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 24280>, 'start-time': <uint64 2711757>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=TRUE
TRACE[xfpm-power.c:1446] xfpm_update_blank_time(): Prev Timeout: 0 / New Timeout: 600
TRACE[xfpm-dpms.c:336] xfpm_dpms_inhibit(): dpms inhibited TRUE
TRACE[xfpm-power.c:1463] xfpm_power_change_presentation_mode(): is_inhibit FALSE, screensaver_inhibited FALSE, presentation_mode TRUE
TRACE[xfpm-power.c:1495] xfpm_power_change_presentation_mode(): is_inhibit FALSE, screensaver_inhibited TRUE, presentation_mode TRUE
TRACE[xfpm-power.c:1446] xfpm_update_blank_time(): Prev Timeout: 600 / New Timeout: 0
TRACE[xfpm-power.c:1446] xfpm_update_blank_time(): Prev Timeout: 0 / New Timeout: 0
TRACE[xfpm-manager.c:645] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-hibernate-key:handle-lid-switch

** (xfce4-power-manager:24280): WARNING **: 14:48:22.371: No outputs have backlight property

(xfce4-power-manager:24280): xfce4-power-manager-WARNING **: 14:48:22.376: Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/UPower/KbdBacklight”

** (xfce4-power-manager:24280): WARNING **: 14:48:22.399: No outputs have backlight property

(xfce4-power-manager:24280): xfce4-power-manager-WARNING **: 14:48:22.403: ../panel-plugins/power-manager-plugin/power-manager-button.c:858: invalid property id 2 for "show-panel-label" of type 'GParamInt' in 'PowerManagerButton'

(xfce4-power-manager:24280): xfce4-power-manager-WARNING **: 14:48:22.403: ../panel-plugins/power-manager-plugin/power-manager-button.c:858: invalid property id 3 for "presentation-mode" of type 'GParamBoolean' in 'PowerManagerButton'

(xfce4-power-manager:24280): xfce4-power-manager-WARNING **: 14:48:22.403: ../panel-plugins/power-manager-plugin/power-manager-button.c:858: invalid property id 4 for "show-presentation-indicator" of type 'GParamBoolean' in 'PowerManagerButton'

(xfce4-power-manager:24280): xfce4-power-manager-WARNING **: 14:48:22.404: ../panel-plugins/power-manager-plugin/power-manager-button.c:858: invalid property id 3 for "presentation-mode" of type 'GParamBoolean' in 'PowerManagerButton'
TRACE[xfpm-manager.c:754] xfpm_manager_show_tray_icon(): Showing tray icon
TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:568] power_manager_button_add_device(): entering for /org/freedesktop/UPower/devices/DisplayDevice
TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:469] power_manager_button_update_device_icon_and_details(): entering for /org/freedesktop/UPower/devices/DisplayDevice
TRACE[xfpm-power-common.c:226] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 20, upower_icon battery-full-charged-symbolic
TRACE[xfpm-power-common.c:226] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 20, upower_icon battery-full-charged-symbolic
TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:568] power_manager_button_add_device(): entering for /org/freedesktop/UPower/devices/ups_hiddev1
TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:469] power_manager_button_update_device_icon_and_details(): entering for /org/freedesktop/UPower/devices/ups_hiddev1
TRACE[xfpm-power-common.c:226] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 20, upower_icon battery-full-charged-symbolic
TRACE[xfpm-power-common.c:226] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 20, upower_icon battery-full-charged-symbolic
TRACE[xfpm-manager.c:727] xfpm_manager_tray_update_icon(): updating icon
TRACE[xfpm-manager.c:711] xfpm_manager_tray_update_tooltip(): updating tooltip

Any further hint(s)?

Offline

#9 2021-11-11 15:23:35

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [SOLVED] Another power manager is already running

Presentation mode is enabled and that will inhibit all power functions. You can disable presentation mode by Left clicking on the panel icon and turning it off.


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

#10 2021-11-11 15:43:10

gour
Member
From: Croatia
Registered: 2011-09-24
Posts: 8
Website

Re: [SOLVED] Another power manager is already running

ToZ wrote:

Presentation mode is enabled and that will inhibit all power functions. You can disable presentation mode by Left clicking on the panel icon and turning it off.

Ahh, so stupid. roll

Thanks a lot! I have no clue how/when/who enabled it. hmm

Offline

Board footer

Powered by FluxBB