No HDMI sound output on laptop

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Artos

No HDMI sound output on laptop

Post by Artos »

Hi, first post!

I freshly installed Mint 19 on my Alienware laptop. I had a lot of issues, first with an OEM partition that caused my laptop to go in recovery mode when Windows was deleted and then with GPU drivers where I had to boot in nomodeset and install the nvidia drivers for my gtx1060Mobile using the Drivers Manager. I tell you all this because I suspect the card and it's drivers could be linked to the issue, maybe.

Symptoms: I have no sound on my TV when I connect it in HDMI. By default the image shows up perfectly, as an extension of my desktop. I don't have the option to choose hdmi output in sound settings. I tried pavucontrol and same problem, I don't have any option to switch to hdmi there.

Here is the result of the inxi command:

Code: Select all

artos@artos-Alienware-15-R3:~$ inxi -A
Audio:
  Device-1: Intel CM238 HD Audio driver: snd_hda_intel 
  Sound Server: ALSA v: k4.15.0-46-generic
Any idea on what could be the issue here?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: No HDMI sound output on laptop

Post by catweazel »

Artos wrote: Tue Mar 26, 2019 4:34 am Any idea on what could be the issue here?
Install pavucontrol and make sure the correct output device is selected.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No HDMI sound output on laptop

Post by MrEen »

catweazel wrote: Tue Mar 26, 2019 5:13 am
Artos wrote: Tue Mar 26, 2019 4:34 am Any idea on what could be the issue here?
Install pavucontrol and make sure the correct output device is selected.
I actually missed this on first read as well:
I tried pavucontrol and same problem, I don't have any option to switch to hdmi there.
Hi Artos, and welcome to the forum.

Let's see the outputs of inxi -Fxz, aplay -l and pacmd list-cards please.

One last one, just in case: dmesg | grep -C1 -E 'ALSA|HDA|HDMI|snd[_-]|sound|hda.codec|hda.intel'

One of those should point us in the right direction to get this sorted.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: No HDMI sound output on laptop

Post by catweazel »

MrEen wrote: Tue Mar 26, 2019 7:22 am
catweazel wrote: Tue Mar 26, 2019 5:13 am
Artos wrote: Tue Mar 26, 2019 4:34 am Any idea on what could be the issue here?
Install pavucontrol and make sure the correct output device is selected.
I actually missed this on first read as well:
I tried pavucontrol and same problem, I don't have any option to switch to hdmi there.
I blame my advancing age. Apologies to the OP.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Artos

Re: No HDMI sound output on laptop

Post by Artos »

Hi, thank you for your answers, here are the commands you told me to do, I did them while plugged-in to the turned on TV of course. Seeing anything that could tell us what's wrong?

Code: Select all

artos@artos-Alienware-15-R3:~$ inxi -Fxz
System:
  Host: artos-Alienware-15-R3 Kernel: 4.15.0-46-generic x86_64 bits: 64 
  compiler: gcc v: 7.3.0 Desktop: Cinnamon 4.0.9 
  Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic 
Machine:
  Type: Laptop System: Alienware product: Alienware 15 R3 v: 1.5.0 
  serial: <filter> 
  Mobo: Alienware model: Alienware 15 R3 v: A00 serial: <filter> 
  UEFI [Legacy]: Alienware v: 1.5.0 date: 09/10/2018 
Battery:
  ID-1: BAT1 charge: 61.0 Wh condition: 61.0/68.0 Wh (90%) 
  model: COMPAL PABAS0241231 status: Full 
CPU:
  Topology: Quad Core model: Intel Core i7-7700HQ bits: 64 type: MT MCP 
  arch: Kaby Lake rev: 9 L2 cache: 6144 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 44928 
  Speed: 800 MHz min/max: 800/3800 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
Graphics:
  Device-1: Intel vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 
  Device-2: NVIDIA GP106M [GeForce GTX 1060 Mobile] vendor: Dell 
  driver: nvidia v: 390.116 bus ID: 01:00.0 
  Display: x11 server: X.Org 1.19.6 driver: modesetting,nvidia 
  unloaded: fbdev,nouveau,vesa resolution: 1920x1080~60Hz, 1920x1080~60Hz 
  OpenGL: renderer: GeForce GTX 1060/PCIe/SSE2 v: 4.6.0 NVIDIA 390.116 
  direct render: Yes 
Audio:
  Device-1: Intel CM238 HD Audio vendor: Dell driver: snd_hda_intel 
  v: kernel bus ID: 00:1f.3 
  Sound Server: ALSA v: k4.15.0-46-generic 
Network:
  Device-1: Qualcomm Atheros Killer E2500 Gigabit Ethernet vendor: Dell 
  driver: alx v: kernel port: d000 bus ID: 3c:00.0 
  IF: enp60s0 state: down mac: <filter> 
  Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter 
  vendor: Bigfoot Networks driver: ath10k_pci v: kernel port: d000 
  bus ID: 3d:00.0 
  IF: wlp61s0 state: up mac: <filter> 
  Device-3: Atheros type: USB driver: btusb bus ID: 1-5:5 
Drives:
  Local Storage: total: 4.78 TiB used: 646.01 GiB (13.2%) 
  ID-1: /dev/nvme0n1 vendor: Toshiba model: THNSN5256GPUK NVMe 256GB 
  size: 238.47 GiB 
  ID-2: /dev/sda vendor: HGST (Hitachi) model: HTS721010A9E630 
  size: 931.51 GiB 
  ID-3: /dev/sdb type: USB vendor: Seagate model: ST4000LM024-2AN17V 
  size: 3.64 TiB 
Partition:
  ID-1: / size: 233.73 GiB used: 22.98 GiB (9.8%) fs: ext4 
  dev: /dev/nvme0n1p1 
Sensors:
  System Temperatures: cpu: 48.0 C mobo: N/A gpu: nvidia temp: 55 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 244 Uptime: 30m Memory: 15.54 GiB used: 2.61 GiB (16.8%) 
  Init: systemd runlevel: 5 Compilers: gcc: 7.3.0 Shell: bash v: 4.4.19 
  inxi: 3.0.27 

Code: Select all

artos@artos-Alienware-15-R3:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC3266 Analog [ALC3266 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

Code: Select all

artos@artos-Alienware-15-R3:~$ pacmd list-cards
1 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_00_1f.3>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xdd128000 irq 133"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "a171"
		device.product.name = "CM238 HD Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		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)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_1f.3.analog-stereo/#0: Built-in Audio Analog Stereo
	sources:
		alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
	ports:
		analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "audio-headphones"

Code: Select all

artos@artos-Alienware-15-R3:~$ dmesg | grep -C1 -E 'ALSA|HDA|HDMI|snd[_-]|sound|hda.codec|hda.intel'
[    0.052252] ACPI: Added _OSI(Linux-Dell-Video)
[    0.052252] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.052252] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
--
[    4.768908] USB Video Class driver (1.1.1)
[    4.773917] snd_hda_intel 0000:00:1f.3: Probing card using HDA DKMS, version 0.201808050301~ubuntu18.04.1
[    4.791564] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC3266: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[    4.791566] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    4.791568] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    4.791569] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    4.791570] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    4.791572] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x1a
[    4.791573] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12
[    4.807444] cfg80211: Loading compiled-in X.509 certificates for regulatory database
--
[    4.939821] Bluetooth: BNEP socket layer initialized
[    5.054911] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input19
[    5.054968] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input20
[    5.137381] ath10k_pci 0000:3d:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:3d:00.0.bin failed with error -2
--
[  820.847317] WARNING: CPU: 1 PID: 16 at /build/linux-7kdHqT/linux-4.15.0/net/core/dev.c:5645 net_rx_action+0x2cb/0x3a0
[  820.847321] Modules linked in: rfcomm ccm ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 xt_hl ip6t_rt nf_conntrack_ipv6 nf_defrag_ipv6 ipt_REJECT nf_reject_ipv4 nf_log_ipv4 nf_log_common xt_LOG xt_limit xt_tcpudp xt_addrtype arc4 cmac bnep nvidia_uvm(POE) ath10k_pci ath10k_core intel_rapl ath x86_pkg_temp_thermal wmi_bmof intel_powerclamp nf_conntrack_ipv4 nf_defrag_ipv4 coretemp mxm_wmi mac80211 dell_wmi dell_smbios xt_conntrack dcdbas kvm_intel dell_wmi_descriptor kvm intel_wmi_thunderbolt irqbypass crct10dif_pclmul snd_hda_codec_realtek(OE) crc32_pclmul snd_hda_codec_generic(OE) ghash_clmulni_intel pcbc snd_hda_intel(OE) snd_hda_codec(OE) snd_hda_core(OE) snd_hwdep snd_pcm nvidia_drm(POE) uvcvideo nvidia_modeset(POE) aesni_intel videobuf2_vmalloc videobuf2_memops aes_x86_64 videobuf2_v4l2 crypto_simd
[  820.847441]  glue_helper snd_seq_midi btusb snd_seq_midi_event cryptd btrtl videobuf2_core btbcm intel_cstate btintel videodev snd_rawmidi bluetooth media intel_rapl_perf nvidia(POE) snd_seq ecdh_generic snd_seq_device input_leds joydev cfg80211 snd_timer ip6table_filter serio_raw ip6_tables snd mei_me processor_thermal_device nf_conntrack_netbios_ns soundcore nf_conntrack_broadcast mei intel_pch_thermal intel_soc_dts_iosf ipmi_devintf ipmi_msghandler nf_nat_ftp nf_nat int3403_thermal nf_conntrack_ftp nf_conntrack int340x_thermal_zone libcrc32c wmi int3400_thermal acpi_thermal_rel intel_hid sparse_keymap shpchp acpi_pad mac_hid sch_fq_codel parport_pc ppdev lp parport iptable_filter ip_tables x_tables autofs4 btrfs xor zstd_compress raid6_pq dm_mirror dm_region_hash dm_log wacom hid_generic usbhid
[  820.847565]  hid uas usb_storage i915 i2c_algo_bit drm_kms_helper syscopyarea nvme sysfillrect sysimgblt psmouse fb_sys_fops drm nvme_core alx ahci mdio libahci video
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No HDMI sound output on laptop

