Summary: | sys-fs/udev-068 fails to create /dev/snd/* and /dev/video/* | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Luca Spiller <thelucster> |
Component: | [OLD] Core system | Assignee: | Greg Kroah-Hartman (RETIRED) <gregkh> |
Status: | VERIFIED NEEDINFO | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://forums.gentoo.org/viewtopic-p-2704728.html#2704728 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Luca Spiller
2005-09-06 10:11:39 UTC
What does 'tree /sys/class/sound' show? Also, what does 'udevtest /sys/class/sound/controlC0 sound' run as root show? This works fine for me here... Appologies for the delay, but I have been rather busy lately as I am back to college. With udev-58: fe04 ~ # udevtest /sys/class/sound/controlC0 sound udevtest.c: looking at device '/class/sound/controlC0' from subsystem 'sound' udev_rules_parse.c: unknown key 'USER' udev_rules_parse.c: parse error /etc/udev/rules.d/10-local.rules, line 9:57, rule skipped udev_rules_parse.c: unknown key 'USER' udev_rules_parse.c: parse error /etc/udev/rules.d/10-local.rules, line 12:63, rule skipped udevtest.c: opened class_dev->name='controlC0' udev_rules.c: configured rule in '/etc/udev/rules.d/50-udev.rules[46]' applied, 'controlC0' becomes 'snd/%k' udev_add.c: creating device node '/dev/snd/controlC0', major = '116', minor = '0', mode = '0660', uid = '0', gid = '18' fe04 ~ # tree /sys/class/sound /sys/class/sound |-- adsp | `-- dev |-- audio | `-- dev |-- controlC0 | |-- dev | `-- device -> ../../../devices/pci0000:00/0000:00:02.7 |-- dsp | `-- dev |-- mixer | `-- dev |-- pcmC0D0c | |-- dev | `-- device -> ../../../devices/pci0000:00/0000:00:02.7 |-- pcmC0D0p | |-- dev | `-- device -> ../../../devices/pci0000:00/0000:00:02.7 |-- pcmC0D1c | |-- dev | `-- device -> ../../../devices/pci0000:00/0000:00:02.7 |-- seq | `-- dev |-- sequencer | `-- dev |-- sequencer2 | `-- dev `-- timer `-- dev 16 directories, 12 files With udev-068-r1: fe04 ~ # udevtest /sys/class/sound/controlC0 sound main: looking at device '/class/sound/controlC0' from subsystem 'sound' add_to_rules: unknown key 'USER', in 'SUBSYSTEM' add_to_rules: unknown key 'USER', in 'SUBSYSTEM' main: opened class_dev->name='controlC0' udev_rules_get_name: rule applied, 'controlC0' becomes 'controlC0' create_node: creating device node '/dev/controlC0', major = '116', minor = '0', mode = '0666', uid = '0', gid = '18' fe04 ~ # tree /sys/class/sound /sys/class/sound |-- adsp | `-- dev |-- audio | `-- dev |-- controlC0 | |-- dev | `-- device -> ../../../devices/pci0000:00/0000:00:02.7 |-- dsp | `-- dev |-- mixer | `-- dev |-- pcmC0D0c | |-- dev | `-- device -> ../../../devices/pci0000:00/0000:00:02.7 |-- pcmC0D0p | |-- dev | `-- device -> ../../../devices/pci0000:00/0000:00:02.7 |-- pcmC0D1c | |-- dev | `-- device -> ../../../devices/pci0000:00/0000:00:02.7 |-- seq | `-- dev |-- sequencer | `-- dev |-- sequencer2 | `-- dev `-- timer `-- dev 16 directories, 12 files It seems that it doesn't really like processing my new rules, which are as follows (basically the same as before, but with some stuff for my pendrive): fe04 ~ # cat /etc/udev/rules.d/10-local.rules # Optical drives KERNEL="hdc", SYMLINK="dvd", MODE="0666" KERNEL="hdd", SYMLINK="dvdrw", MODE="0666" # Pendrive SUBSYSTEM="block", SYSFS{dev}=="180:32", SYSFS{product}=="USB DISK Pro", SYSFS{serial}=="07410E480006", NAME="%k", SYMLINK="pendrive" # Sound SUBSYSTEM="sound", NAME="%k", GROUP="audio", USER="audio", MODE="0666" # v4l SUBSYSTEM="video4linux", NAME="%k", GROUP="video", USER="video", MODE="0666" Forgot to reopen. I am having the same issue on two machines. "udevstart" is solving the issue for me, I read in some other forums that adding this into the /etc/init.d/alsasound might help. I will test this later... Please fix your local rules up first, and get them to work properly, before worrying about the sound ones. And, does the 070 release fix your problems? Alrighty, just upgrading and fixing the errors alone did not fix it, but the problem seems to be that it was a bug in the earlier version. I now have the following in my 10-local.rules (just appropriate ones), which are exactly the same as the original ones except without USER="audio",: # Sound SUBSYSTEM="sound", NAME="%k", GROUP="audio", MODE="0666" # v4l SUBSYSTEM="video4linux", NAME="%k", GROUP="video", MODE="0666" This is overriding the default ones, so it just puts them in /dev/. *sigh* If I put NAME="snd/%k" for the sound stuff (or just remove it), as expected it works fine. This must have been fixed somewhere after 058, which is why it no longer worked for me. Thanks for your help, and sorry for my stupidity. :P Stonki, did you get your problem sorted? If not post you info and we can have a look through it. |