indicator-sound-switcher icon indicating copy to clipboard operation
indicator-sound-switcher copied to clipboard

[BUG] Incorrect device description of remote audio output until the outputs list is manually refreshed

Open glaubersm opened this issue 2 years ago • 1 comments

Describe the bug I use pulseaudio to stream audio from my laptop to the speakers connected to my desktop computer. Every time my laptop discovers the remote sound output, the menu of Sound Switcher Indicator shows the device description of the remote output incorrectly despite it is correct in the output of 'pacmd list-sinks' and in the sound settings of my desktop environment (Gnome), like what we can see in the first screenshot below. Click on 'Refresh' option of Sound Switcher Indicator menu fixes the device description of the remote output.

To Reproduce Steps to reproduce the behavior:

  1. have two devices
  2. configure pulseaudio of both devices to enable streaming over network
  3. install Sound Switcher Indicator on client device - laptop in my case
  4. turn both devices on, login on both and make sure they are connected to the same network
  5. observe the device description of the remote output in the menu of Sound Switcher Indicator

Expected behavior The menu of Sound Switcher Indicator should always show the same device description given by 'pacmd list-sinks' command and and sound settings of the desktop environment (Gnome in my case), like Áudio interno Estéreo analógico on username@<hostname of server device>.

Screenshots Screenshot showing the incorrect device description: incorrect

Screenshot showing the correct device description after click on 'Refresh': correct

Desktop:

  • OS: Arch Linux
  • Desktop GNOME 42.2
  • Sound Switcher Indicator version 2.3.8
  • Installation source: AUR - https://aur.archlinux.org/packages/indicator-sound-switcher

Indicator log:

