View previous topic :: View next topic |
Author |
Message |
curious_bob l33t


Joined: 05 Dec 2003 Posts: 636 Location: San Francisco, CA
|
Posted: Thu Dec 11, 2003 9:14 am Post subject: wheel mouse problem |
|
|
How do I get linux to recognize the wheel on my mouse? |
|
Back to top |
|
 |
deribin n00b

Joined: 03 Feb 2003 Posts: 70 Location: Vancouver
|
Posted: Thu Dec 11, 2003 9:25 am Post subject: Re: wheel mouse problem |
|
|
curious_bob wrote: | How do I get linux to recognize the wheel on my mouse? |
If you need to use wheel in X you can try to put followed lines into your
/etc/X11/XF86Config-4 file:
Code: | Section "InputDevice"
Identifier "USBMouse"
Driver "mouse"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/input/mice"
EndSection |
Just don't forget to replace "Protocol" and "Device" by the appropriate values. |
|
Back to top |
|
 |
CheshireCat Guru


Joined: 25 Aug 2002 Posts: 572
|
Posted: Thu Dec 11, 2003 9:28 am Post subject: |
|
|
Need a bit more info to answer this... what are you trying to use the wheel with (X, I'm guessing?), what type of mouse is it, how is it connected (USB, PS/2, serial?)...
For X, you need to make sure that X is configured for the right kind of mouse, and you need something in your XF86Config like this:
Code: | Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
OTHER MOUSE OPTIONS HERE
Option "ZAxisMapping" "4 5"
EndSection |
The ZAxisMapping option here causes X to send button presses for buttons 4 and 5 when you roll the wheel up or down, which is what most X applications expect. |
|
Back to top |
|
 |
curious_bob l33t


Joined: 05 Dec 2003 Posts: 636 Location: San Francisco, CA
|
Posted: Thu Dec 11, 2003 10:09 am Post subject: |
|
|
My mouse is a ps/2 laser mouse. It was made by A4 Tech (some random third party)
This is what my Xconfig looks like
Code: |
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
Option "zAxisMapping""4 5"
|
|
|
Back to top |
|
 |
CheshireCat Guru


Joined: 25 Aug 2002 Posts: 572
|
Posted: Thu Dec 11, 2003 10:54 am Post subject: |
|
|
Is it just 2 buttons and a wheel/button? You probably need to set the protocol to "IMPS/2". Most of the wheel mice are IntelliMouse compatible. Some of the newer ones (probably with more buttons) might need "ExplorerPS/2". These will probably function with 3 buttons and a wheel with "IMPS/2", as long as you don't mind the extra buttons not doing anything. |
|
Back to top |
|
 |
deribin n00b

Joined: 03 Feb 2003 Posts: 70 Location: Vancouver
|
Posted: Thu Dec 11, 2003 11:05 am Post subject: |
|
|
Is it important to write "ZAxisMapping" or "zAxisMapping"?
Is it case sensitive? |
|
Back to top |
|
 |
CheshireCat Guru


Joined: 25 Aug 2002 Posts: 572
|
Posted: Thu Dec 11, 2003 11:24 am Post subject: |
|
|
Config file keywords are case-insensitive and ignore "_", according to man XF86Config, and most strings ignore case, "_" and " ". |
|
Back to top |
|
 |
|