Jump to content

mouse won't work [solved]


hussam
 Share

Recommended Posts

I bought a usb mouse.

I edited xorg.conf and changed '/dev/mouse' to '/dev/misc/psaux' to get it to work. but when I restart, it reverts back to '/dev/mouse' and my mouse stops working until I change it back to '/dev/misc/psaux' and restart X

So everytime I reboot, I have no mouse until I edit xorg.conf again.

this is very annoying so if anyone can help, it's much appreaciated.

How do I get it to stop reverting to /dev/mouse upon reboot?

Link to comment
Share on other sites

In the meantime, I've disabled harddrake at boot.

 

Use /dev/usbmouse or /dev/input/mice with USB mice (IMPS/2).

 

To check if Linux knows about your usb mouse:

 

ls /dev/input

 

Try cat /dev/input/whatever and move your mouse (garbage will appear if it's the right one). Press ctrl-c to cancel cat.

 

In /etc/X11/xorg.conf, use

 

Identifier "USB Mice"

Driver "mouse"

Option "Protocol" "IMPS/2"

Option "Device" "/dev/input/whatever"

Option "ZAxisMapping" "4 5"

Option "Buttons" "5"

EndSection

 

Scroll wheels actually report to xorg as buttons and they must be the highest numbered ones. So if you have a three button mouse (the default), use "ZAxisMapping" "4 5". If you have more than three buttons, use the "Button" option as in the example and use the appropriate numbers for the wheel.

 

You may also need to add "SendCoreEvents" to the InputDevice line in the Server section

 

InputDevice "USB Mice" "SendCoreEvents"

 

p.s. I stole this info from other sources - it worked for me - good luck

Link to comment
Share on other sites

Why don't you use multiple mouse entries in your xorg.conf ?

This is common practice... say something like that:

 

Section "InputDevice"

Identifier "Serial Mouse"

Driver "mouse"

Option "Protocol" "Microsoft"

Option "Device" "/dev/ttyS0"

Option "Emulate3Buttons" "true"

Option "Emulate3Timeout" "70"

Option "SendCoreEvents" "true"

EndSection

 

Section "InputDevice"

Identifier "PS/2 Mouse"

Driver "mouse"

Option "Protocol" "auto"

Option "ZAxisMapping" "4 5"

Option "Device" "/dev/psaux"

Option "Emulate3Buttons" "true"

Option "Emulate3Timeout" "70"

Option "SendCoreEvents" "true"

EndSection

 

Section "InputDevice"

Identifier "USB Mouse"

Driver "mouse"

Option "Device" "/dev/input/mice"

Option "SendCoreEvents" "true"

Option "Protocol" "IMPS/2"

Option "ZAxisMapping" "4 5"

Option "Buttons" "5"

EndSection

 

The x-server is clever enough to load just the existing mouse every time... :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...