View previous topic :: View next topic |
Author |
Message |
optilude Apprentice
Joined: 29 May 2002 Posts: 248 Location: England
|
Posted: Mon Apr 07, 2003 12:18 pm Post subject: Using both a touchpad and and external mouse |
|
|
On my laptop, I've got a touchpad that I want to be available at all times. I also use externally one of three USB mice: an Intellimouse Explorer, a Logitech optical wireless mouse, and a little Sony USB wheelie-mouse. I've managed to set up my /etc/X11/XF86Config so that I can always use the touchpad, and either of the USB mice will work if connected - if they're not connected, there is no need to reconfigure. Hope this helps someone!
Setting up your USB mouse is explained elsewhere, such as here https://forums.gentoo.org/viewtopic.php?t=21251.
You'll need to edit /etc/X11/XF86Config. First, add the following line to the ServerFlags section:
Code: |
Section "ServerFlags"
# Don't die if X couldn't open a mouse device
Option "AllowMouseOpenFail"
# ... other server flags options
EndSection
|
Next, here are the two input device sections for the mice:
Code: |
Section "InputDevice"
Driver "mouse"
Identifier "Trackpad"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "on"
Option "Emulate3Timeout" "50"
Option "InputFashion" "Mouse"
Option "Name" "Autodetection"
Option "Protocol" "ps/2"
Option "Vendor" "Sysp"
EndSection
Section "InputDevice"
Driver "mouse"
Identifier "USB Mouse"
# My main mouse, the logitech cordless optical, has six buttons - that
# means the forward button won't work on the intellimouse, but I don't
# really care...
Option "Buttons" "6"
Option "Device" "/dev/input/mouse0"
Option "InputFashion" "Mouse"
Option "Name" "Autodetection"
Option "Protocol" "ExplorerPS/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "5 6"
# Use "6 7" for a 7-button mouse
EndSection
|
Finally, you'll need to set up the server layout to incororate these mice by modifying the InputDevice line that refers to your mouse and adding another InputDevice line to refer to the secondary mouse. Leave the rest of the ServerLayout section as it is!
Code: |
Section "ServerLayout"
# ...
# Your keyboard may have a different identifier above - leave
# CoreKeyboard as it is!
# InputDevice "Laptop keyboard" "CoreKeyboard"
InputDevice "Trackpad" "SendCoreEvents"
InputDevice "USB Mouse" "CorePointer"
# ...
EndSection
|
Finally, make sure you run xmodmap and imwheel on startup if you want the back button to work properly. See the above thread on configuring the Intellimouse for more, but I run in my /etc/X11/gdm/Init/Default
Code: |
xmodmap -e "pointer = 1 2 3 6 4 5"
imwheel -k -b "6"
|
You'll need to change this according to the intellimouse config thread unless you too have a six-button mouse.
Cheers,
Martin _________________ --
"Life is both a major and a minor key" -- Travis |
|
Back to top |
|
|
zfc-tinkerer Tux's lil' helper
Joined: 05 May 2003 Posts: 126
|
Posted: Fri May 09, 2003 3:27 pm Post subject: |
|
|
Thanks for writing this up. I don't know anywhere else that quite so clearly shows how to have two mice configured at once. |
|
Back to top |
|
|
|
|
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
|
|