In /usr/share/X11/xkb/keycodes/evdev
there is a mapping from :
Quote:
evdev scancodes to something resembling xfree86 keycodes
|
e.g:
<AC01> = 38;
Trying
Code:
$ sudo xev -event keyboard
state 0x0, keycode 38 (keysym 0x61, a),
and pressing keycap 'A' i do get keycode: 38
But what is <AC01> ? Where can i find what it means?
Also trying to display usb related values (are those called still scancodes)
i get:
Code:
$ sudo evtest /dev/input/by-id/usb-Logitech_USB_Receiver-if01-event-kbd
Event: time 1601988267.325606, -------------- SYN_REPORT ------------
Event: time 1601988267.453604, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70004
Event: time 1601988267.453604, type 1 (EV_KEY), code 30 (KEY_A), value 0
So usb keyboard sent : (MSC_SCAN), value 70004
linux transforms that keycode to 30? or 38? and that value is used later
from Xserver to map it to keysyms.
But where does that mapping from keyboard sent scancode to linux keycode is happening ?