Find the answer to your Linux question:
Results 1 to 10 of 10
I have a M$ 5 button (4 button + scrollwheel) mouse. The two main buttons and the scroll wheel work fine, but the other two buttons (back and forward by ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Location
    Kansas
    Posts
    30

    5-button mouse


    I have a M$ 5 button (4 button + scrollwheel) mouse. The two main buttons and the scroll wheel work fine, but the other two buttons (back and forward by default if I were in Winblows), do all kinds of wierd stuff, usually not the same thing twice in a row. I've read that some people are able to get all 5 buttons working on this kind of mouse, but so far the only instructions I've found were in an older post that refered to a file that doesn't exist on my system. I'm running Debian with the 2.6.8-11-amd64-k8 kernel. How can I get the other two buttons on my mouse set up?

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    You should look at your /etc/X11/xorg.conf file, there is a section on your mouse there, it will look something like this:
    Code:
    Identifier   "Mouse1"
      Driver       "mouse"
      Option       "Buttons" "5"
      Option       "Device" "/dev/input/mice"
      Option       "Protocol" "ExplorerPS/2"
      Option       "Vendor" "Sysp"
      Option       "ZAxisMapping" "4 5"
    You need that to read:
    Identifier "Mouse1"
    Driver "mouse"
    Option "Buttons" "7"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "ExplorerPS/2"
    Option "Vendor" "Sysp"
    Option "ZAxisMapping" "6 7"
    (i've highlighted the parts I've changed). Once you save and restart the X server, you should have all the buttons working
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Linux Engineer LondoJowo's Avatar
    Join Date
    May 2005
    Location
    Richmond, TX
    Posts
    804
    I had to make the following changes in SuSE 9.3 to get my wireless Intellimouse Explorer 2.0 to work.

    xorg.conf changes
    Code:
    Section "InputDevice"
      Driver       "mouse"
      Identifier   "Mouse[1]"
      Option       "ButtonNumber" "7"
      Option       "Buttons" "7"
      Option       "Device" "/dev/input/mice"
      Option       "InputFashion" "Mouse"
      Option       "Name" "USB-Mouse;ExplorerPS/2 on USB"
      Option       "Protocol" "ExplorerPS/2"
      Option       "ZAxisMapping" "6 7"
    EndSection
    mouse.sh in the /home/user/.kde/autostart folder.

    mouse.sh
    Code:
    #!/bin/sh
    
    # Required for the configuration of a 7-button mouse
    
    xmodmap -e "pointer = 1 2 3 6 7 4 5"
    Dell Precision T7400 Workstation
    Dual 3.33Ghz Xeon "Harpertown" Core
    16GB PC5300 DDR2 ECC CL5
    BFG GeForce GTX 285 OC 2GB
    X-Fi Platinum
    HP w2408 24" Monitor
    Dual Boot:openSUSE 11.2/Win 7 Ultimate

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Mar 2005
    Location
    Kansas
    Posts
    30
    Quote Originally Posted by dylunio
    You should look at your /etc/X11/xorg.conf file, there is a section on your mouse there, it will look something like this:
    Code:
    Identifier   "Mouse1"
      Driver       "mouse"
      Option       "Buttons" "5"
      Option       "Device" "/dev/input/mice"
      Option       "Protocol" "ExplorerPS/2"
      Option       "Vendor" "Sysp"
      Option       "ZAxisMapping" "4 5"
    You need that to read:
    Code:
    Identifier   "Mouse1"
      Driver       "mouse"
      Option       "Buttons" [b]"7"[/b]
      Option       "Device" "/dev/input/mice"
      Option       "Protocol" "ExplorerPS/2"
      Option       "Vendor" "Sysp"
      Option       "ZAxisMapping" [b]"6 7"[/b]
    (i've highlighted the parts I've changed). Once you save and restart the X server, you should have all the buttons working ;)
    This was pretty close, except I had to set the buttons to "4 5" instead of "6 7" Thanks!

  6. #5
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    This is an odd problem that I have noticed. I also have a seven button mouse (4buttons + scrollwheel) intellimouse. On some distros I have to set zaxismapping to 4 5, and on others 6 7. The same mouse... But at least it always works.
    Operating System: GNU Emacs

  7. #6
    Just Joined!
    Join Date
    Oct 2005
    Posts
    1
    When I use "6 7" the scroll wheel turns performs the page forward/page back functions and the side buttons do the page down/up finctions respectively.

    When I use "4 5" the wheel works as normal but the side buttons no longer work.

    What do I do now

  8. #7
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Can you post the mouse part of the xorg.conf please?
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  9. #8
    Just Joined!
    Join Date
    Oct 2005
    Posts
    3
    Hi, I have exactly the same problem as zz9:

    Identifier "Mouse1"
    Driver "mouse"
    Option "Buttons" "7"
    Option "Protocol" "ExplorerPS/2"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "6 7"
    Option "Emulate3Buttons" "false"

    With this config my side-buttons become scroll-buttons, and the wheel becomes back/forward (in browser). If I set ZAxisMapping to 4 5, I loose the side buttons. I must mention that I have a no-name mouse (Mercury anyone?), but it's not some cheap toy and it worked in Windows (if that is of any importance).

    With ZAxisMapping set to "6 7", xev event tester tells me that side buttons are 4 and 5, while wheel events get registered as buttons 6 and 7. When ZAM="4 5", xev tells me that the wheel is 4 and 5, but the side buttons don't react.

    Does anybody have any ideas?

    Best regards

    Edit: had to restart X to get additional info

  10. #9
    Just Joined!
    Join Date
    Jan 2007
    Posts
    60
    I tried editing my file as per your instruction, but what happened is that now my scroll button works horizontally instead of vertical, and the other two buttons still don't do anything. As I just discovered, the scroll is now back and forward in firefox. please help. I have xubuntu 6.10

    Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "ExplorerPS/2"
    Option "Buttons" "7"
    Option "ZAxisMapping" "6 7"
    EndSection

    [edit] here is the original
    Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "ExplorerPS/2"
    Option "ZAxisMapping" "4 5"
    Option "Emulate3Buttons" "true"
    EndSection
    [/edit]

  11. #10
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by djluvsgod
    I tried editing my file as per your instruction, but what happened is that now my scroll button works horizontally instead of vertical, and the other two buttons still don't do anything. As I just discovered, the scroll is now back and forward in firefox. please help. I have xubuntu 6.10
    Sorry the above didn't work. You might have to try some different things to get the buttons working the way you want.

    Here's a HowTo that might help:

    http://easylinux.info/wiki/Ubuntu_Edgy#Mice
    oz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •