! 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 !
Power manager grabs brightness keys after changing settings to not handle bri...
Status:
RESOLVED: MOVED
Priority:
Very Low
Product:
Xfce4-power-manager
Component:
General

Comments

Description Tom Crossley 2018-02-17 17:11:38 CET
Bug:

Having disabled the "handle brightness keys" setting in power manager settings, I added shortcuts to handle brightness keys using the "light" package from AUR:

light -A 5    |    XF86MonBrightnessUp
light -U 5    |    XF86MonBrightnessDown

Running the command

xfce4-power-manager --no-daemon --debug

shows that the power manager does not register that it has grabbed the keys, yet they do not reach the shortcuts manager and do not run my custom shortcuts to change brightness.


Workaround:

if power manager is quit then restarted using

xfce4-power-manager -q

then running the desktop app, then the brightness keys are no longer grabbed.

If any changes are made to my power manager menu settings, they cause the power manager to start grabbing the keys again until I quit and restart as above.

Happy to provide any logs or debug outputs on request.
Comment 1 Caleb Spare 2019-12-20 22:44:01 CET
I'm running into the same issue. The workaround is not that useful because it reverts on reboot. Except...I noticed something: I have shortcuts set for XF86MonBrightnessDown and XF86MonBrightnessUp in my keyboard settings, and sometimes after reboot one or the other of these shortcuts works, while the other is stolen by xfce4-power-manager.

For example, right now the state is:

* "Handle display brightness keys" is unchecked in xfce4-power-manager
* XF86MonBrightness{Up,Down} have application shortcuts to a tool to raise/lower the backlight by 3%
* When I press XF86MonBrightnessUp, the backlight is raised (so xfce4-power-manager isn't catching this key)
* When I press XF86MonBrightnessDown, the backlight remains unchanged but the little overlay showing the current backlight level is shown (so xfce4-power-manager is catching this key).

Sometimes xfce4-power-manager catches the other key, or both.

This makes me think that there's some kind of race to register the hotkeys.
Comment 2 Git Bot editbugs 2020-05-27 01:42:11 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-power-manager/-/issues/33.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #14226

Reported by:
Tom Crossley
Reported on: 2018-02-17
Last modified on: 2020-05-27

People

Assignee:
Ali Abdallah
CC List:
5 users

Version

Attachments

Additional information