lghman Guru
Joined: 29 Nov 2002 Posts: 548 Location: Florida
|
Posted: Mon Feb 24, 2003 3:08 am Post subject: Xmodmap for Second Mouse? |
|
|
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 |
|