Xorg and HAL

A few things have been brewing in Linux-world concerning the replacement of HAL for some time now: Ubuntu’s Lucid Lynx (10.04) for example will ship without it.

Xorg 1.7.4 was uploaded to Debian/unstable three days ago and comes with udev support, which also means that support for configuration of input devices via HAL was dropped (at least for Linux).

So, in case you might wonder how to configure your input devices, here’s an example for my Synaptics touchpad. Similar to HAL, put your .fdi-files into “/etc/udev/rules.d/”.

ACTION!="add|change", GOTO="xorg_synaptics_end"
KERNEL!="event*", GOTO="xorg_synaptics_end"
ENV{ID_INPUT_TOUCHPAD}!="1", GOTO="xorg_synaptics_end"

ENV{x11_options.MinSpeed}="0.50"
ENV{x11_options.MaxSpeed}="1.3"
ENV{x11_options.AccelFactor}="0.025"

LABEL="xorg_synaptics_end"

Although you can get rid of HAL completely, some (Gnome-) packages are still built with HAL support and dependencies. I for example had to rebuild gnome-power-manager and sound-juicer but after that I was able to disable HALs start-script. Another problem you might face is the dependency of bluez (the bluetooth implementation) on HAL.

If you’re interested: Xorg developer about udev-directions

One thought on “Xorg and HAL”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.