sound - No HDMI audio output from AMD Laptop

  • Teddy Thorpe

    My Laptop is a Dell Inspiron M5110, that runs Ubuntu 12.10. When I plug in HDMI to my 39 inch 1080p Television and play a audio file, sound comes out through the laptop speakers. The HDMI video seems to work normally.

    My graphics card is a AMD Radeon HD 6620G, integrated on my AMD A8-M3500 APU CPU. I am using the Open-Source graphics drivers. I ran the aplay -l command and the results are this:

        dell1@Dell-Inspiron-M5110-Laptop-Ubuntu:~$ aplay -l
        **** List of PLAYBACK Hardware Devices ****
        card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
          Subdevices: 1/1
          Subdevice #0: subdevice #0
        card 1: Generic_1 [HD-Audio Generic], device 0: STAC92xx Analog [STAC92xx Analog]
          Subdevices: 1/1
          Subdevice #0: subdevice #0

    From what was listed above, Ubuntu does not detect a HDMI Audio output, nor is it listed in the Sound Settings.

    I also altered the /etc/default/grub file from this:


    to this:


    Once I did that, a HDMI/DisplayPort 1 audio device showed up in Sound Settings, but it didn't work. So I reverted my changes in that file to its default, since it didn't work.

    Any help is appreciated.

  • Answers
  • Teddy Thorpe

    I altered the Grub file again and found out that it works, though the first time I did it, it didn't work.

    This time the HDMI/DisplayPort showed up, but with no number after it. There is a little 1 second delay before the Audio goes to the TV but it is nothing major.

  • Related Question

    11.04 - Shortcut to switch between Analog Stereo output & HDMI audio output
  • iJeeves

    To switch to HDMI audio output (of monitor) and back to normal audio output from system audio jack (for headphones, as my monitor doesn't have audio out), I find myself opening up sound preferences and selecting the right channel everytime. Is there any way I can create a toggle button in the panel or assign some shortcut key to toggle since I do the switching so often.

    :aplay -l 
    **** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 3: HDMI 0 [HDMI 0]
      Subdevices: 0/1
      Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 7: STAC92xx Digital [STAC92xx Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0

    enter image description here

  • Related Answers
  • Takkat

    With pulseaudio we are able to select the output sink from the command line:

    pacmd set-default-sink "SINKNAME"

    This command can be used in a launcher, script or even assigned to a keyboard shortcut for fast switching between different sinks. Please replace "SINKNAME" by the name or number of your desired sink. A list of known sinks with their associated numbers and names is given by the command:

    pacmd list-sinks

    Note: Changing the output sink through the command line interface can only take effect if stream target device reading is disabled. This can be done by editing the corresponing line in /etc/pulse/ to:

    load-module module-stream-restore restore_device=false

    Alternatively we could run pulseaudio to simultaneously output sound to the internal audio device, and to the hdmi-device by running paprefs Install paprefs with the option to add a virtual output device:


  • user829996

    I found this very annoying myself and wrote a script to toggle the output:

    CURRENT_PROFILE=$(pacmd list-cards | grep "active profile" | cut -d ' ' -f 3-)
    if [ "$CURRENT_PROFILE" = "<output:hdmi-stereo+input:analog-stereo>" ] ; then
            pacmd set-card-profile 0 "output:analog-stereo+input:analog-stereo"
            pacmd set-card-profile 0 "output:hdmi-stereo+input:analog-stereo"        

    and then bound an unused key on my keyboard to execute it (see How to bind custom commands to keyboard shortcuts?)

  • N.N.

    I've been trying to find a solution to this problem as well. As of Ubuntu 11.04 this does not seem to be possible directly, I only found this guide to add both HDMI and Analog as separate outputs, so pacmd shows 3 sinks now. Then it is possible to switch between sinks using the above commands. (see also But apparently Ubuntu 11.11 will gett a PulseAudio with jack detection system. According to the website below, David Henningsson has coded a detection via udev so pulse audio automatically gets switched to the last added output, including switching between different profiles of the same soundcard (as is the case with your and my setup). (see So I'm hoping this will work, when I try the final version next Friday.

  • rubadubdub

    If you are using Gnome Shell instead of Unity you can install the extension below. You'll then be able to switch from the volume short-cut in the top panel.

  • Eliah Kagan

    Since there is only one soundcard visible in the screenshot, I think the output of this soundcard should be switched.

    For example: I have a Notebook with one integrated soundcard, but it has a digital output (SPDIF) when docked.

    So what I wanted to do is switch the active output or "Profile" in pulseaudio.

    I found the commands that do exactly that:

    pacmd set-card-profile 0 output:analog-stereo
    pacmd set-card-profile 0 output:iec958-stereo+input:analog-stereo

    What I did to get the correct names for my desired output-setting--here, digital output, but analog (micro) input--was:

    pacmd list | grep output
  • Lukas

    Is there any way I can create a toggle button in the panel

    I wrote a indicator applet that lets you switch the sound output (see screenshot).