LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-07-2006, 11:12 PM   #1
ramack
LQ Newbie
 
Registered: Jun 2006
Location: Colorado, USA
Distribution: Debian
Posts: 13

Rep: Reputation: 1
multiple mice


Hi,

I have a ps/2 pointer and want to add a USB mouse. I can get both to work separately via mouseconfig, but how can I configure such that both will work.

Mouse #1 is a generic 2 button mouse. Mouse #2 is a Logitech 3 button wheeled mouse.

Thanks,

Rich
 
Old 06-08-2006, 01:41 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941

Rep: Reputation: 129Reputation: 129
Welcome to LQ!

This is what I have in /etc/X11/xorg.conf:
Code:
#    Option "ChordMiddle"
    Identifier     "Mouse1"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "ZAxisMapping"  "4  5"
# The mouse device.  The device is normally set to /dev/mouse,
    Option         "Device" "/dev/mouse"
#   Option "Device"      "/dev/psaux"
on my wife and daughter's Slackware box.
One PS/2 and one USB mouse working fine together.
 
Old 06-08-2006, 02:44 AM   #3
Sonneteer
Member
 
Registered: May 2006
Location: Canada
Distribution: Slackware 13.37; Ubuntu 12.04
Posts: 81
Blog Entries: 5

Rep: Reputation: 15
For my xorg.conf I have separate sections for each mouse, then include them both in the layout section. So you could also try something like this:
Code:
Section "InputDevice"
    Identifier  "USB Mouse"
    Driver      "mouse"
    Option      "Device"            "/dev/input/mice"
    Option      "SendCoreEvents"    "true"
    Option      "Protocol"          "IMPS/2"
    Option      "ZAxisMapping"      "4 5"
    Option      "Buttons"           "5"
EndSection

Section "InputDevice"
    Identifier  "PS/2 Mouse"
    Driver      "mouse"
    Option      "Protocol"    "PS/2"
    Option      "Device"      "/dev/psaux"
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen      "Screen 0"
    InputDevice "PS/2 Mouse" "CorePointer"
    InputDevice "USB Mouse" "SendCoreEvents"
    InputDevice "Keyboard0" "CoreKeyboard"
EndSection
 
Old 06-08-2006, 11:07 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Notice the 'SendCoreEvents' and 'CorePointer'. VERY important for two to work together.

I always keep my touchpad as 'CorePointer', and my USB as 'SendCoreEvents'
 
Old 06-08-2006, 11:12 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941

Rep: Reputation: 129Reputation: 129
Silly me, I'm not using the "SendCoreEvents":
Code:
anna@peter:~$ cat /etc/X11/xorg.conf | grep -i SendCoreEvents
#    Option     "SendCoreEvents"
#    Option     "SendCoreEvents"
# "SendCoreEvents".
anna@peter:~$ cat /etc/X11/xorg.conf | grep -i CorePointer
# used.  Those options include "CorePointer", "CoreKeyboard" and
    InputDevice    "Mouse1" "CorePointer"
and they work just fine.
 
Old 06-08-2006, 11:14 PM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
My touchpad requires it, and it's not a bad idea to do so anyways (Keeps me straight/honest about what is primary, what is added on...lol)
 
Old 06-08-2006, 11:16 PM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941

Rep: Reputation: 129Reputation: 129
It's absolutely not necessary here..
 
Old 06-08-2006, 11:22 PM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
From 'man xorg.conf'
Code:
Option "CorePointer"
              When  this  is  set,  the  input device is installed as the core
              (primary) pointer  device.   There  must  be  exactly  one  core
              pointer.  If this option is not set here, or in the ServerLayout
              section, or from the -pointer  command  line  option,  then  the
              first  input  device  that  is  capable  of being used as a core
              pointer will be selected as the core pointer.   This  option  is
              implicitly set when the obsolete Pointer section is used.
And
Code:
Option "SendCoreEvents"  "boolean"
              Both of these options are equivalent, and when enabled cause the
              input device to always report core events.  This  can  be  used,
              for  example,  to allow an additional pointer device to generate
              core pointer events (like moving the cursor, etc).
While it may not be neccesary, it is good practice.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:02 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
Open Source Consulting | Domain Registration