PDA

View Full Version : how are hal, evdev and xorg.conf related?



tbird20d
21st May 2010, 01:40 AM
In Fedora 12, I am trying to use a program that uses uinput to inject mouse events to control X applications. This worked with Fedora 9, but doesn't with Fedora 12. I see the following in my Xorg.0.log:

(II) config/hal: Adding input device Prototype IRPointer Device
(II) LoadModule: "synaptics"
(II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
(II) Module synaptics: vendor="X.Org Foundation"
compiled for 1.7.1, module version = 1.2.1
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 7.0
(II) Synaptics touchpad driver version 1.2.1
(**) Option "Device" "/dev/input/event5"
(--) Prototype IRPointer Device: no supported touchpad found
(EE) Prototype IRPointer Device Unable to query/initialize Synaptics hardware.
(EE) PreInit failed for input device "Prototype IRPointer Device"
(II) UnloadModule: "synaptics"
(EE) config/hal: NewInputDeviceRequest failed (8)

The device is not a synaptics touchpad, and so the X load of the driver is incorrect. But I don't know how to get X to ignore it's own driver and use evdev. (Or even if that's the right thing.)

Any pointers would be appreciated.

A general explanation of how hal and evdev are related, for the current X server, would be helpful.

Thanks,
-- Tim

tbird20d
21st May 2010, 05:49 PM
I found the following document, which was helpful:

https://fedoraproject.org/wiki/Input_device_configuration


The wiki page above specifies (as to May 2010) that haldaemon is being deprecated, but it still appears to be used in Fedora 12.

I switched hal from specifying the synaptics driver to specify the evdev driver for my device.

I did this by copying 10-synaptics.fdi from /usr/share/hal/fdi/policy/20thirdparty to /etc/had/fdi/policy, and changing the input_x11_driver to 'evdev'.

Now my uinput-based program has the same behavior as in previous releases.