Sound card keeps disappearing

Hi,

I have OpenSuse 11.2 installed.

Previously had no problems with my sound card. However each time I start up I get no sound. I have to go into YaST2->Sound and delete the card listed there. If I then add a card (automatically detect settings) I get sound.

Any ideas?

Info listed in YaST2:
Card model: MCP51 AC97 Audio Controller
Driver: snd-intel8x0

What happens if instead of going to YaST after a reboot you type:

su -c 'rcalsasound restart'

in a terminal and enter root password, and then restart your mixer (kmix in kde and alsamixer ? in gnome) ?

That worked after a reboot but not permanent (i.e. after a 2nd reboot the sound was not working again)

> su -c ‘rcalsasound restart’
Shutting down sound driverWARNING: All config files need .conf: /etc/modprobe.d/garmintools, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/garmintools, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/garmintools, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/garmintools, it will be ignored in a future release.
done
Starting sound driverWARNING: All config files need .conf: /etc/modprobe.d/garmintools, it will be ignored in a future release.
: intel8x0WARNING: All config files need .conf: /etc/modprobe.d/garmintools, it will be ignored in a future release.
done
WARNING: All config files need .conf: /etc/modprobe.d/garmintools, it will be ignored in a future release.

I expected that might happen.

One possibility is when you boot, some application has seized your audio device and is refusing to share it. If that is the case, I am curious as to what application is behaving so badly.

Could you reboot? and then run:

lsof /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/*

and then test your sound and run again:

lsof /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/*

and then run

su -c 'rcalsasound restart

and again run

lsof /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/*

and test your sound.

By running ‘lsof’ one checks for files opened by the system and that often will tell us what application is using the sound device.

It is possible to run “rcalsasound restart” upon every boot by putting that command as the last line in the file:
/etc/init.d/boot.local

rcalsasound restart

but it would be preferable if that were not necessary.

Now nothing, but we might be closer to an answer!

> lsof /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/*
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
kmix 3455 simon 11u CHR 116,9 0t0 5910 /dev/snd/controlC0
kmix 3455 simon 13u CHR 116,4 0t0 5711 /dev/snd/controlC1
pulseaudi 3477 simon 20u CHR 116,4 0t0 5711 /dev/snd/controlC1

> su -c ‘rcalsasound restart’
> lsof /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/*
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
pulseaudi 7615 simon mem CHR 116,6 31914 /dev/snd/pcmC0D0c
pulseaudi 7615 simon mem CHR 116,5 31921 /dev/snd/pcmC0D0p
pulseaudi 7615 simon 20u CHR 116,7 0t0 31947 /dev/snd/controlC0
pulseaudi 7615 simon 21u CHR 116,5 0t0 31921 /dev/snd/pcmC0D0p
pulseaudi 7615 simon 26u CHR 116,7 0t0 31947 /dev/snd/controlC0
pulseaudi 7615 simon 27u CHR 116,6 0t0 31914 /dev/snd/pcmC0D0c

Still no sound.

If I then
> realplay (File->Open->an Mp3 file)
ALSA lib pcm_dmix.c:977:(snd_pcm_dmix_open) unable to create IPC semaphore

If I then
> su
> realplay (File->Open->an Mp3 file)

it works fine

Very strange

Please restart your mixer after typing “rcalsasound restart”. The mixer is “kmix” in kde, and I think maybe ‘alsamixer’ in Gnome.

What happens if you add your regular user to group audio in YaST > Security and Users …

and then restart and test.

Well my mp3 playback seems to be working OK now but skype and the “bing bongs” from KDE start-up don’t

Hmmm, two more reboots and all seems to be back to normal again.

Isn’t sound under linux great!

Many thanks for all of your help.

Happy Easter

Glad to read its working again.

Happy Easter to you as well.