Video but no sound on HDMI

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
Post Reply
gbone
Level 3
Level 3
Posts: 127
Joined: Wed Aug 20, 2014 7:55 am

Video but no sound on HDMI

Post by gbone »

I just got a new cable, mini DP to HDMI, and hooked it to my monitor. I get video OK, but no sound. My old cable worked just fine until I accidently hit the mini DP end and bent it. How can I get the sound to turn on? When I go under Preferences > Sound, the HDMI option no longer shows up there as output.
I'm using LM 19.3 on Lenovo W530.
Thanks
SimpleLinuxUser
Level 1
Level 1
Posts: 16
Joined: Tue Feb 23, 2021 9:32 pm

Re: Video but no sound on HDMI

Post by SimpleLinuxUser »

It is the cable, it doesn't matter if it works on other device. These cables have subversion protocols or even simpler some contact does not "sit" correctly on the pc because it is half a milimeter shorter.
It has happened to me and the solution was given by another cable that in theory paper was of a lower quality.
It has also happened with jack audio cable. I had to "shave" it with a knife. Not applicable in the current case this type of cable.
User avatar
MrEen
Level 23
Level 23
Posts: 17600
Joined: Mon Jun 12, 2017 8:39 pm

Re: Video but no sound on HDMI

Post by MrEen »

We should make sure the audio is actually being output to the HDMI output. Try to play some sound and run pacmd list-sinks in the terminal and paste that output.
gbone
Level 3
Level 3
Posts: 127
Joined: Wed Aug 20, 2014 7:55 am

Re: Video but no sound on HDMI

Post by gbone »

I rebooted the laptop with the HDMI cable connected and when I go to Preferences > Sound, I only get 'Speakers built-in audio'.
On the old cable I could do a hot connect and get video and audio.
Here is the output:

Code: Select all

$ pacmd list-sinks
2 sink(s) available.
    index: 0
	name: <alsa_output.pci-0000_01_00.1.hdmi-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE 
	priority: 9030
	volume: front-left: 91750 / 140% / 8.77 dB,   front-right: 91750 / 140% / 8.77 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: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 371.52 ms
	card: 0 <alsa_card.pci-0000_01_00.1>
	module: 7
	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 = "1"
		alsa.card_name = "HDA NVidia"
		alsa.long_card_name = "HDA NVidia at 0xf1000000 irq 17"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:01:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
		device.bus = "pci"
		device.vendor.id = "10de"
		device.vendor.name = "NVIDIA Corporation"
		device.product.id = "0e1b"
		device.product.name = "GK107 HDMI Audio Controller"
		device.string = "hdmi:1"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "32768"
		device.access_mode = "mmap+timer"
		device.profile.name = "hdmi-stereo"
		device.profile.description = "Digital Stereo (HDMI)"
		device.description = "GK107 HDMI Audio Controller Digital Stereo (HDMI)"
		alsa.mixer_name = "Nvidia GPU 42 HDMI/DP"
		alsa.components = "HDA:10de0042,17aa21f5,00100100"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
	active port: <hdmi-output-0>
  * index: 1
	name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: 
	priority: 9039
	volume: front-left: 28164 /  43% / -22.01 dB,   front-right: 88846 / 136% / 7.93 dB
	        balance 0.68
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 22.26 ms
	max request: 4 KiB
	max rewind: 64 KiB
	monitor source: 1
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 23.22 ms; range is 0.50 .. 371.52 ms
	card: 1 <alsa_card.pci-0000_00_1b.0>
	module: 8
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC269VC Analog"
		alsa.id = "ALC269VC Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf3a30000 irq 36"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "1e20"
		device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "32768"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		alsa.mixer_name = "Realtek ALC269VC"
		alsa.components = "HDA:10ec0269,17aa2204,00100203"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-speaker>
Last edited by MrEen on Sat Feb 27, 2021 9:20 pm, edited 1 time in total.
Reason: Swapped code tags for quote tags.
User avatar
MrEen
Level 23
Level 23
Posts: 17600
Joined: Mon Jun 12, 2017 8:39 pm

Re: Video but no sound on HDMI

Post by MrEen »

Does this get it working:

Code: Select all

pacmd set-default-sink alsa_output.pci-0000_01_00.1.hdmi-stereo
Post Reply

Return to “Sound, Multimedia, & Codecs”