No sound through HDMI

Just installed Leap 42.2. Limited/no sound comes through the HDMI monitor speakers. Under Leap 42.1, the solution was to install the flgrx drivers. These drivers are no longer supported for leap 42.2 and installing the 42.1 drivers makes the system unstable. Note, sound works through the headphone jack.

Results of other attempted solutions located on the web:
installed alsa-firmware, reboot → no sound
installed pulse audio volume control → I get a clicking sound when depressing the volume slider on the output devices tab. No other sounds such as playing music through Chromium or notification of new email.

I uploaded the results of /usr/bin/alsa-info.sh, time stamp: Mar 8 13:23:09 UTC 2017

Any help would be appreciated.

The URL = http://www.alsa-project.org/db/?f=0035f1b5c03371e3818df11de8155c07bead678a

In the old days, to get sound working with the open source radeon driver, one needed to specify a boot code “radeon.audio=1”. But ever since one of the 3.x versions of the kernel, one no longer needs to specify “radeon.audio=1” so you should not need to do that with LEAP-42.2.

Did you install pavucontrol and try to configure your sound to come through the HDMI with that application ?

Further, if that does not work, I note:


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

APLAY

**** List of PLAYBACK Hardware Devices ****
**card 0**: HDMI [HDA ATI HDMI], **device 3**: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
**card 0**: HDMI [HDA ATI HDMI], **device 7**: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

So if you can not configure with pavucontrol (noting audio is configured under a per application basis in the “playback” tab, send these commands from an xterm/konsole and advise if any of them yield sound:


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

and also


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

Can you also try with an app other than chromium or email for a test ?

pavucontrol: The configuration tab shows that the HDMI cable is unplugged.

Note that the monitor is connected via an HDMI cable and works just fine.

aplay -D plughw:0,3 → main:786 audio open error: Device or resource busy
aplay -D plughw:0,7 → Playing WAVE …
No sound monitor speakers or headphone jack.

Note that Chromium audio plays through the headphone jack.

What does the following report?

pacmd list-cards

2 card(s) available.
index: 0
name: <alsa_card.pci-0000_00_01.1>
driver: <module-alsa-card.c>
owner module: 6
properties:
alsa.card = “0”
alsa.card_name = “HDA ATI HDMI”
alsa.long_card_name = “HDA ATI HDMI at 0xfeb64000 irq 38”
alsa.driver_name = “snd_hda_intel”
device.bus_path = “pci-0000:00:01.1”
sysfs.path = “/devices/pci0000:00/0000:00:01.1/sound/card0”
device.bus = “pci”
device.vendor.id = “1002”
device.vendor.name = “Advanced Micro Devices, Inc. [AMD/ATI]”
device.product.id = “9840”
device.product.name = “Kabini HDMI/DP Audio”
device.form_factor = “internal”
device.string = “0”
device.description = “Built-in Audio”
module-udev-detect.discovered = “1”
device.icon_name = “audio-card-pci”
profiles:
output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: unknown)
output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5200, available: unknown)
output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 100, available: unknown)
output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 100, available: unknown)
off: Off (priority 0, available: unknown)
active profile: <output:hdmi-stereo>
sinks:
alsa_output.pci-0000_00_01.1.hdmi-stereo/#3: Built-in Audio Digital Stereo (HDMI)
sources:
alsa_output.pci-0000_00_01.1.hdmi-stereo.monitor/#4: Monitor of Built-in Audio Digital Stereo (HDMI)
ports:
hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
properties:
device.icon_name = “video-display”
hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
properties:
device.icon_name = “video-display”
index: 1
name: <alsa_card.pci-0000_00_14.2>
driver: <module-alsa-card.c>
owner module: 7
properties:
alsa.card = “1”
alsa.card_name = “HD-Audio Generic”
alsa.long_card_name = “HD-Audio Generic at 0xfeb60000 irq 16”
alsa.driver_name = “snd_hda_intel”
device.bus_path = “pci-0000:00:14.2”
sysfs.path = “/devices/pci0000:00/0000:00:14.2/sound/card1”
device.bus = “pci”
device.vendor.id = “1022”
device.vendor.name = “Advanced Micro Devices, Inc. [AMD]”
device.product.id = “780d”
device.product.name = “FCH Azalia Controller”
device.form_factor = “internal”
device.string = “1”
device.description = “Built-in Audio”
module-udev-detect.discovered = “1”
device.icon_name = “audio-card-pci”
profiles:
input:analog-stereo: Analog Stereo Input (priority 60, available: unknown)
output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, available: unknown)
output:iec958-stereo: Digital Stereo (IEC958) Output (priority 5500, available: unknown)
output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (priority 5560, available: unknown)
off: Off (priority 0, available: unknown)
active profile: <output:analog-stereo+input:analog-stereo>
sinks:
alsa_output.pci-0000_00_14.2.analog-stereo/#1: Built-in Audio Analog Stereo
sources:
alsa_output.pci-0000_00_14.2.analog-stereo.monitor/#1: Monitor of Built-in Audio Analog Stereo
alsa_input.pci-0000_00_14.2.analog-stereo/#2: Built-in Audio Analog Stereo
ports:
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
properties:
device.icon_name = “audio-input-microphone”
analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: yes)
properties:

	iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
		properties:

