On Mon, Nov 11, 2002 at 05:26:23AM -0500, Zephaniah E. Hull wrote: > On Mon, Nov 11, 2002 at 11:15:27AM +0100, Vojtech Pavlik wrote: > > > > In 2.5, /sbin/hotplug is called whenever a new device > > > > appears/disappears. It's a script. Add whatever you need to notify X > > > > about the device to that script. You can even connect to X via the X11 > > > > protocol and use some extension to tell it about the new mouse. > > > > > > In recent 2.4.x as well, > > > > No. You get /sbin/hotplug called for USB devices, which is not exactly > > what you need. 2.5 will call it for Input devices as well. This is > > different, because you get all the info you get from the ioctls passed > > in shell variables. Also it works in an unified way for all input > > devices, be them USB or PS/2 or ADB or whatever ... > > > > (For USB devices you get both the USB connect and Input connect) > > Ahh, argh! > Annoying, but not /that/ much worse I suppose.
Actually, it's intentional. You may get more than one Input device per USB device for example. Or none. Or whatever. You only should care about Input devices (on 2.5). On 2.4 the best way probably is rescanning all the /dev/input/event nodes on every USB hotplug event that is for a HID-class device. > The hotplug side is still the simple one. -- Vojtech Pavlik SuSE Labs _______________________________________________ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
