LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices

Reply
 
Search this Thread
Old 02-05-2007, 03:20 PM   #1
whysyn
Member
 
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:
Code:
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"
EndSection
When I add this, it seems to make no difference:
Code:
        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
PenguinPwrdBox
Member
 
Registered: Oct 2003
Location: /illinois/chicago
Distribution: Slackware/Gentoo/FC/RHEL
Posts: 568

Rep: Reputation: 30
Try this:
Code:
Section "InputDevice"
     
        Option      "Buttons" "6 7"
        Option      "ZAxisMapping" "4 5"
        EndSection
 
Old 02-05-2007, 09:57 PM   #3
whysyn
Member
 
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
fvu
LQ Newbie
 
Registered: Nov 2006
Distribution: Ubuntu 7.10
Posts: 28

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

Code:
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"
EndSection
The option ButtonMapping seems to be introduced with XOrg-7.

See also:
* http://gentoo-wiki.com/HOWTO_Advanced_Mouse: Detailed howto for setting up a mouse under different versions of X with all buttons functional
* http://www.fvue.nl/wiki/Configuring_...e_in_X_Windows: My settings

Freddy Vulto
http://www.fvue.nl

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


Reply


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:29 AM.

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