LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Udev rules working but... (http://www.linuxquestions.org/questions/linux-hardware-18/udev-rules-working-but-427623/)

cferron 03-23-2006 06:58 AM

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

tuxangler 03-23-2006 07:10 AM

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.

cferron 03-23-2006 01:21 PM

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.

urka58 03-23-2006 04:42 PM

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

cferron 03-23-2006 06:12 PM

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

tuxangler 03-24-2006 02:46 AM

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

http://www.reactivated.net/writing_udev_rules.html


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