LinuxQuestions.org
Review your favorite Linux distribution.
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 11-26-2009, 04:41 PM   #1
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51
How to make Xorg recognise different mice as different input devices automatically?


I would like to use Xorg ability to auto configure input devices. But, when i plug the second mouse, it is seen as the same as first one:
Code:
$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ <default pointer>                         id=6    [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Keyboard0                                 id=7    [slave  keyboard (3)]
In Xorg log i see this:

Code:
(WW) <default pointer>: No Device specified, looking for one...
(II) <default pointer>: Setting Device option to "/dev/input/mice"
(--) <default pointer>: Device: "/dev/input/mice"
(==) <default pointer>: Protocol: "Auto"
(**) Option "CorePointer"
To use MPX i have to have two different pointers instead of <default pointer>. If i configure this statically, i.e. via xorg.conf InputDevice sections, specifying /dev/input/mouse[0-9] instead of /dev/input/mice, mice do appear separately in xinput list.
But this way is not very usable since i have to configure scroll wheel etc. manually. So, how can i make each mouse separate but still use Xorg autoconfiguration?

Last edited by 10110111; 11-26-2009 at 04:42 PM.
 
Old 11-27-2009, 09:26 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,845

Rep: Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006
I'm not experienced enough here to give you any detailed advice, but in general, I believe what you want is to use the evdev driver and access the individual mice through their respective /dev/input/eventN devices.

"cat /proc/bus/input/devices" will tell you which mouse uses which event number. I believe evdev also makes it possible to bind individual devices to fixed interfaces.
 
Old 11-28-2009, 11:35 AM   #3
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Original Poster
Rep: Reputation: 51
I found why i couldn't use automatic input devices naming. "AllowEmptyInput" must be enabled AND HAL must be configured so that it tells Xorg about connected devices for this to work. After i did this, everything works.
 
  


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
HAL vs Xserver (/dev/input/mice?): convincing X to *not* use a given input device? stuartnlevy Linux - Desktop 6 01-24-2012 05:06 PM
Use 2 Mice with xorg? nicedreams Linux - General 3 10-24-2005 12:26 AM
is there a program to automatically make xorg.conf files lowpingnoob Linux - Newbie 12 06-12-2005 05:08 PM
/dev/input/mice desappeared Hitan Debian 10 04-03-2004 07:58 AM
/dev/input/mice doesn't work Bogdan29 Linux - Newbie 3 05-08-2003 12:19 AM

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

All times are GMT -5. The time now is 03:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration