-
Notifications
You must be signed in to change notification settings - Fork 17
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
Can I fix keys with keycode 0 somehow? #27
Comments
I set barrier to be level
|
here's a working log for the small latin letter "a" (which works fine and is received as keycode
|
Not sure if I decode this correctly, but my above log for "a" has "button=0x001e", which is decimal 30. Which would (+ offset 8) become keycode 38 in waynergy? is that correct? The (non-working) buttons have these button hex codes => decimal codes => (esitmated incl 8 offset) |
after digging through
I got lucky for those four in particular, because my number block already did the "right" thing. I have no idea where I would have gotton those "target" mappings otherwise. Now I'm looking for SUPER, and if that works, I'm happy for now. I should note that I was mapping the exact number from barrier to the exact number I wanted. Offset does not seem to play a role, here. |
I learned about the tool [raw-keymap]
# Super Left
347=133
# LEFT
331=113
# UP
328=111
# RIGHT
333=114
# DOWN
336=116 in other words: there's no "simple" offset for these. Difference is 214, 218, 217, 219 and 220 - coincidence? Somehow I believe that I may be able to find the right ctrl, alt and super keys now, too. They are probably offset by 215 and/or 216 from their windows counterparts if that pattern above holds. |
Unfortunately the pattern doesn't really hold -- the keycodes sent by the various possible server platforms tend to align very poorly, especially once you move beyond alphanumeric keys. |
Then I'll try to identify the remaining orange keys as best I can. But not tonight :-) |
For a start, |
Leaving this here for me for tomorrow:
|
eh... I finished it anyway. This is as far as I will probably take it, because I can not test the other keys on my laptop with much confidence. [raw-keymap]
offset=8
#Left
331=113
#UP
328=111
#RIGHT
333=114
#DOWN
336=116
# Super L
347=133
# Super R - just using SUPER L here, i did not have a SUPER R to test and they do not differ.
348=133
# Ctrl R
285=105
# Pause
69=127
# Ins
338=118
# Del
339=119
# Pos1
327=110
# End
335=115
# PgUp
329=112
# PgDn
337=117 This is valid and tested for: Windows 10 running barrier as server and Ubuntu 21.10 running gnome with waynergy through uinput. Both machines have german keyboard layouts. With the combination of barrier loglevel |
To make it slightly less tedious, it should be noted that the calls to |
I'm not entirely sure how to proceed here. I could close this, because my immediate need is solved. I could put thin on a wiki if you think this might be valuable for other people. I could make an |
Under |
For now I'll close this -- it's linked from the README -- though if anything else comes please do reopen |
I updated the keymap so it works with current waynergy version and added some missing keys. Only tested with windows -> kwin (german layout) Only missing AltGr and mouse buttons back and forward. Didn't found a solution for them yet.
|
Is there a way to map extra mouse buttons? They come through in barrier logs just as: |
Just adding that this also works for the ABNT2 PT-BR layout (Windows to Gnome), but I needed to add the following id-keymaps to get the
|
I am now pretty happy with my current setup. I just miss a few keys that do not work. Is there even a way to get this done?
I'm using a windows server on barrier 2.4 and waynergy client configured to use uinput. I've set raw-input.offset to
8
which works well for ~75% of all my keys. I am notably missing the arrow keys (and a few more that don't bother me as much).I've set my loglevel to 4, and I can see the keycodes that are received. My problem is: they are all 0. Is there even a way to fix this? I have no real idea how I would even start getting that in order. Even if I do not set
offset
, this happens, too.Here I'm highlighting keys by how well they work (including offset=8):
🟢 green ones work exactly as they are supposed to work as far as I can tell.
🟠 orange ones return keycode 0 in the logfile.
⚪ gray ones show other weird behaviour, but I do not (yet) care about them enough to dig deeper.
The text was updated successfully, but these errors were encountered: