You are not logged in.

#1 2016-08-21 13:45:02

Dreamkey
Member
Registered: 2010-08-28
Posts: 43

Change individual keycodes of two identical keyboards?

Hello,

I was looking for a cheap alternative of an ergodox, and I found this "gaming" keyboard. Now if I buy two of them, I will only have a half-keyboard by default.
I found udev can change a device ID from its path, but I don't know if it can help afterwards to change a keycode depending of its device ID, without affecting the other keyboard.

Offline

#2 2016-08-24 22:37:50

Dreamkey
Member
Registered: 2010-08-28
Posts: 43

Re: Change individual keycodes of two identical keyboards?

Some updates: the Arch wiki has already a page explaining how to remap scancodes to keycodes; I tried it and it works perfectly.
Then I wrote an udev rule for my keyboard, hoping I could overwrite its bus ID, product ID or modalias, so hwdb will only match one of them. But for some reason it seems it's not possible: my udev rule works when I try it with SYMLINK+="foo_kbd", but ATTR{idProduct}=="FFFF" doesn't. Is it some sort of security measures?

Offline

Board footer

Powered by FluxBB