LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-17-2006, 09:15 PM   #1
cferron
Member
 
Registered: Jan 2006
Location: Trois-Rivières, Québec, Canada
Distribution: Slackware, Ubuntu
Posts: 74

Rep: Reputation: 15
Question 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
 
Old 03-18-2006, 02:49 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
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?
 
Old 03-20-2006, 02:05 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
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...
 
Old 03-20-2006, 09:08 AM   #4
cferron
Member
 
Registered: Jan 2006
Location: Trois-Rivières, Québec, Canada
Distribution: Slackware, Ubuntu
Posts: 74

Original Poster
Rep: Reputation: 15
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
 
Old 03-28-2006, 11:28 PM   #5
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
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"
 
  


Reply



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
udev update question (from Current Changelog) dhave Slackware 31 07-22-2005 07:49 PM
Sidewinder gamepad problem and udev question techrolla Linux - Hardware 2 02-02-2005 07:17 PM
Udev anyone? yanik Debian 5 01-05-2005 09:02 AM
Help with udev sls Debian 4 12-28-2004 02:06 PM
udev ... I think element Debian 4 05-27-2004 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration