|
升级到2.30后,在任何窗口按up都是跳出保存抓图的窗口,不知道怎么处理。Xorg1.8.1,去掉了hal的。hal服务也没有启动。google找到这个,没太看懂:
http://forums.gentoo.org/viewtopic-p-4790294.html
应该和我的现象一样的,不知道他怎么解决的。
--------------------------------------
这个问题解决了,首先贴出我的xorg.conf
yj@YJ ~ $ cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder75) Thu Apr 22 11:44:23 PDT 2010
Section "ServerFlags"
Option "AutoAddDevices" "false"
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
Option "Logo" "no"
BoardName "G98 [GeForce 9300M GS]"
EndSection
其实关键是那个AutoAddDevices。原因应该是我的键盘设备被添加了多次,所以我按up的时候触发了抓屏的组合键。是下面这段话给我灵感的,勉强翻译一下,不要笑我的英语水平哈:
Disabling the use of HAL
禁用HAL
Some users wish to disable the use of HAL. The X server provides two options to achieve this:
对于想禁用HAL的用户,X server提供了两种途径:
Option "AutoAddDevices" "false"
If this option is disabled, then no devices will be added from HAL events. Note that if this option is disabled, AllowEmptyInput is automatically disabled too unless explicitly enabled by the user.
如果这个选项是false的,将不会有设备从HAL事件添加进来。注意如果这个选项设置为false了,AllowEmptyInput将自动设置为false,除非用户指定它为true。
Option "AllowEmptyInput" "false"
If AllowEmptyInput is false, the server checks the xorg.conf for core devices (Option "CorePointer" and Option "CoreKeyboard"). If none are present and referenced in the ServerLayout section, the server automatically adds the first mouse and keyboard device in the xorg.conf or, if neither are present, the hard-coded default input devices. Disabling AllowEmptyInput also forces the server to honor devices using the 'mouse', 'kbd' and 'vmmouse' drivers (these devices are ignored by default).
如果AllowEmptyInput为false,Xserver将将在xorg.conf中的ServerLayout字段中检查core设备的配置:CorePointer和CoreKeyboard的配置,Xserver将自动添加在xorg.conf中配置的第一个鼠标、键盘设备到系统,如果没有配置的话,就添加硬编码的默认设备。下面这句不知道怎么理解honor这个词……
In most cases, simply disabling AutoAddDevices is the correct way to disable the use of HAL. Note that if AllowEmptyInput is off and AutoAddDevices is on, then devices may be added multiple times (once as specified in the xorg.conf, and once as listed by HAL). This leads to duplicate button presses and triplicate key presses.
通常,禁用HAL的正确方式是设置AutoAddDevices为false。如果AutoAddDevices设置为on、AllowEmptyInput为off的话可能导致设备被添加多次(一次是通过xorg.conf,一次是HAL),这将导致两个或者多个键盘事件被触发。
最后补上出处:
https://fedoraproject.org/wiki/Input_device_configuration |
|