LinuxQuestions.org
Review your favorite Linux distribution.
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 08-20-2004, 05:18 PM   #1
linda
Member
 
Registered: Apr 2001
Location: New Jersey
Distribution: Slackware
Posts: 222

Rep: Reputation: 30
2 mice?


Can i have 2 mice loaded and ready to go if needed? I have 2 logitech mice: one is a wireless one that is at /dev/input/mice and the other is an optical one at /dev/mouse. They are both usb mice. I'm using Slackware. I did try to make 2 entires in my xorg file, but messed it up. Is it possible to do this?

(The reason i want 2 mice is I prefer the wireless of course, but sometimes the batteries run out right in the middle of something)
 
Old 08-20-2004, 05:38 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
I'd imagine this should be possible.

It certainly is possible with XFree86 where you just have to duplicate the mouse entry section in the config file, giving the second mouse a different identifier and device, and then add another InputDevice line. This should work with XOrg as well, unless the configuration format has changed overly much.
 
Old 08-20-2004, 05:59 PM   #3
linda
Member
 
Registered: Apr 2001
Location: New Jersey
Distribution: Slackware
Posts: 222

Original Poster
Rep: Reputation: 30
No both config files look the same. I'll try it again... my first attempt locked me out of x.
 
Old 08-20-2004, 06:40 PM   #4
moriel
LQ Newbie
 
Registered: Aug 2004
Distribution: Mandrake 9.2
Posts: 2

Rep: Reputation: 0
I have two mice working with X. One of them is USB mouse, the second one is PS/2. Here is a part of my XF86Config:

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "AlwaysCore"
Option "SendCoreEvents" "true"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "Resolution" "180"
Option "ZAxisMapping" "6 7 6 7"
Option "Buttons" "9"
EndSection

Section "InputDevice"
Identifier "Mouse2"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
EndSection
 
Old 08-21-2004, 12:11 PM   #5
linda
Member
 
Registered: Apr 2001
Location: New Jersey
Distribution: Slackware
Posts: 222

Original Poster
Rep: Reputation: 30
I still can't seem to get this working. The stuff at the end looks weird to me. Here's a snippet of my xorg.conf file:

Section "InputDevice"

# Identifier and driver

Identifier "Mouse1"
Driver "mouse"

# On platforms where PnP mouse detection is supported the following
# protocol setting can be used when using a newer PnP mouse:

# Option "Protocol" "Auto"

# The available mouse protocols types that you can set below are:
# Auto BusMouse GlidePoint GlidePointPS/2 IntelliMouse IMPS/2
# Logitech Microsoft MMHitTab MMSeries Mouseman MouseManPlusPS/2
# MouseSystems NetMousePS/2 NetScrollPS/2 OSMouse PS/2 SysMouse
# ThinkingMouse ThinkingMousePS/2 Xqueue
Option "Protocol" "IMPS/2"

# The mouse device. The device is normally set to /dev/mouse,
# which is usually a symbolic link to the real device.

Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5"
Option "Buttons" "5"
# Mouse-speed setting for PS/2 Mouse.
# Option "Resolution" "500"

# Option "Device" "/dev/psaux"
# Option "Device" "/dev/ttyS0"
# Option "Device" "/dev/ttyS1"
# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.

# Option "Protocol" "Xqueue"

# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.

# Option "BaudRate" "9600"
# Option "SampleRate" "150"

# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)

# Option "Emulate3Buttons"
# Option "Emulate3Timeout" "50"

# ChordMiddle is an option for some 3-button Logitech mice

# Option "ChordMiddle"


EndSection

# Some examples of extended input devices

Section "InputDevice"
Identifier "mouse2"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Buttons" "5"
EndSection

#And at the very end of the file I have this:

Section "ServerLayout"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"

EndSection


Section "InputDevice"

Identifier "Keyboard"

Option "XkbModel" "pc104"
Option "XkbLayout" "us"
Driver "keyboard"
EndSection


Section "InputDevice"

Identifier "Mouse"

Option "Protocol" ""
Option "Device" "/dev/mouse"
Driver "mouse"
Option "Emulate3Buttons"
Option "ZAxisMapping" "4 5"
EndSection
 
Old 08-21-2004, 12:35 PM   #6
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
The InputDevice section tells Xorg what input devices you have, not which ones to use.

You've defined three of these. In the first section, “Mouse1”, in the second section “Mouse2”, and in the last section “Mouse” (as the same device as “Mouse1”). The names are completely arbitrary, and set by the “Identifier” parameter.

The ServerLayout section tells Xorg which of your input devices you want to use; you have “Keyboard1” (which you don't define here; you only define “keyboard”), and “Mouse1”.

In order to enable your other mouse, you need to add a line to enable Mouse2:

Code:
Section "ServerLayout"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse2" "SendCoreEvents"

EndSection
 
Old 08-21-2004, 04:25 PM   #7
linda
Member
 
Registered: Apr 2001
Location: New Jersey
Distribution: Slackware
Posts: 222

Original Poster
Rep: Reputation: 30
Thanks! It works now!
 
  


Reply


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
2 mice Rocker Linux - Software 0 02-16-2005 07:18 AM
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
Can I use two mice??? harrkev Linux - General 3 06-15-2004 11:52 PM
Help with mice and X... Mr.Radar Debian 3 05-31-2004 02:32 AM


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

Main Menu
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