Проект

Общее

Профиль

Действия

Решение проблемы когда система выбирает не ту звуковую карту по умолчанию

Смотрим выбранное утройство по умолчанию

cat .pulse/5a779871926e26ce2bf16e0600000c57-default-sink

alsa_output.pci-0000_00_1b.0.analog-stereo

Утилитой меняем настройки
pacmd

Смотрим список устройств

>>> list-sinks
3 sink(s) available.
    index: 0
    name: <alsa_output.hw_0_0>
    driver: <module-alsa-sink.c>
    flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
    state: SUSPENDED
    suspend cause: IDLE 
    priority: 9950
    volume: front-left: 85197 / 130% / 6,84 dB,   front-right: 85197 / 130% / 6,84 dB
            balance 0,00
    base volume: 65536 / 100% / 0,00 dB
    volume steps: 65537
    muted: no
    current latency: 0,00 ms
    max request: 0 KiB
    max rewind: 0 KiB
    monitor source: 0
    sample spec: s16le 2ch 44100Hz
    channel map: front-left,front-right
                 Stereo
    used by: 0
    linked by: 0
    configured latency: 0,00 ms; range is 0,50 .. 2000,00 ms
    module: 5
    properties:
        alsa.resolution_bits = "16" 
        device.api = "alsa" 
        device.class = "sound" 
        alsa.class = "generic" 
        alsa.subclass = "generic-mix" 
        alsa.name = "ALC887-VD Analog" 
        alsa.id = "ALC887-VD Analog" 
        alsa.subdevice = "0" 
        alsa.subdevice_name = "subdevice #0" 
        alsa.device = "0" 
        alsa.card = "0" 
        alsa.card_name = "HDA Intel PCH" 
        alsa.long_card_name = "HDA Intel PCH at 0xfbc00000 irq 55" 
        alsa.driver_name = "snd_hda_intel" 
        device.bus_path = "pci-0000:00:1b.0" 
        sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0" 
        device.bus = "pci" 
        device.vendor.id = "8086" 
        device.vendor.name = "Intel Corporation" 
        device.product.id = "1c20" 
        device.product.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller" 
        device.form_factor = "internal" 
        device.string = "hw:0,0" 
        device.buffering.buffer_size = "352800" 
        device.buffering.fragment_size = "176400" 
        device.access_mode = "mmap+timer" 
        device.description = "Built-in Audio" 
        device.icon_name = "audio-card-pci" 
  * index: 1
    name: <alsa_output.pci-0000_01_00.1.hdmi-stereo>
    driver: <module-alsa-card.c>
    flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
    state: SUSPENDED
    suspend cause: IDLE 
    priority: 9050
    volume: front-left: 53740 /  82% / -5,17 dB,   front-right: 53084 /  81% / -5,49 dB
            balance -0,01
    base volume: 65536 / 100% / 0,00 dB
    volume steps: 65537
    muted: no
    current latency: 0,00 ms
    max request: 0 KiB
    max rewind: 0 KiB
    monitor source: 2
    sample spec: s16le 2ch 44100Hz
    channel map: front-left,front-right
                 Stereo
    used by: 0
    linked by: 0
    configured latency: 0,00 ms; range is 0,50 .. 1999,82 ms
    card: 0 <alsa_card.pci-0000_01_00.1>
    module: 8
    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 = "1" 
        alsa.card_name = "HDA NVidia" 
        alsa.long_card_name = "HDA NVidia at 0xfb080000 irq 17" 
        alsa.driver_name = "snd_hda_intel" 
        device.bus_path = "pci-0000:01:00.1" 
        sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1" 
        device.bus = "pci" 
        device.vendor.id = "10de" 
        device.vendor.name = "NVIDIA Corporation" 
        device.product.id = "0be3" 
        device.product.name = "High Definition Audio Controller" 
        device.string = "hdmi:1" 
        device.buffering.buffer_size = "352768" 
        device.buffering.fragment_size = "176384" 
        device.access_mode = "mmap+timer" 
        device.profile.name = "hdmi-stereo" 
        device.profile.description = "Digital Stereo (HDMI)" 
        device.description = "High Definition Audio Controller Digital Stereo (HDMI)" 
        alsa.mixer_name = "Nvidia GPU 0b HDMI/DP" 
        alsa.components = "HDA:10de000b,10de0101,00100200" 
        module-udev-detect.discovered = "1" 
        device.icon_name = "audio-card-pci" 
    ports:
        hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display" 
    active port: <hdmi-output-0>
    index: 2
    name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
    driver: <module-alsa-card.c>
    flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
    state: SUSPENDED
    suspend cause: IDLE 
    priority: 9959
    volume: front-left: 54094 /  83% / -5,00 dB,   front-right: 54094 /  83% / -5,00 dB
            balance 0,00
    base volume: 65536 / 100% / 0,00 dB
    volume steps: 65537
    muted: no
    current latency: 0,00 ms
    max request: 0 KiB
    max rewind: 0 KiB
    monitor source: 3
    sample spec: s16le 2ch 44100Hz
    channel map: front-left,front-right
                 Stereo
    used by: 0
    linked by: 0
    configured latency: 0,00 ms; range is 0,50 .. 2000,00 ms
    card: 1 <alsa_card.pci-0000_00_1b.0>
    module: 22
    properties:
        alsa.resolution_bits = "16" 
        device.api = "alsa" 
        device.class = "sound" 
        alsa.class = "generic" 
        alsa.subclass = "generic-mix" 
        alsa.name = "ALC887-VD Analog" 
        alsa.id = "ALC887-VD Analog" 
        alsa.subdevice = "0" 
        alsa.subdevice_name = "subdevice #0" 
        alsa.device = "0" 
        alsa.card = "0" 
        alsa.card_name = "HDA Intel PCH" 
        alsa.long_card_name = "HDA Intel PCH at 0xfbc00000 irq 55" 
        alsa.driver_name = "snd_hda_intel" 
        device.bus_path = "pci-0000:00:1b.0" 
        sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0" 
        device.bus = "pci" 
        device.vendor.id = "8086" 
        device.vendor.name = "Intel Corporation" 
        device.product.id = "1c20" 
        device.product.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller" 
        device.form_factor = "internal" 
        device.string = "front:0" 
        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 = "Built-in Audio Analog Stereo" 
        alsa.mixer_name = "Realtek ALC887-VD" 
        alsa.components = "HDA:10ec0887,18490887,00100302" 
        module-udev-detect.discovered = "1" 
        device.icon_name = "audio-card-pci" 
    ports:
        analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: yes)
            properties:

        analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: unknown)
            properties:
                device.icon_name = "audio-headphones" 
    active port: <analog-output-lineout>

Изменили устройство по умолчанию

>>> set-default-sink 2

Проверяем
cat .pulse/5a779871926e26ce2bf16e0600000c57-default-source

alsa_input.pci-0000_00_1b.0.analog-stereo

Обновлено Рамиль Абдулбяров больше 9 лет назад · 1 изменени(я, ий)