$ indicator-sound-switcher -vv
INFO     Starting indicator application
INFO     Loaded configuration file /home/stalker/.config/indicator-sound-switcher.json
DEBUG    KeyboardManager.bind_keys()
DEBUG    .menu_append_item(): appending item `Saídas`
DEBUG    .menu_append_item(): appending separator
DEBUG    .menu_append_item(): appending item `_Atualizar`
DEBUG    .menu_append_item(): appending item `_Preferências…`
DEBUG    .menu_append_item(): appending item `_Sobre`
DEBUG    .menu_append_item(): appending item `_Sair`
DEBUG    Trying to connect to PulseAudio daemon, attempt #1
INFO     Context connected
DEBUG      + Card[0] added: `alsa_card.pci-0000_00_1b.0`, driver: `module-alsa-card.c`
DEBUG        + Card profile added: `input:analog-stereo` (`Entrada Estéreo analógico`), 0 sinks, 1 sources, priority: 32833
DEBUG        + Card profile added: `output:analog-stereo` (`Saída Estéreo analógico`), 1 sinks, 0 sources, priority: 39268
DEBUG        + Card profile added: `output:analog-stereo+input:analog-stereo` (`Duplex estéreo analógico`), 1 sinks, 1 sources, priority: 39333 -- Active
DEBUG        + Card profile added: `output:hdmi-stereo` (`Saída Digital Stereo (HDMI)`), 1 sinks, 0 sources, priority: 5900
DEBUG        + Card profile added: `output:hdmi-stereo+input:analog-stereo` (`Saída Digital Stereo (HDMI) + Entrada Estéreo analógico`), 1 sinks, 1 sources, priority: 5965
DEBUG        + Card profile added: `output:hdmi-surround` (`Saída Digital Surround 5.1 (HDMI)`), 1 sinks, 0 sources, priority: 800
DEBUG        + Card profile added: `output:hdmi-surround+input:analog-stereo` (`Saída Digital Surround 5.1 (HDMI) + Entrada Estéreo analógico`), 1 sinks, 1 sources, priority: 865
DEBUG        + Card profile added: `output:hdmi-surround71` (`Saída Digital Surround 7.1 (HDMI)`), 1 sinks, 0 sources, priority: 800
DEBUG        + Card profile added: `output:hdmi-surround71+input:analog-stereo` (`Saída Digital Surround 7.1 (HDMI) + Entrada Estéreo analógico`), 1 sinks, 1 sources, priority: 865
DEBUG        + Card profile added: `off` (`Desligado`), 0 sinks, 0 sources, priority: 0
DEBUG        + Card port added: `analog-input-internal-mic` (`Internal Microphone`); priority: 8900; direction: 2; available: Yes
DEBUG          . Supported profile: `input:analog-stereo`
DEBUG          . Supported profile: `output:analog-stereo+input:analog-stereo`
DEBUG          . Supported profile: `output:hdmi-stereo+input:analog-stereo`
DEBUG          . Supported profile: `output:hdmi-surround+input:analog-stereo`
DEBUG          . Supported profile: `output:hdmi-surround71+input:analog-stereo`
DEBUG        + Card port added: `analog-input-mic` (`Microphone`); priority: 8700; direction: 2; available: No
DEBUG          . Supported profile: `input:analog-stereo`
DEBUG          . Supported profile: `output:analog-stereo+input:analog-stereo`
DEBUG          . Supported profile: `output:hdmi-stereo+input:analog-stereo`
DEBUG          . Supported profile: `output:hdmi-surround+input:analog-stereo`
DEBUG          . Supported profile: `output:hdmi-surround71+input:analog-stereo`
DEBUG        + Card port added: `analog-output-speaker` (`Speakers`); priority: 10000; direction: 1; available: Yes
DEBUG          . Supported profile: `output:analog-stereo`
DEBUG          . Supported profile: `output:analog-stereo+input:analog-stereo`
DEBUG        + Card port added: `analog-output-headphones` (`Headphones`); priority: 9900; direction: 1; available: No
DEBUG          . Supported profile: `output:analog-stereo`
DEBUG          . Supported profile: `output:analog-stereo+input:analog-stereo`
DEBUG        + Card port added: `hdmi-output-0` (`HDMI / DisplayPort`); priority: 5900; direction: 1; available: No
DEBUG          . Supported profile: `output:hdmi-stereo`
DEBUG          . Supported profile: `output:hdmi-stereo+input:analog-stereo`
DEBUG          . Supported profile: `output:hdmi-surround`
DEBUG          . Supported profile: `output:hdmi-surround+input:analog-stereo`
DEBUG          . Supported profile: `output:hdmi-surround71`
DEBUG          . Supported profile: `output:hdmi-surround71+input:analog-stereo`
DEBUG    .menu_insert_ordered_item(): inserting item `    Áudio interno ‣ Speakers` at index 1
DEBUG    .menu_insert_ordered_item(): inserting item `    Áudio interno ‣ Headphones` at index 1 (hidden)
DEBUG    .menu_insert_ordered_item(): inserting item `    Áudio interno ‣ HDMI / DisplayPort` at index 1 (hidden)
DEBUG      + Source[1] added: `alsa_input.pci-0000_00_1b.0.analog-stereo`, card 0
DEBUG        + Source port added: `analog-input-internal-mic` (`Internal Microphone`); priority: 8900; available: Yes
DEBUG        + Source port added: `analog-input-mic` (`Microphone`); priority: 8700; available: No
DEBUG        * Activated source port `analog-input-internal-mic`
DEBUG      + Source output[0] added: `RTP Monitor Stream`
DEBUG      + Sink[0] added: `alsa_output.pci-0000_00_1b.0.analog-stereo`, card 0
DEBUG        + Sink port added: `analog-output-speaker` (`Speakers`); priority: 10000; available: Yes
DEBUG        + Sink port added: `analog-output-headphones` (`Headphones`); priority: 9900; available: No
DEBUG        * Activated sink port `analog-output-speaker`
DEBUG      + Sink[1] added: `upnp`, card 4294967295
DEBUG    .menu_insert_ordered_item(): inserting item `    DLNA/UPnP Streaming` at index 1
DEBUG      + Sink[2] added: `rtp`, card 4294967295
DEBUG    .menu_insert_ordered_item(): inserting item `    RTP Multicast` at index 2
DEBUG      + Sink input[13] added: `Playback` -> sink 0
DEBUG    * Activated sink: `alsa_output.pci-0000_00_1b.0.analog-stereo`
DEBUG    * Activated source: `alsa_input.pci-0000_00_1b.0.analog-stereo`
DEBUG    .do_context_subscribe(facility: 0, kind: 16, index: 12)
DEBUG      + Sink[12] added: `tunnel.Arch-PC.local.alsa_output.pci-0000_00_1b.0.analog-stereo`, card 4294967295
DEBUG    .menu_insert_ordered_item(): inserting item `    alsa_output.pci-0000_00_1b.0.analog-stereo on [192.168.0.50]:4713` at index 3
DEBUG    .do_context_subscribe(facility: 1, kind: 16, index: 13)
DEBUG    .do_context_subscribe(facility: 1, kind: 0, index: 13)
DEBUG    .do_context_subscribe(facility: 0, kind: 0, index: 12)
DEBUG      * Sink[12] updated: `tunnel.Arch-PC.local.alsa_output.pci-0000_00_1b.0.analog-stereo`, card 4294967295
DEBUG    .do_context_subscribe(facility: 7, kind: 16, index: 4294967295)
DEBUG    * Activated sink: `tunnel.Arch-PC.local.alsa_output.pci-0000_00_1b.0.analog-stereo`
DEBUG    * Activated source: `alsa_input.pci-0000_00_1b.0.analog-stereo`
DEBUG    .do_context_subscribe(facility: 0, kind: 16, index: 0)
DEBUG      * Sink[0] updated: `alsa_output.pci-0000_00_1b.0.analog-stereo`, card 0
DEBUG        * Activated sink port `analog-output-speaker`
DEBUG    .do_context_subscribe(facility: 2, kind: 16, index: 13)
DEBUG    .do_context_subscribe(facility: 0, kind: 16, index: 12)
DEBUG      * Sink[12] updated: `tunnel.Arch-PC.local.alsa_output.pci-0000_00_1b.0.analog-stereo`, card 4294967295
DEBUG    .do_context_subscribe(facility: 1, kind: 16, index: 13)
DEBUG    .do_context_subscribe(facility: 0, kind: 16, index: 12)
DEBUG      * Sink[12] updated: `tunnel.Arch-PC.local.alsa_output.pci-0000_00_1b.0.analog-stereo`, card 4294967295
DEBUG    .do_context_subscribe(facility: 0, kind: 16, index: 0)
DEBUG      * Sink[0] updated: `alsa_output.pci-0000_00_1b.0.analog-stereo`, card 0
DEBUG        * Activated sink port `analog-output-speaker`
DEBUG    .do_context_subscribe(facility: 1, kind: 16, index: 0)

glaubersm avatar Jun 06 '22 13:06 glaubersm

Does this issue still occur with the latest indicator version?

yktoo avatar Jun 17 '23 08:06 yktoo