You are not logged in.
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
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.
Offline
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
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 inputOffline
Sorry for the late reply. I use Wayland display server and no, resetting hid_apple.fnmode to 3 does not fix the problem.
Offline
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
Offline
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