I’m having trouble assigning a keyboard shortcut that involves the FN key.
I wrote a script to toggle the touchpad on and off on my Asus TUF Gaming laptop (for some reason, openSUSE Tumbleweed doesn’t seem to recognize the driver for this touchpad out of the box).
Here is the issue:
If I bind the script to a shortcut using CTRL (e.g., CTRL + F10), it works perfectly.
However, if I try to bind it to FN + F10, nothing happens.
It seems like the system isn’t registering the FN key combination properly for this shortcut. Any ideas on how to fix this or how to get Tumbleweed to recognize the FN keypress?
You can’t remap the Fn key and you can’t use it in a shortcut combination. The Fn key is a hardware key that tells the system to send different key codes for some keys. It’s not under the control of the OS.
Those are the events for the touchpad, not keyboard. The keyboard might be somewhere else, for instance here:
LT-B:~ # evtest /dev/input/by-path/platform-i8042-serio-0-event-kbd
Input driver version is 1.0.1
Input device ID: bus 0x11 vendor 0x1 product 0x1 version 0xab83
Input device name: "AT Translated Set 2 keyboard"
For the records here “Fn+F10” issues Event code 113 (KEY_MUTE) and mutes the loudspeakers, while for instance “Fn+F9” issues no event and disables the touchpad.
But all that is HW and vendor dependent AFAIK.