The sound of silence

Hi,

I am impressed with 11.4 and am happy that for the first time ever I don’t need to install a kernel patch to support my on-board nVidia graphics.

However, the on-board sound no longer works now. I don’t know how to set it up in phonon. My device number 0 in phonon is MCP72XE/MCP72P/MCP78U/MCP78S high definition audio, and I assume this is my nVidia on-board sound card. The driver information states snd-hda-intel.

How can I check what is wrong with it? It did work fine on 11.2 right up to the 11.4 installation. I do get system sounds (like the start-up and shut-down sounds), but nothing from any application, e.g., firefox playing a video.
Based on the advice from another thread I tried:
speaker-test -c2 -l5 -twav

This does not produce any sound, but gives the following information:
speaker-test 1.0.24.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 1048576
Period size range from 32 to 349526
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
0 - Front Left
1 - Front Right
Time per period = 3.782305
0 - Front Left
1 - Front Right
Time per period = 3.797094
0 - Front Left
1 - Front Right
Time per period = 3.783621
0 - Front Left
1 - Front Right
Time per period = 3.777057
0 - Front Left
1 - Front Right
Time per period = 3.785093

As always, any advice will be greatly appreciated.

Thanks,

Abe

Hello Abe,

I think here is a good troubleshooting guide here SDB:Audio troubleshooting - openSUSE you can try some tips from there, I think there is also a guide about how to post your problem so this way you can post more useful information about your system setup. Sorry, but I cant help you… newbie here :slight_smile:

You can open up a terminal session and run the following command:

cat /proc/asound/cards

On my computer here is the result as I also have an nVIDIA card with sound:

Command: cat /proc/asound/cards                                                                                                                               
                                                                                                                                                              
 0 [XFi            ]: SB-XFi - Creative X-Fi                                                                                                                  
                      Creative X-Fi 20K2 SB0880                                                                                                               
 1 [NVidia         ]: HDA-Intel - HDA NVidia                                                                                                                  
                      HDA NVidia at 0xf8080000 irq 17

Your primary sound card needs to be zero “0” and not 1. You can go to:


YaST / Hardware / Sound 

If your primary sound card is not zero then select it with your mouse and then pick the “Other” button on the bottom right and elect to “Set as the Primary Card”. and see if this helps. I have a script file called start that can help with many other sound tests you can find here:

S.T.A.R.T. - SuSE Terminal Audio Reporting Tool

Thank You,

When I saw the thread title I thought it’s about Simon & Garfunkel.:slight_smile:

It’s hard to tell what might be causing the problem.
Maybe you need to post more info to catch the attention of the forum sound gurus.
Things maybe of help diagnose are

  1. Post a screenshot of phonon-device preference
  2. The output of the command aplay -l
  3. How many soundcard is attached to your machine.

As you probably know 11.4 is using pulse audio so you might need pavucontrol to be installed and not rely 100% with kmix.

Good luck

I struggled a bit with the milestone, RC and GM versions of 11.4 wrt sound, especially in KDE, because with pulse audio enabled by default, the change in behaviour is significant for many different types of hardware.

I found what helped me was to install the application ‘pavucontrol’ and then run ‘pavucontrol’ and use that to select and tune one’s audio.

First, I would like to apologise for giving the wrong impression with the title of my post. That Simon and Garfunkel song is great and far more serious than my current sound problems :slight_smile:

Many thanks for the advice. I will look at the audio troubleshooting guide soon. In the mean time here are the requested outputs:
First, cat /proc/asound/cards gives:

0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xfe020000 irq 22
1 [CMI8738 ]: CMI8738 - C-Media CMI8738
C-Media CMI8738 (model 37) at 0xcc00, irq 18
2 [U0x46d0x9a4 ]: USB-Audio - USB Device 0x46d:0x9a4
USB Device 0x46d:0x9a4 at usb-0000:00:04.1-2, high speed

Device 0 is the on board nVidia sound.
Device 1 is another sound card that I am not using currently.
I guess device 2 is my webcam, but I am not sure.

Second, I cannot include the phonon screenshot for some reason, but the order of devices is copied below:

0 MCP72XE/MCP72P/MCP78U/MCP78S High Definition Audio
1 CMI8738/C3DX PCI Audio Device

Third, the output from aplay -l is:

