You are not logged in.

#1 2020-04-01 13:34:38

strano^^
Member
Registered: 2014-11-14
Posts: 6

[SOLVED] Audio via HDMI does not work. Sink SUSPENDED - Intel NUC

Hi everyone,
i'm addressing a problem with audio via HDMI on an Intel NUC.

My setup is:
- Intel NUC (5.5.13-arch1-1) connected to a TV Monitor via HDMI
- TV Monitor connected to external speakers

The first occurence of the problem there was with an outdated installation, so i thought that it can be the problem. But the problem persists also with the upgraded system.

Overnight audio did not work. I discovered the problem using Kodi, indeed there were not the usual system sounds.
Then i tested with VLC: same problem.
But i noted the weird-beahviour with Youtube: in this case the video doesn't start, but it stucks.

Investigating the problem i tried the classic solutions:
- upgrade the system
- re-installation of pulseaudio and alsa
but nothing.

Furthermore, during this investigation i noticed that if i kill pulseaudio, the YT video starts (obviously without audio). 

Before of this post, sometime with multiple reboots, randomly, the problem disappeared.

Following there are some useful informations (i hope)

Thanks in advance.

$ cat /proc/asound/cards
 0 [HDMI           ]: HDA-Intel - HDA Intel HDMI
                      HDA Intel HDMI at 0xf7c34000 irq 46
 1 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7c30000 irq 44
