i have a hp 250 g8 laptop (sid) running budgie as my desktop. for some reason, the fn + function keys that control brightness and volume do not work. when i log into cinnamon, the brightness and volume controls work.
my keyboard layout is
# cat /etc/default/keyboardwhen i run evtest, when i press fn+f2, f3, f6, f7 and f8, there is no output
# evtesti have also run xev. i have pressed fn+f2, f3, f6, f7 and f8
$ xevi also ran showkey and pressed fn+f2, f3, f6, f7 and f8
$ showkeyshould xev and showkey show different values for the keys?
my keyboard layout is
# cat /etc/default/keyboard
Code:
# KEYBOARD CONFIGURATION FILE# Consult the keyboard(5) manual page.XKBMODEL="pc105"XKBLAYOUT="it"XKBVARIANT=""XKBOPTIONS="terminate:ctrl_alt_bksp"BACKSPACE="guess"
# evtest
Code:
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 MouseSelect the device event number [0-18]: 18Input driver version is 1.0.1Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0Input 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 0Properties:Testing ... (interrupt to exit)
$ xev
Code:
Outer window is 0x6e00001, inner window is 0x6e00002PropertyNotify event, serial 8, synthetic NO, window 0x6e00001, atom 0x27 (WM_NAME), time 4350057, state PropertyNewValuePropertyNotify event, serial 9, synthetic NO, window 0x6e00001, atom 0x22 (WM_COMMAND), time 4350057, state PropertyNewValuePropertyNotify event, serial 10, synthetic NO, window 0x6e00001, atom 0x28 (WM_NORMAL_HINTS), time 4350057, state PropertyNewValueCreateNotify event, serial 11, synthetic NO, window 0x6e00001, parent 0x6e00001, window 0x6e00002, (10,10), width 50, height 50border_width 4, override NOPropertyNotify event, serial 14, synthetic NO, window 0x6e00001, atom 0x16e (WM_PROTOCOLS), time 4350057, state PropertyNewValueMapNotify event, serial 15, synthetic NO, window 0x6e00001, event 0x6e00001, window 0x6e00002, override NOConfigureNotify event, serial 21, synthetic NO, window 0x6e00001, event 0x6e00001, window 0x6e00001, (0,0), width 178, height 178, border_width 0, above 0x1400003, override NOPropertyNotify event, serial 28, synthetic NO, window 0x6e00001, atom 0x1ee (_NET_WM_ALLOWED_ACTIONS), time 4350058, state PropertyNewValuePropertyNotify event, serial 29, synthetic NO, window 0x6e00001, atom 0x1d0 (_MUTTER_NEEDS_FRAME), time 4350058, state PropertyNewValuePropertyNotify event, serial 30, synthetic NO, window 0x6e00001, atom 0x176 (_NET_WM_DESKTOP), time 4350058, state PropertyNewValuePropertyNotify event, serial 31, synthetic NO, window 0x6e00001, atom 0x1b6 (WM_STATE), time 4350059, state PropertyNewValuePropertyNotify event, serial 31, synthetic NO, window 0x6e00001, atom 0x17c (_NET_WM_STATE), time 4350059, state PropertyNewValuePropertyNotify event, serial 31, synthetic NO, window 0x6e00001, atom 0x1c5 (_GTK_EDGE_CONSTRAINTS), time 4350059, state PropertyNewValueReparentNotify event, serial 34, synthetic NO, window 0x6e00001, event 0x6e00001, window 0x6e00001, parent 0x600166, (0,0), override NOPropertyNotify event, serial 34, synthetic NO, window 0x6e00001, atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350080, state PropertyNewValuePropertyNotify event, serial 35, synthetic NO, window 0x6e00001, atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350090, state PropertyNewValuePropertyNotify event, serial 35, synthetic NO, window 0x6e00001, atom 0x173 (_NET_FRAME_EXTENTS), time 4350095, state PropertyNewValueConfigureNotify event, serial 35, synthetic NO, window 0x6e00001, event 0x6e00001, window 0x6e00001, (14,49), width 178, height 178, border_width 0, above 0x600167, override NOMapNotify event, serial 36, synthetic NO, window 0x6e00001, event 0x6e00001, window 0x6e00001, override NOVisibilityNotify event, serial 36, synthetic NO, window 0x6e00001, state VisibilityUnobscuredExpose event, serial 36, synthetic NO, window 0x6e00001, (0,0), width 178, height 10, count 3Expose event, serial 36, synthetic NO, window 0x6e00001, (0,10), width 10, height 58, count 2Expose event, serial 36, synthetic NO, window 0x6e00001, (68,10), width 110, height 58, count 1Expose event, serial 36, synthetic NO, window 0x6e00001, (0,68), width 178, height 110, count 0ConfigureNotify event, serial 36, synthetic YES, window 0x6e00001, event 0x6e00001, window 0x6e00001, (1955,72), width 178, height 178, border_width 2, above 0x0, override NOPropertyNotify event, serial 36, synthetic NO, window 0x6e00001, atom 0x17c (_NET_WM_STATE), time 4350097, state PropertyNewValueFocusIn event, serial 36, synthetic NO, window 0x6e00001, mode NotifyNormal, detail NotifyNonlinearKeymapNotify 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 PropertyNewValuePropertyNotify event, serial 36, synthetic NO, window 0x6e00001, atom 0x17c (_NET_WM_STATE), time 4350101, state PropertyNewValuePropertyNotify event, serial 36, synthetic NO, window 0x6e00001, atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350112, state PropertyNewValuePropertyNotify event, serial 36, synthetic NO, window 0x6e00001, atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350129, state PropertyNewValuePropertyNotify event, serial 36, synthetic NO, window 0x6e00001, atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350144, state PropertyNewValueKeyRelease 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: FalsePropertyNotify event, serial 39, synthetic NO, window 0x6e00001, atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350161, state PropertyNewValuePropertyNotify event, serial 39, synthetic NO, window 0x6e00001, atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350177, state PropertyNewValuePropertyNotify event, serial 39, synthetic NO, window 0x6e00001, atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350195, state PropertyNewValuePropertyNotify event, serial 39, synthetic NO, window 0x6e00001, atom 0x1e7 (_NET_WM_ICON_GEOMETRY), time 4350212, state PropertyNewValueMappingNotify event, serial 39, synthetic NO, window 0x0, request MappingKeyboard, first_keycode 8, count 248KeyPress 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: FalseKeyRelease 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: FalseKeyPress 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: FalseKeyRelease 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: FalseMappingNotify event, serial 40, synthetic NO, window 0x0, request MappingKeyboard, first_keycode 8, count 248KeyPress 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: FalseKeyRelease 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: FalseKeyPress 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: FalseKeyRelease 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: FalseKeyPress 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: FalseKeyRelease 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:
kb mode was UNICODE[ if you are trying this under X, it might not worksince the X server is also reading /dev/console ]press any key (program terminates 10s after last keypress)...keycode 28 releasekeycode 224 presskeycode 224 releasekeycode 225 presskeycode 225 releasekeycode 113 presskeycode 113 releasekeycode 114 presskeycode 114 releasekeycode 115 presskeycode 115 release
Statistics: Posted by milomak — 2024-03-09 16:03 — Replies 0 — Views 19