On 12/23/05, Lares Moreau <[EMAIL PROTECTED]> wrote:
> Does anyone know of a way to have my USB Mouse dynamicly loaded under
> Xorg?

If you are using a 2.6 kernel, use /dev/input/mice as your input
device, instead of whatever you are using now.

You can use that as your only input device, or like me, configure it
as an additional input device.

The relevant sections of my xorg.conf are:

Section "ServerLayout"
        Identifier     "Default"
        Screen         0  "LCD" 0 0
        InputDevice    "touchpad" "CorePointer"
        InputDevice    "usbmouse"
        InputDevice    "keyboard" "CoreKeyboard"
EndSection

Section "InputDevice"
        Identifier  "touchpad"
        Driver      "synaptics"
        Option      "Device" "/dev/input/event1"
        Option      "Protocol" "event"
        Option      "SHMConfig" "On"
        Option      "LeftEdge" "1400"
        Option      "TopEdge" "1550"
        Option      "RightEdge" "5900"
        Option      "BottomEdge" "4350"
        Option      "EdgeMotionUseAlways" "On"
        Option      "EdgeMotionMinZ" "75"
        Option      "EdgeMotionMaxZ" "90"
        Option      "EdgeMotionMinSpeed" "50"
        Option      "EdgeMotionMaxSpeed" "1000"
        Option      "MinSpeed" "0.0"
        Option      "MaxSpeed" "0.3"
        Option      "AccelFactor" "0.3"
        Option      "UpDownScrolling" "On"
        Option      "LeftRightScrolling" "Off"
        Option      "Buttons" "8"
        Option      "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
        Identifier  "usbmouse"
        Driver      "mouse"
        Option      "Protocol" "ExplorerPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "Buttons" "8"
        Option      "ZAxisMapping" "4 5"
        Option      "SendCoreEvents" "On"
EndSection

The only tricky thing is that I have to make sure that my trackpad (a
PS/2 mouse) gets setup by the kernel before the USB mouse.  So I build
PS/2 mouse support into my kernel, and load usbhid as a module.  I
also have hibernate reload the usbhid module when I do a
suspend/stanby cycle.

-Richard

-- 
gentoo-user@gentoo.org mailing list

Reply via email to