Closed calvinp0 closed 1 year ago
The brightness keys on the MX Keys do not do anything in Windows OS mode so Solaar has to be involved in getting them to work. Solaar comes with two built-in rules that simulate XF86 keypresses when the brightness keys are diverted and pressed. From the log you provide you appear to have diverted the brightness keys, even though the output of solaar show does not so indicate, and written your own rule to simulate XF86 keypresses and also run a shell script. All this appears to be working correctly.
For the XF86 keypresses to actually have any effect, some program has to capture them and change screen brightness. Which program this is depends on what you have running - on my machine there is a power manager that does this but a switch has to be set. If no program handles these keypresses then screen brightness will not change.
You have not provided details about your shell script so there is no way to determine what it does. All that can be determined from the Solaar log is that the schell script was called.
It also appears that there is a missing library libX11.so that is used by Solaar to determine which keyboard group is active. The Solaar installation instructions state that the X11 library should be installed. (It is probably called libX11-devel or libX11-dev.) This lack should not affect this problem because the XF86 keypresses should be independent of keyboard group.
@Laxzal Is there anything to do here?
Closing due to no response from submitter.
Hi, for those who have this situation. If you are on Wayland it won't work out of the box. But you can create custom hotkeys for KDE Energyoptions (e.g. Brightness up), then create custom rules in Solaar and combine it with the new hotkey combination. work fine for me.
Information
solaar --version
orgit describe --tags
if cloned from this repository): 1.1.7uname -srmo
):Linux 5.15.0-53-generic x86_64 GNU/Linux
solaar show
:~/.config/solaar/config.yaml
(or~/.config/solaar/config.json
if~/.config/solaar/config.yaml
not present):Describe the bug The Brightness buttons do not appear to work, even when attempting to edit the rules. Furthermore, the backlight of the keyboard also does not work.
To Reproduce Steps to reproduce the behavior:
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.