mac键盘在ubuntu下开启fn功能按键

转载:http://wiki.ubuntu.org.cn/UbuntuHelp:AppleKeyboard

Change Function Key behavior

This section of the document describe how to change the behavior of 'fn' key to better match what user expect. (See #201711#162083) Here a description of each behavior :

  • 0 = disabled : Disable the 'fn' key. Pressing 'fn'+'F8' will behave like you only press 'F8'
  • 1 = fkeyslast : Function keys are used as last key. Pressing 'F8' key will act as a special key. Pressing 'fn'+'F8' will behave like a F8.
  • 2 = fkeysfirst : Function keys are used as first key. Pressing 'F8' key will behave like a F8. Pressing 'fn'+'F8' will act as special key (play/pause).
Ubuntu 9.04 (Jaunty Jakalope)
Temporarily

This section describe how to change the behavior of 'fn' with immediate effect (Restarting will reset the configuration). Execute the following commands to change the fnmode parameters. See section above for a description of available value.

$ sudo bash
# echo 2 > /sys/module/hid_apple/parameters/fnmode
# exit
Permanently

This section describe how to change the behavior of 'fn' permanently. There is many way to proceed with this modification. Each sub section describe one way to permanently change the configuration.

With .conf file (Recommended)

1. Edit or create the file /etc/modprobe.d/hid_apple.conf, e.g.:

sudo gedit /etc/modprobe.d/hid_apple.conf

2. Add this line to the previously open file.

options hid_apple fnmode=2

3. Save the file and execute the following command to notify hid_apple module to reload it's configuration.

sudo update-initramfs -u

4. Reboot

With rc.local

1. Edit the /etc/rc.local file.

sudo gedit /etc/rc.local

2. Add this line near the end of the file, before the "exit" line:

echo 2 > /sys/module/hid_apple/parameters/fnmode

3. Reboot

With sysfs.conf

1. Edit the /etc/sysfs.conf file.

sudo gedit /etc/sysfs.conf

2. Add this lines to the end of the file.

module/hid_apple/parameters/fnmode = 2

3. Reboot

 

转载于:https://www.cnblogs.com/3me-linux/p/4200363.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值