Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/dsp turns into a directory everytime I reboot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
snorkel
Apprentice
Apprentice


Joined: 14 May 2002
Posts: 206
Location: Milwaukee, WI

PostPosted: Fri Sep 12, 2003 5:59 am    Post subject: /dev/dsp turns into a directory everytime I reboot Reply with quote

I delete the damn thing, then do a ln -s /dev/sound/dsp /dev/dsp to create the link. After I create the link everything works, i.e. KDE sound, UT2003 etc etc, after I reboot dsp the link is replaced by dsp the dir.

This all started happening after I installed a new kernel, went from gentoo-sources to the gaming sources.

Anyone have any Ideas?

Thanks,

T
Back to top
View user's profile Send private message
thunder
Retired Dev
Retired Dev


Joined: 01 Sep 2003
Posts: 164
Location: Wroclaw, PL

PostPosted: Fri Sep 12, 2003 6:54 am    Post subject: Reply with quote

after boot kernel is creating compiled devices so you have to add to src script rm -rf /dev/dsp and link it to your dsp :)
_________________
Damian Florczyk
Gentoo/NetBSD development lead
Back to top
View user's profile Send private message
longshot
Tux's lil' helper
Tux's lil' helper


Joined: 04 Sep 2003
Posts: 90

PostPosted: Fri Sep 12, 2003 12:11 pm    Post subject: Reply with quote

I also see this behaviour for /dev/dsp, and I see it for /dev/rtc. I'm using 2.6.0-test4 (now 2.6.0-test5).

I've been deleting and linking manually, looking and wating for a better solution.

thunder's explanation is a bit terse for me. Is there configuration for controlling the kernel creating "compiled devices" - its not a term I've seen. I'm surprised others arent seeing/reporting the problem, and I was thinking it must be something narrow that I've done or set somewhere, rather than being widespread. I've spent quite a while trying to sort it out (including comparing all my rc scripts and conf files with those in cvs).

Is adding

rm /dev/dsp
ln -s /dev/sound/dsp /dev/dsp
rm /dev/rtc
ln -s /dev/misc/rtc /dev/rtc

to one of the startup scripts what others are doing?

Use local.start?
Back to top
View user's profile Send private message
gilesjuk
Guru
Guru


Joined: 11 Feb 2003
Posts: 412
Location: Staffordshire, UK

PostPosted: Fri Sep 12, 2003 3:50 pm    Post subject: DevFS Reply with quote

All of you guys need to look at the DevFS, making entries in /dev is a thing of the past now (for Gentoo anyway). It's all contolled by the devfs config files etc...
_________________
^<^>^<^>^
G. Jones
-=-=-=-=-=-
Back to top
View user's profile Send private message
snorkel
Apprentice
Apprentice


Joined: 14 May 2002
Posts: 206
Location: Milwaukee, WI

PostPosted: Fri Sep 12, 2003 5:19 pm    Post subject: Reply with quote

I have looked at my devfs config files and there is a entry in there to create the dsp file, I don't think that is the problem.

I updated the kernel on another PC and the link to /dev/sound/dsp is being created fine.
Back to top
View user's profile Send private message
longshot
Tux's lil' helper
Tux's lil' helper


Joined: 04 Sep 2003
Posts: 90

PostPosted: Fri Sep 12, 2003 8:52 pm    Post subject: Reply with quote

I likewise have devfs enabled and alias entries for /dev/dsp and /dev/rtc. But they are still being created as directories rather than symlinks.
Back to top
View user's profile Send private message
Peaceable Frood
Guru
Guru


Joined: 06 Apr 2003
Posts: 338
Location: New Jersey, USA

PostPosted: Fri Sep 12, 2003 9:21 pm    Post subject: Reply with quote

DevFS is marked obsolete in the 2.6 kernel so I believe its on automatically or you don't need it anymore.
_________________
"Our enemies are innovative and resourceful, and so are we, they never stop thinking about new ways to harm our country and our people, and neither do we." George W. Bush
Back to top
View user's profile Send private message
Roguelazer
Veteran
Veteran


Joined: 10 Feb 2003
Posts: 1233
Location: San Francisco, CA

PostPosted: Fri Sep 12, 2003 9:36 pm    Post subject: Reply with quote

No, there's a new one. udev or something like that. Anyone heard of it? (Not me until I was browsing the help in my mm-sources)
_________________
Registered Linux User #263260
Back to top
View user's profile Send private message
longshot
Tux's lil' helper
Tux's lil' helper


Joined: 04 Sep 2003
Posts: 90

PostPosted: Sun Sep 14, 2003 10:18 am    Post subject: Reply with quote

Have a look in /lib/dev-state. See if there is a dsp directory there. There was in mine, I deleted it, thereafter I get a symlink to /dev/sound/dsp. devfs uses /lib/dev-state for changes to /dev which need to be persisted.

I did likewise for rtc, and it fixed most of my problems there also - except that /proc/sys/dev/rtc/max-user-freq isnt created (for mplayer).

Search the forums for dev-state will turn up previous similar problem and suggested solution.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Sep 14, 2003 8:09 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
snorkel
Apprentice
Apprentice


Joined: 14 May 2002
Posts: 206
Location: Milwaukee, WI

PostPosted: Wed Sep 17, 2003 2:23 am    Post subject: Reply with quote

Thanks,
That was the problem :-) Learn something new everyday.

longshot wrote:
Have a look in /lib/dev-state. See if there is a dsp directory there. There was in mine, I deleted it, thereafter I get a symlink to /dev/sound/dsp. devfs uses /lib/dev-state for changes to /dev which need to be persisted.

I did likewise for rtc, and it fixed most of my problems there also - except that /proc/sys/dev/rtc/max-user-freq isnt created (for mplayer).

Search the forums for dev-state will turn up previous similar problem and suggested solution.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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