LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-04-2005, 10:21 AM   #1
akshunj
Member
 
Registered: Sep 2002
Location: Atlanta, GA
Distribution: Linux Mint Gloria, Slackware 12.2
Posts: 165

Rep: Reputation: 30
problems with udev - 2.6.10 kernel


I can't seem to get udev to start properly. I have a rc.udev script, butwhen it runs the first time, no nodes get created for the soud devices (/dev/dsp, etc) that ALSA needs to emulate OSS. I end up having to re-initialize udev in my local script. And when I do that, somehow /dev/pts gets uncreated and I have to re-mount it, again from my local script. (Without /dev/pts, I can't access the command-line from X !)

My basic question is what am I not doing right with udev? Why should I have to turn it on twice? I'm thinking that something stops it before it gets fully initialized, but dmesg and syslog don't show anything. Hmm, maybe I didn't scrutinize syslog as closely as I need to, now that I think about it.

In any case, suggestions would be appreciated. Thanks in advance!

--Akshun J
 
Old 01-04-2005, 11:50 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
well...i don't know any other solution as the one you posted.
( might have to do with the Slack-startup script or udev itself....... )

egag
 
Old 01-04-2005, 12:03 PM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
I had the same issue (I use snd_intel8x0 driver), I ended with compile all sound features as built-in
Now udev creates the /dev/dsp etc... the same way as before
 
Old 01-04-2005, 12:54 PM   #4
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
The solution I came across and use is simply to reload the OSS emulation modules.

To do that, the following is in my /etc/rc.d/rc.local
Code:
# /dev/dsp Also loads snd_mixer_oss for /dev/mixer
modprobe snd_pcm_oss
# /dev/midi
modprobe snd_seq_oss
 
Old 01-04-2005, 12:55 PM   #5
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Good point , you did not put them in /etc/hotplug/blacklist ?
 
Old 01-04-2005, 01:41 PM   #6
akshunj
Member
 
Registered: Sep 2002
Location: Atlanta, GA
Distribution: Linux Mint Gloria, Slackware 12.2
Posts: 165

Original Poster
Rep: Reputation: 30
No, they are not blacklisted. They autoload from /etc/modprobe.conf. Which I thought was the desired behavior. So I should load them from rc.local and blacklist them on hotplug? Hmm, I will give it a try.

Is it just an issue of timing? If Alsa loads the OSS module before udev initializes, does that create the issue? It would make sense. I'll just kill rc.alsa all together and reload volume and OSS from local. I'll post if that works when I get home. Thanks for the help, dude. I really appreciate i!

--Akshun J
 
Old 01-05-2005, 02:41 PM   #7
akshunj
Member
 
Registered: Sep 2002
Location: Atlanta, GA
Distribution: Linux Mint Gloria, Slackware 12.2
Posts: 165

Original Poster
Rep: Reputation: 30
Well, I have determined that this issue is a conflict between ALSA and udev. I think the bug is with udev. However, it appears on the ALSA bug-tracking. I compiled soundcore as a module. When soundcore loads, udev creates a node at /dev/sound. Then, when the oss modules are loaded, udev tries to put them in a /dev/sound directory, but the existence of /dev/sound node intereferes with this. There is no where for them to go. I think I can blacklist soundcore and load it after udev is grooving, but I think it's got to load BEFORE the oss modules, which leaves me with the problem again. The only solution I have that works is to restart udev and remount /dev/pts. I can live with it, but it seems like a dirty hack. And, of course, I can compile soundcore into the kernel. That works for my laptop (same version of udev and ALSA.) I think udev still needs some work.

--Akshun J
 
Old 01-21-2005, 10:32 AM   #8
tacorner
LQ Newbie
 
Registered: Dec 2003
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
How exactly do you generate a /dev/dsp. Mine went away between 2.6.8.1 and 2.6.10. I am using the snd-cmipci sound module.

tcorner@emerson:~$ ls /sys/class/sound
adsp/ controlC0/ dsp1/ pcmC0D0c/ pcmC0D2c/ timer/
audio/ controlC1/ mixer/ pcmC0D0p/ pcmC0D2p/
audio1/ dsp/ mixer1/ pcmC0D1p/ pcmC1D0c/


Now how do I link the devices described in /sys/class/sound to a /dev/dsp etc. ?

Thanks,

Tom
 
Old 01-21-2005, 10:45 AM   #9
tacorner
LQ Newbie
 
Registered: Dec 2003
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
I hate to reply to myself, but I got it. There is already an /etc/rc.d/rc.udev script. It just needs to be rerun in r/etc/rc.d/rc.local.

Thanks,

Tom
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
help! problems after updating udev for a 2.6.14 kernel! darksmiley Linux - General 5 12-02-2005 03:14 AM
Can I disable rc.udev with 2.4 kernel shepper Slackware 2 09-18-2005 08:45 PM
problems with udev can3p Slackware 7 06-09-2005 06:33 PM
kppp, udev, and kernel 2.6.10 mscole Slackware 5 04-02-2005 09:15 PM
kernel 2.6.9 and udev ?? CloudyWizzard Debian 3 11-27-2004 10:36 AM


All times are GMT -5. The time now is 11:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration