evdev hacks

Peter Hutterer mailinglists at who-t.net
Thu Apr 19 15:57:02 PDT 2007


On 19/04/2007, at 19:36 , Peter Hutterer wrote:
> The current evdev driver shoots the server when you hotplug devices  
> (sigaborts on double free, segfaults when you fix that, etc.) The  
> following patch fixes these problems and hotplugging works  
> reliably. But it changes the behaviour of the driver slightly.
>
> Previously evdev kept watching the device file until something  
> happened, and then bypassed all the dbus hotplugging and added the  
> device itself. So it was basically two separate hotplugging  
> mechanisms that didn't know about each other. One inside the driver  
> and one inside the server.
>
> If you try to add a device that doesn't exist, nothing will happen,  
> and you will have to try again later when the device actually  
> exists. Hotplugging devices _always_ has to be initiated by a dbus  
> command.
>
> If there's no complaints about this, I'll push it in the next few  
> days.

jeepers, my brain must have already been deep-fried when I wrote this.

To clarify above text: The last paragraph explains behaviour with the  
patch applied. So after the patch everything has to go through dbus.

Cheers,
   Peter

--
Multi-Pointer X Server
http://wearables.unisa.edu.au/mpx





More information about the xorg mailing list