my keyboard layout is
# cat /etc/default/keyboard
Code: Select all
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="pc105"
XKBLAYOUT="it"
XKBVARIANT=""
XKBOPTIONS="terminate:ctrl_alt_bksp"
BACKSPACE="guess"
# evtest
Code: Select all
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Lid Switch
/dev/input/event1: Power Button
/dev/input/event10: Video Bus
/dev/input/event11: ELAN0709:00 04F3:31BF Touchpad
/dev/input/event12: PC Speaker
/dev/input/event13: sof-hda-dsp Mic
/dev/input/event14: sof-hda-dsp Headphone
/dev/input/event15: sof-hda-dsp HDMI/DP,pcm=3
/dev/input/event16: sof-hda-dsp HDMI/DP,pcm=4
/dev/input/event17: sof-hda-dsp HDMI/DP,pcm=5
/dev/input/event18: HP WMI hotkeys
/dev/input/event2: Power Button
/dev/input/event3: AT Translated Set 2 keyboard
/dev/input/event4: YICHIP Wireless Device
/dev/input/event5: YICHIP Wireless Device Mouse
/dev/input/event6: YICHIP Wireless Device System Control
/dev/input/event7: YICHIP Wireless Device Consumer Control
/dev/input/event8: Wireless hotkeys
/dev/input/event9: ELAN0709:00 04F3:31BF Mouse
Select the device event number [0-18]: 18
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
Input device name: "HP WMI hotkeys"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 138 (KEY_HELP)
Event code 141 (KEY_SETUP)
Event code 148 (KEY_PROG1)
Event code 149 (KEY_PROG2)
Event code 153 (KEY_DIRECTION)
Event code 224 (KEY_BRIGHTNESSDOWN)
Event code 225 (KEY_BRIGHTNESSUP)
Event code 226 (KEY_MEDIA)
Event code 240 (KEY_UNKNOWN)
Event code 248 (KEY_MICMUTE)
Event code 358 (KEY_INFO)
Event code 465 (KEY_FN_ESC)
Event code 531 (KEY_TOUCHPAD_ON)
Event code 532 (KEY_TOUCHPAD_OFF)
Event type 4 (EV_MSC)
Event code 4 (MSC_SCAN)
Event type 5 (EV_SW)
Event code 5 (SW_DOCK) state 0
Properties:
Testing ... (interrupt to exit)
$ xev
Code: Select all
Outer window is 0x6e00001, inner window is 0x6e00002
PropertyNotify event, serial 8, synthetic NO, window 0x6e00001,
atom 0x27 (WM_NAME), time 4350057, state PropertyNewValue
PropertyNotify event, serial 9, synthetic NO, window 0x6e00001,
atom 0x22 (WM_COMMAND), time 4350057, state PropertyNewValue
PropertyNotify event, serial 10, synthetic NO, window 0x6e00001,
atom 0x28 (WM_NORMAL_HINTS), time 4350057, state PropertyNewValue
CreateNotify event, serial 11, synthetic NO, window 0x6e00001,
parent 0x6e00001, window 0x6e00002, (10,10), width 50, height 50
border_width 4, override NO
PropertyNotify event, serial 14, synthetic NO, window 0x6e00001,
atom 0x16e (WM_PROTOCOLS), time 4350057, state PropertyNewValue
MapNotify event, serial 15, synthetic NO, window 0x6e00001,
event 0x6e00001, window 0x6e00002, override NO
ConfigureNotify event, serial 21, synthetic NO, window 0x6e00001,
event 0x6e00001, window 0x6e00001, (0,0), width 178, height 178,
border_width 0, above 0x1400003, override NO
PropertyNotify event, serial 28, synthetic NO, window 0x6e00001,
atom 0x1ee (_NET_WM_ALLOWED_ACTIONS), time 4350058, state PropertyNewValue
PropertyNotify event, serial 29, synthetic NO, window 0x6e00001,
atom 0x1d0 (_MUTTER_NEEDS_FRAME), time 4350058, state PropertyNewValue
PropertyNotify event, serial 30, synthetic NO, window 0x6e00001,
atom 0x176 (_NET_WM_DESKTOP), time 4350058, state PropertyNewValue
PropertyNotify event, serial 31, synthetic NO, window 0x6e00001,
atom 0x1b6 (WM_STATE), time 4350059, state PropertyNewValue
PropertyNotify event, serial 31, synthetic NO, window 0x6e00001,
atom 0x17c (_NET_WM_STATE), time 4350059, state PropertyNewValue
PropertyNotify event, serial 31, synthetic NO, window 0x6e00001,
atom 0x1c5 (_GTK_EDGE_CONSTRAINTS), time 4350059, state PropertyNewValue
ReparentNotify event, serial 34, synthetic NO, window 0x6e00001,
event 0x6e00001, window 0x6e00001, parent 0x600166,
(0,0), override NO
PropertyNotify event, serial 34, synthetic NO, window 0x6e00001,
atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350080, state PropertyNewValue
PropertyNotify event, serial 35, synthetic NO, window 0x6e00001,
atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350090, state PropertyNewValue
PropertyNotify event, serial 35, synthetic NO, window 0x6e00001,
atom 0x173 (_NET_FRAME_EXTENTS), time 4350095, state PropertyNewValue
ConfigureNotify event, serial 35, synthetic NO, window 0x6e00001,
event 0x6e00001, window 0x6e00001, (14,49), width 178, height 178,
border_width 0, above 0x600167, override NO
MapNotify event, serial 36, synthetic NO, window 0x6e00001,
event 0x6e00001, window 0x6e00001, override NO
VisibilityNotify event, serial 36, synthetic NO, window 0x6e00001,
state VisibilityUnobscured
Expose event, serial 36, synthetic NO, window 0x6e00001,
(0,0), width 178, height 10, count 3
Expose event, serial 36, synthetic NO, window 0x6e00001,
(0,10), width 10, height 58, count 2
Expose event, serial 36, synthetic NO, window 0x6e00001,
(68,10), width 110, height 58, count 1
Expose event, serial 36, synthetic NO, window 0x6e00001,
(0,68), width 178, height 110, count 0
ConfigureNotify event, serial 36, synthetic YES, window 0x6e00001,
event 0x6e00001, window 0x6e00001, (1955,72), width 178, height 178,
border_width 2, above 0x0, override NO
PropertyNotify event, serial 36, synthetic NO, window 0x6e00001,
atom 0x17c (_NET_WM_STATE), time 4350097, state PropertyNewValue
FocusIn event, serial 36, synthetic NO, window 0x6e00001,
mode NotifyNormal, detail NotifyNonlinear
KeymapNotify event, serial 36, synthetic NO, window 0x0,
keys: 68 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
PropertyNotify event, serial 36, synthetic NO, window 0x6e00001,
atom 0x17c (_NET_WM_STATE), time 4350101, state PropertyNewValue
PropertyNotify event, serial 36, synthetic NO, window 0x6e00001,
atom 0x17c (_NET_WM_STATE), time 4350101, state PropertyNewValue
PropertyNotify event, serial 36, synthetic NO, window 0x6e00001,
atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350112, state PropertyNewValue
PropertyNotify event, serial 36, synthetic NO, window 0x6e00001,
atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350129, state PropertyNewValue
PropertyNotify event, serial 36, synthetic NO, window 0x6e00001,
atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350144, state PropertyNewValue
KeyRelease event, serial 36, synthetic NO, window 0x6e00001,
root 0x614, subw 0x0, time 4350151, (1647,756), root:(3604,830),
state 0x10, keycode 104 (keysym 0xff8d, KP_Enter), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False
PropertyNotify event, serial 39, synthetic NO, window 0x6e00001,
atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350161, state PropertyNewValue
PropertyNotify event, serial 39, synthetic NO, window 0x6e00001,
atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350177, state PropertyNewValue
PropertyNotify event, serial 39, synthetic NO, window 0x6e00001,
atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350195, state PropertyNewValue
PropertyNotify event, serial 39, synthetic NO, window 0x6e00001,
atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350212, state PropertyNewValue
MappingNotify event, serial 39, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248
KeyPress event, serial 39, synthetic NO, window 0x6e00001,
root 0x614, subw 0x0, time 4359409, (1647,756), root:(3604,830),
state 0x10, keycode 232 (keysym 0x1008ff03, XF86MonBrightnessDown), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 39, synthetic NO, window 0x6e00001,
root 0x614, subw 0x0, time 4359409, (1647,756), root:(3604,830),
state 0x10, keycode 232 (keysym 0x1008ff03, XF86MonBrightnessDown), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 40, synthetic NO, window 0x6e00001,
root 0x614, subw 0x0, time 4359985, (1647,756), root:(3604,830),
state 0x10, keycode 233 (keysym 0x1008ff02, XF86MonBrightnessUp), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 40, synthetic NO, window 0x6e00001,
root 0x614, subw 0x0, time 4359985, (1647,756), root:(3604,830),
state 0x10, keycode 233 (keysym 0x1008ff02, XF86MonBrightnessUp), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
MappingNotify event, serial 40, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248
KeyPress event, serial 40, synthetic NO, window 0x6e00001,
root 0x614, subw 0x0, time 4362005, (1647,756), root:(3604,830),
state 0x10, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 41, synthetic NO, window 0x6e00001,
root 0x614, subw 0x0, time 4362011, (1647,756), root:(3604,830),
state 0x10, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 41, synthetic NO, window 0x6e00001,
root 0x614, subw 0x0, time 4362985, (1647,756), root:(3604,830),
state 0x10, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 41, synthetic NO, window 0x6e00001,
root 0x614, subw 0x0, time 4362989, (1647,756), root:(3604,830),
state 0x10, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 41, synthetic NO, window 0x6e00001,
root 0x614, subw 0x0, time 4364241, (1647,756), root:(3604,830),
state 0x10, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 41, synthetic NO, window 0x6e00001,
root 0x614, subw 0x0, time 4364244, (1647,756), root:(3604,830),
state 0x10, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
$ showkey
Code: Select all
kb mode was UNICODE
[ 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)...
keycode 28 release
keycode 224 press
keycode 224 release
keycode 225 press
keycode 225 release
keycode 113 press
keycode 113 release
keycode 114 press
keycode 114 release
keycode 115 press
keycode 115 release