New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solaar key press action depends on keyboard setup #1975
Comments
Please run Solaar as |
|
The log is showing Solaar trying to simulate a Meta_L
Are you sure that you want just Meta_L and not some key combination like a meta-shifted L. Solaar also thinks that the Meta_L key needs a shift to work correctly. This also seems odd. |
I would like for the mouse gesture to open up KDE's application launcher, so I would just want Meta_L. |
You mean just clicking the left meta key? |
Yes. It's easier for me to press the mouse gesture button than find the meta key on the keyboard when I work. |
Do you need a shift (or control or some other modifier key) to get the Meta-L? Solaar believes that you do. |
No, the Application Launcher will not open with any additional keys. Just Meta_L. |
Are there any solutions? |
You will need to investigate your keyboard setup. How are keycodes mapped to keystrokes. Solaar is trying to figure out how to simulate a Meta-L key press and release. There are tools that can show how your key codes are being mapped but they depend on quite a number of things. One potential issue can arise from running the X keyboard extension and then some other tool that reinterprets keystrokes, for example, to simulate accented characters. The interaction can be quite complex. You should make your input handling more simple and see whether that fixes the issue. All this also depends on whether you are running X or Wayland. |
One thing you could do is post your XKB setup here by running
saying that there are two ways for KXB to produce a Meta_L from input from keypresses on my keyboard (or something simulating keypresses on my keyboard). One way is to generate the LALT keycode (which presumably is what my keyboard produces when I press the left-hand ALT key), but only when the keyboard has the shift modifier in effect (which is generally the case when either of the shift keys are down). The other way is to generate the META keycode but again only when the shift modifier is in effect. Now my physical keyboard doesn't have a key labelled with META and doesn't even have a key that can generate this keycode, as far as I can determine, but Solaar can simulate the generation of this keycode. When use a Solaar rule to simulate entering Meta_L what I get is the shift-LALT way of generating a Meta_L. I'm not sure why you don't have the same experience. What you are getting is shift-META using the left-hand shift key because the left-hand shift key is 50 in X and the META key is 205. (Note that Linux keycodes are 8 less than X keycodes.) All this assumes that you don't have system components doing further processing of input events. But may be you don't want Meta_L, but instead the "Windows key". The keycode for that key is sometimes called LEFTMETA, but in Linux pressing the key usually produces the Super_L keysym. This should convince you that input processing in Linux (and other OS's as well) is very complex. Part of this is due to the complexity of keyboards and how they are set up and used (for example the keys on the keyboard I mostly use have Swiss keyboard labels, but because I have told Linux that I want the US keyboard layout I get the US characters) and part of it is due to a desire for backward compatibility. |
Thank you for your help! I changed Meta_L to Super_L and now it works! |
Information
solaar --version
orgit describe --tags
if cloned from this repository): 1.1.8uname -srmo
):5.15.0-58-generic
solaar show
:~/.config/solaar/config.yaml
(or~/.config/solaar/config.json
if~/.config/solaar/config.yaml
not present):Describe the bug
MX Master 3 does not listen to mouse gesture rules in every Key/Button Diversion mode.
To Reproduce
Steps to reproduce the behavior:
Mouse Right
parameter.Meta_L
as its parameter.Screenshots
Additional context
I use X, so there should not be any keyboard bugs.
https://config.qmk.fm/#/test
says that Left shift is held down, thenMeta
is pressed. (the Left OS key does not become highlighted.)It would also be appreciated if someone could explain to me why the lock button has three modes, and what they are.
The text was updated successfully, but these errors were encountered: