! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Regression: xfce4-power-manager in notification area is sluggish.
Status:
RESOLVED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description Woi 2016-05-28 23:31:25 CEST
I found the following regression in xfce4-power-manager 1.6.0 compared to 1.5.2:
* It takes ~10 sec. after reboot and login for the icon to appear in notification area.
* It takes ~2-3 sec to come up with a dialogue, after right clicking the icon in notification area. 

Both worked instantly with xfce4-power-manager-1.5.2-6


System is Fedora 23 x86_64. Downstream bug can be found in this comment: https://bugzilla.redhat.com/show_bug.cgi?id=1339335#c13
Another user already confirmed this behaviour (see next comment there).


BTW: Version 1.6 does not exist in the Version field of Bugzilla, so I selected git
Comment 1 poma 2016-05-29 16:48:07 CEST
$ xfce4-power-manager --version

Xfce Power Manager 1.6.0git-20160526git61abc73

Part of the Xfce Goodies Project
http://goodies.xfce.org

Licensed under the GNU GPL.


$ rpm -q xfce4-power-manager
xfce4-power-manager-1.6.0-7.20160526git61abc73.fc22.x86_64

$ xfce4-power-manager --debug --dump
  == power-manager-plugin -> (no delay) -> menu -> (no delay) -> Power manager settings... ==
...
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
...

  == systray -> (1 sec delay) -> menu -> (no delay) -> Power manager settings... ==
...
(xfce4-power-manager:7994): xfce4-power-manager-WARNING **: failed calling GetInhibitors: Timeout was reached
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

(xfce4-power-manager:7994): xfce4-power-manager-WARNING **: failed calling GetInhibitors: Timeout was reached
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

(xfce4-power-manager:7994): xfce4-power-manager-WARNING **: failed calling GetInhibitors: Timeout was reached
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

(xfce4-power-manager:7994): xfce4-power-manager-WARNING **: failed calling GetInhibitors: Timeout was reached
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

(xfce4-power-manager:7994): xfce4-power-manager-WARNING **: failed calling GetInhibitors: Timeout was reached
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
...



$ rpm -q xfce4-power-manager
xfce4-power-manager-1.6.0-7.20160526git61abc73.fc24.x86_64


$ xfce4-power-manager --debug --dump
  == power-manager-plugin -> (no delay) -> menu -> (no delay) -> Power manager settings... ==
...
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
...

  == systray -> (1 sec delay) -> menu -> (no delay) -> Power manager settings... ==
...
(xfce4-power-manager:2689): xfce4-power-manager-WARNING **: failed calling GetInhibitors: Timeout was reached
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

(xfce4-power-manager:2689): xfce4-power-manager-WARNING **: failed calling GetInhibitors: Timeout was reached
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

(xfce4-power-manager:2689): xfce4-power-manager-WARNING **: failed calling GetInhibitors: Timeout was reached
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

(xfce4-power-manager:2689): xfce4-power-manager-WARNING **: failed calling GetInhibitors: Timeout was reached
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

(xfce4-power-manager:2689): xfce4-power-manager-WARNING **: failed calling GetInhibitors: Timeout was reached
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
...
Comment 2 poma 2016-05-29 16:56:23 CEST
Beside the exception "systray -> (1 sec delay) -> menu" , no other delays whatsoever.
Comment 3 Woi 2016-05-29 18:04:08 CEST
The start up delay happens after
(xfce4-power-manager:8764): xfce4-power-manager-WARNING **: Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "GetMaxBrightness" with signature "" on interface "org.freedesktop.UPower.KbdBacklight" doesn't exist





$ LANG=C
$ rpm -q xfce4-power-manager        
xfce4-power-manager-1.6.0-3.fc23.x86_64
$ killall xfce4-power-manager
xfce4-power-manager: no process found
$ xfce4-power-manager --debug --dump

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


