You are not logged in.

#1 2023-01-03 17:22:17

Rydberg95
Member
From: Stockholm, Sweden
Registered: 2013-01-25
Posts: 51

[SOLVED] No sound on Wayland

I've been struggling the past days to get audio working. My device is a Intel NUC and is connected to a TV over HDMI.

Yesterday, I got the sound working after a couple of hours of trial and error. The conditions were that I was running Xorg display server as backend for KDE Plasma. Another condition is that I had to plug out the display and plug it in again for the sound to work. Before I got it working, there were no symptoms of the sound not working (except that there was no actual sound coming out of the speakers...). The HDMI output showed up as expected during various controls (aplay -l, pavucontrol

Now, when switching to Wayland Plasma, the exact same thing happens as when running Xorg Plasma, but the sound does not start working after replugging the HDMI.

Worth mentioning is that I'm running Pipewire (with pipewire-pulse and pipewire-alsa installed) and wireplumber. Also worth mentioning is that I've tried swapping the HDMI cable and tried the same HDMI port on the TV with another device. Again, it works when going back to Xorg and replugging the cable, so the issue doesn't seem to be caused by faulty hardware.

Anyone got a clue as to how to further diagnose and fix this?


More or less helpful output below.

➜  ~ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 68
Tile Size: 65472
User Name: nuker
Host Name: NUC-Nuker
Server Name: PulseAudio (on PipeWire 0.3.63)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_1f.3.hdmi-stereo
Default Source: alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor
Cookie: 38a5:de34
➜  ~ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [LG TV]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
➜  ~ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pipewire
    PipeWire Sound Server
default
    Default ALSA Output (currently PipeWire Media Server)
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, LG TV
    HDMI Audio Output
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output
hdmi:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 3
    HDMI Audio Output
➜  ~ pactl list cards
Card #40
	Name: alsa_card.pci-0000_00_1f.3
	Driver: alsa
	Owner Module: n/a
	Properties:
		api.acp.auto-port = "false"
		api.acp.auto-profile = "false"
		api.alsa.card = "0"
		api.alsa.card.longname = "HDA Intel PCH at 0x603d1a0000 irq 189"
		api.alsa.card.name = "HDA Intel PCH"
		api.alsa.path = "hw:0"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio0"
		device.api = "alsa"
		device.bus = "pci"
		device.bus_path = "pci-0000:00:1f.3"
		device.description = "Built-in Audio"
		device.enum.api = "udev"
		device.form_factor = "internal"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_00_1f.3"
		device.nick = "HDA Intel PCH"
		device.plugged.usec = "5055525"
		device.product.id = "0xa0c8"
		device.product.name = "Tiger Lake-LP Smart Sound Technology Audio Controller"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.vendor.id = "0x8086"
		device.vendor.name = "Intel Corporation"
		media.class = "Audio/Device"
		factory.id = "14"
		client.id = "34"
		object.id = "40"
		object.serial = "40"
		object.path = "alsa:pcm:0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0x603d1a0000 irq 189"
		alsa.driver_name = "snd_hda_intel"
		device.string = "0"
	Profiles:
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: yes)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: yes)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
		pro-audio: Pro Audio (sinks: 4, sources: 0, priority: 1, available: yes)
	Active Profile: output:hdmi-stereo
	Ports:
		hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, availability group: Legacy 1, available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 1"
				device.icon_name = "video-display"
				card.profile.port = "0"
				device.product.name = "LG TV"
			Part of profile(s): output:hdmi-stereo, output:hdmi-surround
		hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, availability group: Legacy 2, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 2"
				device.icon_name = "video-display"
				card.profile.port = "1"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
		hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, availability group: Legacy 3, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 3"
				device.icon_name = "video-display"
				card.profile.port = "2"
			Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2
		hdmi-output-3: HDMI / DisplayPort 4 (type: HDMI, priority: 5600, latency offset: 0 usec, availability group: Legacy 4, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 4"
				device.icon_name = "video-display"
				card.profile.port = "3"
			Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-surround-extra3, output:hdmi-surround71-extra3
➜  ~ pactl list sinks
Sink #57
	State: IDLE
	Name: alsa_output.pci-0000_00_1f.3.hdmi-stereo
	Description: Built-in Audio Digital Stereo (HDMI)
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	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
	Monitor Source: alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.class = "generic"
		alsa.device = "3"
		alsa.driver_name = "snd_hda_intel"
		alsa.id = "HDMI 0"
		alsa.long_card_name = "HDA Intel PCH at 0x603d1a0000 irq 189"
		alsa.name = "LG TV"
		alsa.resolution_bits = "16"
		alsa.subclass = "generic-mix"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		api.alsa.card.longname = "HDA Intel PCH at 0x603d1a0000 irq 189"
		api.alsa.card.name = "HDA Intel PCH"
		api.alsa.path = "hdmi:0"
		api.alsa.pcm.card = "0"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		card.profile.device = "4"
		device.api = "alsa"
		device.class = "sound"
		device.id = "40"
		device.profile.description = "Digital Stereo (HDMI)"
		device.profile.name = "hdmi-stereo"
		device.routes = "1"
		factory.name = "api.alsa.pcm.sink"
		media.class = "Audio/Sink"
		device.description = "Built-in Audio"
		node.name = "alsa_output.pci-0000_00_1f.3.hdmi-stereo"
		node.nick = "LG TV"
		node.pause-on-idle = "false"
		object.path = "alsa:pcm:0:hdmi:0:playback"
		priority.driver = "696"
		priority.session = "696"
		factory.id = "18"
		clock.quantum-limit = "8192"
		client.id = "34"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "46"
		object.serial = "57"
		node.max-latency = "16384/48000"
		api.alsa.period-size = "1024"
		api.alsa.period-num = "32"
		api.alsa.headroom = "0"
		api.acp.auto-port = "false"
		api.acp.auto-profile = "false"
		api.alsa.card = "0"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio0"
		device.bus = "pci"
		device.bus_path = "pci-0000:00:1f.3"
		device.enum.api = "udev"
		device.form_factor = "internal"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_00_1f.3"
		device.nick = "HDA Intel PCH"
		device.plugged.usec = "5055525"
		device.product.id = "0xa0c8"
		device.product.name = "Tiger Lake-LP Smart Sound Technology Audio Controller"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.vendor.id = "0x8086"
		device.vendor.name = "Intel Corporation"
		device.string = "0"
	Ports:
		hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, availability group: Legacy 1, available)
	Active Port: hdmi-output-0
	Formats:
		pcm
