LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 06-27-2007, 09:57 AM   #1
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Rep: Reputation: 15
Can I use two mice?


Just wondering - I got a cordless mouse as part of a package today and thought it might be handy to be able to use it to change volume/channel in TV/video applications when I'm sitting on the couch. It's too small to use as my standard mouse, but is there a way to have both mice recognised and usable? I'm pretty sure I've used two mice concurrently on a Windows machine, though I might be mistaken. Any ideas how I might do this in Xorg.conf?
 
Old 06-27-2007, 10:11 AM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
You'll get a wealth of information if you google for this:

Code:
Linux "two mice"
Hope this helps.
 
Old 06-27-2007, 10:13 AM   #3
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
Quoth pickarooney:

Quote:
Can I use two mice?
Why not use three blind ones?

Sorry, couldn't help myself.
 
Old 06-27-2007, 10:20 AM   #4
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 4.0 Etch
Posts: 1,349

Rep: Reputation: 49
The answer is yes. I have a HTPC with an old wireless mouse connected by the serial port and a normal mouse connected by the PS/2 port. Both of them work. Either will move the pointer around.

Back when I was running Windows 98 on my HTPC, both of them worked also.

[edit added:]
Oh the way I did it in xorg.conf was to manually add a mouse entry for the serial mouse. However, this might only have been necessary because the serial port doesn't have any hardware autodetection capabilities.

Last edited by IsaacKuo; 06-27-2007 at 10:22 AM.
 
Old 06-27-2007, 11:40 AM   #5
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
I've been fiddling with Xorg, adding a second InputDevice of type mouse but X never restarts after making changes.

Currently the serverlayout and inputdevice sections look like this:

Code:
Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen" 0 0
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection


Section "InputDevice"
    Identifier     "Configured Mouse"
    Driver         "mouse"
    Option         "CorePointer"
    Option         "Device" "/dev/input/mice"
    Option         "Protocol" "ExplorerPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Emulate3Buttons" "true"
EndSection
I can't figure out what to add as the "Device" for the new mouse nor if it should be "mouse" driver" or "evdev" (both are USB mice)
 
Old 06-27-2007, 11:44 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
On a laptop, the "pointing stick", the touchpad, and an external USB mouse will all work together. Just as long as you and your friend/significant/dog/cat don't try to control the cursor at the same time....
 
Old 06-27-2007, 12:13 PM   #7
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
I've got X running again now, but still only one mouse working.
Is there anything obviously wrong with this?

Code:
Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen" 0 0
    InputDevice    "Generic Keyboard"
    InputDevice    "Logitech Mouse"
    InputDevice    "Sansun Mouse"
EndSection
Section "InputDevice"
    Identifier     "Logitech Mouse"
    Driver         "mouse"
    Option         "CorePointer"
    Option         "Device" "/dev/input/mice"
    Option         "Protocol" "ExplorerPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
    Identifier     "Sansun Mouse"
    Driver         "mouse"
    Option         "AlwaysCore"
    Option         "Device" "/dev/input/mice"
    Option         "Protocol" "ExplorerPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Emulate3Buttons" "true"
EndSection
 
Old 06-28-2007, 01:39 AM   #8
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 4.0 Etch
Posts: 1,349

Rep: Reputation: 49
I don't really know how to fix your problem. I just tested out some USB mice on my main computer--it has just one mouse device entry, which looks like your "Logitech Mouse" entry.

I had a PS/2 mouse and two USB mice attached at the same time. All three mice worked, even though there was only one InputDevice configured. I suppose /dev/input/mice gracefully handles multiple simultaneous mouse devices (at least as long as they're PS/2 or USB).

BTW, I'm using Debian 4.0, which may have some small differences with Kubuntu Edgy.
 
Old 06-28-2007, 05:29 AM   #9
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Original Poster
Rep: Reputation: 15
I'm beginning to think it's a USB problem - when I plug in the wireless mouse my webcam crashes out. Something's not quite right hardware-wide, I reckon.
 
Old 06-28-2007, 05:51 AM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,487

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
You can even do it from two physically separate PCs (even 'doze).
Seriously sexy - synergy.
 
Old 06-28-2007, 09:52 AM   #11
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 4.0 Etch
Posts: 1,349

Rep: Reputation: 49
Hey, I just had a thought--maybe your computer's BIOS is set to a "legacy" mouse compatability mode, or something like that? Many BIOS's have options to make USB keyboards and/or mice emulate PS/2 devices (for operating systems that lack adequate USB support). I can see that if such a compatability mode is activated, only one USB mouse would be active at a time.

But that wouldn't explain your issue with the mouse vs webcam, of course.

Still, you might as well check it out.
 
  


Reply

Tags
cordless, mice, mouse, two


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
two mice kusi Linux - Software 1 07-20-2006 03:36 PM
2 mice Rocker Linux - Software 0 02-16-2005 08:18 AM
xmodmap for multiple mice? external and laptop mice scrolling back/forward, etc. bleargh Linux - Software 3 12-31-2004 09:48 AM
2 mice? linda Linux - Hardware 6 08-21-2004 05:25 PM
Can I use two mice??? harrkev Linux - General 3 06-16-2004 12:52 AM


All times are GMT -5. The time now is 12:29 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration