有没有办法在macbook pro上交换linux中的fn(函数)和控制键?

时间:2022-06-22 03:57:56

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?

我不在乎这是在bios或内核模块或软件中完成的。是否有任何方法可以使'fn'键作为'控制'并且'控制'键在macbook pro上运行的linux中充当'fn'?

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

PS。您可以使用应用程序KeyRemap4MacBook在OSX中使用软件执行此操作。

1 个解决方案

#1


3  

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

尝试命令“xev”并按Fn键。

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

在我的电脑(Lenovo T60)上,当我按下Fn键时,我在终端中看到了这个:

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.

所以Fn键是键码151.我的左控制是37.然后你可以重新映射,现在知道它们生成的键码。

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

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

#1


3  

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

尝试命令“xev”并按Fn键。

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

在我的电脑(Lenovo T60)上,当我按下Fn键时,我在终端中看到了这个:

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.

所以Fn键是键码151.我的左控制是37.然后你可以重新映射,现在知道它们生成的键码。

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

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