Closed sidevesh closed 1 year ago
Can you control the backlight from the GUI? You should have a backlight setting there.
If so, please provide output of solaar -ddd
as a rule that changes the backlight runs.
Also provide the contents of your rule file ~/.config/solaar/rules.yaml
I agree that it isn' t great that there are two choices with the same name. You want the one that matches the choices in the GUI - in your case the one that takes a toggle.
I can control it from the GUI, its only a toggle for me though, does that mean I can only ON OFF TOGGLE the backlight for this keyboard but not adjust the illumination level ? The Backlight Up and Down keys on this keyboard do control the backlight level with 8 steps in total from 0 to highest brightness.
My bad, looks like the Set -> Backlight action that has ON OFF and TOGGLE does work. I guess then my issue is why and is it possible for the illumination level control to be available for this keyboard ?
The interface to the backlight does not allow software to set levels. Why this is the case is unknown to me.
Ah okay, thanks for the help in debugging this, my usecase was to show some kind of notification when the backlight level changes, is it possible to be notified / do some action when backlight level changes ? or is the interface unaware when backlight level changes happen ?
Also, closing this
Solaar sees a notification (event) when the backlight changes. To see documentation on the event you can look at the file x1982_backlight_v2.pdf in https://drive.google.com/drive/folders/0BxbRzx7vEV7eWmgwazJ3NUFfQ28?resourcekey=0-dQ-Lx1FORQl0KAdOHQaE1A You will have to read and understand the Solaar rules documentation for the TestBytes rule condition and use it to check what the new level is. Start with a Feature condition to check for backlight notifications, then a Report condition for the report number (0), and then grab the level byte.
Figured it out! Thanks for pointing me in the right direction, gotta say, every time I think up something with these Logitech devices that is clearly impossible with official software and has to be impossible to achieve even otherwise, Solaar seems to always have a way to make things work. I keep using and buying Logitech hardware solely because of this project, and thanks again for all your work on this project @pfps !
This is what I was trying to achieve btw, having gnome's native osd show up for backlight changes just like the built in keyboard of a laptop:
https://github.com/pwr-Solaar/Solaar/assets/17254413/9c1174e6-b571-4bd0-b3fa-4baf1a466dc3
@sidevesh How did you connect mx keys mini to solaar. I have a unifying receiver that I got with the mx master 3 and I am able to connect both master 3 and keys mini on windows but it doesn't work on solaar on ubuntu 20.04 lts. It detects my master 3 under unifying receiver but it doesn't detect my mx keys mini.
@DanishFayaz What version of Solaar are you running?
It's the latest version. Got it from apt
Which version number?
Information
solaar --version
orgit describe --tags
if cloned from this repository): solaar 1.1.9uname -srmo
):Linux 6.4.12-zen1-1-zen 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 Setting the backlight to any value using the Backlight setting in Rules Actions, either of the two Backlight options (one that sets a numeric value and the other that sets On Off Toggle) does not do anything. Seems like reading the Backlight value works though as Condition.