LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-06-2007, 02:52 AM   #1
DeNayGo
Member
 
Registered: Jun 2005
Location: Aachen, Germany
Distribution: Debian
Posts: 74

Rep: Reputation: 16
Determine order of input devices


When I start my laptop with a USB mouse attached, that mouse always becomes /dev/input/mouse0. When I unplug it for a short while and plug it in again, it becomes mouse2. mouse1 is the touchpad.

In my xorg.conf I specified different rules for the touchpad and the USB mouse, so neither /dev/input/mice nor mouse2 will work. I.e. after being unplugged, the USB mouse won't work till the next reboot.

I think it is generally wrong that the external mouse should have the lower number. The touchpad should be mouse0 since it can never be removed. I guess if the order was exchanged in that way, the USB mouse would always be mouse1, well at least I hope so.

I guess I could change the order by building the USB mouse driver as a module, but is that the only way?
 
Old 03-07-2007, 12:23 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
In addition to the regular /dev/input/mouse* device nodes, udev also creates permanent device-specific links in /dev/input/by-id and /dev/input/by-path. And simple rules can be added to make it create more-easily-named shortcuts as well. I think you should be able to use those if always want the same device to be detected.

For more on udev rules:
http://www.reactivated.net/writing_udev_rules.html
 
  


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
Determine BIOS Drive Order tvynr Linux - Hardware 3 09-27-2006 03:23 PM
Changing boot order of devices... akp913 Debian 3 09-22-2006 11:14 AM
how do I determine the order modules get loaded? Simon Bridge Linux - General 6 04-26-2006 09:15 AM
determine type of device for USB devices lyar1031 Linux - Newbie 2 07-29-2004 08:02 PM
How to determine cdrom devices Vookimedlo Programming 1 07-09-2004 08:52 AM


All times are GMT -5. The time now is 05:37 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