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

**URL:** <https://forums.rockylinux.org/t/fn-key-lock-hp-keyboard-rocky-9-7-hp-z8/20339>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [April 8, 2026, 4:14am UTC](https://forums.rockylinux.org/t/fn-key-lock-hp-keyboard-rocky-9-7-hp-z8/20339 "2026-04-08T04:14:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chlowden](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@chlowden](https://forums.rockylinux.org/u/chlowden)\
**Post date:** [April 8, 2026, 4:14am UTC](https://forums.rockylinux.org/t/fn-key-lock-hp-keyboard-rocky-9-7-hp-z8/20339/1 "2026-04-08T04:14:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![FrankCox](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/frankcox/32/1572_2.png) [@FrankCox](https://forums.rockylinux.org/u/FrankCox)\
**Post date:** [April 8, 2026, 3:36pm UTC](https://forums.rockylinux.org/t/fn-key-lock-hp-keyboard-rocky-9-7-hp-z8/20339/2 "2026-04-08T15:36:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [April 9, 2026, 7:02am UTC](https://forums.rockylinux.org/t/fn-key-lock-hp-keyboard-rocky-9-7-hp-z8/20339/3 "2026-04-09T07:02:03Z")

</div>

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:

```auto
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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![chlowden](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@chlowden](https://forums.rockylinux.org/u/chlowden)\
**Post date:** [April 10, 2026, 6:13am UTC](https://forums.rockylinux.org/t/fn-key-lock-hp-keyboard-rocky-9-7-hp-z8/20339/4 "2026-04-10T06:13:56Z")

</div>

I found a very simple solution.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/8/867f6e43ee5787a3c9a689382b73eb6b0da7961a.jpeg)

[https://h30434.www3.hp.com/t5/Desktop-Hardware-and-Upgrade-Questions/Where-is-Fn-lock-on-HP-wireless-keyboard/td-p/7929994](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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [June 9, 2026, 6:14am UTC](https://forums.rockylinux.org/t/fn-key-lock-hp-keyboard-rocky-9-7-hp-z8/20339/5 "2026-06-09T06:14:36Z")

</div>

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