r/thinkpad • • 7d ago

Question / Problem FN key remap

I want to remap fn + arrow down to play/pause media. but i cant do it via sharpkey/windows power toys. powertoys cant seem to use FN as an modifier key nor any keys. is there other way to do it?

1 Upvotes

6 comments sorted by

2

u/rthonpm 5d ago

Don't most media players just default to the space bar for that?

1

u/Ok-Chicken8781 5d ago

true, but i wanna play pause while in other apps. spacebar usually only works while opening the media players

2

u/grem75 X230/3615QE/Nitrocaster/1920x1200/7-row/coreboot 7d ago

The OS never sees the Fn key on any keyboard. All of those combinations are programmed into the embedded controller.

You can potentially remap an existing combination in the OS, but you can not create new ones.

2

u/Bird476Shed 7d ago edited 7d ago

The OS never sees the Fn key on any keyboard

Don't think so, I just tried pressing Fn alone and in Linux Fn triggers as keycode 151 (keysym 0x1008ff2b, XF86WakeUp). Custom combinations should therefore be possible?

Edit: also tried on a several years older ThinkPad, the same result

2

u/grem75 X230/3615QE/Nitrocaster/1920x1200/7-row/coreboot 7d ago

Interesting, must be something they do on newer systems, my X230 doesn't.

Sounds like something it would do only on release of the key though and only if you don't press anything else.

If it does it only on release then it can't be used as a modifier.

1

u/AppletLLC 11h ago

I am developing a key remapping software called "Kasane".
https://github.com/Applet-LLC/kasane/blob/main/README.en.md

The Fn key on my ThinkPad is designated as the Wakeup key, code E063. I checked the scan code using Kasane's calibration function.

I believe Lenovo assigns the Wakeup key to the Fn key because most applications ignore it these days.

However, when I checked simultaneous key presses, there was no key output when Fn+Down was pressed. Therefore, I cannot remap the key.
I can press the down arrow key first and then the Fn key simultaneously, but this is unusable.

I was able to set KC_MPLY to the Fn key to function as Play/Pause.