Chromium (in fact any browser) is not a good app to do such a test. It could be a plugin problem. Its far better as a test to try and play a .wav file with a multimedia app (such as mplayer or smplayer).

i also can not be certain if the HDMI is hw:0,3 (and some other app had seized the audio device) or if your device is hw:0,7 which says ‘playing wav’ but you get no sound because that device not connected in hardware.

I do note this from the script:


!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [HDMI]

Card hw:0 'HDMI'/'HDA ATI HDMI at 0xfeb64000 irq 38'
  Mixer name    : 'ATI R6xx HDMI'
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

This suggests to me IEC958,0 could be hw:0,3 and IEC958,1 could be hw:0,7.

I note also :


Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]

i.e. you have audio muted with IEC958,0 . That might be hw:0,3 and that could be muted. You could try switching that to ON , albeit I don’t really think that is the issue.

I am more suspicious that pavucontrol is not setup correctly in the configuration and playback tabs.
.

pavucontrol:
The configuration tab lists two Built-in Audio profiles:
(upper) Profile: options include

Digital Stereo (HDMI) Output (unplugged)
Digital Stereo (HDMI 2) Output (unplugged)
Digital Souround Sound 7.1 (HDMI 2) Output (unplugged)
Digital Souround Sound 5.1 (HDMI 2) Output (unplugged)
Off

lower Profile:
Analog Stereo Output (this is selected, earbuds plugged in)

The output devices tab shows
(upper) built-in Audio Analog Stereo
Port ‘line out (plugged in)’
(lower) built-in Audio Analog Stereo (HDMI)
Port 'line out ‘HDMI/DisplayPort (unplugged)’

For some reason, pavucontrol thinks the cable is not plugged in. Not sure how to correct this.

Does this change if you switch away with CTRL+ALT+F2 and back again CTRL+ALT+F7? (I read somewhere that this workaround works for some users but not sure of the underlying reasons.)

Thanks Deano, this helped a bunch.

ctl-alt-F2 followed by ctl-alt-F7 —>
pavucontrol configuration changed from
Digital Stereo (HDMI) Output (unplugged)
Digital Stereo (HDMI) Output

I started Chromium
Going to the playback tab, I switched the radio button from analog to HDMI. Sound now plays through the monitor speakers.

Still not getting any email sound notifications.

It’s only a workaround, a bug report is advised.

Still not getting any email sound notifications.

That’s a different issue of course. Not sure if that’s specific to the email client? I assume other desktop notifications work as expected (if configured)?

Hi Deano,

email notifications:
Looks like notifications have to manually set and are not installed by default. Once set, the audio notifications work.

I will go ahead and submit a bug report.

Thanks for all the help.

I think this thread can be closed.

As I suspected/hoped :slight_smile:

I will go ahead and submit a bug report.

Thanks for all the help.

I think this thread can be closed.

Glad to have been of help. Post the link to the bug report when you get a chance. It may be helpful to others who come searching.

What driver stack are you using for your video card?

Oops ignore … did not see that they had resolved their issue