No HDMI sound after suspend/resume

Bug #1718927 reported by Jacek Wróbel
56
This bug affects 10 people
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When plugging in a HDMI TV to Lenovo Carbon 3rd Edition, sound works perfectly, but when I suspend computer and resume it there is no sound via HDMI in TV. However sound via built in speakers works fine. The only thing I can do to restore sound is to reboot the machine. Similar problem was discussed in following thread https://ubuntuforums.org/showthread.php?t=2251651 with no solution. I tested it on several versions of kernel 4.4.0 and on 4.4.8. Still no solution.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

At a guess, your system is probably reverting back to the default audio device on resume.

What does it look like in Settings after resuming? Can you change the audio playback device back to HDMI by hand?

Changed in pulseaudio (Ubuntu):
status: New → Incomplete
Revision history for this message
Jacek Wróbel (wroblak) wrote : Re: [Bug 1718927] Re: No hdmi sound after suspend/resume on 16.04

Hi Daniel,
I have Ubuntu Gnome 16.04.3. After resuming I can change device in settings
but it gives no result - still silence. The sound is only on the speakers.
The only way to restore sound in HDMI is to reboot.
But I am not pretty sure if the problem relates to pulse audio. I
reinstalled the system and did not install pulseaudio at all. Still the
same. After resuming there is no sound in HDMI.
Regards

Jacek Wróbel SAC, Kielecka 33, Święta Katarzyna, 26-010 Bodzentyn

2017-09-25 21:56 GMT+02:00 Daniel van Vugt <email address hidden>:

> At a guess, your system is probably reverting back to the default audio
> device on resume.
>
> What does it look like in Settings after resuming? Can you change the
> audio playback device back to HDMI by hand?
>
> ** Changed in: pulseaudio (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1718927
>
> Title:
> No hdmi sound after suspend/resume on 16.04
>
> Status in pulseaudio package in Ubuntu:
> Incomplete
>
> Bug description:
> When plugging in a HDMI TV to Lenovo Carbon 3rd Edition, sound works
> perfectly, but when I suspend computer and resume it there is no sound
> via HDMI in TV. However sound via built in speakers works fine. The
> only thing I can do to restore sound is to reboot the machine. Similar
> problem was discussed in following thread
> https://ubuntuforums.org/showthread.php?t=2251651 with no solution. I
> tested it on several versions of kernel 4.4.0 and on 4.4.8. Still no
> solution.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+
> bug/1718927/+subscriptions
>

Changed in pulseaudio (Ubuntu):
status: Incomplete → New
Revision history for this message
Henrique Andrade (hcma-i) wrote : Re: No hdmi sound after suspend/resume on 16.04

I can confirm this also happens for me. A workaround is to change the video resolution to something else and then back to what it was. That will bring back the HDMI sound device too.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pulseaudio (Ubuntu):
status: New → Confirmed
tags: added: hdmi-audio
summary: - No hdmi sound after suspend/resume on 16.04
+ No HDMI sound after suspend/resume on 16.04
tags: added: xenial
Revision history for this message
Richard Anthony Horan (richard378) wrote :

I am having the same problem with Ubuntu 18.04.02 with HDMI audio. No sound on Resume and it can't be selected as a sound source after resume. A reboot is the only fix.

Revision history for this message
Richard Anthony Horan (richard378) wrote :

Update. It is an intermittent problem for me. It is working again.

tags: added: bionic
summary: - No HDMI sound after suspend/resume on 16.04
+ No HDMI sound after suspend/resume
Revision history for this message
Andras Muranyi (muranyia) wrote :

For me, after suspend/resume the HDMI audio device is missing from Sound Settings and pavucontrol.

'pacmd list-cards' still shows the device.

None of the workarounds work here.

This on Ubuntu 18.04.2 LTS 18.04 kernel 5.2.0-rc6-19.06.26.amdgpu.ubuntu

Revision history for this message
Andras Muranyi (muranyia) wrote :

Update: The HDMI audio device is missing even after screen off (screensaver).

Revision history for this message
J.Pasat (justxux) wrote :

OS: Ubuntu 18.04.2
DE: Gnome Shell 3.28.2
Kernel: 4.18.0-25-generic
Nvidia driver: 430.26
Audio: Headphones (Motherboard) + Speakers (HDMI)

Found an workaround (https://askubuntu.com/questions/1053076/18-04-sound-through-hdmi) and it worked for me:
"When signal is lost to HDMI (during sleep) Pulse Audio is automatically configured to active source (your laptop's speakers). Upon resume the sound device is still your laptop. To override this setting, tell Pulse Audio to never switch sound devices automatically:

edit the file /etc/pulse/default.pa
find the line load-module module-switch-on-port-available
insert a # at the beginning of the line to disable automatic port switching
save the file and reboot."

Steps to test workaround:
1) Change sound output to HDMI;
2) Open a browser (in my case Chromium snap) and wait for it to open;
3) Open media player (in my case VLC snap) and wait for it to open;
4) Play random video or music in both;
5) Pause playback;
6) Put Computer to sleep and wait like 30 sec;
7) Wake up from sleep;
8) Resume what was playing before going into sleep;
9) First time it could change output to Headphones, but at least I could switch to HDMI at least in settings;
10) Repeat step .6 through .9 a couple of times;

The sound through HDMI should be working, could be switched and remains the default even after waking up from suspend, except first time.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This bug should remain unique to the original reporter. Everyone else please open a new bug.

tags: added: resume suspend-resume
tags: removed: bionic
Revision history for this message
Andri Yudatama (ayudatama) wrote :

I have the same issue, but the solution from justxux worked fine. Thank you

edit the file /etc/pulse/default.pa
find the line load-module module-switch-on-port-available
insert a # at the beginning of the line to disable automatic port switching
save the file and reboot.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
tags: added: hdmi
tags: removed: hdmi-audio
Revision history for this message
Jonas D. (jonasd-be) wrote :

A workaround that worked for me was `pulseaudio -k`; having to do this almost every time I need audio is a big PITA though.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.