1 # /etc/udev/udev.rules: device naming rules for udev
3 # There are a number of modifiers that are allowed to be used in some of the
4 # fields. See the udev man page for a full description of them.
6 ###########################################################
8 # Add your own rules here (examples are commented)
10 ###########################################################
12 # Looking for scsi bus id 42:0:0:1
13 #BUS="scsi", PROGRAM="/bin/echo -n test-%b", RESULT="test-42:0:0:1", NAME="%c"
16 #BUS="usb", SYSFS_vendor="FUJIFILM", SYSFS_model="M100", NAME="camera%n"
18 # USB Epson printer to be called lp_epson
19 #BUS="usb", SYSFS_serial="HXOLL0012202323480", NAME="lp_epson"
21 # USB HP printer to be called lp_hp
22 #BUS="usb", SYSFS_serial="W09090207101241330", NAME="lp_hp"
24 # sound card with PCI bus id 00:0b.0 to be the first sound card
25 #BUS="pci", ID="00:0b.0", NAME="dsp"
27 # sound card with PCI bus id 00:07.1 to be the second sound card
28 #BUS="pci", ID="00:07.1", NAME="dsp1"
30 # USB mouse plugged into the third port of the first hub to be called mouse0
31 #BUS="usb", PLACE="1.3", NAME="mouse0"
33 # USB tablet plugged into the third port of the second hub to be called mouse1
34 #BUS="usb", PLACE="2.3", NAME="mouse1"
35 #BUS="usb", PLACE="2.4", NAME="mouse2"
37 # ttyUSB1 should always be called visor
38 #KERNEL="ttyUSB1", NAME="visor"
39 #KERNEL="ttyUSB0", NAME="pl2303"
42 ###########################################################
44 # For devfs similar /dev layout (neater)
46 ###########################################################
48 # devfs-names for ide-devices (uncomment only one)
49 # /dev/ide/.../{disc,cd} and /dev/{cdroms,discs}/* type names
50 BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}"
53 KERNEL="controlC[0-9]*", NAME="snd/%k"
54 KERNEL="hw[CD0-9]*", NAME="snd/%k"
55 KERNEL="pcm[CD0-9cp]*", NAME="snd/%k"
56 KERNEL="midi[CD0-9]*", NAME="snd/%k"
57 KERNEL="timer", NAME="snd/%k"
58 KERNEL="seq", NAME="snd/%k"
60 # dm devices (ignore them)
61 KERNEL="dm-[0-9]*", NAME=""
62 KERNEL="device-mapper", NAME="mapper/control"
65 KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k"
68 KERNEL="fd[0-9]*", NAME="floppy/%n", SYMLINK="%k"
71 KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="%k"
74 KERNEL="mice", NAME="input/mice"
75 KERNEL="mouse[0-9]*", NAME="input/mouse%n"
76 KERNEL="event[0-9]*", NAME="input/event%n"
77 KERNEL="js*", NAME="input/%k"
78 KERNEL="ts*", NAME="input/%k"
81 KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="%k"
84 KERNEL="md[0-9]*", NAME="md/%n", SYMLINK="%k"
87 KERNEL="rtc", NAME="misc/%k", SYMLINK="%k"
88 KERNEL="psaux", NAME="misc/%k", SYMLINK="%k"
89 KERNEL="agpgart", NAME="misc/%k", SYMLINK="%k"
90 KERNEL="rtc", NAME="misc/%k", SYMLINK="%k"
91 KERNEL="psaux", NAME="misc/%k", SYMLINK="%k"
92 KERNEL="uinput", NAME="misc/%k", SYMLINK="%k"
95 KERNEL="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK="%k"
96 KERNEL="tty[p-za-e][0-9a-f]*", NAME="tty/s%n", SYMLINK="%k"
99 KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k"
102 KERNEL="adsp", NAME="sound/adsp" SYMLINK="%k"
103 KERNEL="audio", NAME="sound/audio", SYMLINK="%k"
104 KERNEL="dsp", NAME="sound/dsp", SYMLINK="%k"
105 KERNEL="mixer", NAME="sound/mixer", SYMLINK="%k"
106 KERNEL="sequencer", NAME="sound/sequencer", SYMLINK="%k"
107 KERNEL="sequencer2", NAME="sound/sequencer2", SYMLINK="%k"
110 KERNEL="tty[0-9]*", NAME="vc/%n", SYMLINK="%k"
111 KERNEL="ttyS[0-9]*", NAME="tts/%n", SYMLINK="%k"
112 KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n"
115 KERNEL="vcs", NAME="vcc/0", SYMLINK="%k"
116 KERNEL="vcs[0-9]*", NAME="vcc/%n", SYMLINK="%k"
117 KERNEL="vcsa", NAME="vcc/a0", SYMLINK="%k"
118 KERNEL="vcsa[0-9]*", NAME="vcc/a%n", SYMLINK="%k"
121 KERNEL="video[0-9]*", NAME="v4l/video%n"
122 KERNEL="radio[0-9]*", NAME="v4l/radio%n"
123 KERNEL="vbi[0-9]*", NAME="v4l/vbi%n"
124 KERNEL="vtx[0-9]*", NAME="v4l/vtx%n"