New installation - no sound

I have just installed Leap/KDE on my new computer and videos are running but all is without sound.
My sound card is:

00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
        Subsystem: Intel Corporation Haswell-ULT HD Audio Controller
        Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at f7c14000 (64-bit, non-prefetchable) [size=16]
        Capabilities: <access denied>
        Kernel modules: snd_hda_intel

I have installed pavucontrol and it shows the VLC player with the two sound slides full on. However in YAST when I click play test sound nothing happens. WHen I click there on Volume I get a box with the title Master Volume with a button “Test” and an empty box with the title Other channels. Clicking the est button has no effect. I tried the sound through HDMI and through extra speakers. Do I have a module missing?
Cheers
Uli[/size]

First make sure you have followed this
https://forums.opensuse.org/entry.php/165-openSUSE-Leap-42-1-Multimedia-Guide

Test audio with something other than VLC for now.

If you have no luck with other applications/methods for testing sound, then please provide us more information. You can do this by running a diagnostic script as a regular user with your PC connected to the internet. Do this by sending the following command in a konsole/xterm:


/usr/sbin/alsa-info.sh

and select the SHARE/UPLOAD option when prompted. Let the script run to completion. That will upload the information to the alsa site and in the konsole/xterm (at the end) provide you a link where the information is located. Please post here the link. After looking at that we may have some specific recommendations.

Good luck.
.

Thank you, oldcpu, here is the output:
http://www.alsa-project.org/db/?f=38bd323260694ac399379fd40cb724844b7cf924
It says somewhere “ESound Daemone running - No”, may be that is the problem?
I tried a few other applications without luck, Kaffeine, Amarok with .mp3 and .ogg but no luck so far.
And thanks caf4926 but I installed according to the MM guide and then transferred the MM packages to those from the packman repository.

Just one more thing I noticed - when I open pavucontrol there is behind the word Port “HDMI / DisplayPort (unplugged)”. I don’t know why unplugged, the HDMI cable is in and it worked with this cable with the old computer. But the the speaker when it is plugged into the speaker port does not work either.

The problem is not ESound Daemon from what I can see.

Currently its clear from the script that sound card-0 is your HDMI and sound card-1 is your analog (speakers) sound card. By default, openSUSE linux sends all sound to sound-card-0 (ie NOT to your speakers).


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

** 0 [HDMI    [/b]       ]: HDA-Intel - HDA Intel HDMI
                      HDA Intel HDMI at 0xf7c14000 irq 47
** 1 [PCH[/b]            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7c10000 irq 46

and



!!Aplay/Arecord output
!!--------------------

APLAY

**** List of PLAYBACK Hardware Devices ****
**card 0: HDMI ****[HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
**card 1: PCH **[HDA Intel PCH], device 0: **ALC662 rev1 Analog** [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Further, its clear from the script that both your HDMI and your Analog sound device use separate instances of the identical alsa snd_hda_intel driver (module). In addition, YaST sound control module does NOT handle well multiple instances of the same driver/module for sound. Hence it is not really possible to configure this well using YaST.

You should with pavucontrol be able to deselect sending the sound to HDMI and instead send it to Analogue sound.

Failing that, I can give you an edit to the /etc/modprobe.d/50-sound.conf file that will switch the Analog device to card-0 and place the HDMI device on card-1. After doing that, by default sound will then be redirected to the Analog (ALC662) sound device, which is connected to your analog speakers.**

Thank you, oldcpu.I intended to use this computer (it is one of these small fanless mini pcs) exclusively on the TV so the only sound I need is that through the HDMI cable. Using the speaker cable to different speakers is only a solution which I would use if everything else fails. Now I can simply delete one of these sound cards in YAST and use only the other card but bearing in mind that I prefer to only use HDMI what would you suggest is best - use the 2nd analogue card?

Yes, oldcpu, I tried to deselect sending the sound to HDMI but there is only this single option “HDMI / DisplayPort (unplugged)” in the drop down menu. Under “Built-in Audio Analog Stereo” I have only the options “Line Out” and “Headphones”.

Sound should be working now if you are using the HDMI setup, as HDMI is sound-card-0, which is the default for sound. Note pavucontrol allows control of audio on a per application basis to the sound card of choice.

Does this simple test work, if typed in a konsole/xterm


aplay -vv /usr/share/sounds/alsa/test.wav

.
what errors (if any) do you get when running that ?

I tried that yesterday and received no sound - although the moving hashes at the bottom indicated that there was a sound behind. Here is the output:

uli@linux-osd0:~>aplay -vv /usr/share/sounds/alsa/test.wav
Playing WAVE '/usr/share/sounds/alsa/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
ALSA <-> PulseAudio PCM I/O Plugin
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 16
  buffer_size  : 22050
  period_size  : 5512
  period_time  : 125000
  tstamp_mode  : NONE
  tstamp_type  : GETTIMEOFDAY
  period_step  : 1
  avail_min    : 5512
  period_event : 0
  start_threshold  : 22050
  stop_threshold   : 22050
  silence_threshold: 0
  silence_size : 0
  boundary     : 6206523236469964800
#  +                                               | 04%
uli@linux-osd0:~> 

What was your setup when you tried that ? Was it sending sound to your HDMI device ? or to your analog speakers.

Recall this from the script you ran:


APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

ie HDMI is hw:0,3 and hw:0,7 and hw:0,8 . Your analog speakers (if connected) are hw:1,0

Let me propose this, where this is to send sound to each of the devices noted here (from the script you ran) :

To hdmi card-0, device 3


aplay -D plughw:0,3 /usr/share/sounds/alsa/test.wav 

then to hdmi card-0, device 7


aplay -D plughw:0,7 /usr/share/sounds/alsa/test.wav 

then to hdmi card-0 device-8


aplay -D plughw:0,8 /usr/share/sounds/alsa/test.wav 

then to analogue speakers card-1 device-0


aplay -D plughw:1,0 /usr/share/sounds/alsa/test.wav 

Do any of those give sound ?

Thank you, oldcpu, yes, it was the setup from the script when I tried the command yesterday. However today - the code I posted before was done with a little change. In YAST -> Sound I have the card 0 (Haswell-ULT HD Audio Controller) and the other card set as not configured. But I still got no sound. Now with your 4 scripts - the second script

aplay -D plughw:0,7 /usr/share/sounds/alsa/test.wav

produced sound through HDMI. So what would be the next step - put something into the file /etc/modprobe.d/50-sound.con?
Cheers
uli

That was unexpected. Nominally sound would go through hw:0,3 and not hw:0,7. I’m surprised pavucontrol does not provide the option in the configuration tab to select HDMI hw:0,7 (after which one could select same in output devices and playback tabs) . But assuming pavucontrol does not provide that, then my proposal would be to use pulse audio and tell pulse audio to use hw:0,7.

I believe pulse audio can be forced to use it via an edit to /etc/pulse/default.pa:


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

where the 0 is the card and the 7 is the device found to work by you. You will need to use root permissions to edit default.pa. Save the change, then restart pulse audio after the edit. The easiest way to restart pulse is to reboot.

Or alternatively, you could try :


pulseaudio -k
pulseaudio --start

I nominally just reboot if I need to restart pulse. You should then have an HDMI hw:0,7 (or some other name) new entry in pavucontrol config tab.

Although that’s a bit misleading as I normally don’t need to do any of this on my PC - so I hope I have all the above syntax correct.
.

Thank you, oldcpu, I have got the sound now! you are the champion!
Cheers
Uli

Great news. Glad to read this is working now.