LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: zhou3345

笔记本用户有福了!(使用acpi-support,支持多媒体键盘及相关功能键)

[复制链接]
发表于 2008-4-28 09:26:33 | 显示全部楼层
你的x60不需要这么麻烦吧?kernel里面有关于thinkpad的选项,编完直接支持Fn,连音量按键都支持的。
Post by liwenqiu;1842260
谢谢,我正好换没设置Fn,又是Intel的集成显卡,回头试试
回复 支持 反对

使用道具 举报

发表于 2008-4-28 10:01:51 | 显示全部楼层
是个linux 发行版 都可以用么?比如arch?
我看 楼主里的发行版是 ubuntu
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-28 10:50:14 | 显示全部楼层
Post by DerekTan
你的x60不需要这么麻烦吧?kernel里面有关于thinkpad的选项,编完直接支持Fn,连音量按键都支持的。

音量,thinklight(屏幕上方的灯),屏幕亮度是默认都支持的,不需要任何设置。
但Fn-F3(关闭屏幕),Fn-F4(待机),Fn-F5(无线),Fn-F7(外接显示设备),Fn-F12(休眠)等功能都是需要额外设置才能用的。

我的T43在装了acpi-support后,除了Fn-F7没有试用,其他都可以正常使用了。包括原来手动设置一直没有成功过的Fn-F3(关闭屏幕)功能。
Post by moonjava
是个linux 发行版 都可以用么?比如arch?
我看 楼主里的发行版是 ubuntu  
I'm a Gentooer。兄弟可能不太熟悉gentoo,eix, overlay, ebuild等都是gentoo特有的术语。

这个包是ubuntu开发的,在Debian里有。其他的发行版我没用过,移植过去应该不难,特别是arch。再不济就自己编译吧,貌似arch下编译软件也很方便。

Post by 亞利艾爾

貌似问题没有解决,问题如下:
  我使用 acpi-support,参考了版中<多媒体键设置指南>一文和 Wiki 上的指南, 现在Fn+Fxx 能从 Alt+F12 的控制台上看到“executing /etc/acpi/xxx.sh”字样,但是在“showkey -s”“showkey -k”以及 Gnome 下的 Keyboard Shortcut 中均没有反应。
  我不太明白 acpi_fakekey.c 的意思,也不知道为什么出现 Alt+F12 中有信息但程序都不认的情况。

不知道兄弟的机器是什么型号的。Tip中的acpi_fakekey.c应该是一个启用功能键或多媒体键(如Fn,等)的一个小程序。
(经查证,其正是acpi-support使用的主程序)

原来没有用acpi-support的时候,我是用“echo enable,0xffff > /proc/acpi/ibm/hotkey”来启用Fn键的,用了acpi-support之后,没有用这一句话,也可以很好的使用Fn键了。

如果是thinkpad的机器,应该不用任何其他的设置就可以有上面我列出的Fn快捷功能了。

推荐大家用acpi_support,就是为了让功能键设置更方便,而不是说没有其他的替代方法了。顺便也了解一下acpi_support可以支持哪些品牌的laptop。还请成功的朋友都来说下心得,给那些还在为此苦恼的兄弟做的参考
回复 支持 反对

使用道具 举报

发表于 2008-4-28 11:09:30 | 显示全部楼层
回头我再研究研究吧……
还有就是我用 Firefox 看这个页面怎么有问题。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-28 11:31:22 | 显示全部楼层
Post by 亞利艾爾
回头我再研究研究吧……
还有就是我用 Firefox 看这个页面怎么有问题。

貌似是我用错了引用

