仅作记录之用。因为想将hal从系统中移除,目前只剩下xorg-server未禁用HAL了,xorg-server要到1.8的时候才会用udev代替之。
Disabling the use of HAL
Some users wish to disable the use of HAL. The X server provides two options to achieve this:
- 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 the user.
- 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).
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.
本文介绍了如何通过禁用X服务器中的HAL(硬件抽象层)来避免设备重复添加的问题。主要提供了两种方法:一是禁用AutoAddDevices选项,二是设置AllowEmptyInput为false。通常情况下,仅需禁用AutoAddDevices即可。
315

被折叠的 条评论
为什么被折叠?



