Sunday, 18 December 2011

Enabling audio output over HDMI with Ubuntu

I assembled a new computer recently. It's an awesome piece of machinery:
  • Mainboard: Zotac H67-ITX Wifi.
  • Processor: Intel Core i5.
It was important for the mainboard to have HDMI output because I wanted to connect the computer to my TV (an LG 32LE5500) and have a complete media-center in my living room. When I connected the machine to my TV (which is connected to a Dolby 5.1 sound system) with an HDMI cable, there was no sound! Here is one solution: Create this file if it doesn't already exist: /etc/asound.conf. In this file, put the following:
pcm.!default {
  type plug
  slave {
    pcm "hw:1,0" #delete the first hash for sound over analog
#    pcm "hw:1,1" #delete the first hash for sound over optical
    pcm "hw:0,3" #delete the first hash for sound over hdmi
    rate 48000
This should direct sound to the HDMI. There is one downside though: you can't use the sound controls to control the sound. In fact, nothing seems to have any effect. Luckily since the sound is coming via the TV, I can use the remote to control the sound until I find a solution. Once I find it, I'll post it here.


  1. I appreciate what you guys are usually up too. This kind of brilliant information should need to be shared to others! Keep up the amazing job, I also save your site to my favorite lists.. HDMI 2.0

  2. I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks.

  3. Pioneer is a premium company known for offering excellent music machines for your car.

  4. Oh, what a pity, that I found your blog is so late... Recently I had a similar problem, but I decided it another way. On one of the sites I found an advice and downloaded the eps file opener After these steps, I was able to open my file.