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 |
Quote:
Where did you put the rule? |
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... |
sorry for the delay on this one...
Quote:
#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:
(# 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 |
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. |