➜  ~ lsmod
Module                  Size  Used by
mousedev               24576  0
joydev                 28672  0
hidp                   32768  1
tun                    61440  2
veth                   36864  0
nf_conntrack_netlink    57344  0
nfnetlink              20480  2 nf_conntrack_netlink
br_netfilter           32768  0
bridge                364544  1 br_netfilter
stp                    16384  1 bridge
llc                    16384  2 bridge,stp
overlay               180224  7
snd_seq_dummy          16384  0
snd_hrtimer            16384  1
snd_seq                94208  7 snd_seq_dummy
snd_seq_device         16384  1 snd_seq
rfcomm                 90112  16
ccm                    20480  0
algif_aead             16384  0
cbc                    16384  0
des_generic            16384  0
libdes                 24576  1 des_generic
ecb                    16384  0
md4                    16384  0
cmac                   16384  3
algif_hash             16384  1
algif_skcipher         16384  1
af_alg                 36864  7 algif_hash,algif_skcipher,algif_aead
xt_owner               16384  1
xt_nat                 16384  34
bnep                   32768  2
xt_MASQUERADE          20480  14
iptable_nat            16384  8
nf_nat                 57344  3 xt_nat,iptable_nat,xt_MASQUERADE
intel_rapl_msr         20480  0
intel_rapl_common      32768  1 intel_rapl_msr
snd_sof_pci_intel_tgl    16384  0
snd_sof_intel_hda_common   217088  1 snd_sof_pci_intel_tgl
soundwire_intel        53248  1 snd_sof_intel_hda_common
soundwire_generic_allocation    16384  1 soundwire_intel
soundwire_cadence      45056  1 soundwire_intel
snd_sof_intel_hda      20480  1 snd_sof_intel_hda_common
snd_sof_pci            24576  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_sof_xtensa_dsp     20480  1 snd_sof_intel_hda_common
snd_sof               339968  2 snd_sof_pci,snd_sof_intel_hda_common
snd_sof_utils          20480  1 snd_sof
snd_soc_hdac_hda       28672  1 snd_sof_intel_hda_common
snd_hda_ext_core       36864  2 snd_sof_intel_hda_common,snd_soc_hdac_hda
snd_soc_acpi_intel_match    69632  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
intel_tcc_cooling      16384  0
snd_soc_acpi           16384  2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
x86_pkg_temp_thermal    20480  0
soundwire_bus         126976  3 soundwire_intel,soundwire_generic_allocation,soundwire_cadence
intel_powerclamp       20480  0
coretemp               20480  0
snd_soc_core          393216  4 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda
kvm_intel             393216  0
snd_compress           28672  1 snd_soc_core
snd_hda_codec_hdmi     86016  1
ac97_bus               16384  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
kvm                  1146880  1 kvm_intel
snd_hda_intel          61440  1
irqbypass              16384  1 kvm
snd_intel_dspcfg       36864  3 snd_hda_intel,snd_sof,snd_sof_intel_hda_common
ee1004                 20480  0
snd_intel_sdw_acpi     20480  2 snd_sof_intel_hda_common,snd_intel_dspcfg
crct10dif_pclmul       16384  1
snd_hda_codec         188416  4 snd_hda_codec_hdmi,snd_hda_intel,snd_soc_hdac_hda,snd_sof_intel_hda
crc32_pclmul           16384  0
polyval_clmulni        16384  0
tps6598x               65536  0
polyval_generic        16384  1 polyval_clmulni
gf128mul               16384  1 polyval_generic
typec                  90112  1 tps6598x
mei_pxp                20480  0
ghash_clmulni_intel    16384  0
mei_hdcp               24576  0
roles                  16384  1 tps6598x
snd_hda_core          118784  7 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
sha512_ssse3           53248  0
aesni_intel           393216  4
snd_hwdep              16384  1 snd_hda_codec
crypto_simd            16384  1 aesni_intel
snd_pcm               172032  11 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pcm_dmaengine
cryptd                 24576  3 crypto_simd,ghash_clmulni_intel
iwlmvm                532480  0
intel_cstate           20480  0
snd_timer              49152  3 snd_seq,snd_hrtimer,snd_pcm
intel_uncore          217088  0
spi_nor               118784  0
wdat_wdt               20480  0
i2c_i801               45056  0
snd                   131072  15 snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm
pcspkr                 16384  0
mac80211             1314816  1 iwlmvm
mtd                    94208  3 spi_nor
wmi_bmof               16384  0
i2c_smbus              20480  1 i2c_i801
soundcore              16384  1 snd
libarc4                16384  1 mac80211
igc                   163840  0
mei_me                 57344  2
iwlwifi               491520  1 iwlmvm
mei                   176128  5 mei_hdcp,mei_pxp,mei_me
intel_lpss_pci         28672  0
intel_lpss             16384  1 intel_lpss_pci
idma64                 20480  0
btusb                  65536  0
btrtl                  28672  1 btusb
cfg80211             1126400  3 iwlmvm,iwlwifi,mac80211
btbcm                  24576  1 btusb
btintel                45056  1 btusb
btmtk                  16384  1 btusb
bluetooth             937984  51 btrtl,hidp,btmtk,btintel,btbcm,bnep,btusb,rfcomm
ecdh_generic           16384  2 bluetooth
rfkill                 32768  9 iwlmvm,bluetooth,cfg80211
thunderbolt           401408  0
igen6_edac             32768  0
serial_multi_instantiate    20480  0
vfat                   24576  1
fat                    98304  1 vfat
acpi_tad               20480  0
acpi_pad               24576  0
mac_hid                16384  0
ipt_REJECT             16384  2
nf_reject_ipv4         16384  1 ipt_REJECT
xt_LOG                 20480  5
nf_log_syslog          24576  5
xt_multiport           20480  2
xt_limit               16384  7
xt_addrtype            16384  6
xt_tcpudp              20480  99
xt_conntrack           16384  14
nf_conntrack          184320  5 xt_conntrack,nf_nat,xt_nat,nf_conntrack_netlink,xt_MASQUERADE
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
libcrc32c              16384  2 nf_conntrack,nf_nat
ip6table_filter        16384  0
ip6_tables             36864  1 ip6table_filter
iptable_filter         16384  1
pkcs8_key_parser       16384  0
crypto_user            24576  0
fuse                  176128  5
bpf_preload            24576  0
ip_tables              36864  10 iptable_filter,iptable_nat
x_tables               57344  15 ip6table_filter,xt_conntrack,iptable_filter,xt_LOG,xt_multiport,xt_tcpudp,xt_addrtype,xt_nat,xt_owner,ip6_tables,ipt_REJECT,ip_tables,iptable_nat,xt_limit,xt_MASQUERADE
ext4                 1019904  1
crc32c_generic         16384  0
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  188416  1 ext4
uas                    32768  1
usb_storage            81920  2 uas
i915                 3473408  33
drm_buddy              20480  1 i915
intel_gtt              28672  1 i915
nvme                   61440  2
drm_display_helper    212992  1 i915
crc32c_intel           24576  3
nvme_core             208896  3 nvme
cec                    81920  2 drm_display_helper,i915
spi_intel_pci          16384  0
xhci_pci               20480  0
spi_intel              32768  1 spi_intel_pci
ttm                    94208  1 i915
nvme_common            24576  1 nvme_core
xhci_pci_renesas       24576  1 xhci_pci
video                  65536  1 i915
wmi                    45056  2 video,wmi_bmof

Last edited by Rydberg95 (2023-01-03 17:55:32)

Offline

#2 2023-01-03 17:26:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,259

Re: [SOLVED] No sound on Wayland

Which kernel? There were a bunch of intel hdmi fixes on 6.1.2 make sure you're running that

Offline

#3 2023-01-03 17:28:41

Rydberg95
Member
From: Stockholm, Sweden
Registered: 2013-01-25
Posts: 51

Re: [SOLVED] No sound on Wayland

Updated today. Unfortunately, errors persist after upgrade.

  ~ uname -r
6.1.2-arch1-1

Offline

#4 2023-01-03 17:54:44

Rydberg95
Member
From: Stockholm, Sweden
Registered: 2013-01-25
Posts: 51

Re: [SOLVED] No sound on Wayland

... I forgot to try one thing: Using the second HDMI port on the NUC. For some reason, all my troubles are gone after trying that. Guess it could be a faulty HDMI port to blame, then.

Well, marking as solved.

Offline

Board footer

Powered by FluxBB