$ sudo fuser -v /dev/snd/*
                     
/dev/snd/controlC0:  <user>      618 F.... pulseaudio
/dev/snd/controlC1:  <user>      618 F.... pulseaudio
$ pacmd list-cards
2 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_00_03.0>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel HDMI"
		alsa.long_card_name = "HDA Intel HDMI at 0xf7c34000 irq 46"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:03.0"
		sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "0a0c"
		device.product.name = "Haswell-ULT HD Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Audio interno"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		output:hdmi-stereo: Uscita «Digital Stereo (HDMI)» (priority 5900, available: unknown)
		output:hdmi-surround: Uscita «Digital Surround 5.1 (HDMI)» (priority 800, available: unknown)
		output:hdmi-surround71: Uscita «Digital Surround 7.1 (HDMI)» (priority 800, available: unknown)
		output:hdmi-stereo-extra1: Uscita «Digital Stereo (HDMI 2)» (priority 5700, available: no)
		output:hdmi-surround-extra1: Uscita «Digital Surround 5.1 (HDMI 2)» (priority 600, available: no)
		output:hdmi-surround71-extra1: Uscita «Digital Surround 7.1 (HDMI 2)» (priority 600, available: no)
		output:hdmi-stereo-extra2: Uscita «Digital Stereo (HDMI 3)» (priority 5700, available: no)
		output:hdmi-surround-extra2: Uscita «Digital Surround 5.1 (HDMI 3)» (priority 600, available: no)
		output:hdmi-surround71-extra2: Uscita «Digital Surround 7.1 (HDMI 3)» (priority 600, available: no)
		output:hdmi-stereo-extra3: Uscita «Digital Stereo (HDMI 4)» (priority 5700, available: no)
		output:hdmi-surround-extra3: Uscita «Digital Surround 5.1 (HDMI 4)» (priority 600, available: no)
		output:hdmi-surround71-extra3: Uscita «Digital Surround 7.1 (HDMI 4)» (priority 600, available: no)
		off: Spento (priority 0, available: unknown)
	active profile: <output:hdmi-stereo>
	sinks:
		alsa_output.pci-0000_00_03.0.hdmi-stereo/#2: Audio interno Digital Stereo (HDMI)
	sources:
		alsa_output.pci-0000_00_03.0.hdmi-stereo.monitor/#3: Monitor of Audio interno Digital Stereo (HDMI)
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "video-display"
				device.product.name = "Philips FTV"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
    index: 1
	name: <alsa_card.pci-0000_00_1b.0>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7c30000 irq 44"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "9c20"
		device.product.name = "8 Series HD Audio Controller"
		device.form_factor = "internal"
		device.string = "1"
		device.description = "Audio interno"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Ingresso «Stereo analogico» (priority 65, available: unknown)
		output:analog-stereo: Uscita «Stereo analogico» (priority 6500, available: no)
		output:analog-stereo+input:analog-stereo: Duplex stereo analogico (priority 6565, available: no)
		off: Spento (priority 0, available: unknown)
	active profile: <input:analog-stereo>
	sources:
		alsa_input.pci-0000_00_1b.0.analog-stereo/#1: Audio interno Stereo analogico
	ports:
		analog-input-internal-mic: Microfono interno (priority 8900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-mic: Microfono (priority 8700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-output-headphones: Cuffie analogiche (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
$ pacmd list-sinks
1 sink(s) available.
  * index: 2
	name: <alsa_output.pci-0000_00_03.0.hdmi-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 9030
	volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
	        balance 0,00
	base volume: 65536 / 100% / 0,00 dB
	volume steps: 65537
	muted: no
	current latency: 0,00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 3
	sample spec: s16le ch 2 44100 Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0,00 ms; range is 0,50 .. 1999,82 ms
	card: 0 <alsa_card.pci-0000_00_03.0>
	module: 6
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "HDMI 0"
		alsa.id = "HDMI 0"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "3"
		alsa.card = "0"
		alsa.card_name = "HDA Intel HDMI"
		alsa.long_card_name = "HDA Intel HDMI at 0xf7c34000 irq 46"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:03.0"
		sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "0a0c"
		device.product.name = "Haswell-ULT HD Audio Controller"
		device.form_factor = "internal"
		device.string = "hdmi:0"
		device.buffering.buffer_size = "352768"
		device.buffering.fragment_size = "176384"
		device.access_mode = "mmap+timer"
		device.profile.name = "hdmi-stereo"
		device.profile.description = "Digital Stereo (HDMI)"
		device.description = "Audio interno Digital Stereo (HDMI)"
		alsa.mixer_name = "Intel Haswell HDMI"
		alsa.components = "HDA:80862807,80860101,00100000"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "video-display"
				device.product.name = "Philips FTV"
	active port: <hdmi-output-0>
$ systemctl status --user pulseaudio.service
● pulseaudio.service - Sound Service
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-04-01 15:21:25 CEST; 54s ago
   Main PID: 616 (pulseaudio)
     CGroup: /user.slice/user-1000.slice/user@1000.service/pulseaudio.service
             ├─616 /usr/bin/pulseaudio --daemonize=no
             └─671 /usr/lib/pulse/gsettings-helper

apr 01 15:21:24 stranoCenter systemd[572]: Starting Sound Service...
apr 01 15:21:25 stranoCenter systemd[572]: Started Sound Service.
apr 01 15:21:25 stranoCenter pulseaudio[616]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.systemd1.NoSuchUnit: Unit dbus-org.bluez.service not found
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/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 0: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

this command does not return any sound, with all DEV

$ speaker-test -c2 -D hdmi:CARD=HDMI,DEV=2

speaker-test 1.2.2

Playback device is hdmi:CARD=HDMI,DEV=2
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
 0 - Unknown
 1 - Unknown
Time per period = 10,944895
 0 - Unknown
 1 - Unknown
^CTime per period = 7,536622

Last edited by strano^^ (2020-04-11 13:03:06)

Offline

#2 2020-04-11 13:02:18

strano^^
Member
Registered: 2014-11-14
Posts: 6

Re: [SOLVED] Audio via HDMI does not work. Sink SUSPENDED - Intel NUC

Hi guys,

i solved the problem.
As i said, randomly the audio works.
Once the audio worked, i re-checked all the command and the differences between the outputs.

On the startup, the

pacmd list-sinks

command returns

$ pacmd list-sinks
1 sink(s) available.
  * index: 2
	name: <alsa_output.pci-0000_00_03.0.hdmi-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: IDLE
	......

but if i start a YT video, it works well and the above command returns

$ pacmd list-sinks
1 sink(s) available.
  * index: 2
	name: <alsa_output.pci-0000_00_03.0.hdmi-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
        ......

while in a not-working status, the 'state' was 'SUSPENDED'. (as we can see in the first post)

So i dig deeper in this way and i find this thread on unix.stackexchange: https://unix.stackexchange.com/question … -suspended

It seems that the problem is 'module-suspend-on-idle'.
I disabled this module editing

/etc/pulse/default.pa

.
More precisely commenting this line

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle

so

### Automatically suspend sinks/sources that become idle for too long
#load-module module-suspend-on-idle

After that we have to restart pulseaudio and the problem disappears!

Offline

Board footer

Powered by FluxBB