Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Make alsa-oss work correctly again
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
slougi
Apprentice
Apprentice


Joined: 12 Nov 2002
Posts: 222
Location: Oulu, Finland

PostPosted: Wed Apr 30, 2003 8:07 am    Post subject: Make alsa-oss work correctly again Reply with quote

After updating alsa-driver I no longer could get alsa-oss to work automatically, however much I changed in the config files. I ended up writing a small boot script, it might help some other people. It assumes the default devfsd.conf variables, ie users have to belong to audio group to be able to listen to anything ;)

Here is the script:

Code:
#!/sbin/runscript

depend() {
        need alsasound
}


start() {
        ebegin "Loading alsa-oss modules"
        modprobe snd-pcm-oss
        modprobe snd-mixer-oss
        chown -R root.audio /dev/sound
        chmod -R 770 /dev/sound
        eend $?
}

stop() {
        ebegin "Unloading alsa-oss modules"
        rmmod snd-pcm-oss
        rmmod snd-mixer-oss
        eend $?
}


Save as /etc/init.d/alsa-oss and add to boot run level.

This is very much a hack, but it works well enough for me. I thought someone might find it useful.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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