Skip to content

xfce4-power-manager seems to not be able to process power button

Dear maintainer,

I have been experiencing problems on my notebook - I chose the 'ask' option in the xfce4-power-manager settings for the power button. But every time I press it, I am just logged out instead of being given the option dialog.

I am running/have experienced this issue with either of these configurations (I did not use the laptop with any other systems that have XFCE):

  • Devuan excalibur
  • XFCE 4.20.1
  • GTK 3.24.49 or
  • Kernel 6.12.43+deb13-amd64
  • X11

and

  • Devuan daedaelus
  • XFCE 4.18.2
  • GTK 3.24.37
  • Kernel 6.1.0-39-amd64
  • X11

and in both cases, Slim was running for login management. It seems like the elogind-inhibit settings (the Devuan replacement for systemd-inhibit) are correct, because I have a Desktop running with the 'daedalus' configuration on which the power button works as intended, same settings as far as I'm aware (elogind-inhibit output looked the same).

I ran xfce4-power-manager with the --debug option and the messages for the 'excalibur' configuration essentially differ to those on the the working 'daedalus' configuration in that I'm getting these lines

TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)
TRACE[xfpm-button.c:173] xfpm_button_xevent_key(): could not map keysym 1008ffa8 to keycode

on the nonworking system (my Thinkpad T480s laptop).

I assume that somehow, because xfce4-power-manager is unable to handle the power button correctly, I'm merely getting logged out. It appears the bug is within xfce4-power-manager, since, as stated, I have a Desktop system running Devuan where this bug doesn't manifest.

I have attached the debug outputs for the laptop with the 'excalibur' configuration and the Desktop ('daedalus' configuration) where things work for comparison.

I am aware of this thread on the XFCE forum but nothing of help there, really (I don't even have a numpad on my laptop). I have googled the quoted error message and didn't find any solution to this issue.

Thank you

Alexander

xfce4-power-manager_desktop.txt

xfce4-power-manager_laptop_bugged.txt

Edited by Alexander Rehbein