Mapping touchpad toggle key on MSI Laptop
by d3ni5 from LinuxQuestions.org on (#5E0S2)
Hello, dear community,
I'm struggling to make the "Touchpad Toggle" key work on my new MSI Laptop.
This key is located in the "F" keys section of the keyboard (on the F4 key specifically). I have a dual boot system and in Windows, this key is working as expected.
I use Fedora KDE Spin and tried to map this key through System Settings, Shortcuts/Custom shortcuts to no avail. When I tried to map it there the prompt just blinked a bit and stayed the same: "Input ...".
I tried to research the events of the key using xev tool and got 3 KeyPress and 3 KeyRelease events just for a single keypress.
Here is the output:
Code:KeyPress event, serial 28, synthetic NO, window 0x6400001,
root 0x7af, subw 0x0, time 993967, (146,-33), root:(146,42),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 28, synthetic NO, window 0x6400001,
root 0x7af, subw 0x0, time 993969, (146,-33), root:(146,42),
state 0x4, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 28, synthetic NO, window 0x6400001,
root 0x7af, subw 0x0, time 993970, (146,-33), root:(146,42),
state 0x44, keycode 93 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x6400001,
root 0x7af, subw 0x0, time 993972, (146,-33), root:(146,42),
state 0x44, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x6400001,
root 0x7af, subw 0x0, time 993975, (146,-33), root:(146,42),
state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x6400001,
root 0x7af, subw 0x0, time 993977, (146,-33), root:(146,42),
state 0x0, keycode 93 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: FalseIs it possible to map keys with multiple keycode events?


I'm struggling to make the "Touchpad Toggle" key work on my new MSI Laptop.
This key is located in the "F" keys section of the keyboard (on the F4 key specifically). I have a dual boot system and in Windows, this key is working as expected.
I use Fedora KDE Spin and tried to map this key through System Settings, Shortcuts/Custom shortcuts to no avail. When I tried to map it there the prompt just blinked a bit and stayed the same: "Input ...".
I tried to research the events of the key using xev tool and got 3 KeyPress and 3 KeyRelease events just for a single keypress.
Here is the output:
Code:KeyPress event, serial 28, synthetic NO, window 0x6400001,
root 0x7af, subw 0x0, time 993967, (146,-33), root:(146,42),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 28, synthetic NO, window 0x6400001,
root 0x7af, subw 0x0, time 993969, (146,-33), root:(146,42),
state 0x4, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 28, synthetic NO, window 0x6400001,
root 0x7af, subw 0x0, time 993970, (146,-33), root:(146,42),
state 0x44, keycode 93 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x6400001,
root 0x7af, subw 0x0, time 993972, (146,-33), root:(146,42),
state 0x44, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x6400001,
root 0x7af, subw 0x0, time 993975, (146,-33), root:(146,42),
state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x6400001,
root 0x7af, subw 0x0, time 993977, (146,-33), root:(146,42),
state 0x0, keycode 93 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: FalseIs it possible to map keys with multiple keycode events?