Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Partially Solved] Udev problems...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
LucaSpiller
Apprentice
Apprentice


Joined: 10 Sep 2004
Posts: 188
Location: Censorship Land (aka England)

PostPosted: Mon Sep 05, 2005 12:33 pm    Post subject: [Partially Solved] Udev problems... Reply with quote

Righty, I am having a few problems with good ol' udev, so hopefully somebody will be able to help.

On Sunday for some reason my sound just stopped working, everything that tried to use ALSA left the following on the console:
Code:
ALSA lib pcm_dmix.c:802:(snd_pcm_dmix_open) unable to open slave

I have ALSA built into my kernel (2.6.12-nitro5 / 1.0.9b), and this hasn't changed so wasn't the problem. I did a bit of digging around and found that there was no /dev/snd or /dev/sound, so I ran udevstart, but still nothing. Yet more digging showed that /dev/v4l was not being created either. In my rules I have the following:
/etc/udev/rules.d/10-local.rules wrote:
# Optical drives
KERNEL="hdc", SYMLINK="dvd", MODE="0666"
KERNEL="hdd", SYMLINK="dvdrw", MODE="0666"

# Sound
SUBSYSTEM="sound", NAME="%k", GROUP="audio", USER="audio", MODE="0666"

# v4l
SUBSYSTEM="video4linux", NAME="%k", GROUP="video", USER="video", MODE="0666"

/etc/udev/rules.d/50-udev.rules wrote:
...
# sound devices
KERNEL=="adsp", NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
KERNEL=="adsp[0-9]*", NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
KERNEL=="audio", NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
KERNEL=="audio[0-9]*", NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
KERNEL=="dsp", NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
KERNEL=="dsp[0-9]*", NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
KERNEL=="mixer", NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
KERNEL=="mixer[0-9]*", NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
KERNEL=="sequencer", NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
KERNEL=="sequencer[0-9]*", NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
...
# v4l devices
KERNEL=="video[0-9]*", NAME="v4l/video%n", SYMLINK+="video%n", GROUP="video"
KERNEL=="radio[0-9]*", NAME="v4l/radio%n", GROUP="video"
KERNEL=="vbi[0-9]*", NAME="v4l/vbi%n", SYMLINK+="vbi%n", GROUP="video"
KERNEL=="vtx[0-9]*", NAME="v4l/vtx%n", GROUP="video"
...

If I add the following to '10-local.rules', then /dev/v4l is created.
Quote:
SUBSYSTEM="video4linux", NAME="v4l/%k", GROUP="video", USER="video", MODE="0666"

But adding similar stuff for the sound didn't work. The '50-local.rules' is the default Gentoo one, and I cannot see anything that would make anything wrong with it (after all a cazillion other people would complain if it didn't work), but the == after KERNEL looks a bit wierd, or doesn't it matter?

In summary for some reason my rules are not being processed correctly, nothing has changed since they were working that could affect them.

Kernel: 2.6.12-nitro5 (also tried with 2.6.13 Gentoo Sources, but doesn't work)
Udev: 068
Code:
System info:Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo i686)
=================================================================
System uname: 2.6.13-gentoo i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.mirror.sdv.fr ftp://ftp.rhnet.is/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/gentoo/ ftp://ftp.tiscali.nl/pub/mirror/gentoo"
LINGUAS="en_GB"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X alsa apache2 apm avi bash-completion bitmap-fonts bluetooth bonobo crypt cups curl dba directfb dvd dvdr dvdread dvdrw eds emboss encode fam firefox flac foomaticdb fortran gd gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 irmc jack java jpeg junit kde kqemu libg++ libwww mad mikmod mmx mmxext mono motif mozilla mozsvg mozxmlterm mp3 mpeg mysql ncurses nls nptl ogg oggvorbis opengl pam pdflib perl png ppds python quicktime readline real scanner sdl spell sqlite sse ssl subversion svg svga svn symlink tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb v4l vorbis webservices xine xinerama xml xml2 xmms xprint xv xvid zlib linguas_en_GB userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS


Thanks for any help,
Luca Spiller
_________________
:: Luca :: Mac Fag :: Original Macbook, 2g RAM :: Closet Linux user (seasoned with salt and pepper) :: C2D E4400 @ 2ghz, 4g RAM (only 3.2g detected under 64bit...), Nvidia 9600GSO ::


Last edited by LucaSpiller on Thu Sep 08, 2005 9:00 am; edited 1 time in total
Back to top
View user's profile Send private message
LucaSpiller
Apprentice
Apprentice


Joined: 10 Sep 2004
Posts: 188
Location: Censorship Land (aka England)

PostPosted: Tue Sep 06, 2005 5:02 pm    Post subject: Reply with quote

Alrighty, I have downgraded to udev 058 (the previous stable version), and it works fine. So it must be a problem with udev 068. Time to open a bug report....

EDIT: Bug Report
_________________
:: Luca :: Mac Fag :: Original Macbook, 2g RAM :: Closet Linux user (seasoned with salt and pepper) :: C2D E4400 @ 2ghz, 4g RAM (only 3.2g detected under 64bit...), Nvidia 9600GSO ::
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum