How can I get HDMI sound to work in 16.04?












6














I recently upgraded from an ancient Ubuntu installation to 16.04 LTS. Everything works well except for one thing. I can't get HDMI sound to work.



Some notes and observations:




  1. The computer itself is an Intel NUC

  2. The installation is completely standard

  3. The only sound and video output is through the same HDMI plug to a TV

  4. The sound section in System Settings shows the "HDMI/DisplayPort - Built-in Audio" device as expected, and all volumes are at 100% and nothing is muted

  5. Likewise for pavucontrol, it lists the "Digital Stereo (HDMI) Output" profile under Configuration and the "HDMI/DisplayPort (plugged in)" device under Output Devices, and all volumes are at 100% and nothing is muted and the sound level meters show there is sound being generated

  6. However regardless what sound / pavucontrol say, there is no HDMI output

  7. But in Kodi, while if I select the "Default, Default Output Device (PULSEAUDIO)" audio output device in Kodi there is no sound, if I select "Built-in Audio Digital Stereo (HDMI), HDMI / DisplayPort (PULSEAUDIO)" HDMI sound works just fine in Kodi. (I suspect this is because somehow Kodi with this setting outputs straight to HDMI and not to default Pulseaudio)

  8. Outside of Kodi, if I bring up alsamixer, hit F6, select HDMI, and hit m and m again (mute and unmute) HDMI sound comes back, but as soon as the sound source stops (like a pause a youtube video) there is no HMDI sound again

  9. Using aplay I can output test sound through HDMI completely fine (using the correct card and device)

  10. I also tried installing Fedora 24, but still no HDMI sound


I have tried pretty much all sound issue fixes I have found, but so far the sound issue persists:




  1. Update Intel drivers

  2. Update Ubuntu (besides 16.04 I also tried the 16.10 beta, but same story there)

  3. Setting the default pcm card and device (from testing with aplay) in .asoundrc

  4. Setting the alsa sink device with load-module module-alsa-sink device=hw:X,Y in /etc/pulse/default.pa


Here's the output from alsa_info.sh, pactl list sinks, pacmd list-sink-inputs for reference.



What can I do to debug and fix the issue?



EDIT: I also posted this question on 01.org.



I later ran pulseaudio with higher logging verbosity. You can find the log here



Here's what I did:




  1. I started the daemon

  2. I tried increasing and decreasing the volume. I expect the little pop sound everytime i change the volume, but there is no sound.

  3. I then start spotify and start playing a song, but still no sound

  4. I then open alsamixer, select the HDMI card, and I mute and unmute the sound

  5. Now there is all of a sudden sound

  6. I increase and decrease the volume again, but this time there is sound

  7. I then pause the song in spotify and wait for a while

  8. When i start playing the song again there is no sound again

  9. I kill the daemon


I am using HDMI card 0 device 3.



I am not plugging in any other sound cables.










share|improve this question
























  • @WinEunuuchs2Unix Ha thanks. It's a bit on a confusing issue so I felt I had to capture it properly to not confuse people further...
    – hmmmmsomethingiswrong
    Oct 20 '16 at 3:30
















6














I recently upgraded from an ancient Ubuntu installation to 16.04 LTS. Everything works well except for one thing. I can't get HDMI sound to work.



Some notes and observations:




  1. The computer itself is an Intel NUC

  2. The installation is completely standard

  3. The only sound and video output is through the same HDMI plug to a TV

  4. The sound section in System Settings shows the "HDMI/DisplayPort - Built-in Audio" device as expected, and all volumes are at 100% and nothing is muted

  5. Likewise for pavucontrol, it lists the "Digital Stereo (HDMI) Output" profile under Configuration and the "HDMI/DisplayPort (plugged in)" device under Output Devices, and all volumes are at 100% and nothing is muted and the sound level meters show there is sound being generated

  6. However regardless what sound / pavucontrol say, there is no HDMI output

  7. But in Kodi, while if I select the "Default, Default Output Device (PULSEAUDIO)" audio output device in Kodi there is no sound, if I select "Built-in Audio Digital Stereo (HDMI), HDMI / DisplayPort (PULSEAUDIO)" HDMI sound works just fine in Kodi. (I suspect this is because somehow Kodi with this setting outputs straight to HDMI and not to default Pulseaudio)

  8. Outside of Kodi, if I bring up alsamixer, hit F6, select HDMI, and hit m and m again (mute and unmute) HDMI sound comes back, but as soon as the sound source stops (like a pause a youtube video) there is no HMDI sound again

  9. Using aplay I can output test sound through HDMI completely fine (using the correct card and device)

  10. I also tried installing Fedora 24, but still no HDMI sound


I have tried pretty much all sound issue fixes I have found, but so far the sound issue persists:




  1. Update Intel drivers

  2. Update Ubuntu (besides 16.04 I also tried the 16.10 beta, but same story there)

  3. Setting the default pcm card and device (from testing with aplay) in .asoundrc

  4. Setting the alsa sink device with load-module module-alsa-sink device=hw:X,Y in /etc/pulse/default.pa


Here's the output from alsa_info.sh, pactl list sinks, pacmd list-sink-inputs for reference.



What can I do to debug and fix the issue?



EDIT: I also posted this question on 01.org.



I later ran pulseaudio with higher logging verbosity. You can find the log here



Here's what I did:




  1. I started the daemon

  2. I tried increasing and decreasing the volume. I expect the little pop sound everytime i change the volume, but there is no sound.

  3. I then start spotify and start playing a song, but still no sound

  4. I then open alsamixer, select the HDMI card, and I mute and unmute the sound

  5. Now there is all of a sudden sound

  6. I increase and decrease the volume again, but this time there is sound

  7. I then pause the song in spotify and wait for a while

  8. When i start playing the song again there is no sound again

  9. I kill the daemon


I am using HDMI card 0 device 3.



I am not plugging in any other sound cables.










share|improve this question
























  • @WinEunuuchs2Unix Ha thanks. It's a bit on a confusing issue so I felt I had to capture it properly to not confuse people further...
    – hmmmmsomethingiswrong
    Oct 20 '16 at 3:30














6












6








6


4





I recently upgraded from an ancient Ubuntu installation to 16.04 LTS. Everything works well except for one thing. I can't get HDMI sound to work.



Some notes and observations:




  1. The computer itself is an Intel NUC

  2. The installation is completely standard

  3. The only sound and video output is through the same HDMI plug to a TV

  4. The sound section in System Settings shows the "HDMI/DisplayPort - Built-in Audio" device as expected, and all volumes are at 100% and nothing is muted

  5. Likewise for pavucontrol, it lists the "Digital Stereo (HDMI) Output" profile under Configuration and the "HDMI/DisplayPort (plugged in)" device under Output Devices, and all volumes are at 100% and nothing is muted and the sound level meters show there is sound being generated

  6. However regardless what sound / pavucontrol say, there is no HDMI output

  7. But in Kodi, while if I select the "Default, Default Output Device (PULSEAUDIO)" audio output device in Kodi there is no sound, if I select "Built-in Audio Digital Stereo (HDMI), HDMI / DisplayPort (PULSEAUDIO)" HDMI sound works just fine in Kodi. (I suspect this is because somehow Kodi with this setting outputs straight to HDMI and not to default Pulseaudio)

  8. Outside of Kodi, if I bring up alsamixer, hit F6, select HDMI, and hit m and m again (mute and unmute) HDMI sound comes back, but as soon as the sound source stops (like a pause a youtube video) there is no HMDI sound again

  9. Using aplay I can output test sound through HDMI completely fine (using the correct card and device)

  10. I also tried installing Fedora 24, but still no HDMI sound


I have tried pretty much all sound issue fixes I have found, but so far the sound issue persists:




  1. Update Intel drivers

  2. Update Ubuntu (besides 16.04 I also tried the 16.10 beta, but same story there)

  3. Setting the default pcm card and device (from testing with aplay) in .asoundrc

  4. Setting the alsa sink device with load-module module-alsa-sink device=hw:X,Y in /etc/pulse/default.pa


Here's the output from alsa_info.sh, pactl list sinks, pacmd list-sink-inputs for reference.



What can I do to debug and fix the issue?



EDIT: I also posted this question on 01.org.



I later ran pulseaudio with higher logging verbosity. You can find the log here



Here's what I did:




  1. I started the daemon

  2. I tried increasing and decreasing the volume. I expect the little pop sound everytime i change the volume, but there is no sound.

  3. I then start spotify and start playing a song, but still no sound

  4. I then open alsamixer, select the HDMI card, and I mute and unmute the sound

  5. Now there is all of a sudden sound

  6. I increase and decrease the volume again, but this time there is sound

  7. I then pause the song in spotify and wait for a while

  8. When i start playing the song again there is no sound again

  9. I kill the daemon


I am using HDMI card 0 device 3.



I am not plugging in any other sound cables.










share|improve this question















I recently upgraded from an ancient Ubuntu installation to 16.04 LTS. Everything works well except for one thing. I can't get HDMI sound to work.



Some notes and observations:




  1. The computer itself is an Intel NUC

  2. The installation is completely standard

  3. The only sound and video output is through the same HDMI plug to a TV

  4. The sound section in System Settings shows the "HDMI/DisplayPort - Built-in Audio" device as expected, and all volumes are at 100% and nothing is muted

  5. Likewise for pavucontrol, it lists the "Digital Stereo (HDMI) Output" profile under Configuration and the "HDMI/DisplayPort (plugged in)" device under Output Devices, and all volumes are at 100% and nothing is muted and the sound level meters show there is sound being generated

  6. However regardless what sound / pavucontrol say, there is no HDMI output

  7. But in Kodi, while if I select the "Default, Default Output Device (PULSEAUDIO)" audio output device in Kodi there is no sound, if I select "Built-in Audio Digital Stereo (HDMI), HDMI / DisplayPort (PULSEAUDIO)" HDMI sound works just fine in Kodi. (I suspect this is because somehow Kodi with this setting outputs straight to HDMI and not to default Pulseaudio)

  8. Outside of Kodi, if I bring up alsamixer, hit F6, select HDMI, and hit m and m again (mute and unmute) HDMI sound comes back, but as soon as the sound source stops (like a pause a youtube video) there is no HMDI sound again

  9. Using aplay I can output test sound through HDMI completely fine (using the correct card and device)

  10. I also tried installing Fedora 24, but still no HDMI sound


I have tried pretty much all sound issue fixes I have found, but so far the sound issue persists:




  1. Update Intel drivers

  2. Update Ubuntu (besides 16.04 I also tried the 16.10 beta, but same story there)

  3. Setting the default pcm card and device (from testing with aplay) in .asoundrc

  4. Setting the alsa sink device with load-module module-alsa-sink device=hw:X,Y in /etc/pulse/default.pa


Here's the output from alsa_info.sh, pactl list sinks, pacmd list-sink-inputs for reference.



What can I do to debug and fix the issue?



EDIT: I also posted this question on 01.org.



I later ran pulseaudio with higher logging verbosity. You can find the log here



Here's what I did:




  1. I started the daemon

  2. I tried increasing and decreasing the volume. I expect the little pop sound everytime i change the volume, but there is no sound.

  3. I then start spotify and start playing a song, but still no sound

  4. I then open alsamixer, select the HDMI card, and I mute and unmute the sound

  5. Now there is all of a sudden sound

  6. I increase and decrease the volume again, but this time there is sound

  7. I then pause the song in spotify and wait for a while

  8. When i start playing the song again there is no sound again

  9. I kill the daemon


I am using HDMI card 0 device 3.



I am not plugging in any other sound cables.







16.04 pulseaudio alsa hdmi hda-intel






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 19 '16 at 12:05

























asked Oct 9 '16 at 4:08









hmmmmsomethingiswrong

173118




173118












  • @WinEunuuchs2Unix Ha thanks. It's a bit on a confusing issue so I felt I had to capture it properly to not confuse people further...
    – hmmmmsomethingiswrong
    Oct 20 '16 at 3:30


















  • @WinEunuuchs2Unix Ha thanks. It's a bit on a confusing issue so I felt I had to capture it properly to not confuse people further...
    – hmmmmsomethingiswrong
    Oct 20 '16 at 3:30
















@WinEunuuchs2Unix Ha thanks. It's a bit on a confusing issue so I felt I had to capture it properly to not confuse people further...
– hmmmmsomethingiswrong
Oct 20 '16 at 3:30




@WinEunuuchs2Unix Ha thanks. It's a bit on a confusing issue so I felt I had to capture it properly to not confuse people further...
– hmmmmsomethingiswrong
Oct 20 '16 at 3:30










1 Answer
1






active

oldest

votes


















3














Actually I finally solved this.



It turned out to be pulseaudio was using the wrong sample rate.



Following the advice in tom.ty89's 2016-01-11 08:37:45 post, my sound suddenly came alive...



https://bbs.archlinux.org/viewtopic.php?id=207085



Thanks anyway!






share|improve this answer

















  • 1




    I've been struggling with this exact issue for months! Thank you for taking the time to both detail the issue and add your fix! Legend. You should mark your own answer as solved.
    – KingBob
    Jul 16 '17 at 14:23











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f834731%2fhow-can-i-get-hdmi-sound-to-work-in-16-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














Actually I finally solved this.



It turned out to be pulseaudio was using the wrong sample rate.



Following the advice in tom.ty89's 2016-01-11 08:37:45 post, my sound suddenly came alive...



https://bbs.archlinux.org/viewtopic.php?id=207085



Thanks anyway!






share|improve this answer

















  • 1




    I've been struggling with this exact issue for months! Thank you for taking the time to both detail the issue and add your fix! Legend. You should mark your own answer as solved.
    – KingBob
    Jul 16 '17 at 14:23
















3














Actually I finally solved this.



It turned out to be pulseaudio was using the wrong sample rate.



Following the advice in tom.ty89's 2016-01-11 08:37:45 post, my sound suddenly came alive...



https://bbs.archlinux.org/viewtopic.php?id=207085



Thanks anyway!






share|improve this answer

















  • 1




    I've been struggling with this exact issue for months! Thank you for taking the time to both detail the issue and add your fix! Legend. You should mark your own answer as solved.
    – KingBob
    Jul 16 '17 at 14:23














3












3








3






Actually I finally solved this.



It turned out to be pulseaudio was using the wrong sample rate.



Following the advice in tom.ty89's 2016-01-11 08:37:45 post, my sound suddenly came alive...



https://bbs.archlinux.org/viewtopic.php?id=207085



Thanks anyway!






share|improve this answer












Actually I finally solved this.



It turned out to be pulseaudio was using the wrong sample rate.



Following the advice in tom.ty89's 2016-01-11 08:37:45 post, my sound suddenly came alive...



https://bbs.archlinux.org/viewtopic.php?id=207085



Thanks anyway!







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 9 '16 at 12:59









hmmmmsomethingiswrong

173118




173118








  • 1




    I've been struggling with this exact issue for months! Thank you for taking the time to both detail the issue and add your fix! Legend. You should mark your own answer as solved.
    – KingBob
    Jul 16 '17 at 14:23














  • 1




    I've been struggling with this exact issue for months! Thank you for taking the time to both detail the issue and add your fix! Legend. You should mark your own answer as solved.
    – KingBob
    Jul 16 '17 at 14:23








1




1




I've been struggling with this exact issue for months! Thank you for taking the time to both detail the issue and add your fix! Legend. You should mark your own answer as solved.
– KingBob
Jul 16 '17 at 14:23




I've been struggling with this exact issue for months! Thank you for taking the time to both detail the issue and add your fix! Legend. You should mark your own answer as solved.
– KingBob
Jul 16 '17 at 14:23


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f834731%2fhow-can-i-get-hdmi-sound-to-work-in-16-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局