转载: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

最新文章

  1. android 帧动画
  2. Android内存优化-内存泄漏的几个场景以及解决方式
  3. java javacv调用摄像头并拍照
  4. LINQ的First与FirstOrDefault方法和Last与LastOrDefault方法。
  5. HDU 4251 The Famous ICPC Team Again 主席树
  6. 在Apache下发布ASP.NET程序
  7. MySql安装时在Start Service处失败
  8. hlsl 的tex函数
  9. oracle检查点checkpoint信息
  10. C++的try catch到底能防止什么错误?
  11. Java使用poi对Execl简单_读_操作
  12. root用户安装的软件在普通用户不生效
  13. UIViewController 之 边框类型
  14. python学习:使用正则收集ip信息
  15. ●Joyoi 绿豆蛙的归宿
  16. input下拉框
  17. 账户和联系人 Accounts and Contacts 译
  18. uniq的坑坑
  19. 控制反转IOC与依赖注入DI - 理论篇
  20. 13年总结js,css,java xml

热门文章

  1. 《转》从系统和代码实现角度解析TensorFlow的内部实现原理 | 深度
  2. DevOps之持续集成Pipeline(一)
  3. C# SqlSugarClient分析一点
  4. Window7下安装Eclipse C/C++ Developer
  5. es之批量提交操作
  6. android 对话框显示工具类
  7. pymysql(一)检索、增加、更新、删除数据
  8. Fatal error: Class 'think\db' not found
  9. ps - 按进程消耗内存多少排序
  10. Docker容器技术入门