# Temporary Workaround for others who face this

Get the list of available sinks:

```
$ pactl list sinks

Sink #1
        State: IDLE
        Name: 
alsa_output.usb-Audio_Technica_Corp_ATR2100x-USB_Microphone-00.analog-stereo
        Description: ATR2100x-USB Microphone Analog Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 26
        Mute: no
        Volume: front-left: 5282 /   8% / -65.62 dB,   front-right: 49145 /  
75% / -7.50 dB
                balance 0.89
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: 
alsa_output.usb-Audio_Technica_Corp_ATR2100x-USB_Microphone-00.analog-stereo.monitor
        Latency: 34631 usec, configured 40000 usec
        Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "USB Audio"
                alsa.id = "USB Audio"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "3"
                alsa.card_name = "ATR2100x-USB Microphone"
                alsa.long_card_name = "Audio Technica Corp ATR2100x-USB 
Microphone at usb-0000:08:00.3-3.3, full speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:08:00.3-usb-0:3.3:1.0"
                sysfs.path = 
"/devices/pci0000:00/0000:00:08.1/0000:08:00.3/usb3/3-3/3-3.3/3-3.3:1.0/sound/card3"
                udev.id = "usb-Audio_Technica_Corp_ATR2100x-USB_Microphone-00"
                device.bus = "usb"
                device.vendor.id = "0909"
                device.vendor.name = "Audio-Technica Corp."
                device.product.id = "004d"
                device.product.name = "ATR2100x-USB Microphone"
                device.serial = "Audio_Technica_Corp_ATR2100x-USB_Microphone"
                device.form_factor = "microphone"
                device.string = "front:3"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "ATR2100x-USB Microphone Analog Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-input-microphone-usb"
        Ports:
                analog-output-headphones: Headphones (priority: 9900)
        Active Port: analog-output-headphones
        Formats:
                pcm

Sink #2
        State: SUSPENDED
        Name: alsa_output.pci-0000_08_00.4.analog-stereo
        Description: Starship/Matisse HD Audio Controller Analog Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 27
        Mute: no
        Volume: front-left: 19660 /  30% / -31.37 dB,   front-right: 19660 /  
30% / -31.37 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_08_00.4.analog-stereo.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC1220 Analog"
                alsa.id = "ALC1220 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "2"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xfc800000 irq 73"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:08:00.4"
                sysfs.path = 
"/devices/pci0000:00/0000:00:08.1/0000:08:00.4/sound/card2"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "1487"
                device.product.name = "Starship/Matisse HD Audio Controller"
                device.string = "front:2"
                device.buffering.buffer_size = "17664"
                device.buffering.fragment_size = "2944"
                device.access_mode = "mmap"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Starship/Matisse HD Audio Controller 
Analog Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                analog-output-lineout: Line Out (priority: 9000, available)
                analog-output-headphones: Headphones (priority: 9900, not 
available)
        Active Port: analog-output-lineout
        Formats:
                pcm
```

set your prefered sink as the default one (use the "name" field from the
previous output):

```
$ pactl set-default-sink "alsa_output.pci-0000_08_00.4.analog-stereo"
```

it should automatically switch in the ubuntu settings as well.

You can set this as a startup script in "Startup applications settings".

# Note on list of sinks

For some reason the `pactl` listing command shows two sinks one of which has 
two "ports".
The port does not show up in the `set-default-sink` command which effectively 
gives me only two options. But in the Ubuntu settings I see 4 output devices. 
No idea how those are computed - but it's kinda confusing.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1924852

Title:
  Selected output device in Sound settings is not persisted across
  restarts

Status in gnome-control-center package in Ubuntu:
  New

Bug description:
  # Introduction

  My computer has multiple audio devices, so I had to select the correct
  one in the "Sound" section of "Settings". This worked fine, except
  that whenever I restart the computer this setting resets to the
  original one. Effectively I have to visit the sound settings on each
  system startup in order to hear anything.

  # How to reproduce

  1. have system with multiple audio outputs
  2. open sound settings
  3. select non-default output device
  4. restart computer
  5. open sound settings

  # Expected result

  Selected audio device is the same as the one selected right before
  restart.

  # Actual result

  The active output device is the original default one (i.e. not the one
  that we selected).

  # System information

  $ lsb_release -rd
  Description:  Ubuntu 20.04.2 LTS
  Release:      20.04

  $ apt-cache policy gnome-control-center
  gnome-control-center:
    Installed: 1:3.36.5-0ubuntu1
    Candidate: 1:3.36.5-0ubuntu1
    Version table:
   *** 1:3.36.5-0ubuntu1 500
          500 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 
Packages
          100 /var/lib/dpkg/status
       1:3.36.1-1ubuntu5 500
          500 http://de.archive.ubuntu.com/ubuntu focal/main amd64 Packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1924852/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to