Is there any way to change fn (function) and control functions in linux on macbook pro?

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

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

+4
source share
1 answer

Try the xev command and press Fn.

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 key code 151. My left control is 37. Then you can reassign, knowing which key codes they generate.

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

+3
source

Source: https://habr.com/ru/post/1336576/


All Articles