8

I don't care if this is done in the bios or a kernel module or software. Is there any way at all to do make the 'fn' key act as 'control' and the 'control' key act as 'fn' in linux running on a macbook pro?

PS. You can do this with software in OSX with the application KeyRemap4MacBook.

Laurel
  • 5,965
  • 14
  • 31
  • 57

1 Answers1

2

Try the command "xev" and press the Fn key.

On my computer (Lenovo T60), I see this in the terminal when I press the Fn key:

KeyPress event, serial 33, synthetic NO, window 0x3c00001,
    root 0x6d, subw 0x0, time 2266123481, (652,782), root:(655,915),
    state 0x10, keycode 151 (keysym 0x1008ff2b, XF86WakeUp),

So the Fn key is keycode 151. My left control is 37. Then you can remap, now knowing the key codes they generate.

https://web.archive.org/web/20090202093048/http://www.columbia.edu/~djv/docs/keyremap.html

Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108
Arno Teigseth
  • 199
  • 2
  • 10