Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xmodmap for Second Mouse?
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
lghman
Guru
Guru


Joined: 29 Nov 2002
Posts: 548
Location: Florida

PostPosted: Mon Feb 24, 2003 3:08 am    Post subject: Xmodmap for Second Mouse? Reply with quote

After much searching around I finally got my usb intellimouse to work with my touchpad on my laptop. Now I want to use the extra buttons on the intellimouse, but here is my problem; When I run xmodmap i get this:
Code:

 $ xmodmap -e "pointer = 1 2 3 6 7 4 5"             
xmodmap:  commandline:0:  bad number of buttons, must have 3 instead of 7
xmodmap:  1 error encountered, aborting.

Ok , thats understandable because I figure its looking at the FIRST mouse (the touchpad) and not the SECOND one (usbmouse). Now what I want to know is how to make xmodmap use the second mouse, I looked trough the man page and didnt see anything. Just in case, here are the relevant parts of my XF86Config:
Code:

Section "InputDevice"

# Identifier and driver

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "PS/2"
    Option "Device"      "/dev/psaux"
    Option "Emulate3Buttons"

EndSection

Section "InputDevice"
    Identifier  "Mouse2"
    Driver      "mouse"
    Option "Protocol"   "ExplorerPS/2"
    Option "Device"     "/dev/usbmouse"
    Option "Buttons"    "7"
    Option "ZAxisMapping"  "6 7"

EndSection

Section "ServerLayout"
        Identifier "Simple Layout"
        Screen  "Screen 1"
        InputDevice  "Mouse1"  "CorePointer"
        InputDevice  "Mouse2"  "SendCoreEvents"
        InputDevice  "Keyboard1"  "CoreKeyboard"

EndSection

I was just looking over this, I am wondering if I could switch mouse1 and mouse2 in the severlayout section, would that work???
Thanks for da help!
[edit]
No that last idea dosent work b/c then if the usbmouse isnt loaded it dosent even look for the glidepad and just exits with an error.
[/edit]
--sonik
_________________
"What a distressing contrast there is between the radiant intelligence of a child and the feeble mentality of the average adult" --Freud
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16119
Location: Colorado

PostPosted: Mon Feb 24, 2003 4:14 am    Post subject: Reply with quote

Couple of suggestions in Two left handed mice. No idea if they work.
_________________
lolgov. 'cause where we're going, you don't have civil liberties.

In Loving Memory
1787 - 2008
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