LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-28-2003, 03:42 PM   #1
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
X and multiple mice


I have a usb optical mouse and a usb wheel mouse and both work.
The problem is that I'd like to have one on the left side of the keyboard and one on the right side of the keyboard, configured so that the button closest to the keyboard is the click button and the button farthest away from the keyboard is the right click key.
The left mouse works fine this way, Im using xmodmap to reconfigure the keys like so:
xmodmap -e "pointer = 3 2 1 4 5"&

How do I configure the right side mouse to click for the left button and right click for the right button? xmodmap doesnt seem to have designations for different pointing devices, is there another way?
 
Old 10-28-2003, 04:24 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
apparently not according to the manpage... quite possbily the second device might start it's numbering from after the first e.g. 6, 7, 8.... ? see what xev says
 
Old 10-28-2003, 05:46 PM   #3
davecs
Member
 
Registered: Feb 2003
Location: Barking, Essex, Britain
Distribution: PCLinuxOS and MX-Linux
Posts: 503

Rep: Reputation: 32
While we're on the subject I have a M$ optical wheel mouse (OK shoot me ? I also got a M$ keyboard!) which connects through PS2. I have a serial "graphics tablet" which I have not connected. Is it possible to get that going in Linux at the same time? It also has pseudo F-keys as well...

DAVE
 
Old 10-28-2003, 08:22 PM   #4
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Original Poster
Rep: Reputation: 31
Got it. In case anyone else is interested heres the solution. Apparently the device xmodmap modifies is the one devined as CorePointer, the other mouse (right side) doesnt need any modification.
Pertinent sections of my XF86Config:

##### Mouse1 is a touchpad with two buttons built into my keyboard ######

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Microsoft"
Option "Device" "/dev/ttyS0"
Option "Emulate3Buttons"
Option "Emulate3Timeout" "50"
EndSection

Section "InputDevice"
Identifier "Mouse3"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mouse1"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Mouse2"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "CorePointer"
Option "Device" "/dev/input/mouse0"
Option "ZAxisMapping" "4 5"
EndSection

Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse2" "CorePointer"
InputDevice "Mouse1" "SendCoreEvents"
InputDevice "Mouse3" "SendCoreEvents"
Screen "screen1"
EndSection
 
Old 10-28-2003, 09:25 PM   #5
CanadianPenguin
Member
 
Registered: Oct 2003
Distribution: Ubuntu "Hoary" - The best distro around by a long shot.
Posts: 116

Rep: Reputation: 15
Just curious, what do you use two mice for at the same time?
 
Old 10-28-2003, 09:38 PM   #6
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Original Poster
Rep: Reputation: 31
Sometimes I have people want to use my computer and seeing linux (flux) is bad enough but when they try to cope with linux AND a left-handed mouse, they just go right off the deep end.
Thought it might be nice to have a right handed mouse too.
 
Old 10-29-2003, 04:36 PM   #7
davecs
Member
 
Registered: Feb 2003
Location: Barking, Essex, Britain
Distribution: PCLinuxOS and MX-Linux
Posts: 503

Rep: Reputation: 32
In my case the graphics tablet acts like a mouse but is for more specialist situations for normal use the standard mouse is easier to use.

DAVE
 
  


Reply



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
Multiple monitors and keyboards and mice, OH MY! dlublink Linux - Hardware 2 02-08-2005 02:16 PM
xmodmap for multiple mice? external and laptop mice scrolling back/forward, etc. bleargh Linux - Software 3 12-31-2004 08:48 AM
Multiple mice evslin Linux - Hardware 1 11-29-2004 01:53 PM
Help with mice and X... Mr.Radar Debian 3 05-31-2004 02:32 AM
Multiple Mice in Red Hat? justiceisblind Linux - Hardware 5 01-24-2003 11:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:08 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration