Fn Key lock - HP keyboard - Rocky 9.7 - HP Z8

Hello

Is there a way to attribute fn key lock to a keyboard that does not seem to have it? I have looked through the Z8 BIOS but can’t find anything. HP is very inconsistent on this keys attribution from what I can see on web. Maybe there is a way to attribute it at the OS level?

Any thoughts are most welcome. Thank you

If it has a keycode you may be able to assign that keycode to another key using xmodmap.

Alternatively, your desktop may have the ability to assign keycodes built-in. On Mate, for example, you can find it under Menu-settings-hardware-keyboard shortcuts.

You can find out if it has a keycode using xev.

If it doesn’t have a keycode and you can’t do anything with it through a bios setting, then you’re probably outta-luck.

I had a similar problem but using an Epomaker TH99 keyboard which under Linux uses the hid_apple module. For me though this came down to a parameter under /sys/module/hid_apple/parameters/fnmode which had a default value of 3. To get my fn keys to work I had to use 2 instead.

Depending on which module is being used for your keyboard, you can check under a similar location to mine just replacing hid_apple with the module that your keyboard is using. You can check/test by just doing something like:

echo 2 > /sys/module/hid_apple/parameters/fn_mode

and once you found the value that works for you, then you can add it to be active on each reboot:

root@esprit:~# cat /etc/modprobe.d/hid_apple.conf 
options hid_apple fnmode=2

of course, this depends on if your module has this particular option and allows you to configure it. But something work checking, just in case.

I found a very simple solution.

https://h30434.www3.hp.com/t5/Desktop-Hardware-and-Upgrade-Questions/Where-is-Fn-lock-on-HP-wireless-keyboard/td-p/7929994

And then, by accident, I stumbled across the fn Lock combination on my HP keyboard …

fn + shift

It seems that the keyboard has pre defined key combinations at the hardware end. I assumed that it was just OS and when ever was printed in the keys, but it is a mix.

1 Like