HDMI Audio on LMDE/XFCE

While at home sick today I fired up Firefox to watch some videos on my media centre PC and was quickly disappointed to hear the audio coming from the laptop’s speakers rather than through my television. XBMC on this machine uses HDMI for audio out, and has since I set it up, so I was confident that it was just a matter of configuration. After some messing around trying to find config windows in XFCE and searching the world wide web, I found a post mentioning pavucontrol. Hoping pavucontrol offered a solution I installed it and launched it from the command line. It gave me a nice GUI as seen below, and more importantly, allowed me to configure the output device that PulseAudio should use by default.

screen capture of choosing HDMI output in pavucontrol GUI

After I’d enjoyed my video, I thought I should try and gain at least a cursory understanding of what I’d just done. Wikipedia came to the rescue with a high level description of PulseAudio, and a helpful diagram that shows where it sits in the grand scheme of things. One thing that really caught my eye was the following; “One of the goals of PulseAudio is to reroute all sound streams through it…”. With that in mind I’m guessing that a fair few applications on my system are using Pulse, but I’d just never noticed the issue because I could configure XBMC to use a specific output (it has an independent sound system?). In any event, I hope this helps some other confused soul to get their audio pumping through HDMI.

XBMC on Linux Mint Debian Edition

Since I built my file server (now running FreeBSD after a stint with Mythbuntu) I’ve used a variety of front ends to view all of the juicy media stored on it. My second most recent front-end was a re-purposed Lenovo Thinkpad Edge with a broken screen. It ran Windows 7 with Windows MCE and a Microsoft MCE remote. It was dead easy to setup, requiring only that I plugged in a HDMI cable and the IR receiver, and provided some media locations from the comfort of my couch. Unfortunately, the terrible WiFi performance meant that video often lagged for brief periods of time, or at its worst, stopped playing altogether. After a few months of frustration, I decided to try out Linux Mint Debian Edition to see if it performed better, given that all of the other WiFi connections in the house worked well. It did. So far I’ve been very happy with the whole system, so I thought I’d share how I got here. A warning now: if you’re not comfortable with basic Linux commands and editing configuration files by hand, then you should probably stick to Windows or Mac. Having said that, attempting things beyond your current skill level is how you learn. If you get really stuck, you can always post a comment and I’ll see if I can help you out.

Continue reading