83

I have my PC hooked up to speakers and a monitor. In addition, it is hooked up to my Vizio 37' LCD Television. When I was on Windows 7, I could choose to output sound via HDMI. I have the choice in Ubuntu but no sound is outputted. Any Ideas? I don't know how to get system specs on Ubuntu so if you need them please tell me how to get them.

aplay -l output:

**** List of PLAYBACK Hardware Devices **** 
card 0: Intel [HDA Intel], 
device 0: ALC887 Analog [ALC887 Analog] 
Subdevices: 0/1 
Subdevice #0: 
subdevice #0 card 0: Intel [HDA Intel], device 3: ALC887 Digital [ALC887 Digital] Subdevices: 1/1 
Subdevice #0: subdevice #0 card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 
Garrett
  • 720
  • 3
  • 13
  • 30
Michael
  • 841

6 Answers6

112

With the HDMI cable plugged in, run the following utility:

speaker-test --channels 2 --rate 48000 --device hw:0,3

(for others, the hw:x,y is x = card, y = device)

This just runs a sound test with static bouncing back and forth. Once it has played out of each speaker, hit Ctrl+c to stop it, and then check in your sound settings to see if the HDMI output is now listed under the internal device.

That was all I had to do to get it working. If it doesn't work for you, check out this tutorial for upgrading alsa to the ppa version.

jpaugh
  • 552
Bryan Agee
  • 3,356
  • 35
    This is ridiculous, but works admirably. Thanks. – Pedro Werneck Mar 24 '13 at 02:50
  • 3
    Upgrading alsa + installing pavucontrol as suggested by @gsdej 's post (instead of the speaker test) worked for me – nariknahom Oct 28 '13 at 11:46
  • This did not work for me. The install failed. please see http://askubuntu.com/questions/512482/hdmi-audio-not-working-on-tv – faizal Aug 17 '14 at 11:12
  • Thanks for this, I had tried pavucontrol before and it still wasn't playing through the TV. After running this little test, it suddenly started playing...wierd – smac89 Dec 29 '14 at 01:08
  • 1
    // , This works, but firefox is still not using HDMI, while Chromium now does, on Ubuntu 16.04. – Nathan Basanese Apr 09 '17 at 23:07
81

You can try installing program "PulseAudio Volume Control" (sudo apt-get install pavucontrol)

In tab Configuration select profile mentioning HDMI.

The desktop sound output should immediately switch to HDMI.

Tom Dalton
  • 135
  • 1
  • 6
gsedej
  • 4,914
  • 1
    Thank you, this worked for me on 12.10, Intel HD 4000. For me, HDMI was not listed as an output device in the system's sound settings. But once I selected the HDMI profile in the configuration tab of the "Pulse Audio Volume Control", sound through HDMI worked and HDMI was even listed as an output device in the standard sound settings. Bryan's approach didn't work for me. – Tobias Feb 28 '13 at 22:14
  • This also worked for me - ALSA could see it but Ubuntu's desktop couldn't. – Tom Dalton Sep 10 '13 at 18:54
  • 1
    There's no pavucontrol on 14.04 – That Brazilian Guy Jun 05 '14 at 01:00
  • @ThatBrazilianGuy just downloaded it on 14.04. apt-cache policy pavucontrol has output : pavucontrol: Installed: 2.0-2 Candidate: 2.0-2 Version table: *** 2.0-2 0 500 http://ca.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages 100 /var/lib/dpkg/status – blo0p3r Sep 13 '14 at 19:39
  • 1
    No HDMI profile in the Configuration tab for me. – cboettig Dec 03 '14 at 20:20
  • No HDMI in the profile configuration for me either (15.04). – tchakravarty Jun 14 '15 at 17:42
  • Can you past output of lspci and aplay -l. Do you by any chance have seperate GPU (AMD/NVIDIA) that is physically conneted to HDMI? it may be powered down... – gsedej Jun 15 '15 at 19:00
  • The Sound settings allows you to change to 'surround', but then it does not allow you to change back, which is weird. pavucontrol allows this. Fixed my problem (on Debian 8). – marcelocra Oct 29 '15 at 14:10
  • 1
    It works for me! Ubuntu 16.04 – Ponsuyambu May 28 '17 at 10:36
4

Install GNOME alsa mixer which is in the universe repository (activate the universe repository in your software sources by running Software & Updates and insuring the 2nd box from the top is checked) then Install via Ubuntu software.

gnome-alsamixer

run it and you'll see a screen like this:

gam

unmute everything by clearing the mute checkboxes , then check the IEC958 checkbox.

Elder Geek
  • 36,023
  • 25
  • 98
  • 183
  • 7
    While this may theoretically answer the question, it is too vague to be useful. Please expand it to include the steps needed to accomplish what you are suggesting. While experienced user may know how to do this, new user likely will not; it needs to be useful to all users. – TrailRider Aug 18 '13 at 16:40
  • 5
    What's vague about it? I installed GNOME alsa mixer from the ubuntu store, ran it, and there was a checkbox labeled IEC958. – AaronF Oct 03 '15 at 19:09
  • Use m key to un/mute. MM under a volume bar means muted, highlighted OO means enabled. – anps Dec 24 '15 at 21:42
  • 3
    What it you have 3 times IEC958 and no IEC958PCM? – Zelphir Kaltstahl May 13 '17 at 11:29
4

I have had similar problems, and all the forums I could find were talking about PulseAudio and AlsaMixer. None of those solutions worked for me.

I finally found my solution in updating my Graphic Cards driver from which the HDMI cable was connected following the steps here.

You might not have the same grapic cards or any but you might give it a try to update your driver.

cat
  • 1,672
Leet
  • 41
2

For me the things that worked was killing the pulseaudio daemon via the following command

pulseaudio -k

I got inspired from this link.

INS
  • 141
2

I have Debian with LXDE but this may apply to you in other cases.

Open PulseAudio Volume Control

enter image description here

Initially I thought I needed to upgrade something because I could not see HDMI here

enter image description here

But after going to Configuration and selecting a profile with HDMI

enter image description here

You can go to Output and see there your HDMI port. Now the sound goes through the HDMI cable. Nothing to install / update / tweak (in my case).

enter image description here

Rub
  • 171
  • OMG how is this how it works. Sure HDMI settings need to be changed but why is there no separate HDMI output audio device jeez – Tarick Welling May 08 '22 at 18:02