default output changes from intel builtin to hdmi when display is turned off. yes off not on

Bug #1709163 reported by kenjo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

So if I have sound output selected to be the intel sound on the mainboard and turn off one of my two displays the audio out is changed to HDMI. YES OFF it's not a typo.

The Display I turn off is connected to displayport and do not even have HDMI. The audio is switched over to the still active display.

If I then turn the display back it's still hdmi. If I then turn off the display that has HDMI out connected. the audio is still connected to that display. since its actually off I hear no sound but pulseaudio still connect to it.

I have to manually open the GUI tool and change back to the correct output when the display is turned off or when the display is blanked. or suspend/resume.

I attache the output of "pacmd list-cards && pacmd list-sinks"
ok -> ps_w1.txt
fail -> ps_f1.txt
---
ApportVersion: 2.20.6-0ubuntu4
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: kenjo 3721 F.... pulseaudio
 /dev/snd/controlC1: kenjo 3721 F.... pulseaudio
CurrentDesktop: GNOME
DistroRelease: Ubuntu 17.10
InstallationDate: Installed on 2015-10-18 (659 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150924)
Package: pulseaudio 1:10.0-2ubuntu1
PackageArchitecture: amd64
Tags: artful
Uname: Linux 4.12.1-041201-generic x86_64
UpgradeStatus: Upgraded to artful on 2017-06-10 (59 days ago)
UserGroups: adm cdrom dip libvirt libvirtd lpadmin lxd plugdev sambashare sudo video wireshark
_MarkForUpload: True
dmi.bios.date: 04/25/2017
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1.I0
dmi.board.asset.tag: Default string
dmi.board.name: Z170A GAMING M7 (MS-7976)
dmi.board.vendor: MSI
dmi.board.version: 1.0
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: MSI
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1.I0:bd04/25/2017:svnMSI:pnMS-7976:pvr1.0:rvnMSI:rnZ170AGAMINGM7(MS-7976):rvr1.0:cvnMSI:ct3:cvr1.0:
dmi.product.family: Default string
dmi.product.name: MS-7976
dmi.product.version: 1.0
dmi.sys.vendor: MSI
modified.conffile..etc.pulse.daemon.conf: [modified]
mtime.conffile..etc.pulse.daemon.conf: 2016-04-23T00:00:29.066742

Revision history for this message
kenjo (ken-kenjo) wrote :
Revision history for this message
kenjo (ken-kenjo) wrote :
description: updated
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 1709163

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in pulseaudio (Ubuntu):
status: New → Incomplete
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "working aoudio" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
kenjo (ken-kenjo) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected artful
description: updated
Revision history for this message
kenjo (ken-kenjo) wrote : CurrentDmesg.txt

apport information

Revision history for this message
kenjo (ken-kenjo) wrote : Dependencies.txt

apport information

Revision history for this message
kenjo (ken-kenjo) wrote : JournalErrors.txt

apport information

Revision history for this message
kenjo (ken-kenjo) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
kenjo (ken-kenjo) wrote : ProcEnviron.txt

apport information

Revision history for this message
kenjo (ken-kenjo) wrote : PulseList.txt

apport information

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

Thanks for that. My first thought is to wait for the next pulseaudio update where we will be removing a pile of historic patches that change behaviour slightly, but exist neither in Debian nor upstream. If that doesn't fix it then perhaps this is related to the switch-on-connect module (misfiring?).

Changed in pulseaudio (Ubuntu):
status: Incomplete → New
Revision history for this message
kenjo (ken-kenjo) wrote :

The problem existed even before I upgraded to 17.10. but now I can not go back to that version.

I think it started to happen when upgrading the kernel version. I thought that it would eventually be fixed but apparently I'm about the only one seeing this.

What I do not understand is why it changes as the selected output is present all the time, and especially when I turn off a screen that has no audio associated with it. The monitor has no speakers.

the only think I can think of is that the display subsystem is doing some reinit when I turn off the monitor and might remove the HDMI audio associated with the other monitor that still is on and then reinserting it. But why do pulse audio then switch over to that ?? is this some auto thing like if I put in headphones.

the old GUI(unity) I could directly select sound config from the top icons. but now I have to first go to setting then sound so its even more work than before to get sound back.

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

If the problem was localized to 17.10 then I would have said try undoing a recent change we introduced to /etc/pulse/default.pa:

### Use hot-plugged devices like Bluetooth or USB automatically (LP: #1702794)
.ifexists module-switch-on-connect.so
load-module module-switch-on-connect
.endif

But that's probably not relevant if you had the same bug in previous Ubuntu versions.

There is however this module that's been enabled for a long time and isn't documented so I'm not yet familiar with its behaviour. Perhaps commenting this one out would help:

### Should be after module-*-restore but before module-*-detect
load-module module-switch-on-port-available

Revision history for this message
kenjo (ken-kenjo) wrote :
Revision history for this message
kenjo (ken-kenjo) wrote :

Tried new kernel 4.13.0-041300rc4-generic same issue

Revision history for this message
kenjo (ken-kenjo) wrote :

I did some more testing and used a USB sound card. If I select output to that one its still selected when I turn off the monitor.

So it's only when I use the built in sound that it switched to HDMI when I turn off the monitor.

Revision history for this message
Steve Barcomb (linuxpng) wrote :

I have a similar issue in 17.10. When I launch a new x session for a game it will drop it to my s/pdif output. Setting the default sink in /etc/pulse/default.pa and commenting out module-switch-on-connect has no effect. This is horribly frustrating.

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

Thank you for reporting this bug to Ubuntu.
Ubuntu 17.10 (artful) reached end-of-life on July 19, 2018.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in and change the bug status to Confirmed.

Changed in pulseaudio (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pulseaudio (Ubuntu) because there has been no activity for 60 days.]

Changed in pulseaudio (Ubuntu):
status: Incomplete → Expired
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.