LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-23-2006, 06:58 AM   #1
cferron
Member
 
Registered: Jan 2006
Location: Trois-Rivières, Québec, Canada
Distribution: Slackware, Ubuntu
Posts: 74

Rep: Reputation: 15
Udev rules working but...


I have already post this in the slackware section with no luck...

I have installed udev without any problem on my slackware 10.2 box (kernel 2.6.15.4) I have added specific rules that create /dev/input/mouse1vss, /dev/input/mouse2vss when a mouse is connected in a specific USB port. The issue I have is that when I reboot the machine I have to disconnect and reconnect each usb device in order to have udev create the proper dev entry! Is there a way to have it create it at boot time? (yes my rc.udev is executable)

So basically rules are working, but I have to physically connect the device so it gets detected and managed by the rules.... otherwise there is no way /dev/input/mouseXvss will show up! Help...

Thanks

Claude
 
Old 03-23-2006, 07:10 AM   #2
tuxangler
Member
 
Registered: Mar 2006
Location: Germany
Distribution: OpenSuSE 10.3 x86-64 SMP - Kernel 2.6.23.14
Posts: 42

Rep: Reputation: 15
I am using this to connect to my Logitech LX5:
Code:
KERNEL=="event*", SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c50e", NAME="input/lx5", MODE="666", GROUP="uucp"
Maybe you can try something like this.
In this Case it doesn't matter to which Port the Device is connected to.
 
Old 03-23-2006, 01:21 PM   #3
cferron
Member
 
Registered: Jan 2006
Location: Trois-Rivières, Québec, Canada
Distribution: Slackware, Ubuntu
Posts: 74

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by tuxangler
In this Case it doesn't matter to which Port the Device is connected to.
Well in my case the USB port location is important +
I want to be able to connect any USB mouses not some from specific vendor in order to have the dev entry created... The rule that I'm using is working correctly, BUT I have to disconnect and reconnect the mouse in the USB drive to see the dev entry (/dev/input/mouseXvss) getting created... is this an hotplug issue?

Regards,

Claude

Thanks for trying tought.
 
Old 03-23-2006, 04:42 PM   #4
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 532

Rep: Reputation: 30
May be HID drivers are missing, or simply not loaded at boot.
Is your 2.6.15.4 a standard (downloaded from slack site) or custom kernel ?
If standard, HID drivers are definitely compiled at least as loadable modules, so I would try to uncomment their occourences on /etc/rc.d/rc.modules.
May be this works.
If it doesn't there is a more complicate solution, using a newer version of udev not needing hotplug anymore. Newer version of udev give the possibility to create nodes necessary at boot.
Hope this helps
Ciao
 
Old 03-23-2006, 06:12 PM   #5
cferron
Member
 
Registered: Jan 2006
Location: Trois-Rivières, Québec, Canada
Distribution: Slackware, Ubuntu
Posts: 74

Original Poster
Rep: Reputation: 15
Got it!

I was able to resolve my issue by installing package from the following:

http://piterpunk.info02.com.br/extra/

I guess my problem had to do with the fact that there was incompatibility with hotplug and the version of udev I was using...

Thanks for trying to help me!

Claude
 
Old 03-24-2006, 02:46 AM   #6
tuxangler
Member
 
Registered: Mar 2006
Location: Germany
Distribution: OpenSuSE 10.3 x86-64 SMP - Kernel 2.6.23.14
Posts: 42

Rep: Reputation: 15
If you are interested in writing udev-Rules anyway see this:

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
Creating rules for udev wnaLinux Slackware 5 01-03-2008 09:21 AM
need help fixing my udev rules or ivman rules hedpe Linux - Hardware 2 03-18-2006 10:07 AM
udev rules for sandisk 8 in 1 card reader, can't distinguish hedpe Linux - Hardware 4 12-30-2005 03:38 AM
udev rules, finding the kernel name of a device? rignes Linux - Software 2 11-06-2005 11:42 PM
Networking rules (udev) cassi0peias Linux - Networking 1 10-18-2005 10:13 AM


All times are GMT -5. The time now is 08:18 AM.

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