[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian and UDEV

Gabor Gombas <gombasg@sztaki.hu> writes:

> On Thu, May 18, 2006 at 07:22:47PM +0200, Goswin von Brederlow wrote:
>> E.g. how do you convert startx into an udev rule so it can load
>> the mouse modules savely?
> By the time the user types his/her password and starts startx the mouse
> will be surely detected (unless it is a broken USB device you said you
> do not want to care about).

Why should it be? Using the old style module loading on demand instead
of preloading everything with discover or friends there will be no
mouse device loaded. In that case X loads the mouse modules on start.

Before a sleep was added this always failed because of the race
condition between insmod and open of the device and udev creating the
device node.

> In case of {x|g|k}dm, by the time you sort out the boot process Xorg
> will have input device hotplug so you can start it from the fbdev rule,
> and the X server will start using the mouse automatically when it is
> detected. In the mean time adding "sleep 10" to /etc/init.d/{x|g|k}dm is
> an acceptable workaround.

It is a long way to go.


Reply to: