LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   udev question (https://www.linuxquestions.org/questions/slackware-14/udev-question-425901/)

cferron 03-17-2006 09:15 PM

udev question
 
I have installed udev without any problem on my slackware 10.2 box (kernel 2.6.15.6) I have added specific rules that create /dev/input/mouse1 when a mous 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)

Thanks

Claude

/bin/bash 03-18-2006 02:49 AM

Quote:

I have added specific rules that create /dev/input/mouse1 when a mous is connected in a specific USB port.
What is the rule you added?
Where did you put the rule?

JZL240I-U 03-20-2006 02:05 AM

You know these?

http://www.reactivated.net/writing_udev_rules.html
http://ftp.kernel.org/pub/linux/util...tplug/udev-FAQ

If not, maybe that can help...

cferron 03-20-2006 09:08 AM

sorry for the delay on this one...
 
Quote:

Originally Posted by /bin/bash
What is the rule you added?

I have quoted the following:
#KERNEL="mice", NAME="input/%k", MODE="0644"
#KERNEL="mouse*", NAME="input/%k", MODE="0644"

Added these at the end of the file:
BUS=="usb", ID=="3-2:1.0", NAME="input/mouse1"
BUS=="usb", ID=="3-1:1.0", NAME="input/mouse2"
BUS=="usb", ID=="2-1:1.0", NAME="input/mouse3"
BUS=="usb", ID=="2-2:1.0", NAME="input/mouse4"
BUS=="usb", ID=="4-1:1.0", NAME="input/mouse5"
BUS=="usb", ID=="4-2:1.0", NAME="input/mouse6"


Quote:

Where did you put the rule?
I did put the rules in the rules file. On my Slackware System they are located at: /etc/udev/rules.d/udev.rules and my udev config is pointing in the correct directory

(# udev_rules - The name and location of the udev rules dir
udev_rules="/etc/udev/rules.d")



these rule are working since the mousex get created. The issue is that you need to reconnect the mouse everytime you reboot! so udev recreate the /dev entries.

Thanks

Claude

/bin/bash 03-28-2006 11:28 PM

What if you try putting the MODE back in the rule?
BUS=="usb", ID=="3-2:1.0", NAME="input/mouse1" MODE="0644"
BUS=="usb", ID=="3-1:1.0", NAME="input/mouse2" MODE="0644"
BUS=="usb", ID=="2-1:1.0", NAME="input/mouse3" MODE="0644"
BUS=="usb", ID=="2-2:1.0", NAME="input/mouse4" MODE="0644"
BUS=="usb", ID=="4-1:1.0", NAME="input/mouse5" MODE="0644"
BUS=="usb", ID=="4-2:1.0", NAME="input/mouse6" MODE="0644"


All times are GMT -5. The time now is 03:17 PM.