You are not logged in.

#1 2025-08-12 10:56:05

Greyish_Tiger
Member
Registered: 2025-08-12
Posts: 9

[Solved]Keyboard is incorrectly mapped after changing default FN state

I recently followed a tutorial to set the default FN state on a keyboard to the function keys as my keyboard was misreported by Arch as a non-geniune apple keyboard (The tutorial I followed https://superuser.com/questions/970113/ … -directly). Now, for some inexplicable reason certain keys are incorrectly mapped; I have already tried switching keyboard layouts and searching Google didn't yield any helpful results.

The following keys are broken:
The F10 key was remapped to the letter "p"
The "p" key has been remapped to F2, however using fn results in p as normal as well as P

Last edited by Greyish_Tiger (2025-08-21 05:26:41)

Offline

#2 2025-08-12 12:18:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,176

Re: [Solved]Keyboard is incorrectly mapped after changing default FN state

fn+F10 (now just F10?) will likely be the presentation mode key (external monitor) which will just emulates the windows default shortcut win+shift+p (which if not bound to anything will just look like shift+p)

The "p" key has been remapped to F2, however using fn results in p as normal as well as P

I'm not quite sure what that's supposed to mean.

You can run "xev -event keyboard" (on X11 - or on some wayland compositors "wev") to log the keyboard input to illustrate what's going on.

Online

#3 2025-08-13 06:25:18

Greyish_Tiger
Member
Registered: 2025-08-12
Posts: 9

Re: [Solved]Keyboard is incorrectly mapped after changing default FN state

Oh, what I mean is: when I press the "p" key it results in a F2 keystroke and no, I checked using multiple key testing websites and pressing F10 only sends a "p" keystroke. In fact I have to use the F10 key to type "p".

Offline

#4 2025-08-13 06:39:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,176

Re: [Solved]Keyboard is incorrectly mapped after changing default FN state

I checked using multiple key testing websites

what is completely meaningless (this is pre-filtered by your browser and then limited to javascript)
For clarification: you /only/ set "hid_apple.fnmode=2" and adding "hid_apple.fnmode=3" to the https://wiki.archlinux.org/title/Kernel_parameters restores normal behavior?
What display server is this (Xorg or some wayland compositor and which)?
On an X11 session (this information is worthless on wayland!)

setxkbmap -print -query
xmodmap -pk
xev -event keyboard  # then press a,F10,a,p,a - the "a"s to frame the relevant input

Online

#5 2025-08-14 04:03:05

Greyish_Tiger
Member
Registered: 2025-08-12
Posts: 9

Re: [Solved]Keyboard is incorrectly mapped after changing default FN state

Sorry for the late reply. I use Wayland display server and no, resetting hid_apple.fnmode to 3 does not fix the problem.

Offline

#6 2025-08-14 05:46:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,176

Re: [Solved]Keyboard is incorrectly mapped after changing default FN state

seth wrote:

some wayland compositor and which

There's nothing such as "wayland" running on your system. wayland is an incredibly scant protocol that defines little more then how to forward input and how to share textures.

resetting hid_apple.fnmode to 3 does not fix the problem

So it's probably not your fnmode shenanigans at all? What else did you do?

Test whether you're facing the same behavior on an X11 session (can be simple openbox one) and then, if so:

On an X11 session (this information is worthless on wayland!)

setxkbmap -print -query
xmodmap -pk
xev -event keyboard  # then press a,F10,a,p,a - the "a"s to frame the relevant input

Online

#7 2025-08-21 05:22:21

Greyish_Tiger
Member
Registered: 2025-08-12
Posts: 9

Re: [Solved]Keyboard is incorrectly mapped after changing default FN state

As it turns out, it was some issue with the firmware of the keyboard. So after booting into Windows and resetting the firmware through the manufacturer's software the P key now works again.

Offline

Board footer

Powered by FluxBB