[SRU] pulseaudio: restore hdmi audio be active output after resume

Bug #1951667 reported by Hui Wang
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HWE Next
Fix Released
Undecided
Unassigned
OEM Priority Project
Fix Released
Undecided
Unassigned
pulseaudio (Ubuntu)
Fix Released
High
Hui Wang
Focal
Fix Released
High
Hui Wang
Hirsute
Won't Fix
High
Unassigned
Impish
Fix Released
High
Hui Wang
Jammy
Fix Released
High
Hui Wang

Bug Description

[Impact]
On the machines with legacy HDA audio driver, when users plug a hdmi/dp monitor, the active output device is still speaker, need users to manually select the hdmi, then the hdmi audio will be the users' preference, once it is plugged, it should become the active output automatically. But with the current PA, after reboot and suspend/resume, the hdmi can't change to be active output automatically anymore.

[Fix]
Backport an upstream fix, this will fix the issue of "preferred ports being cleaned by a mistake"

[Test]
On a machine with legacy HDA audio driver, install the patched pulseaudio, then run 'rm ~/.config/pulse/*; reboot', plug a hdmi monitor, select the hdmi audio to be active, with the hdmi monitor plugged and reboot, suspend and resume, check what is the active output, it is still the hdmi audio.

[Where problems could occur]
This patch is in the card-restore.c, if it could introduce regression, it will be on the default active input/output devices, for example, users select a input or output device to be active, after reboot, if those devices are available, they should be active, but they could be replaced by other devices if a regression is introduced. But this possibility is very low since we tested the patch on a couple of desktop and laptop machines.

Hui Wang (hui.wang)
Changed in pulseaudio (Ubuntu):
assignee: nobody → Hui Wang (hui.wang)
importance: Undecided → High
Changed in pulseaudio (Ubuntu Impish):
importance: Undecided → High
Changed in pulseaudio (Ubuntu Hirsute):
importance: Undecided → High
Changed in pulseaudio (Ubuntu Focal):
importance: Undecided → High
status: New → In Progress
Changed in pulseaudio (Ubuntu Hirsute):
status: New → In Progress
Changed in pulseaudio (Ubuntu Impish):
status: New → In Progress
Changed in pulseaudio (Ubuntu Jammy):
status: New → In Progress
Revision history for this message
Hui Wang (hui.wang) wrote :

This is the debdiff for jammy

thx.

description: updated
Revision history for this message
Hui Wang (hui.wang) wrote :

This is the debdiff for impish.

thx.

Revision history for this message
Hui Wang (hui.wang) wrote :

This is the debdiff for hirsute.

thx.

Revision history for this message
Hui Wang (hui.wang) wrote :

This is the debdiff for focal.

thx.

tags: added: oem-priority originate-from-1946429 somerville
Mathew Hodson (mhodson)
tags: added: suspend-resume
Yao Wei (medicalwei)
tags: added: originate-from-1933628
Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

It probably doesn't make sense to fix hirsute at this point unless you need the fix there?

Changed in pulseaudio (Ubuntu Jammy):
status: In Progress → Fix Committed
Changed in pulseaudio (Ubuntu Impish):
status: In Progress → Fix Committed
Changed in pulseaudio (Ubuntu Focal):
status: In Progress → Fix Committed
assignee: nobody → Hui Wang (hui.wang)
Changed in pulseaudio (Ubuntu Impish):
assignee: nobody → Hui Wang (hui.wang)
Changed in pulseaudio (Ubuntu Hirsute):
status: In Progress → Won't Fix
Revision history for this message
Hui Wang (hui.wang) wrote :

OK, drop the hirsute then. Thanks.

Revision history for this message
Chris Halse Rogers (raof) wrote : Please test proposed package

Hello Hui, or anyone else affected,

Accepted pulseaudio into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/pulseaudio/1:13.99.1-1ubuntu3.13 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-focal
Revision history for this message
Hui Wang (hui.wang) wrote :

find a lenovo machine which has legacy hda audio desgin, install 20.04 and run dist-upgrade, enable the -proposed channel in the /etc/apt/sources.list and run sudo apt-get update, then run sudo apt install pulseaudio, the puseaudio 1:13.99.1-1ubuntu3.13 is installed. reboot, plug a hdmi monitor, manually select it to be active output, keep the hdmi monotor plugged and reboot, after reboot checking the active output device, it is still the hdmi audio, then run suspend and resume, check the active output device, it is still hdmi audio.

Verification done on focal.

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
Robie Basak (racb) wrote :

Hello Hui, or anyone else affected,

Accepted pulseaudio into impish-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/pulseaudio/1:15.0+dfsg1-1ubuntu2.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-impish to verification-done-impish. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-impish. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-impish
removed: verification-done
Mathew Hodson (mhodson)
tags: removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pulseaudio - 1:15.0+dfsg1-1ubuntu6

---------------
pulseaudio (1:15.0+dfsg1-1ubuntu6) jammy; urgency=medium

  * debian/control: build-depends on doxygen

 -- Sebastien Bacher <email address hidden> Wed, 24 Nov 2021 10:10:01 +0100

Changed in pulseaudio (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Hui Wang (hui.wang) wrote :

find a lenovo machine which has legacy hda audio desgin, install 21.10 and run dist-upgrade, enable the -proposed channel in the /etc/apt/sources.list and run sudo apt-get update, then run sudo apt install pulseaudio, the puseaudio 1:15.0+dfsg1-1ubuntu2.2 is installed. reboot, plug a hdmi monitor, manually select it to be active output, keep the hdmi monotor plugged and reboot, after reboot checking the active output device, it is still the hdmi audio, then run suspend and resume, check the active output device, it is still hdmi audio.

Verification done on impish.

tags: added: verification-done-impish
removed: verification-needed-impish
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for pulseaudio has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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

This bug was fixed in the package pulseaudio - 1:15.0+dfsg1-1ubuntu2.2

---------------
pulseaudio (1:15.0+dfsg1-1ubuntu2.2) impish; urgency=medium

  * d/p/0001-card-restore-setting-preferred-ports-in-entry_from_c.patch
    - cherry pick an upstream commit to fix the issue of hdmi can't be
      restored after s3 resume (LP: #1951667)

 -- Hui Wang <email address hidden> Sat, 20 Nov 2021 12:15:12 +0800

Changed in pulseaudio (Ubuntu Impish):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pulseaudio - 1:13.99.1-1ubuntu3.13

---------------
pulseaudio (1:13.99.1-1ubuntu3.13) focal; urgency=medium

  * d/p/0001-card-restore-setting-preferred-ports-in-entry_from_c.patch
    - cherry pick an upstream commit to fix the issue of hdmi can't be
      restored after s3 resume (LP: #1951667)

 -- Hui Wang <email address hidden> Sat, 20 Nov 2021 12:40:36 +0800

Changed in pulseaudio (Ubuntu Focal):
status: Fix Committed → Fix Released
Changed in oem-priority:
status: New → Fix Released
Timo Aaltonen (tjaalton)
Changed in hwe-next:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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