** (xfce4-power-manager:8764): WARNING **: 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:8764): WARNING **: 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:205] xfpm_start(): Starting the power manager
TRACE[xfpm-xfconf.c:642] xfpm_xfconf_init(): lock screen FALSE
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for critical-power-level
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for show-brightness-popup
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for brightness-level-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for brightness-level-on-battery
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for brightness-slider-min-level
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for dpms-enabled
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for dpms-sleep-mode
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for inactivity-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for inactivity-sleep-mode-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for network-manager-sleep
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for logind-handle-power-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for logind-handle-suspend-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for logind-handle-hibernate-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for heartbeat-command
TRACE[xfpm-dpms.c:75] xfpm_dpms_set_timeouts(): Settings dpms: standby=1320 suspend=0 off=1380


(xfce4-power-manager:8764): GLib-GObject-WARNING **: gsignal.c:2516: signal 'Changed' is invalid for instance '0x55921f3a55c0' of type 'GDBusProxy'
TRACE[xfpm-polkit.c:287] xfpm_polkit_init_data(): Using unix session polkit subject
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 8764>, 'start-time': <uint64 10681736>}), 'org.freedesktop.login1.power-off', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.power-off is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 8764>, 'start-time': <uint64 10681736>}), 'org.freedesktop.login1.reboot', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.reboot is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 8764>, 'start-time': <uint64 10681736>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 8764>, 'start-time': <uint64 10681736>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=TRUE
TRACE[xfpm-power.c:945] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/line_power_AC
TRACE[xfpm-power.c:907] xfpm_power_add_device(): 'line-power' device added
TRACE[xfpm-power.c:945] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-power.c:907] xfpm_power_add_device(): 'battery' device added
TRACE[xfpm-power.c:917] xfpm_power_add_device(): Battery device type 'battery' detected at: /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)

(xfce4-power-manager:8764): 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-power.c:945] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/battery_BAT1
TRACE[xfpm-power.c:907] xfpm_power_add_device(): 'battery' device added
TRACE[xfpm-power.c:917] xfpm_power_add_device(): Battery device type 'battery' detected at: /org/freedesktop/UPower/devices/battery_BAT1
TRACE[xfpm-power.c:219] xfpm_power_check_polkit_auth(): using logind suspend backend
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 8764>, 'start-time': <uint64 10681736>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 8764>, 'start-time': <uint64 10681736>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=TRUE
TRACE[xfpm-power.c:1668] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1668] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1668] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1668] xfpm_update_blank_time(): Timeout: 20
TRACE[xfpm-manager.c:643] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key

(xfce4-power-manager:8764): GLib-CRITICAL **: g_error_free: assertion 'error != NULL' failed

(xfce4-power-manager:8764): xfce4-power-manager-WARNING **: Unable to set the kernel brightness switch parameter to 0.
TRACE[xfpm-backlight.c:258] xfpm_backlight_brightness_on_ac_settings_changed(): Alarm on ac timeout changed 9
TRACE[xfpm-backlight.c:279] xfpm_backlight_brightness_on_battery_settings_changed(): Alarm on battery timeout changed 9

(xfce4-power-manager:8764): xfce4-power-manager-WARNING **: Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "GetMaxBrightness" with signature "" on interface "org.freedesktop.UPower.KbdBacklight" doesn't exist


