I searched the forum and looked at
http://reactivated.net/writing_udev_rules.html#syntaxbut I'm confused about the udev rules that are already in /etc/udev and how I can change them.
The problem is that everytime I boot my system device assignments are mixed up. I tried to fix
the problems but everything was reset when I rebooted.
I have a CDRW on /dev/hdc and a DVDRW on /dev/hdd.
lrwxrwxrwx 1 root root 3 2008-02-24 08:46 /dev/cdr -> hdd
lrwxrwxrwx 1 root root 3 2008-02-24 08:46 /dev/cdrom -> hdd
lrwxrwxrwx 1 root cdrom 3 2008-02-24 08:46 /dev/cdrw -> hdd
lrwxrwxrwx 1 root cdrom 3 2008-02-24 08:46 /dev/cdwriter -> hdc
lrwxrwxrwx 1 root cdrom 3 2008-02-24 08:46 /dev/dvd -> hdd
Here is the relevant section from dmesg:
Probing IDE interface ide1...
hdc: HL-DT-ST GCE-8483B, ATAPI CD/DVD-ROM drive
hdd: _NEC DVD+RW ND-1100A, ATAPI CD/DVD-ROM drive
hdc: selected mode 0x42
hdd: selected mode 0x42
ide1 at 0x170-0x177,0x376 on irq 15
hdc: ATAPI 48X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
hdd: ATAPI 40X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
This also happens with my audio devices so that XMMS and skype
fail until I reassign input/output devices.
Intel ICH5: Intel ICH5 (hw:1,0) but sometimes it is (hw:0,0)
Here is the section from udev-rules that seems to be responsible for assigning
names but do I replace these with my own rules or just add my rules to them?
# import optical drive properties and set CD partitions
KERNEL=="scd[a-z]|sr[0-9]*|hd[a-z]|pcd[0-9]*", IMPORT{program}="cdrom_id --export $tempnode"
ENV{ID_CDROM}=="?*", NAME="%k", GROUP="cdrom", MODE="0660", RUN+="cdrom-symlinks.sh %k"
# ALSA devices
SUBSYSTEM=="sound", GROUP="audio"
SUBSYSTEM=="snd", GROUP="audio"
KERNEL=="controlC[0-9]*", NAME="snd/%k", MODE="0666"
KERNEL=="hw[CD0-9]*", NAME="snd/%k", MODE="0662"
KERNEL=="pcm[CD0-9]*c", NAME="snd/%k", MODE="0662"
KERNEL=="pcm[CD0-9]*p", NAME="snd/%k", MODE="0666"
KERNEL=="midiC[D0-9]*", NAME="snd/%k", MODE="0666"
KERNEL=="timer", NAME="snd/%k", MODE="0666"
KERNEL=="seq", NAME="snd/%k", MODE="0666"
So to fix the CD/DVD problem I would replace the code above with:
SUBSYSTEM=="block", KERNEL=="hdc", SYMLINK+="cdrw", GROUP="cdrom"
SUBSYSTEM=="block", KERNEL=="hdd", SYMLINK+="dvdrw", GROUP="cdrom"
What do I do for ALSA?