用镜头记录,用心灵体验 | 订阅本站 | 所有笔记 | 亲和力设计 | 流量

DB2 学习笔记

博客话题:DB2,Linux,Web,业余无线电,户外,摄影,截拳道,Thankpad,其他

Linux

Linux 支持鼠标、键盘即插即用

xorg-server-1.4 发布了有一段时间,配合hal-0.5.10 以及evdev-1.2 可以支持鼠标、键盘的即插即用(hotplug)。

上一次的evdev 升级允许在xorg.conf 中仅仅指定Device 名称即可,不需要指定Driver,xorg 会自动搜索合适的驱动程序,这一此更彻底,在xorg.conf 中不需要进行任何InputDevice 有关的设置。

如果升级到了以上版本,可以修改xorg.conf 来使用hotplug 功能,修改非常简单,移除所有的InputDevice Section 和相关行即可。

Section "InputDevice"
...
EndSection
Section "ServerLayout"
...
InputDevice	"Trackpoint" "CorePointer"
InputDevice "Logitech MX1000" "SendCoreEvents"
InputDevice	"Externel USB Mouse" "SendCoreEvents"
InputDevice	"Generic Keyboard" "CoreKeyboard"
EndSection

移除之后,重启X,我的trackpoint、无线鼠标都工作得很好,甚至罗技的四向滚轮也可以正常驱动(仅仅横滚的方向弄反了:) )。

Xake 在这个讨论中对这次升级做了一些更详细的描述,同时也澄清了一些问题。在升级到这些版本之后,有些人遇到了Up键与PrintScreen键混在一起的情况,也包括我,尝试了Xake 的清空所有自定义属性 的方法,但不奏效。最终Disable 了PrintScreen 键,Up键恢复正常,等待fix。

一点题外话,在升级后,很多人遇到了类似的问题,并且抱怨xorg, evdev, 或是hal,Xake 很乐于帮助人们解决问题,但一再强调:

HAL is not the problem. DBUS is not the problem. xf86-input-evdev is not the problem. You configuration is the problem.

的确,如果希望使用最易用的linux,那么应该选择Ubuntu,而不是Gentoo,而遇到了以上问题,也是因为指定了允许升级不稳定版的关键字 ~arch:

ACCEPT_KEYWORDS="~x86"

每一次emerge --sync,看到成百上千的包更新,心里都会莫名的感动,理解Xake,想起几篇老文章,翻出来:

 

Alex's picture

my email address in picture

搜索|Search

相似文章|Related Entries

按月归档|By Month

2009
07
2008
11
10
07
05
04
03
02
01
2007
12
10
07
06
05
04
03
02
01
2006
12
11
10
09
08
07
06
05
04
03
02
01
2005
11
10
09
08
07
04
03
2004
12
11
10
09
08
07
06
05
04
03
02
01
2003
12
10
09
08
06
2002
09
08
04
03
02
2001
12
09
07
06
05

我读|My Books

db2

我的链接|My Links

我的朋友|My Friends

Creative Commons License
This blog is licensed under a Creative Commons License.
Movable Type 4 Logo