对了,acpi_fakekey程序就是 acpi-support使用的主程序,无须另行安装。
qlist acpi-support
  1. /etc/acpi/ac.d/.keep_sys-power_acpi-support-0
  2. /etc/acpi/asus-brn-up.sh
  3. /etc/acpi/thinkpad-thinklight.sh
  4. /etc/acpi/asus-brn-down.sh
  5. /etc/acpi/hibernate.sh
  6. /etc/acpi/local/.keep_sys-power_acpi-support-0
  7. /etc/acpi/resume.d/58-proc-sysfs-restore-state.sh
  8. /etc/acpi/resume.d/10-thinkpad-standby-led.sh
  9. /etc/acpi/resume.d/69-services.sh
  10. /etc/acpi/resume.d/90-xscreensaver.sh
  11. /etc/acpi/resume.d/49-855-resolution-set.sh
  12. /etc/acpi/resume.d/55-screen.sh
  13. /etc/acpi/resume.d/15-video-post.sh
  14. /etc/acpi/resume.d/62-ifup.sh
  15. /etc/acpi/resume.d/67-sound.sh
  16. /etc/acpi/resume.d/17-video-restore.sh
  17. /etc/acpi/resume.d/.keep_sys-power_acpi-support-0
  18. /etc/acpi/resume.d/40-infra-red.sh
  19. /etc/acpi/resume.d/50-time.sh
  20. /etc/acpi/resume.d/60-asus-wireless-led.sh
  21. /etc/acpi/resume.d/50-tosh-restore-brightness.sh
  22. /etc/acpi/resume.d/50-framebuffer-enable.sh
  23. /etc/acpi/resume.d/65-console.sh
  24. /etc/acpi/resume.d/35-modules-load.sh
  25. /etc/acpi/resume.d/72-acpi-pain.sh
  26. /etc/acpi/resume.d/13-855-resolution-set.sh
  27. /etc/acpi/resume.d/98-acpi-unlock.sh
  28. /etc/acpi/resume.d/90-thinkpad-unstandby-led.sh
  29. /etc/acpi/batterybtn.sh
  30. /etc/acpi/ibm-wireless.sh
  31. /etc/acpi/thinkpad-brightness-up.sh
  32. /etc/acpi/thinkpad-stretchortouchpad.sh
  33. /etc/acpi/asus-wireless.sh
  34. /etc/acpi/video_brightnessup.sh
  35. /etc/acpi/thinkpad-thinkpad.sh
  36. /etc/acpi/battery.d/.keep_sys-power_acpi-support-0
  37. /etc/acpi/stopbtn.sh
  38. /etc/acpi/volupbtn.sh
  39. /etc/acpi/prevbtn.sh
  40. /etc/acpi/start.d/.keep_sys-power_acpi-support-0
  41. /etc/acpi/start.d/10-save-dmidecode.sh
  42. /etc/acpi/start.d/60-asus-wireless-led.sh
  43. /etc/acpi/mediabtn.sh
  44. /etc/acpi/toshbright.sh
  45. /etc/acpi/power.sh
  46. /etc/acpi/events/ac
  47. /etc/acpi/events/sony-brightness-up
  48. /etc/acpi/events/tosh-brightness-down
  49. /etc/acpi/events/tosh-wireless
  50. /etc/acpi/events/asus-brightness-up
  51. /etc/acpi/events/asus-media-eject
  52. /etc/acpi/events/ibm-wireless
  53. /etc/acpi/events/tosh-brightness-up
  54. /etc/acpi/events/panasonic-brightness-up
  55. /etc/acpi/events/thinkpad-brightness-down
  56. /etc/acpi/events/thinkpad-thinklight
  57. /etc/acpi/events/panasonic-volume-up
  58. /etc/acpi/events/ibm-ultrabay-insert
  59. /etc/acpi/events/lenovo-touchpad
  60. /etc/acpi/events/asus-volume-up
  61. /etc/acpi/events/video_brightnessup
  62. /etc/acpi/events/asus-volume-down
  63. /etc/acpi/events/asus-volume-mute
  64. /etc/acpi/events/ibm-videobtn
  65. /etc/acpi/events/panasonic-sleepbtn
  66. /etc/acpi/events/tosh-media
  67. /etc/acpi/events/tosh-sleep
  68. /etc/acpi/events/thinkpad-thinkpad
  69. /etc/acpi/events/sony-volume-down
  70. /etc/acpi/events/asus-a6u-touchpad
  71. /etc/acpi/events/ibm-lockbtn
  72. /etc/acpi/events/thinkpad-brightness-up
  73. /etc/acpi/events/asus-media-play-pause
  74. /etc/acpi/events/sony-hibernate
  75. /etc/acpi/events/ibm-hibernatebtn
  76. /etc/acpi/events/sony-eject
  77. /etc/acpi/events/panasonic-brightness-down
  78. /etc/acpi/events/sony-sleep
  79. /etc/acpi/events/thinkpad-cmos
  80. /etc/acpi/events/thinkpad-mute
  81. /etc/acpi/events/thinkpad-zoom
  82. /etc/acpi/events/lenovo-lockbtn
  83. /etc/acpi/events/lidbtn
  84. /etc/acpi/events/sleepbtn
  85. /etc/acpi/events/sony-brightness-down
  86. /etc/acpi/events/sony-mute
  87. /etc/acpi/events/thinkpad-volume-up
  88. /etc/acpi/events/thinkpad-volume-down
  89. /etc/acpi/events/asus-wireless
  90. /etc/acpi/events/tosh-mail
  91. /etc/acpi/events/tosh-lock
  92. /etc/acpi/events/tosh-next
  93. /etc/acpi/events/tosh-mute
  94. /etc/acpi/events/tosh-play
  95. /etc/acpi/events/tosh-prev
  96. /etc/acpi/events/tosh-stop
  97. /etc/acpi/events/sony-volume-up
  98. /etc/acpi/events/asus-mail
  99. /etc/acpi/events/asus-lock
  100. /etc/acpi/events/battery
  101. /etc/acpi/events/asus-brightness-down
  102. /etc/acpi/events/asus-touchpad
  103. /etc/acpi/events/tosh-hibernate
  104. /etc/acpi/events/tosh-www
  105. /etc/acpi/events/panasonic-mute
  106. /etc/acpi/events/panasonic-volume-down
  107. /etc/acpi/events/ibm-ultrabay-eject
  108. /etc/acpi/events/video_brightnessdown
  109. /etc/acpi/events/panasonic-hibernatebtn
  110. /etc/acpi/events/videobtn
  111. /etc/acpi/events/asus-media-next
  112. /etc/acpi/events/asus-media-prev
  113. /etc/acpi/events/asus-media-stop
  114. /etc/acpi/events/asus-internet
  115. /etc/acpi/events/tosh-battery
  116. /etc/acpi/events/panasonic-lockbtn
  117. /etc/acpi/events/ibm-sleepbtn
  118. /etc/acpi/events/tosh-ibutton
  119. /etc/acpi/hibernatebtn.sh
  120. /etc/acpi/nextbtn.sh
  121. /etc/acpi/video_brightnessdown.sh
  122. /etc/acpi/panapower.sh
  123. /etc/acpi/tosh-wireless.sh
  124. /etc/acpi/ejectbtn.sh
  125. /etc/acpi/prepare.sh
  126. /etc/acpi/panabright.sh
  127. /etc/acpi/screenblank.sh
  128. /etc/acpi/lid.sh
  129. /etc/acpi/videobtn.sh
  130. /etc/acpi/sleep.sh
  131. /etc/acpi/events.d/.keep_sys-power_acpi-support-0
  132. /etc/acpi/thinkpad-zoom.sh
  133. /etc/acpi/always-mute.sh
  134. /etc/acpi/thinkpad-ultrabay-insert.sh
  135. /etc/acpi/asus-touchpad.sh
  136. /etc/acpi/thinkpad-lockorbattery.sh
  137. /etc/acpi/thinkpad-ultrabay-eject.sh
  138. /etc/acpi/lockbtn.sh
  139. /etc/acpi/mailbtn.sh
  140. /etc/acpi/thinkpad-brightness-down.sh
  141. /etc/acpi/resume.sh
  142. /etc/acpi/sleepbtn.sh
  143. /etc/acpi/mutebtn.sh
  144. /etc/acpi/webbtn.sh
  145. /etc/acpi/sonybright.sh
  146. /etc/acpi/suspend.d/10-thinkpad-standby-led.sh
  147. /etc/acpi/suspend.d/52-disable-wol.sh
  148. /etc/acpi/suspend.d/90-framebuffer-stop.sh
  149. /etc/acpi/suspend.d/65-services-stop.sh
  150. /etc/acpi/suspend.d/80-video-pci-state.sh
  151. /etc/acpi/suspend.d/.keep_sys-power_acpi-support-0
  152. /etc/acpi/suspend.d/60-generate-modules-list.sh
  153. /etc/acpi/suspend.d/85-alsa-state.sh
  154. /etc/acpi/suspend.d/30-proc-sysfs-save-state.sh
  155. /etc/acpi/suspend.d/05-acpi-lock.sh
  156. /etc/acpi/suspend.d/75-console-switch.sh
  157. /etc/acpi/suspend.d/50-tosh-save-brightness.sh
  158. /etc/acpi/suspend.d/55-down-interfaces.sh
  159. /etc/acpi/suspend.d/70-modules-unload.sh
  160. /etc/acpi/suspend.d/50-irda-stop.sh
  161. /etc/acpi/suspend.d/80-video-vesa-state.sh
  162. /etc/acpi/playbtn.sh
  163. /etc/acpi/voldownbtn.sh
  164. /etc/acpi/wireless.sh
  165. /etc/conf.d/acpi-support
  166. /etc/init.d/acpi-support
  167. /var/lib/acpi-support/.keep_sys-power_acpi-support-0
  168. [color="Red"]/usr/bin/acpi_fakekey[/color]
  169. /usr/share/doc/acpi-support-0.103/README.bz2
  170. /usr/share/acpi-support/Acer, inc..config
  171. /usr/share/acpi-support/SHARP Corporation.config
  172. /usr/share/acpi-support/FUJITSU SIEMENS.config
  173. /usr/share/acpi-support/ECS.config
  174. /usr/share/acpi-support/key-constants
  175. /usr/share/acpi-support/Hewlett-Packard.config
  176. /usr/share/acpi-support/power-funcs
  177. /usr/share/acpi-support/state-funcs
  178. /usr/share/acpi-support/NEC Computers International.config
  179. /usr/share/acpi-support/Acer.config
  180. /usr/share/acpi-support/Dell Computer Corporation.config
  181. /usr/share/acpi-support/TOSHIBA.config
  182. /usr/share/acpi-support/policy-funcs
  183. /usr/share/acpi-support/Compaq.config
  184. /usr/share/acpi-support/FUJITSU.config
  185. /usr/share/acpi-support/Sony Corporation.config
  186. /usr/share/acpi-support/screenblank
  187. /usr/share/acpi-support/ASUSTeK Computer Inc..config
  188. /usr/share/acpi-support/Samsung Electronics.config
  189. /usr/share/acpi-support/IBM.config
  190. /usr/share/acpi-support/56548.config
  191. /usr/share/acpi-support/Dell Inc..config
  192. /usr/share/acpi-support/device-funcs
复制代码
回复 支持 反对

使用道具 举报

发表于 2008-4-28 12:00:22 | 显示全部楼层
我知道 acpi_fakekey 是它的主程序。看 debian 上的说明,好像是说这个截获 ACPI Event 然后生成 keycode。但是我这里截获是截获了,好像没有生成 keycode……
回复 支持 反对

使用道具 举报

发表于 2008-6-15 10:52:20 | 显示全部楼层
好东西终于能用上了,顶
回复 支持 反对

使用道具 举报

发表于 2008-6-15 12:06:14 | 显示全部楼层
不太会更新 Overlay 中的程序。我上 Bugzilla 上提交 0.109 版本的 ebuild 和 patch,结果被 INVALID 了。Overlay 现在还是 0.103 版。
回复 支持 反对

使用道具 举报

发表于 2008-6-15 12:48:29 | 显示全部楼层
提交BUG ebuild和patch的话在gentoo文档里有说明,已译成中文了
回复 支持 反对

使用道具 举报

发表于 2008-6-15 13:10:08 | 显示全部楼层
但 Bugzilla 不让提交 Overlay 中的 ebuild,即使 Sunrise 是官方的 Overlay。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表