LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 954|回复: 4

Xorg1.8.x去掉hal后的配置(已解决。原帖名字:gnome下Up键成了抓图)

[复制链接]
发表于 2010-5-20 11:38:43 | 显示全部楼层 |阅读模式
升级到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
发表于 2010-5-20 13:05:50 | 显示全部楼层
我以前也有這樣的情況,是某一個什麼 kbd 包的問題,重新 emerge 一下。
回复 支持 反对

使用道具 举报

发表于 2010-5-20 13:10:22 | 显示全部楼层
gconf-editor

依次指向:

/apps/metacity/global_keybindings

&&

/apps/metacity/keybinding_commands

试试调整命令与快捷键。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-5-20 13:50:58 | 显示全部楼层
谢谢回复!
global_keybingdings和keybinding_commands下面没有单独指定Up的,都是带组合键的,而且抓图的配置是:
global_keybingdings:
run_command_screenshot              Print
keybinding_commands:
command_screenshot                      gnome-scrrenshot

kbd相关的包有libgnomekbd kbd xf86-input-keyboard keyboard-config,都重装了。
回复 支持 反对

使用道具 举报

发表于 2010-5-21 10:29:37 | 显示全部楼层
跟 gconf 沒關係,我很久之前試過,是因為某些 kbd, keyboard 之類的包版本要對(我用 x86)
回复 支持 反对

使用道具 举报

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

本版积分规则

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