**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC888 Analog [ALC888 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC888 Digital [ALC888 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: CMI8738 [C-Media CMI8738], device 0: CMI8738 [C-Media PCI DAC/ADC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: CMI8738 [C-Media CMI8738], device 1: CMI8738 [C-Media PCI 2nd DAC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: CMI8738 [C-Media CMI8738], device 2: CMI8738 [C-Media PCI IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0

Finally, I installed pavucontrol but when I run it and choose the output devices tab It goes into a long wait and eventually times out. I get no indication of what is actually happening.

Thanks,

Abe

naimab, did you miss my suggestion to make your primary sound card zero? Once again, navigate in YaST to:

YaST / Hardware / Sound

If your primary sound card is not zero then select it with your mouse and then pick the “Other” button on the bottom right and elect to “Set as the Primary Card”.

Thank You,

Hi.

Don’t apologize. I’m just kidding about Simon & Garfunkel.
To be honest if not for the title it probably didn’t caught my attention.
I am not a sound guru also, I just recommended the things I think will be a little
useful for your problem.

Do as jdmcdaniel3 told you to do. and test your sound again.

If you are using the analog then it should be the

card 0: NVidia [HDA NVidia], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 0/1
Subdevice #0: subdevice #0

If your using digital it should be the

card 0: NVidia [HDA NVidia], device 1: ALC888 Digital [ALC888 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

and with hdmi

card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

You said you are not using the pci sound card so we can disregard that.
Maybe you can delete it in yast-system-sound.

Having the soundcard 0 to be the default in yast and still doesn’t work, check if it is in mute mood. If still doesn’t work. as superuser try uncomment line 44 of /etc/pulse/default.pa

load-module module-alsa-sink **and add  device=hw:0,0(this is your default sound card)**

to look like this

load-module module-alsa-sink device=hw:0,0

You need to reboot your machine after this and it’s better to reboot than re-starting pulseaudio.

This place is a good start for pulseaudio in kde4.
KDE
Read it thoroughly and you’ll find it very useful.

I am sorry jdmcdaniel3, but I don’t understand: my outputs do show that the nVidia card is device zero. What am I missing here?

Abe

If you don’t have success elsewhere, then I can take a ‘kick’ at trying to figure what is wrong. But to do that need a massive amount of information.

I confess I’m not smart/experienced enough to fully understand the use/benefit of a lot of the diagnostic commands that you have already run per the request of other users, and instead I use other sources to obtain the information that I find helpful when trying to understand a user’s sound problem. I documented what I need in the multimedia stickie: Welcome to multimedia sub-area

and to make this easier I will quote the relevant section for you:

please post … providing in your post the following information:

/usr/sbin/alsa-info.sh 

and select the SHARE/UPLOAD option and after the script finishes it will give you a URL to pass to the support personnel. Please post here the output URL/website-address that gives. Just the URL/website-address. You may need to run that script twice (the first time with root permissions to update in the /usr/sbin directory, and the second time to get the URL).
.
Note if for some reason that gives you no website/url/address then run it with the no-upload option:

/usr/sbin/alsa-info.sh --no-upload

and post the file /etc/alsa-info.txt it creates to Pastebin.com and press SUBMIT on that site and again post here the URL/website-address it provides.

.
… some clarification on running the script “alsa-info.sh” … when you run:

/usr/sbin/alsa-info.sh 

you should get something like this (if it asks for an update, select NO):
http://thumbnails33.imagebam.com/9280/a5973e92794041.jpg](http://www.imagebam.com/image/a5973e92794041)

followed by this (select the SHARE/UPLOAD option):
http://thumbnails30.imagebam.com/9280/5e84f992794044.jpg](http://www.imagebam.com/image/5e84f992794044)

followed by this (its quickest if you simply select ‘NO’ to seeing the output - you will see it on the web page) :
http://thumbnails32.imagebam.com/9280/214da092794048.jpg](http://www.imagebam.com/image/214da092794048)

followed by this (where in RED is the URL).
http://thumbnails23.imagebam.com/9280/d9858092794051.jpg](http://www.imagebam.com/image/d9858092794051)

Just post the URL you get (similar to the RED URL in my example, but yours will be different).

Again, if you can not get that, then run this with the no upload option:

/usr/sbin/alsa-info.sh --no-upload

which will create the file /tmp/alsa-info.txt.  Copy that file and paste it on [Pastebin.com](http://pastebin.com) and press submit. That will give you a URL address. Please post that URL here.

Also provide the following:

  • in a terminal, or xterm, or konsole, type: rpm -qa ‘alsa#and post output here
  • in a terminal, or xterm, or konsole, type: rpm -qa ‘pulse#and post output here
  • in a terminal, or xterm, or konsole, type: rpm -q libasound2 #and post output here
  • in a terminal, or xterm, or konsole, type: uname -a #and post output here
  • for openSUSE-11.2 or newer, in a terminal, or xterm, or konsole, type: cat /etc/modprobe.d/50-sound.conf #and post output here

… anyway, as noted, if you have no success elsewhere, and it comes to the point where you don’t mind working your way through the above to provide more information, just post with the information and I’ll do my best to take a look at it.

Note I’m going on vacation in about 4 days, and I likely won’t be replying to posts after that time (until my vacation is over).

I am sorry jdmcdaniel3, but I don’t understand: my outputs do show that the nVidia card is device zero. What am I missing here?

Abe
Sorry there naimab as I did not realize you are using the nVIDIA audio output. I must say that I would wonder just how well it might really work for all of you audio needs? Have you considered using the built-in PC sound? What do you have this nVIDIA audio output connected to?

Thank You,

Thanks, oldcpu!

The alsa url I created following your instructions is:
http://www.alsa-project.org/db/?f=9e18d1c8071a78a0b7fbebd9feba792a290b0036

I now notice that some sounds do appear but this is intermittent at best. For example, on one reboot the system startup sound (after logging in to my account) was only played 3 minutes after I was already logged in. On a subsequent reboot.log in it did not play at all.

Under YaST/Hardware/Sound/Other when I choose to play a test sound I can hear it loud and clear - and yet no clip I am accessing on Firefox is giving any sound, and my own music playing app (Java based) reports sound as a busy device that can not be allocated to it.

It looks like it is more of a “device busy” situation than a “device not found”.

The rest of the instructions gave the following outputs:

>rpm -qa “alsa

alsa-plugins-pulse-1.0.24-6.1.i586
alsa-firmware-1.0.24.1-3.1.noarch
alsa-1.0.24.1-3.1.i586
alsa-plugins-1.0.24-6.1.i586
alsa-oss-1.0.17-32.1.i586
alsa-utils-1.0.24.2-3.1.i586

>rpm -qa ‘pulse

libpulse-browse0-0.9.22-6.9.1.i586
pulseaudio-module-zeroconf-0.9.22-6.9.1.i586
pulseaudio-module-x11-0.9.22-6.9.1.i586
alsa-plugins-pulse-1.0.24-6.1.i586
pulseaudio-0.9.22-6.9.1.i586
pulseaudio-module-jack-0.9.22-6.9.1.i586
libpulse0-0.9.22-6.9.1.i586
libpulse-mainloop-glib0-0.9.22-6.9.1.i586
pulseaudio-utils-0.9.22-6.9.1.i586
pulseaudio-module-bluetooth-0.9.22-6.9.1.i586
libxine1-pulse-1.1.19-4.4.i586
pulseaudio-esound-compat-0.9.22-6.9.1.i586
pulseaudio-module-lirc-0.9.22-6.9.1.i586

>rpm -q libasound2

libasound2-1.0.24.1-3.1.i586

>uname -a
Linux nina 2.6.37.1-1.2-default #1 SMP 2011-02-21 10:34:10 +0100 i686 athlon i386 GNU/Linux

>cat /etc/modprobe.d/50-sound.conf

options snd slots=snd-hda-intel

M71A.golWCaVMRzB:MCP72XE/MCP72P/MCP78U/MCP78S High Definition Audio

alias snd-card-0 snd-hda-intel

Thanks again,

Abe

Hi jdmcdaniel3,

The nVidia sound is on-board and I assumed that it would be of good quality. It is connected to a pair of speakers (nothing fancy). Under OpenSuSe 11.2 it worked perfectly, playing music through my own java app, as well as clips via Firefox and any other sound-enabled application. Firefox would lock out the sound device so that if I wanted to run the music playing app it would have to be loaded when Firefox was not running - but this was a minor inconvenience.

What I get now is worrying because it is intermittent. If I have no choice I will move to my other sound card and see how things go with it.

Thanks,

Abe

With sound, you can have both a hardware issue and a codec issue. There have been several good suggestions here by oldcpu and conram design to attack the hardware sound issue and I would address all of their suggestions. You also need to know that Firefox 4 has some flash issues that need to be addressed and you need to know that your multimedia must also be setup properly. Here is a thread on your Firefox options:

Firefox on openSUSE 11.4 plays film clips badly

Here is where I look for Multimedia issues:

New User How To/FAQ (read only)

Thank You,

ok thanks

From the diagnostic script I note a 32-bit openSUSE-11.4 with the 2.6.37-1 default kernel and the 1.0.23(driver)/1.0.24.2(utilities) alsa installed. You have two sound modules being loaded, which is the snd-hda-intel and the snd_cmipci. Pulse audio is running. And your two sound devices recognzed by alsa are the:


!!Soundcards recognised by ALSA
!!-----------------------------

 0 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xfe020000 irq 21
 1 [CMI8738        ]: CMI8738 - C-Media CMI8738
                      C-Media CMI8738 (model 37) at 0xcc00, irq 18

The nVidia sound device is an ALC888 hardware audio codec. I do note that one of the IEC958 switches are OFF (ie simple mixer control-1) and hence if you are trying to play digital audio, I speculate that could be causing a problem.

Your /etc/modprobe.d/50-sound.conf file has some entries to configure the NVidia (snd-hda-intel) sound device:


options snd slots=snd-hda-intel
# M71A.golWCaVMRzB:MCP72XE/MCP72P/MCP78U/MCP78S High Definition Audio
alias snd-card-0 snd-hda-intel

and it has no entry to configure the CMI8738 (but clearly it is still loading the snd_cmipci module). That is expected since alsa will try to automatically configure one’s sound device even if there is no corresponding entry in the 50-sound.conf file.

You noted you get start up sound sometimes … I assume that is coming from the nVidia sound device. Is that correct. We need to know it is coming from the correct device.

On my PC with two sound devices, I configure BOTH sound devices in the 50-sound.conf file, and then I use that file, YaST, and pavucontrol application to ensure I play sound through the correct card (and its corresponding features).

I believe there are various approaches you could take here.

You could configure BOTH cards (with nVidia set as card 0, and CMI8738 as card 1) and then post the /etc/modprobe.d/50-sound.conf and we can ensure the alias in that file is properly setup.

You MUST (no matter what) setup your codecs to play back audio. Which means follow caf4926’s guide here: Multi-media and Restricted Format Installation Guide and then once complete there, install and run jdmcdaniel3’s multimedia check script “mmcheck” with guidance given here: MultiMedia Checker or mmcheck - Check Your openSUSE MultiMedia Setup in Just 16 Steps and then if you are missing any apps according to the mmcheck script, you should install the missing apps.

Now most multimedia applications (such as vlc or xine or mplayer) have configuration or preference sections where one selects the output audio mode. So you need to launch those multimedia apps and tune their configuration/preferences. I typically select the alsa OSS emulation but you need to be cognizant of the choices there, so that if a specific multimedia player does not work, you can go back and tweak the settings. In the case of xine you need to install the xine-ui user-interface application (and select ‘master of the known universe’ permissions). In the case of mplayer I recommend smplayer front end.

To help, you also need pavucontrol installed, and when playing audio.

Then when audio is playing (or supposed to be playing) you need to launch pavucontrol and in pavucontrol select the appropriate output audio device, as that can over rule what is in YasT and in the 50-sound.conf file. I’m working from my openSUSE-11.3 PC right now so I can’t give you a screen shot of that, but I can later.

Now its always possible that there is a configuration problem with your nVidia sound device’s ALC888 but if you are getting start up sound on occasion, then clearly the ALC888 works ok. Rather the problem is in either your codecs, in your media players configuration/settings or in the way pulse audio is tuned. Hence we need to know that.

OK here is a screenshot. I’m playing a music video with smplayer in this example. In pavucontrol take note of what I underlined in red, and take note of the arrows. You need to ensure pulse audio does NOT have sound from the application muted. You need to ensure you have the CORRECT device selected.
http://thumbnails35.imagebam.com/12503/c6f990125021081.jpg](http://www.imagebam.com/image/c6f990125021081)
[click on above image for a larger view]

That’s what I am doing now.
First time with pulse audio was a bit hard, but now I am starting to learn about the many features and it’s kind of cool. Looks like I will be a happy camper with pulse audio.:slight_smile: Reason with alsa alone, I was able to made my 2 sound cards work simultaneously/as one but the hdmi sound comes late against the analog but in pulse a little tweaking, simultaneously playing from both sound cards is flawless.:wink:

Hi,

A quick note about the suggestion by conram
Code:

load-module module-alsa-sink and add device=hw:0,0(this is your default sound card)

I tried this and found that my system was repeatedly freezing for 10-20 seconds at a time. Having disabled this now the system is running without freezing.

Thanks for the idea, anyway.

Abe

It should be this way

load-module module-alsa-sink device=hw:0,0

Like the one on the second code of my earlier post

If it freezes again please repost.

Conram,

Sorry for not making it clearer: I did use the exact form you gave in your last message - and that is what resulted in the freezes. It is now back to the original (commented out).

Thanks,

Abe