Das Keyboard media keys
I have a Das Keyboard I truly love to use on my Linux machine at home, but there's one thing that bugs me: some of the media keys don't work. It's their professional model 4. I had hoped that I could just go into the KDE settings and find it on the keyboard list but it's not there, so I dove into the wiki to try to figure it out. I think I understand some of it but I'd like some help.
The keys in question are just three of the media controls. The sleep and mute keys are fine, and the delicious knob controls volume like a champ, but there are three more that don't get recognized (xev knows something happened but just reports the dimensions of the mouse window). I used showkey to figure out the scan codes in question.
All keys are prefaced by 0xe0:
| Key | On Press | On Release |
|---|---|---|
| Prev/Rewind | 0x10 | 0x90 |
| Pause/Play | 0x22 | 0xa2 |
| Next/Ffwd | 0x19 | 0x99 |
Showkey output looks like this:
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]
press any key (program terminates 10s after last keypress)...
0x9c
0xe0 0x10
0xe0 0x90
0xe0 0x10
0xe0 0x90
0xe0 0x22
0xe0 0xa2
0xe0 0x22
0xe0 0xa2
0xe0 0x19
0xe0 0x99
0xe0 0x19 0xe0 0x99
0xe0 0x19 0xe0 0x99
0xe0 0x19
0xe0 0x99
I was looking at https://wiki.archlinux.org/index.php/Map_scancodes_to_keycodes, but there seems to be some chat back and forth warning that the article is out of date. I get that what I need to do is modify the keyboard layout to map those scancodes to the correct keycodes, but I don't know what the correct keycodes are or the "right" way to edit the layout.
What I want to accomplish is to set the keyboard layout as default for all users. If I have to just load it into my own profile, that'll work, it just doesn't strike me as the right way to do things. Can anybody hand me a clue stick?
Edited 19 Apr 2020. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 5 · 100% up
- Kind
- Text
- ID
- ftvs55
2 comments
You need to set the correct symbol for each corresponding keycode.
Here is how (found it here), at the bottom.
Turns out it was something completely different. Apparently my install neglected to pick up xf86-input-evdev. Once I installed the package, it was all good to go. I really appreciate you looking into it with me. It was a weird issue to have.
I got tipped off by this thread on the forums, which mentions a possible bug in that package circa 2016, and just checked if it was installed on a whim.