[nvidia] Audio does not auto-switch to HDMI after switching the connected HDMI TV on

Bug #1745866 reported by Norbert
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers (Ubuntu)
Confirmed
Undecided
Unassigned
pulseaudio (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When I start the computer is the connected TV (HDMI) is off and the pulseaudio device stays on unplugged when I switch the TV on. If I switch the TV on before I start the computer, everything works fine.

alsa_output.pci-0000_01_00.1.hdmi-stereo

linux-image-14.0-15-generic

nvidia-graphics-drivers-384 (384.111-0ubuntu1) bionic

Regards,

Norbert
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version k4.14.0-15-generic.
AplayDevices: aplay: device_list:270: no soundcards found...
ApportVersion: 2.20.8-0ubuntu6
Architecture: amd64
ArecordDevices: arecord: device_list:270: no soundcards found...
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/hwC1D0', '/dev/snd/pcmC1D7p', '/dev/snd/pcmC1D3p', '/dev/snd/controlC1', '/dev/snd/by-path', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D2c', '/dev/snd/pcmC0D1p', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
DistroRelease: Ubuntu 18.04
InstallationDate: Installed on 2017-12-25 (36 days ago)
InstallationMedia: Ubuntu-Server 18.04 LTS "Bionic Beaver" - Alpha amd64 (20171222)
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
Package: pulseaudio 1:11.1-1ubuntu4 [origin: unknown]
PackageArchitecture: amd64
ProcEnviron:
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
 PATH=(custom, no user)
ProcVersionSignature: Ubuntu 4.14.0-15.18-generic 4.14.12
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
Tags: bionic third-party-packages
Uname: Linux 4.14.0-15-generic x86_64
UnreportableReason: Das ist kein offizielles Ubuntu-Paket. Bitte entfernen Sie alle Pakete von Drittanbietern und wiederholen Sie den Vorgang.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 04/27/2012
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P2.10
dmi.board.name: H67M-GE/HT
dmi.board.vendor: ASRock
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP2.10:bd04/27/2012:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rnH67M-GE/HT:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.family: To Be Filled By O.E.M.
dmi.product.name: To Be Filled By O.E.M.
dmi.product.version: To Be Filled By O.E.M.
dmi.sys.vendor: To Be Filled By O.E.M.
modified.conffile..etc.pulse.default.pa: [modified]
mtime.conffile..etc.pulse.default.pa: 2018-01-30T18:59:12.789526

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

Hi,

I vaguely recall other people have reported this kind of bug before but can't find those other bugs. In the past it was an issue specific to the type of TV. So can you please also provide:

1. The make and model of TV.
2. Run this command to give us even more info: apport-collect 1745866

Changed in pulseaudio (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
summary: - HDMI stays unplugged
+ Audio does not auto-switch to HDMI after switching the connected HDMI TV
+ on
Revision history for this message
Norbert (asterix52) wrote : Re: Audio does not auto-switch to HDMI after switching the connected HDMI TV on

It is a server installation. I have only ssh connection to the system.
I tried to run "apport-collect 1745866" but I can't log in with the terminal browser.
Is there a way to make this via ssh?

I tried: apport-cli -f -p pulseaudio --save bug.apport

But it say no official ubuntu package.

Revision history for this message
Norbert (asterix52) wrote :

I found a workaround:

default.pa

load-module module-alsa-sink device=hw:1,7

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

Yes the command should eventually print an https:// URL which you can copy into a web browser on a different machine.

Revision history for this message
Norbert (asterix52) wrote : .etc.asound.conf.txt

apport information

tags: added: apport-collected bionic third-party-packages
description: updated
Revision history for this message
Norbert (asterix52) wrote : AlsaDevices.txt

apport information

Revision history for this message
Norbert (asterix52) wrote : Card0.Amixer.info.txt

apport information

Revision history for this message
Norbert (asterix52) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Norbert (asterix52) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Norbert (asterix52) wrote : Card1.Amixer.info.txt

apport information

Revision history for this message
Norbert (asterix52) wrote : Card1.Amixer.values.txt

apport information

Revision history for this message
Norbert (asterix52) wrote : Card1.Codecs.codec.0.txt

apport information

Revision history for this message
Norbert (asterix52) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Norbert (asterix52) wrote : Dependencies.txt

apport information

Revision history for this message
Norbert (asterix52) wrote : JournalErrors.txt

apport information

Revision history for this message
Norbert (asterix52) wrote : PciMultimedia.txt

apport information

Revision history for this message
Norbert (asterix52) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Norbert (asterix52) wrote : ProcCpuinfoMinimal.txt

apport information

summary: - Audio does not auto-switch to HDMI after switching the connected HDMI TV
- on
+ [ALC892] Audio does not auto-switch to HDMI after switching the
+ connected HDMI TV on
Revision history for this message
Norbert (asterix52) wrote : Re: [ALC892] Audio does not auto-switch to HDMI after switching the connected HDMI TV on

I have Sound when I switch to tty1 (STRG+ALT+F1) and back to tty7.

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

Interesting. That suggests the kernel is negotiating the audio at the same time as the display signal. It also suggests that the same negotiation does not occur if the TV is already connected when turned on.

I think we'll need to test with other non-nvidia GPUs/drivers to see if the problem persists, or if it's specific to the nvidia module.

Changed in pulseaudio (Ubuntu):
status: Incomplete → New
summary: - [ALC892] Audio does not auto-switch to HDMI after switching the
+ [nvidia] Audio does not auto-switch to HDMI after switching the
connected HDMI TV on
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
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

See also bug 1707611.

Revision history for this message
bitboy (zeus557) wrote :

Hi
i'm currently having a similar issue. Maybe its related.
It want audio output is switched to hdmi if the cable is plugged in.
module-switch-on-connect is loaded (its shown if i use pactl list) but nothing happens.
I also use nvidia proprietary driver. I noticed that NO udev event is generated if the cable is plugged in. I checked with udevadm monitor.

2nd issue, if i switch manually to hdmi and then unplug the cable the original setting is not restored correctly, there is no sound after that. i need to manually select the internal speaker / output profile again to make it work.

tags: added: hdmi nvidia
Changed in nvidia-graphics-drivers (Ubuntu):
status: New → Confirmed
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.