Keyboard remap problem

I want to remap the two function keys on the keyboard, but I'm having trouble, so I hope you can help me.
I looked up some online materials and learned about udev, mapping scancode and corresponding keycode can be achieved, using this method, I successfully mapped some function keys.
But Fn+F8 and Fn+F9 didn't map successfully, because I couldn't find their scancodes.
Through the evtest command, I found that these two keys were bound to a Video Bus. Please see the output below. There is no scancode, what should I do?

~ >>> sudo evtest
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/event2:	Sleep Button
/dev/input/event3:	Power Button
/dev/input/event4:	Video Bus
/dev/input/event5:	Video Bus
/dev/input/event6:	AT Translated Set 2 keyboard
/dev/input/event7:	PC Speaker
/dev/input/event8:	ThinkPad Extra Buttons
/dev/input/event9:	HDA Digital PCBeep
/dev/input/event10:	HDA Intel PCH Mic
/dev/input/event11:	HDA Intel PCH Headphone
/dev/input/event12:	HDA Intel PCH HDMI/DP,pcm=3
/dev/input/event13:	HDA Intel PCH HDMI/DP,pcm=7
/dev/input/event14:	Integrated Camera: Integrated C
/dev/input/event15:	Logitech USB Receiver
/dev/input/event16:	Logitech USB Receiver Mouse
/dev/input/event17:	Logitech USB Receiver Consumer Control
/dev/input/event18:	Logitech USB Receiver System Control
/dev/input/event19:	SynPS/2 Synaptics TouchPad
/dev/input/event20:	Logitech M585/M590
/dev/input/event21:	TPPS/2 IBM TrackPoint
Select the device event number [0-21]: 5
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x6 version 0x0
Input device name: "Video Bus"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 224 (KEY_BRIGHTNESSDOWN)
    Event code 225 (KEY_BRIGHTNESSUP)
    Event code 227 (KEY_SWITCHVIDEOMODE)
    Event code 241 (KEY_VIDEO_NEXT)
    Event code 242 (KEY_VIDEO_PREV)
    Event code 243 (KEY_BRIGHTNESS_CYCLE)
    Event code 244 (KEY_BRIGHTNESS_ZERO)
    Event code 245 (KEY_DISPLAY_OFF)
Testing ... (interrupt to exit)
Event: time 1566348691.947418, type 1 (EV_KEY), code 225 (KEY_BRIGHTNESSUP), value 1
Event: time 1566348691.947418, -------------- SYN_REPORT ------------
Event: time 1566348691.947462, type 1 (EV_KEY), code 225 (KEY_BRIGHTNESSUP), value 0
Event: time 1566348691.947462, -------------- SYN_REPORT ------------
Event: time 1566348693.428171, type 1 (EV_KEY), code 224 (KEY_BRIGHTNESSDOWN), value 1
Event: time 1566348693.428171, -------------- SYN_REPORT ------------
Event: time 1566348693.428293, type 1 (EV_KEY), code 224 (KEY_BRIGHTNESSDOWN), value 0
Event: time 1566348693.428293, -------------- SYN_REPORT ------------

I'm using awesome desktop system, evdev driver module and kernel 4.19

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by