I purchased a micrrosoft keyboard for its special keys such as XF86HomePage, while in my prvious model (the Microsoft Natural Ergonomic Keyboard 4000) all the keys were configurable, at the new 5000 wireless model many keys don't key mapped to anything.
here's the relevant line in lsusb
045e:07b2 Microsoft Corp. 2.4GHz Transceiver v8.0 used by mouse Wireless Desktop 900when in xev these keys show nothing. what's the lowest possible layer in which I can look for the keys been pressed?
1 Answer
I think the kernel is the lowest rational layer.
The kernel will identify keys using scan codes which you can see in sudo showkey -s by pressing that key. The kernel also converts these keys to key codes which you can see in sudo showkey -k. If you want to remap some keys, you can alsodo it with the setkeycodes utility.
If you want to go even lower, wireshark can intercept USB traffic.