elementary / elementary/panel-sound

Incorrect devices shown in indicator

Open
#262 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Vala
Stars
36
Forks
28
Avg merge
1d 12h
Merged PRs (30d)
11

Description

### What Happened?

I have the following audio devices connected:

* USB microphone with headphone jack (AT2020USB+) — source & sink
* Webcam (Logitech C920 Pro) — source
* 2x DisplayPort (RX570) — sink
* Motherboard audio controller — source & sink

I always use the USB mic as my source. For my sink, I switch between headphones plugged into the USB mic and speakers plugged into the motherboard's audio controller.

The indicator shows the incorrect active and "preferred" sinks (see screenshots below).

### Steps to Reproduce

In the following screenshots, my USB mic is set as my source & my sink.

The indicator incorrectly shows that my motherboard audio controller is the active sink, it does not show the USB mic at all, and it also shows one of my DisplayPort in the "preferred" list (I have never used these sinks).

![image](https://github.com/elementary/wingpanel-indicator-sound/assets/6758913/9bde4850-8f15-44a7-8da4-2230c5971cf9)

Settings app shows the correct system state.

![Screenshot from 2023-07-23 02 28 43](https://github.com/elementary/wingpanel-indicator-sound/assets/6758913/fb159c22-2e00-4e6e-a011-28ab37943c9b)

![Screenshot from 2023-07-23 02 29 30](https://github.com/elementary/wingpanel-indicator-sound/assets/6758913/eaf183ec-0c92-40cf-b329-3754294da63c)

If it helps, here's the `gsettings` schema:

```console
$ gsettings list-recursively io.elementary.desktop.wingpanel.sound
-- snip --
io.elementary.desktop.wingpanel.sound preferred-devices {'alsa_card.usb-audio-technica_AT2020USB_-00:analog-input-mic': 1690092205, 'alsa_card.pci-0000_0b_00.3:analog-output-lineout': 1690051439}
```

### Expected Behavior

The indicator should show the correct active and "preferred" devices.

### OS Version

Other Linux

### Software Version

Latest release (I have run all updates)

### Log Output

_No response_

### Hardware Info

NixOS 23.11 (Tapir)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.