You are not logged in.
Pages: 1
I have disabled the handling of brightness keys and the brightness popup in the Power Manager settings and added keyboard shortcuts for light (from AUR):
light -A 5 | XF86MonBrightnessUp
light -U 5 | XF86MonBrightnessDown
However, when I press the shortcuts
Fn + F12 (XF86MonBrightnessUp)
Fn + F11 (XF86MonBrightnessDown)
nothing happens.
I have checked that the commands work by mapping the shortcut to other keys and I know that the keymapping is correct because the keyboard settings menu handles the input correctly when creating the shortcut.
I suspect that the Power Manager still steals the keypresses, but doesn't process them. How can I fix this?
Many thanks,
Opafix
Quit XFCE4 Power Manager using
xfce4-power-manager -q
Check shortcuts now work
Restart XFCE4 Power Manager (using desktop icon, whisker menu, commands etc)
Additionally,
xfce4-power-manager --no-daemon --debug
can be used to check which keypresses XFCE4 Power Manager grabs.
Reported to bugzilla.xfce.org (Bug ID 14226)
Credit to ToZ for all their help.
Last edited by opafix (2018-02-17 16:55:50)
Offline
Hello and welcome.
I suspect that the Power Manager still steals the keypresses, but doesn't process them.
Yes it does. This while running xfce4-power-manager in debug mode:
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)
How can I fix this?
There should be an option to turn off the handling of brightness keys in the Power Manager settings.
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
Thank you for your response.
To clarify, I have set the "Handle Display Brightness Keys" to off in the power manager settings and am still having this problem.
Thanks.
Offline
I can't test this myself right now, but with the setting unchecked, run the following commands in a terminal window:
xfce4-power-manager -q
Do the keys work now?
Then run:
xfce4-power-manager --no-daemon --debug
Does the output still show that the keys are being grabbed?
And what gets displayed when you press the keys?
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
That fixed it! Thank you very much!
What exactly does the -q flag do, out of inerest?
Offline
I think -q is the same as --quit:
man xfce4-power-manager
--quit Causes any running instance of xfce4-power-manager to exit.
Offline
That fixed it! Thank you very much!
What exactly does the -q flag do, out of inerest?
But now you don't have the power manager running. Did you try the second part of that, running in debug mode? If it still captures the brightness keys, even after you've specified for it not to, then you have a found a bug and you shuold report it as so.
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
After further investigation, if I make any changes to my power manager settings (changing effect of closing lid etc) then it starts to steal the keys again but doesn't register that it does so when I run the debug command.
However, if I run
xfce4-power-manager -q
to quit the power manager then restart it (through commands or restarting device or through desktop GUI) then it no longer steals the keys and my shortcuts work as intended.
Thank you for your help.
Opafix
Offline
After further investigation, if I make any changes to my power manager settings (changing effect of closing lid etc) then it starts to steal the keys again but doesn't register that it does so when I run the debug command.
Yes, that definitely reads like a bug description.
If it still captures the brightness keys, even after you've specified for it not to, then you have a found a bug and you shuold report it as so.
Regards,
MDM
Offline
Yes, that definitely reads like a bug description.
If it still captures the brightness keys, even after you've specified for it not to, then you have a found a bug and you shuold report it as so.
Thanks, reported to bugzilla.xfce.org (Bug ID 14226)
Offline
Pages: 1
[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 562.11 KiB (Peak: 578.95 KiB) ]