Paul Ashton wrote:
>
> > Is there any way to tell the USB subsystem (the backport patch from
> > 2.3.99pre6, applied to 2.2.15pre20) to leave the mouse driver connected,
> > even when the mouse has been unplugged?
>
> There used to be:
>
> + * 1999/08/19 - Fixed behaviour on mouse
> + * disconnect and suspend/resume. Added module parameter "force=1"
> + * to allow opening of the mouse driver before mouse has been plugged
> + * in (enables consistent XF86Config settings).
>
> But that got removed some time ago. Since we can do this with the
> keyboard I think we should also be able to do it with the mouse.
> Ideally any USB device should be able to have some "spoofing" mode
> that allows this.
And quite right too, since it only worked for modules.
There is a much better approach now, using a mixed mode mouse emulation.
Basically you can have up to 31 mice attached, and they appear on
/dev/input/mouse0 char 13 32
up to
/dev/input/mouse30 char 13 62
And the sum of all of these also appears as
/dev/input/mice char 14 63
This device is present irrespective of the number of mice attached (even
if no mice).
So just use it for your X or gpm device
This doesn't quite handle the case for special devices that may or may
not be present and do not appear as mice. But is does handle the most
common cases.
Brad
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]