[svlug] start usb mouse after X has started?

clee@spiralis.merseine.nu clee at spiralis.merseine.nu
Sun Apr 6 12:28:19 PDT 2003


Hi Matt, 

What you want to happen is possible; on my computers, I have the
ability to plugin a USB mouse anytime--before or after X starts up
(I'm using XFree 4.1).  Unfortunately, I worked this out a while ago,
so the process is no longer fresh in my mind.  I think that the USB
kernel modules are being loaded automatically, but I'm not sure---I
don't have my laptop available to check and my desktop doesn't get the
mouse changed anymore.

One tidbit that I remember: configure both the default pointer
"Mouse0" and the potential USB mouse in your XFConfig-4 file like so
(here's the example I have a for serial mouse and a USB mouse on my
desktop). Make sure that the "AllowMouseOpenFail" option is set.
Here's an example:

Section "ServerLayout"
        Option "AllowMouseOpenFail"  "1"
	Identifier "XFree86 Configured"
	Screen      0  "Screen0" 0 0
# when using both serial and USB
	InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Mouse1"  "SendCoreEvents"
# when using just USB
#        InputDevice    "Mouse1"  "CorePointer"
#	InputDevice    "Keyboard0" "CoreKeyboard"
        Option "AllowMouseOpenFail"  "1"
EndSection

"Mouse1" was the USB mouse.

-chris



More information about the svlug mailing list