(xfce4-power-manager:8764): xfce4-power-manager-WARNING **: ../panel-plugins/power-manager-plugin/power-manager-button.c:825: invalid property id 2 for "show-panel-label" of type 'GParamInt' in 'PowerManagerButton'
TRACE[xfpm-manager.c:747] xfpm_manager_show_tray_icon(): Showing tray icon
TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:549] power_manager_button_add_device(): entering for /org/freedesktop/UPower/devices/DisplayDevice
TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:444] power_manager_button_update_device_icon_and_details(): entering for /org/freedesktop/UPower/devices/DisplayDevice
TRACE[xfpm-power-common.c:190] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 21, upower_icon battery-full-charging-symbolic
TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:549] power_manager_button_add_device(): entering for /org/freedesktop/UPower/devices/line_power_AC
TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:444] power_manager_button_update_device_icon_and_details(): entering for /org/freedesktop/UPower/devices/line_power_AC
TRACE[xfpm-power-common.c:190] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 10, upower_icon ac-adapter-symbolic
TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:549] power_manager_button_add_device(): entering for /org/freedesktop/UPower/devices/battery_BAT0
TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:444] power_manager_button_update_device_icon_and_details(): entering for /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-power-common.c:190] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 21, upower_icon battery-full-charging-symbolic
TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:549] power_manager_button_add_device(): entering for /org/freedesktop/UPower/devices/battery_BAT1
TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:444] power_manager_button_update_device_icon_and_details(): entering for /org/freedesktop/UPower/devices/battery_BAT1
TRACE[xfpm-power-common.c:190] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 21, upower_icon battery-full-charging-symbolic
TRACE[xfpm-manager.c:721] xfpm_manager_tray_update_icon(): updating icon
TRACE[xfpm-manager.c:705] xfpm_manager_tray_update_tooltip(): updating tooltip
---------------------------------------------------
       Xfce power manager version 1.6.0
With policykit support
With network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: True
Authorized to suspend: True
Authorized to hibernate: True
Authorized to shutdown: True
Has battery: True
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has LID: True
TRACE[xfpm-power-common.c:190] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 21, upower_icon battery-full-charging-symbolic



Then right clicking on the notification icon gives another ~1-2 seconds delay. After that the menu appears together with this message:

(xfce4-power-manager:8764): xfce4-power-manager-WARNING **: failed calling GetInhibitors: Timeout was reached
TRACE[xfpm-inhibit.c:433] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
Comment 5 Eric Koegel editbugs 2016-05-31 09:23:12 CEST
Created attachment 6684 
fix showing inhibits in the systray

Can you verify this patch fixes the slowness issue?
Comment 6 poma 2016-05-31 17:18:21 CEST
- plugin:
TRACE[xfpm-inhibit.c:460] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
TRACE[xfpm-inhibit.c:309] xfpm_inhibit_get_inhibit_list(): entering xfpm_inhibit_get_inhibit_list
TRACE[xfpm-inhibit.c:460] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
TRACE[xfpm-inhibit.c:309] xfpm_inhibit_get_inhibit_list(): entering xfpm_inhibit_get_inhibit_list
TRACE[xfpm-inhibit.c:460] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
TRACE[xfpm-inhibit.c:309] xfpm_inhibit_get_inhibit_list(): entering xfpm_inhibit_get_inhibit_list

- systray:
TRACE[xfpm-inhibit.c:309] xfpm_inhibit_get_inhibit_list(): entering xfpm_inhibit_get_inhibit_list
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
TRACE[xfpm-inhibit.c:309] xfpm_inhibit_get_inhibit_list(): entering xfpm_inhibit_get_inhibit_list
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
TRACE[xfpm-inhibit.c:309] xfpm_inhibit_get_inhibit_list(): entering xfpm_inhibit_get_inhibit_list
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.


systray menu lag is gone,
thanks
Comment 7 Eric Koegel editbugs 2016-05-31 18:29:59 CEST
Thanks for testing it out. Pushed to master in:
commit 77fa8e5f7d6c90a7b96b466b654da5aff456816e
Author: Eric Koegel <eric.koegel@gmail.com>
Date:   Tue May 31 10:21:10 2016 +0300

    Fix showing inhibits in the systray (Bug #12605)
    
    The systray apparently can't use the dbus inhibt interface at all,
    so use a direct call to get the list of inhibitors to display in
    the menu.
http://git.xfce.org/xfce/xfce4-power-manager/commit/?id=77fa8e5f7d6c90a7b96b466b654da5aff456816e
Comment 8 Woi 2016-06-08 17:28:49 CEST
Thanks guys :)

Bug #12605

Reported by:
Woi
Reported on: 2016-05-28
Last modified on: 2016-06-08

People

Assignee:
Eric Koegel
CC List:
6 users

Version

Attachments

Additional information