This is what you get on every restart: * Restoring Mixer Levels ... /etc/init.d/alsasound: line 191: /proc/asound//var/lib/alsa/oss/card0/pcm0c/oss: No such file or directory /etc/init.d/alsasound: line 191: /proc/asound//var/lib/alsa/oss/card0/pcm0p/oss: No such file or directory /etc/init.d/alsasound: line 191: /proc/asound//var/lib/alsa/oss/card0/pcm1c/oss: No such file or directory [ ok ] Boils down to the usage of ${alsastatedir} at: <snip> for ossfile in "${alsastatedir}"/oss/card?_pcm??; do # We use cat because I'm not sure if cp works properly on /proc cat "${ossfile}" > /proc/asound/${ossfile/_/\/}/oss done </snip>
Created attachment 110522 [details, diff] alsasound initscript patch Works for me...
Thanks, fixed without revbump as I'm probably going to revbump later on to fix a few more bugs.
*** Bug 167550 has been marked as a duplicate of this bug. ***
I must be doing something wrong.I've applied this patch.Here's teh relevant section: push_opts=$(shopt -p nullglob); shopt -s nullglob for ossfile in "${alsastatedir}"/oss/card?_pcm??; do # We use cat because I'm not sure if cp works properly on /proc local procfile=${ossfile##${alsastatedir}/oss} cat "${ossfile}" > /proc/asound/${procfile/_/\/}/oss # cat "${ossfile}" > /proc/asound/${ossfile/_/\/}/oss done eval $push_opts But it still gives errors: * Restoring Mixer Levels ... /etc/init.d/alsasound: line 192: /proc/asound//card0/pcm1p/oss: No such file or directory /etc/init.d/alsasound: line 192: /proc/asound//card1/pcm0c/oss: No such file or directory /etc/init.d/alsasound: line 192: /proc/asound//card1/pcm0p/oss: No such file or directory /etc/init.d/alsasound: line 192: /proc/asound//card1/pcm1c/oss: No such file or directory /etc/init.d/alsasound: line 192: /proc/asound//card1/pcm1p/oss: No such file or directory [ ok ] PoseidonGentooNew ~ #
Yes, you must be doing something wrong. It's already fixed in CVS, so emerge --sync and re-emerge the ebuild.
(In reply to comment #5) > Yes, you must be doing something wrong. It's already fixed in CVS, so emerge > --sync and re-emerge the ebuild. > So I did what you described. Still the error remains: " PoseidonGentooNew ~ # /etc/init.d/alsasound restart * WARNING: you are stopping a boot service. * Storing ALSA Mixer Levels ... [ ok ] * Killing processes using ALSA ... [ ok ] * Unloading ALSA modules ... [ ok ] * Loading ALSA modules ... * Loading: snd-card-0 ... [ ok ] * Loading: snd-pcm-oss ... [ ok ] * Loading: snd-seq-oss ... [ ok ] * Restoring Mixer Levels ... /etc/init.d/alsasound: line 192: /proc/asound//card0/pcm1p/oss: No such file or directory /etc/init.d/alsasound: line 192: /proc/asound//card1/pcm0c/oss: No such file or directory /etc/init.d/alsasound: line 192: /proc/asound//card1/pcm0p/oss: No such file or directory /etc/init.d/alsasound: line 192: /proc/asound//card1/pcm1c/oss: No such file or directory /etc/init.d/alsasound: line 192: /proc/asound//card1/pcm1p/oss: No such file or directory [ ok ] PoseidonGentooNew " It may be something else but I do not understand the script well enough to find out myself.Am I the only person having this problem?
To be exact I paste teh relevant section of the script: " push_opts=$(shopt -p nullglob); shopt -s nullglob for ossfile in "${alsastatedir}"/oss/card?_pcm??; do # We use cat because I'm not sure if cp works properly on /proc local procfile=${ossfile##${alsastatedir}/oss} cat "${ossfile}" > /proc/asound/${procfile/_/\/}/oss done eval $push_opts "
Works just perfectly fine here; if you are missing OSS support in alsa or don't have the needed modules loaded, then there's obviously nothing to restore.
I give up. All modules are loaded and everything used to work. I reverted to alsa-utils-1.0.14_rc2 and there are no more messages. It still seems a bug to me...
same for me help its: /etc/init.d/alsasound stop rm -rf /var/lib/alsa emerge alsa-utils /etc/init.d/alsasound start alsamixer # unmute what you need
Created attachment 112786 [details, diff] /etc/init.d/alsasound I modify the script a little. It works for me. Jj