You are not logged in.

#1 2014-03-28 18:53:58

sasoiliev
Member
Registered: 2012-12-08
Posts: 4

Keyboard remapping - scancodes/keycodes and Fn key

Hello,

I'm using Archlinux on a MacBook Pro and I'm overall pretty happy.

However I desperately want to swap my Fn and Control keys. I know that this is a tricky business but I also know that this can be done in OS X via a kext module, so I hope it can be done in Linux as well.

The output of showkey prints when I press Fn:

keycode 464 press
keycode 464 release

showkey -s however prints nothing when I press just Fn.

Here's the output of evtest:

Event: time 1396031474.937906, -------------- SYN_REPORT ------------
Event: time 1396031475.169971, type 1 (EV_KEY), code 464 (KEY_FN), value 1

It does not print an EV_MSC line as the Control key does:

Event: time 1396031475.561965, -------------- SYN_REPORT ------------
Event: time 1396031475.729966, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0
Event: time 1396031475.729966, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1

So, it looks like my plan to remap the keys using scancodes (via setkeycodes) will not work. Remapping via loadkeys (keycode 464 = Control) also does not work - the Fn+<letter> combination is treated as if just the letter has been pressed.

I will appreciate any kind of help as I am pretty stuck at this point.

Thanks!

P.S.: Sorry if the topic is in the wrong forum.

Offline

Board footer

Powered by FluxBB