Re: Hot-plugging USB mice?

From: Lars Kellogg-Stedman (lars@larsshack.org)
Date: Mon May 01 2000 - 16:40:44 EST


> Yes, just point gpm or X or both to /dev/input/mice, char 13:63.

I think you missed a crucial point in my post -- neither X nor gpm can
deal with the fact that the mouse device disappears when the USB mouse is
unplugged (or, equivalently, if the notebook goes through a suspend/resume
cycle).

The only solution to this right now is to:

  * quit X
  * quit gpm
  * unload the mouse driver
  * reload the mouse driver

(You can't unload mousedev until gpm exits, because gpm keeps
/dev/usb/usbmouse0 open.)

The folks on the linux-usb list have suggested that the bulk of the
problem lies with the individual applications, with only minor changes
necessary to the USB drivers.

However, until this work is done it does not appear to be possible to
hotplug usb mouse devices and have things work as expected.

-- Lars

-- 
Lars Kellogg-Stedman <lars@larsshack.org> --> http://www.larsshack.org/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:09 EST