Differences between revisions 3 and 4
Revision 3 as of 2010-03-01 06:47:05
Size: 2057
Comment: we've got udev support now, link to Fedora's input config page because I'm too lazy for copy/paste today.
Revision 4 as of 2010-04-18 22:57:12
Size: 1952
Comment: reshuffle and update, udev is default in 1.8
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
== Versions that do not use HAL ==

Since the HAL project has stopped development and deprecated itself, X.Org is planning to move off HAL in the future. Support for udev instead of HAL is available in X Servers 1.8 and later and enabled by default, pending platform availability. As HAL was also used for input device configuration, a new feature has been added to X Server 1.8 to support configuration snippets in the xorg.conf.d directory. Instead of udev rules, users and distributions are encouraged to use the xorg.conf.d for configuration. Old-style xorg.conf configuration is still available.

https://fedoraproject.org/wiki/Input_device_configuration has instructions on how the new system works.
Line 15: Line 21:

Since the HAL project has stopped development and deprecated itself, X.Org is planning to move off HAL in the future. Support for udev instead of HAL is currently in git master and will be in the upcoming X Server 1.8. At the time of writing this (March 1 2010), udev support was disabled by default and needs to be enabled at configure time with ''--enable-config-udev'':
Line 21: Line 25:
 2. Direct calls to OS-dependent device notification libraries (libudev on Linux, libsysevent on Solaris, etc. - basically whatever HAL called to do this)
 3. Input driver delivered files in a new xorg.conf.d directory that use new syntax for matching devices (see patches proposed on xorg-devel)
 4. User edited xorg.conf file.
Line 26: Line 27:

https://fedoraproject.org/wiki/Input_device_configuration has instructions on how the new system works.

Xorg server and HAL

Versions that use HAL

Xorg versions 1.4 through 1.7 (and optionally later versions) use HAL for several things related to input devices:

  1. Finding input devices at startup
  2. Being notified of input device hotplugging (arrival & removal)

  3. Mapping system input devices to Xorg input driver modules (via .fdi files provided with Xorg input drivers)
  4. Setting input device options (via user-customized .fdi files)

HAL is not used by Xorg for output devices or any other devices, only input.

Versions that do not use HAL

Since the HAL project has stopped development and deprecated itself, X.Org is planning to move off HAL in the future. Support for udev instead of HAL is available in X Servers 1.8 and later and enabled by default, pending platform availability. As HAL was also used for input device configuration, a new feature has been added to X Server 1.8 to support configuration snippets in the xorg.conf.d directory. Instead of udev rules, users and distributions are encouraged to use the xorg.conf.d for configuration. Old-style xorg.conf configuration is still available.

https://fedoraproject.org/wiki/Input_device_configuration has instructions on how the new system works.

Future Versions

The currently planned replacements for the above functionality pieces are:

  1. Direct calls to OS-dependent device enumeration libraries (libudev on Linux, libdevinfo on Solaris, etc. - basically whatever HAL called to do this)

Neither DeviceKit, nor the udisks/upower/etc. replacements provide any of this functionality for input devices, and the DeviceKit authors have indicated that they do not plan to provide such functionality, suggesting direct use of the OS interfaces such as libudev instead.

XorgHAL (last edited 2010-04-18 22:57:12 by PeterHutterer)