Bug#978550: pulseaudio: Pulseaudio do not detect HDMI output anymore after monitor power cycle

2021-01-06 Thread Thomas Nemeth
Workaround for now : in a terminal execute `pulseaudio -k -D` and it will 
rescan and detect the HDMI output.



Bug#978550: pulseaudio: Pulseaudio do not detect HDMI output anymore after monitor power cycle

2020-12-28 Thread Thomas Nemeth
   I forgot to mention it clearly : the HDMI output sink isn't detected
   anymore _after_ the  power has been *set back to ON*, of course. I
   did not try to have HDMI output while the monitor was off ;)



Bug#978550: pulseaudio: Pulseaudio do not detect HDMI output anymore after monitor power cycle

2020-12-28 Thread Thomas
Package: pulseaudio
Version: 13.0-5
Severity: important

Hi.

When I power off my HDMI monitor that is also the default sink for pulse
audio, the HDMI audio output isn't detected by pulseaudio anymore.
Before turning off the monitor `pactl list sinks` outputs :

```
Sink #2
State: SUSPENDED
Name: alsa_output.pci-_00_1f.3.hdmi-stereo
Description: Audio interne Digital Stereo (HDMI)
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 6
Mute: no
Volume: front-left: 32766 /  50% / -18.06 dB,   front-right: 32766 /  
50% / -18.06 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: alsa_output.pci-_00_1f.3.hdmi-stereo.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS 
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "HDMI 0"
alsa.id = "HDMI 0"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "3"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xdc34 irq 138"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-:00:1f.3"
sysfs.path = "/devices/pci:00/:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "9d71"
device.product.name = "Sunrise Point-LP HD Audio"
device.form_factor = "internal"
device.string = "hdmi:0"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "hdmi-stereo"
device.profile.description = "Digital Stereo (HDMI)"
device.description = "Audio interne Digital Stereo (HDMI)"
alsa.mixer_name = "Realtek ALC283"
alsa.components = "HDA:10ec0283,80862068,0013 
HDA:8086280b,80860101,0010"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Ports:
hdmi-output-0: HDMI / DisplayPort (priority: 5900, available)
Active Port: hdmi-output-0
Formats:
pcm
```

And after power cycling my monitor, the output is :

```
Sink #3
State: SUSPENDED
Name: auto_null
Description: Sortie factice
Driver: module-null-sink.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 26
Mute: no
Volume: front-left: 32766 /  50% / -18.06 dB,   front-right: 32766 /  
50% / -18.06 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: auto_null.monitor
Latency: 0 usec, configured 0 usec
Flags: DECIBEL_VOLUME LATENCY 
Properties:
device.description = "Sortie factice"
device.class = "abstract"
device.icon_name = "audio-card"
Formats:
pcm
```


-- Package-specific info:
File '/etc/default/pulseaudio' does not exist


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.9.0-5-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_USER
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pulseaudio depends on:
ii  adduser  3.118
ii  init-system-helpers  1.60
ii  libasound2   1.2.4-1
ii  libasound2-plugins   1:1.2.2-dmo1
ii  libc62.31-5
ii  libcap2  1:2.44-1
ii  libdbus-1-3  1.12.20-1
ii  libgcc-s110.2.1-1
ii  libice6  2:1.0.10-1
ii  libltdl7 2.4.6-14
ii  liborc-0.4-0 1:0.4.32-1
ii  libpulse013.0-5
ii  libsm6   2:1.2.3-1
ii  libsndfile1  1.0.28-8
ii  libsoxr0 0.1.3-4
ii  libspeexdsp1 1.2~rc1.2-1.1
ii  libstdc++6   10.2.1-1
ii  libsystemd0  247.1-3+deb11u1
ii  libtdb1  1.4.3-1+b1
ii  libudev1