Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 02-05-2007, 03:20 PM   #1
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154

Rep: Reputation: 30
Question mice: difference between xorg.conf's "ButtonMapping" and xmodmap on command line???

So I finally am trying to get my forward/back mouse buttons working, I had them working in my last install but completely forgot how I did it...

I've gotten to the point where my wheel acts as forward/back, and the side buttons act as scrolling. I can use xmodmap to force it to remap the buttons (xmodmap -e "pointer = 1 2 3 6 7 4 5"). In searching the web, I found (apparently new-ish) options for xorg.conf called "ButtonMapping." My question: is ButtonMapping in xorg.conf the same as the flags for xmodmap?

Here is my current Mouse section:
Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "ExplorerPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "Buttons" "4 5"
        Option      "ZAxisMapping" "6 7"
        Option      "Emulate3Buttons" "yes"
When I add this, it seems to make no difference:
        Option      "ButtonMapping" "1 2 3 6 7 4 5"
I'd prefer to keep everything in xorg.conf instead of having to add xmodmap for every user... any ideas?
Old 02-05-2007, 03:35 PM   #2
Registered: Oct 2003
Location: /illinois/chicago
Distribution: Slackware/Gentoo/FC/RHEL
Posts: 568

Rep: Reputation: 30
Try this:
Section "InputDevice"
        Option      "Buttons" "6 7"
        Option      "ZAxisMapping" "4 5"
Old 02-05-2007, 09:57 PM   #3
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154

Original Poster
Rep: Reputation: 30
That causes the wheel to work for scrolling, but the side buttons seem to do nothing.
Old 03-16-2007, 07:06 AM   #4
LQ Newbie
Registered: Nov 2006
Distribution: Ubuntu 7.10
Posts: 28

Rep: Reputation: 15
I got my 5-button mouse working with these settings:

Section "InputDevice"
    Identifier  "Configured Mouse"
    Driver      "mouse"
    Option      "CorePointer"
    Option      "Device"         "/dev/input/mice"
    Option      "Protocol"       "ExplorerPS/2"
    Option      "Buttons"        "7"
    Option      "ButtonMapping"  "1 2 3 6 7"
The option ButtonMapping seems to be introduced with XOrg-7.

See also:
* Detailed howto for setting up a mouse under different versions of X with all buttons functional
* My settings

Freddy Vulto

Last edited by fvu; 03-25-2007 at 02:28 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
cdrecord command-line parentheses "(" ")" coolingtower Linux - Software 1 10-28-2005 11:49 AM
KDE disables my xorg.conf's "XkbOptions" kornerr Linux - General 2 06-29-2005 11:38 AM
Can you explain the difference between "Free Software (GNU)" and "Open Source"? vharishankar General 5 03-03-2005 09:40 AM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 01:30 PM

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration