You are not logged in.
Pages: 1
Hello!
I am trying to get my laptop to hibernate on lid close while on battery (same issue when plugged in). My current xfce-power-manager settings only seems to blank the screen. Upon a keypress, the lock screen is shown. After login I receive the following "None of the screen lock tools ran successfully, the screen will not be locked. Do you want to continue to suspend the system?" Below are the results of a couple of commands I saw in the forums used to debug other similar issues. Not sure what to do, any help please?
xfconf-query -c xfce4-power-manager -lv
/xfce4-power-manager/battery-button-action 3
/xfce4-power-manager/blank-on-ac 20
/xfce4-power-manager/blank-on-battery 5
/xfce4-power-manager/brightness-level-on-ac 20
/xfce4-power-manager/brightness-level-on-battery 1
/xfce4-power-manager/brightness-on-ac 120
/xfce4-power-manager/brightness-on-battery 60
/xfce4-power-manager/brightness-switch 0
/xfce4-power-manager/brightness-switch-restore-on-exit 1
/xfce4-power-manager/critical-power-action 2
/xfce4-power-manager/dpms-on-ac-off 45
/xfce4-power-manager/dpms-on-ac-sleep 30
/xfce4-power-manager/dpms-on-battery-off 10
/xfce4-power-manager/dpms-on-battery-sleep 8
/xfce4-power-manager/handle-brightness-keys true
/xfce4-power-manager/hibernate-button-action 2
/xfce4-power-manager/inactivity-on-ac 45
/xfce4-power-manager/inactivity-on-battery 15
/xfce4-power-manager/inactivity-sleep-mode-on-ac 2
/xfce4-power-manager/lid-action-on-ac 2
/xfce4-power-manager/lid-action-on-battery 2
/xfce4-power-manager/logind-handle-lid-switch false
/xfce4-power-manager/power-button-action 4
/xfce4-power-manager/show-tray-icon false
/xfce4-power-manager/sleep-button-action 1
Ran the below commands and then closed and opened my laptop lid.
xfce4-power-manager --quit
xfce4-power-manager --no-daemon --debug
** (xfce4-power-manager:5559): WARNING **: 10:17:55.666: 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:5559): WARNING **: 10:17:55.667: 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: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 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-sleep-mode
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 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 heartbeat-command
TRACE[xfpm-dpms.c:72] xfpm_dpms_set_timeouts(): Settings dpms: standby=1800 suspend=0 off=2700
(xfce4-power-manager:5559): GLib-GObject-WARNING **: 10:17:55.735: ../glib/gobject/gsignal.c:2617: signal 'Changed' is invalid for instance '0x55d660c5c4f0' 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 5559>, 'start-time': <uint64 397164>}), '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 5559>, 'start-time': <uint64 397164>}), '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 5559>, 'start-time': <uint64 397164>}), '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 5559>, 'start-time': <uint64 397164>}), '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:940] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/line_power_AC0
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_BAT0
TRACE[xfpm-power.c:898] xfpm_power_add_device(): 'battery' device added
TRACE[xfpm-power.c:907] xfpm_power_add_device(): Battery device type 'battery' detected at: /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)
(xfce4-power-manager:5559): xfce4-power-manager-WARNING **: 10:17:55.780: could not map keysym 1008ffa8 to keycode
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 213 : ((XfpmButtonKey) BUTTON_HIBERNATE)
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 233 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 232 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
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 238 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
TRACE[xfpm-button.c:182] xfpm_button_xevent_key(): Grabbed key 237 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
TRACE[xfpm-dpms.c:72] xfpm_dpms_set_timeouts(): Settings dpms: standby=480 suspend=0 off=600
TRACE[xfpm-dpms.c:343] xfpm_dpms_set_on_battery(): dpms on battery TRUE
TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
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 5559>, 'start-time': <uint64 397164>}), '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 5559>, 'start-time': <uint64 397164>}), '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:1449] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 5
TRACE[xfpm-power.c:1449] xfpm_update_blank_time(): Timeout: 5
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
(xfce4-power-manager:5559): GLib-CRITICAL **: 10:17:55.824: g_error_free: assertion 'error != NULL' failed
** (xfce4-power-manager:5559): WARNING **: 10:17:55.824: No outputs have backlight property
xfce4-power-manager-Message: 10:17:55.913: Set kernel brightness switch to 0
TRACE[xfpm-backlight.c:254] xfpm_backlight_brightness_on_ac_settings_changed(): Alarm on ac timeout changed 120
TRACE[xfpm-backlight.c:275] xfpm_backlight_brightness_on_battery_settings_changed(): Alarm on battery timeout changed 60
(xfce4-power-manager:5559): xfce4-power-manager-WARNING **: 10:17:55.930: 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
TRACE[xfpm-inhibit.c:455] xfpm_inhibit_get_inhibitors(): Get Inhibitors message received
TRACE[xfpm-inhibit.c:304] xfpm_inhibit_get_inhibit_list(): entering xfpm_inhibit_get_inhibit_list
TRACE[xfpm-manager.c:442] xfpm_manager_lid_changed_cb(): LID close event: ((XfpmLidTriggerAction) LID_TRIGGER_HIBERNATE)
** (xfce4-power-manager:5559): WARNING **: 10:18:49.925: No outputs have backlight property
TRACE[xfpm-polkit.c:241] xfpm_polkit_free_data(): Destroying Polkit data
TRACE[xfpm-manager.c:475] xfpm_manager_lid_changed_cb(): LID opened: ((XfpmLidTriggerAction) LID_TRIGGER_HIBERNATE)
TRACE[xfpm-dpms.c:279] xfpm_dpms_force_level(): start
TRACE[xfpm-dpms.c:311] xfpm_dpms_force_level(): No need to change DPMS mode, current_level=0 requested_level=0
The below command works as expected
systemctl hibernate
xfce4-power-manager --dump
** (xfce4-power-manager:6085): WARNING **: 10:23:04.882: 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:6085): WARNING **: 10:23:04.884: 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:6085): WARNING **: 10:23:04.885: 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:6085): GLib-GObject-WARNING **: 10:23:04.952: ../glib/gobject/gsignal.c:2617: signal 'Changed' is invalid for instance '0x55b7f8ca6530' of type 'GDBusProxy'
(xfce4-power-manager:6085): xfce4-power-manager-WARNING **: 10:23:04.993: could not map keysym 1008ffa8 to keycode
(xfce4-power-manager:6085): GLib-CRITICAL **: 10:23:05.038: g_error_free: assertion 'error != NULL' failed
** (xfce4-power-manager:6085): WARNING **: 10:23:05.039: No outputs have backlight property
xfce4-power-manager-Message: 10:23:05.122: Set kernel brightness switch to 0
(xfce4-power-manager:6085): xfce4-power-manager-WARNING **: 10:23:05.138: 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
---------------------------------------------------
Xfce power manager version 1.6.6
With policykit support
Without 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 battery button: True
Has LID: True
Offline
Slight update. The below command also works as expected. So it looks like there is an issue between the laptop lid trigger to before a hibernate is initiated by xfce
xfce4-session-logout --hibernate
Offline
I uninstalled xfce4-screensaver. That seems to have solved this weird behavior...
Offline
Hello and welcome.
Which distro are you running?
"None of the screen lock tools ran successfully, the screen will not be locked. Do you want to continue to suspend the system?"
Which screen locker program are you using and what version?
What version of xfce4-screensaver are you using? Version 0.1.9 resolved a similar type of issue.
/xfce4-power-manager/logind-handle-lid-switch false
Try setting this to true.
Last edited by ToZ (2020-03-26 02:17:59)
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
Pages: 1
[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 575.26 KiB (Peak: 601 KiB) ]