Post by MrEen »

Hi Artos.

Your outputs show that HDMI doesn't exist as far as sound is concerned on your system. This is most likely solved by making a change in your BIOS. I was helping someone with something quite similar recently, and I think the fix was a "discreet" setting. I'll try to find the thread.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No HDMI sound output on laptop

Post by MrEen »

I found the thread here: viewtopic.php?f=47&t=288514&hilit=discreet#p1598164

That user needed a fix I found here: https://devtalk.nvidia.com/default/topi ... 3/#5211273

I posted complete instructions (minus the sudo touch command a couple of posts later) here: viewtopic.php?f=47&t=288514&p=1602220&h ... t#p1602220

If you choose to try that fix, be certain to have a backup first. A Timeshift snapshot would be an excellent choice. You have the same busid for the nvidia card that the OP in that thread had (bus ID: 01:00.0) so the instructions should be the same for you assuming it's the nvidia card that your HDMI is plugged in to.

You can also check the output of running lspci in the terminal. You should have more than one Audio device (the one you will have will be at 00:1f.3) but I'm betting you won't. The HDMI audio should be either 00:02.1 if it's Intel, or 01:00.1 if it's nvidia. If lspci does produce a second audio device other than 00:1f.3, please report back before attempting the fix and paste the output it gave you.

If you'd rather try anything else first just say so and we can try some other troubleshooting. Start with a complete shutdown. Leave the system off for at least 10 minutes, then boot up and see if lspci shows either 00:02.1 or 01:00.1.
victords
Level 1
Level 1
Posts: 12
Joined: Mon Jul 13, 2020 7:56 am

Re: No HDMI sound output on laptop

Post by victords »

Hi MrEen,

I have the same problem as the OP, but lspci does list two audio devices for me... Do you know what should I do?
I also created a post about my problem with the output of the other commands: viewtopic.php?f=48&t=350069.

Here's the output from lspci:

Code: Select all

00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:15.0 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #0 (rev 10)
00:15.1 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #1 (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 SATA controller: Intel Corporation Cannon Lake Mobile PCH SATA AHCI Controller (rev 10)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 (rev f0)
00:1d.5 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #14 (rev f0)
00:1d.6 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #15 (rev f0)
00:1e.0 Communication controller: Intel Corporation Cannon Lake PCH Serial IO UART Host Controller (rev 10)
00:1f.0 ISA bridge: Intel Corporation HM470 Chipset LPC/eSPI Controller (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev ff)
06:00.0 Non-Volatile memory controller: Sandisk Corp WD Black 2018/PC SN520 NVMe SSD (rev 01)
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 25)
08:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
Thanks in advance.
Locked

Return to “Sound”