Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wheel mouse problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
curious_bob
l33t
l33t


Joined: 05 Dec 2003
Posts: 636
Location: San Francisco, CA

PostPosted: Thu Dec 11, 2003 9:14 am    Post subject: wheel mouse problem Reply with quote

How do I get linux to recognize the wheel on my mouse?
Back to top
View user's profile Send private message
deribin
n00b
n00b


Joined: 03 Feb 2003
Posts: 70
Location: Vancouver

PostPosted: Thu Dec 11, 2003 9:25 am    Post subject: Re: wheel mouse problem Reply with quote

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
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Thu Dec 11, 2003 9:28 am    Post subject: Reply with quote

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
View user's profile Send private message
curious_bob
l33t
l33t


Joined: 05 Dec 2003
Posts: 636
Location: San Francisco, CA

PostPosted: Thu Dec 11, 2003 10:09 am    Post subject: Reply with quote

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
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Thu Dec 11, 2003 10:54 am    Post subject: Reply with quote

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
View user's profile Send private message
deribin
n00b
n00b


Joined: 03 Feb 2003
Posts: 70
Location: Vancouver

PostPosted: Thu Dec 11, 2003 11:05 am    Post subject: Reply with quote

Is it important to write "ZAxisMapping" or "zAxisMapping"?
Is it case sensitive?
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Thu Dec 11, 2003 11:24 am    Post subject: Reply with quote

Config file keywords are case-insensitive and ignore "_", according to man XF86Config, and most strings ignore case, "_" and " ".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum