You are not logged in.

#1 2021-12-21 03:21:44

Dominik
Member
Registered: 2021-12-21
Posts: 18

[SOLVED] Pulseaudio doesn't detect speakers on startup except replug

Hi all, new to Linux and Arch for about 8 months now.

I have this issue only with my physical speakers where when I boot up my machine my physical speakers aren't recognized. This occurs on 2 different audio jacks and not my wireless Bluetooth speakers (Different audio Sink). When I unplug the headphone jack and re-plug them in they become recognizable and audio works fine. This is quite a pain. I have read and tried this (https://bbs.archlinux.org/viewtopic.php?id=269024) but I didn't have any luck.

I have tried "pactl set-sink-port 2 "analog-output-headphones", but it cannot find them. Not until I unplug and re-plug the speakers.

Below I will post my "pactl list sinks' before and after plugging them in. The important information is in "Sink #2". Notice that the information "analog-output-lineout: Line Out (type: Line, priority: 9000, not available)" and "analog-output-headphones: Headphones (type: Headphones, priority: 9900, available)" don't appear until after I reset the connection. I am not sure what to do. Any input would be much appreciated.

I have multlib/lib32-alsa-plugins 1.2.5-1, and extra/alsa-plugins 1:1.2.5-2 installed.

Thank you,
Dominik

LOGS:
This is my pactl list sinks BEFORE I unplug my speaker on start up.

[dominik@archdom org]$ pactl list sinks
Sink #0
        State: SUSPENDED
        Name: alsa_output.pci-0000_01_00.1.hdmi-stereo
        Description: GM204 High Definition Audio Controller 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: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_01_00.1.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 = "1"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xf7080000 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 = "0fbb"
                device.product.name = "GM204 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 = "GM204 High Definition Audio Controller Digital Stereo (HDMI)"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, available)
        Active Port: hdmi-output-0
        Formats:
                pcm

Sink #1
        State: RUNNING
        Name: alsa_output.usb-Razer_Razer_Nari-00.mono-fallback
        Description: Nari (Wireless) Mono
        Driver: module-alsa-card.c
        Sample Specification: s16le 1ch 44100Hz
        Channel Map: mono
        Owner Module: 7
        Mute: no
        Volume: mono: 65536 / 100% / 0.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.usb-Razer_Razer_Nari-00.mono-fallback.monitor
        Latency: 35147 usec, configured 19863 usec
        Flags: HARDWARE HW_MUTE_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 = "2"
                alsa.card_name = "Razer Nari"
                alsa.long_card_name = "Razer Razer Nari at usb-0000:00:14.0-2, full speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:00:14.0-usb-0:2:1.0"
                sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/sound/card2"
                udev.id = "usb-Razer_Razer_Nari-00"
                device.bus = "usb"
                device.vendor.id = "1532"
                device.vendor.name = "Razer USA, Ltd"
                device.product.id = "051c"
                device.product.name = "Nari (Wireless)"
                device.serial = "Razer_Razer_Nari"
                device.string = "hw:2"
                device.buffering.buffer_size = "176400"
                device.buffering.fragment_size = "88200"
                device.access_mode = "mmap+timer"
                device.profile.name = "mono-fallback"
                device.profile.description = "Mono"
                device.description = "Nari (Wireless) Mono"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        Ports:
                analog-output: Analog Output (type: Analog, priority: 9900, availability unknown)
        Active Port: analog-output
        Formats:
                pcm

Sink #2
        State: SUSPENDED
        Name: alsa_output.pci-0000_00_1b.0.iec958-stereo
        Description: Built-in Audio Digital Stereo (IEC958)
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 8
        Mute: no
        Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_MUTE_CTRL 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 = "ALC892 Digital"
                alsa.id = "ALC892 Digital"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "1"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf7130000 irq 34"
                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 = "8c20"
                device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
                device.form_factor = "internal"
                device.string = "iec958:0"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.profile.name = "iec958-stereo"
                device.profile.description = "Digital Stereo (IEC958)"
                device.description = "Built-in Audio Digital Stereo (IEC958)"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                iec958-stereo-output: Digital Output (S/PDIF) (type: SPDIF, priority: 0, availability unknown)
        Active Port: iec958-stereo-output
        Formats:
                pcm

This is my pactl list sinks AFTER I unplug my speakers on start up and plug them back in.

[dominik@archdom org]$ pactl list sinks
Sink #0
        State: SUSPENDED
        Name: alsa_output.pci-0000_01_00.1.hdmi-stereo
        Description: GM204 High Definition Audio Controller 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: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_01_00.1.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 = "1"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xf7080000 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 = "0fbb"
                device.product.name = "GM204 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 = "GM204 High Definition Audio Controller Digital Stereo (HDMI)"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, available)
        Active Port: hdmi-output-0
        Formats:
                pcm

Sink #1
        State: IDLE
        Name: alsa_output.usb-Razer_Razer_Nari-00.mono-fallback
        Description: Nari (Wireless) Mono
        Driver: module-alsa-card.c
        Sample Specification: s16le 1ch 44100Hz
        Channel Map: mono
        Owner Module: 7
        Mute: no
        Volume: mono: 65536 / 100% / 0.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.usb-Razer_Razer_Nari-00.mono-fallback.monitor
        Latency: 1752907 usec, configured 2000000 usec
        Flags: HARDWARE HW_MUTE_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 = "2"
                alsa.card_name = "Razer Nari"
                alsa.long_card_name = "Razer Razer Nari at usb-0000:00:14.0-2, full speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:00:14.0-usb-0:2:1.0"
                sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/sound/card2"
                udev.id = "usb-Razer_Razer_Nari-00"
                device.bus = "usb"
                device.vendor.id = "1532"
                device.vendor.name = "Razer USA, Ltd"
                device.product.id = "051c"
                device.product.name = "Nari (Wireless)"
                device.serial = "Razer_Razer_Nari"
                device.string = "hw:2"
                device.buffering.buffer_size = "176400"
                device.buffering.fragment_size = "88200"
                device.access_mode = "mmap+timer"
                device.profile.name = "mono-fallback"
                device.profile.description = "Mono"
                device.description = "Nari (Wireless) Mono"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        Ports:
                analog-output: Analog Output (type: Analog, priority: 9900, availability unknown)
        Active Port: analog-output
        Formats:
                pcm

Sink #3
        State: RUNNING
        Name: alsa_output.pci-0000_00_1b.0.analog-stereo
        Description: Built-in Audio Analog Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 8
        Mute: no
        Volume: front-left: 61272 /  93% / -1.75 dB,   front-right: 61272 /  93% / -1.75 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
        Latency: 19501 usec, configured 19863 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 = "ALC892 Analog"
                alsa.id = "ALC892 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 0xf7130000 irq 34"
                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 = "8c20"
                device.product.name = "8 Series/C220 Series Chipset 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"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                analog-output-lineout: Line Out (type: Line, priority: 9000, not available)
                analog-output-headphones: Headphones (type: Headphones, priority: 9900, available)
        Active Port: analog-output-headphones
        Formats:
                pcm

Last edited by Dominik (2021-12-26 02:26:31)

Offline

#2 2021-12-21 08:21:57

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,223

Re: [SOLVED] Pulseaudio doesn't detect speakers on startup except replug

Welcome to the boards, please see this link for information on how to wrap command outputs in [ code ] tags and adjust the post accordingly.

These kind of issues are usually up to buggy initial firmware state. Do you have a secondary Windows installation? Make sure fast boot is disabled. What you should also be able to do is after you've logically "fixed" it, try running an explicit

sudo alsactl store

to persist the HW state for later reloading.

FWIW in your example the card profile is likely what's wrong, so you'd need to check whether you can change THAT before changing the sink port by comparing

pacmd list-cards

is also likely that that just gets "auto-switched" due to coming available later, in which case you'll want to remove/comment the line

load-module module-switch-on-port-available

which would however also disable headphone jack autoswitching, or by simply setting the analog profile to be sticky and unaffected by the digital output: https://www.freedesktop.org/wiki/Softwa … ettosticky

Offline

#3 2021-12-22 00:56:39

Dominik
Member
Registered: 2021-12-21
Posts: 18

Re: [SOLVED] Pulseaudio doesn't detect speakers on startup except replug

V1del wrote:

Welcome to the boards, please see this link for information on how to wrap command outputs in [ code ] tags and adjust the post accordingly.

- Taken care of. Thanks for pointing me in the right direction and I greatly appreciate the response.

V1del wrote:

These kind of issues are usually up to buggy initial firmware state. Do you have a secondary Windows installation? Make sure fast boot is disabled. What you should also be able to do is after you've logically "fixed" it, try running an explicit

sudo alsactl store

to persist the HW state for later reloading.

- I have a Windows partition on a separate drive. I hardly ever boot to it. I just booted over to it and verified that the fast startup/boot was disabled. This didn't change anything.
- This might be its own issue entirely but

alsactl

isn't a command for me. I have even verified I have alsa-tools and alsa-firmware installed. I however cannot run alsactl.


V1del wrote:

FWIW in your example the card profile is likely what's wrong, so you'd need to check whether you can change THAT before changing the sink port by comparing

pacmd list-cards

is also likely that that just gets "auto-switched" due to coming available later, in which case you'll want to remove/comment the line

load-module module-switch-on-port-available

which would however also disable headphone jack autoswitching, or by simply setting the analog profile to be sticky and unaffected by the digital output: https://www.freedesktop.org/wiki/Softwa … ettosticky

- So I don't think the issue is the auto switching. If I boot up my computer I will never see that port in pulse audio until I unplug my device and plug it back in. Once I do this, it will automatically go back to the speakers (assuming they are still the default from last time).

Offline

#4 2021-12-22 01:16:10

Dominik
Member
Registered: 2021-12-21
Posts: 18

Re: [SOLVED] Pulseaudio doesn't detect speakers on startup except replug

V1del wrote:

FWIW in your example the card profile is likely what's wrong, so you'd need to check whether you can change THAT before changing the sink port by comparing

pacmd list-cards

is also likely that that just gets "auto-switched" due to coming available later, in which case you'll want to remove/comment the line

load-module module-switch-on-port-available

which would however also disable headphone jack autoswitching

- I have just tried this and it actually makes it so I can never get my speakers to work. They won't show up on the port at all, even after unplugging them and plugging them back in.
- I did not change anything with the

pacmd list-cards

instruction though. I am not sure what you mean by being able to change "THAT".

Offline

#5 2021-12-22 08:15:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,223

Re: [SOLVED] Pulseaudio doesn't detect speakers on startup except replug

Post your pacmd list-cards or check the "Configuration" Tab in pavucontrol, during the not working case I'm surmising it is set to the digital output whereas it should be on analog, and by doing a replug of the headphone jack you implicitly enforce a profile switch due to the availability change, if you explicitly switch that there instead of relying on the auto-switch behaviour that "should" stick as opposed to the digital out.

FWIW alsactl is part of alsa-utils, if you want to find out which package a certain binary is part of you can run e.g.

pacman -Fy alsactl

Offline

#6 2021-12-24 19:43:10

Dominik
Member
Registered: 2021-12-21
Posts: 18

Re: [SOLVED] Pulseaudio doesn't detect speakers on startup except replug

V1del wrote:

Post your pacmd list-cards or check the "Configuration" Tab in pavucontrol, during the not working case I'm surmising it is set to the digital output whereas it should be on analog, and by doing a replug of the headphone jack you implicitly enforce a profile switch due to the availability change, if you explicitly switch that there instead of relying on the auto-switch behaviour that "should" stick as opposed to the digital out.

This is my pacmd list-card on startup before unplugging and re-plugging:

[dominik@archdom ~]$ pacmd list-cards
3 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_01_00.1>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "1"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xf7080000 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 = "0fbb"
                device.product.name = "GM204 High Definition Audio Controller"
                device.string = "1"
                device.description = "GM204 High Definition Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 38668, available: unknown)
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
                output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
                output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
                output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 38468, available: unknown)
                output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
                output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
                output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
                output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
                output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
                output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
                output:hdmi-stereo-extra5: Digital Stereo (HDMI 6) Output (priority 5700, available: no)
                output:hdmi-surround-extra5: Digital Surround 5.1 (HDMI 6) Output (priority 600, available: no)
                output:hdmi-surround71-extra5: Digital Surround 7.1 (HDMI 6) Output (priority 600, available: no)
                output:hdmi-stereo-extra6: Digital Stereo (HDMI 7) Output (priority 5700, available: no)
                output:hdmi-surround-extra6: Digital Surround 5.1 (HDMI 7) Output (priority 600, available: no)
                output:hdmi-surround71-extra6: Digital Surround 7.1 (HDMI 7) Output (priority 600, available: no)
                off: Off (priority 0, available: unknown)
        active profile: <output:hdmi-stereo>
        sinks:
                alsa_output.pci-0000_01_00.1.hdmi-stereo/#0: GM204 High Definition Audio Controller Digital Stereo (HDMI)
        sources:
                alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor/#0: Monitor of GM204 High Definition Audio Controller Digital Stereo (HDMI)
        ports:
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "video-display"
                                device.product.name = "HP 25x
      "
                hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "video-display"
                                device.product.name = "HP 25x
      "
                hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-5: HDMI / DisplayPort 6 (priority 5400, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-6: HDMI / DisplayPort 7 (priority 5300, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
    index: 1
        name: <alsa_card.usb-Razer_Razer_Nari-00>
        driver: <module-alsa-card.c>
        owner module: 7
        properties:
                alsa.card = "2"
                alsa.card_name = "Razer Nari"
                alsa.long_card_name = "Razer Razer Nari at usb-0000:00:14.0-2, full speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:00:14.0-usb-0:2:1.0"
                sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/sound/card2"
                udev.id = "usb-Razer_Razer_Nari-00"
                device.bus = "usb"
                device.vendor.id = "1532"
                device.vendor.name = "Razer USA, Ltd"
                device.product.id = "051c"
                device.product.name = "Nari (Wireless)"
                device.serial = "Razer_Razer_Nari"
                device.string = "2"
                device.description = "Nari (Wireless)"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        profiles:
                input:mono-fallback: Mono Input (priority 1, available: unknown)
                output:mono-fallback: Mono Output (priority 100, available: unknown)
                output:mono-fallback+input:mono-fallback: Mono Output + Mono Input (priority 101, available: unknown)
                off: Off (priority 0, available: unknown)
        active profile: <output:mono-fallback+input:mono-fallback>
        sinks:
                alsa_output.usb-Razer_Razer_Nari-00.mono-fallback/#1: Nari (Wireless) Mono
        sources:
                alsa_output.usb-Razer_Razer_Nari-00.mono-fallback.monitor/#1: Monitor of Nari (Wireless) Mono
                alsa_input.usb-Razer_Razer_Nari-00.mono-fallback/#2: Nari (Wireless) Mono
        ports:
                analog-input-headset-mic: Headset Microphone (priority 8800, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
                        properties:

    index: 2
        name: <alsa_card.pci-0000_00_1b.0>
        driver: <module-alsa-card.c>
        owner module: 8
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf7130000 irq 34"
                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 = "8c20"
                device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "Built-in Audio"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Analog Stereo Input (priority 65, available: no)
                output:analog-stereo: Analog Stereo Output (priority 39268, available: unknown)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
                output:analog-surround-21: Analog Surround 2.1 Output (priority 1300, available: no)
                output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (priority 1365, available: no)
                output:analog-surround-40: Analog Surround 4.0 Output (priority 1200, available: no)
                output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (priority 1265, available: no)
                output:analog-surround-41: Analog Surround 4.1 Output (priority 1300, available: no)
                output:analog-surround-41+input:analog-stereo: Analog Surround 4.1 Output + Analog Stereo Input (priority 1365, available: no)
                output:analog-surround-50: Analog Surround 5.0 Output (priority 1200, available: no)
                output:analog-surround-50+input:analog-stereo: Analog Surround 5.0 Output + Analog Stereo Input (priority 1265, available: no)
                output:analog-surround-51: Analog Surround 5.1 Output (priority 1300, available: no)
                output:analog-surround-51+input:analog-stereo: Analog Surround 5.1 Output + Analog Stereo Input (priority 1365, available: no)
                output:analog-surround-71: Analog Surround 7.1 Output (priority 1200, available: no)
                output:analog-surround-71+input:analog-stereo: Analog Surround 7.1 Output + Analog Stereo Input (priority 1265, available: no)
                output:iec958-stereo: Digital Stereo (IEC958) Output (priority 38268, available: unknown)
                output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (priority 5565, available: unknown)
                off: Off (priority 0, available: unknown)
        active profile: <output:iec958-stereo>
        sinks:
                alsa_output.pci-0000_00_1b.0.iec958-stereo/#2: Built-in Audio Digital Stereo (IEC958)
        sources:
                alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor/#3: Monitor of Built-in Audio Digital Stereo (IEC958)
        ports:
                analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
                        properties:

                analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: no)
                        properties:

                analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "audio-headphones"
                iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
                        properties:

This is my pacmd list-card on startup AFTER unplugging and re-plugging:

[dominik@archdom ~]$ pacmd list-cards
3 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_01_00.1>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "1"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xf7080000 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 = "0fbb"
                device.product.name = "GM204 High Definition Audio Controller"
                device.string = "1"
                device.description = "GM204 High Definition Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 38668, available: unknown)
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
                output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
                output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
                output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 38468, available: unknown)
                output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
                output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
                output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
                output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
                output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
                output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
                output:hdmi-stereo-extra5: Digital Stereo (HDMI 6) Output (priority 5700, available: no)
                output:hdmi-surround-extra5: Digital Surround 5.1 (HDMI 6) Output (priority 600, available: no)
                output:hdmi-surround71-extra5: Digital Surround 7.1 (HDMI 6) Output (priority 600, available: no)
                output:hdmi-stereo-extra6: Digital Stereo (HDMI 7) Output (priority 5700, available: no)
                output:hdmi-surround-extra6: Digital Surround 5.1 (HDMI 7) Output (priority 600, available: no)
                output:hdmi-surround71-extra6: Digital Surround 7.1 (HDMI 7) Output (priority 600, available: no)
                off: Off (priority 0, available: unknown)
        active profile: <output:hdmi-stereo>
        sinks:
                alsa_output.pci-0000_01_00.1.hdmi-stereo/#0: GM204 High Definition Audio Controller Digital Stereo (HDMI)
        sources:
                alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor/#0: Monitor of GM204 High Definition Audio Controller Digital Stereo (HDMI)
        ports:
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "video-display"
                                device.product.name = "HP 25x
      "
                hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "video-display"
                                device.product.name = "HP 25x
      "
                hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-5: HDMI / DisplayPort 6 (priority 5400, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-6: HDMI / DisplayPort 7 (priority 5300, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
    index: 1
        name: <alsa_card.usb-Razer_Razer_Nari-00>
        driver: <module-alsa-card.c>
        owner module: 7
        properties:
                alsa.card = "2"
                alsa.card_name = "Razer Nari"
                alsa.long_card_name = "Razer Razer Nari at usb-0000:00:14.0-2, full speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:00:14.0-usb-0:2:1.0"
                sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/sound/card2"
                udev.id = "usb-Razer_Razer_Nari-00"
                device.bus = "usb"
                device.vendor.id = "1532"
                device.vendor.name = "Razer USA, Ltd"
                device.product.id = "051c"
                device.product.name = "Nari (Wireless)"
                device.serial = "Razer_Razer_Nari"
                device.string = "2"
                device.description = "Nari (Wireless)"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        profiles:
                input:mono-fallback: Mono Input (priority 1, available: unknown)
                output:mono-fallback: Mono Output (priority 100, available: unknown)
                output:mono-fallback+input:mono-fallback: Mono Output + Mono Input (priority 101, available: unknown)
                off: Off (priority 0, available: unknown)
        active profile: <output:mono-fallback+input:mono-fallback>
        sinks:
                alsa_output.usb-Razer_Razer_Nari-00.mono-fallback/#1: Nari (Wireless) Mono
        sources:
                alsa_output.usb-Razer_Razer_Nari-00.mono-fallback.monitor/#1: Monitor of Nari (Wireless) Mono
                alsa_input.usb-Razer_Razer_Nari-00.mono-fallback/#2: Nari (Wireless) Mono
        ports:
                analog-input-headset-mic: Headset Microphone (priority 8800, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
                        properties:

    index: 2
        name: <alsa_card.pci-0000_00_1b.0>
        driver: <module-alsa-card.c>
        owner module: 8
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf7130000 irq 34"
                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 = "8c20"
                device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "Built-in Audio"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Analog Stereo Input (priority 65, available: no)
                output:analog-stereo: Analog Stereo Output (priority 39268, available: unknown)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
                output:analog-surround-21: Analog Surround 2.1 Output (priority 1300, available: no)
                output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (priority 1365, available: no)
                output:analog-surround-40: Analog Surround 4.0 Output (priority 1200, available: no)
                output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (priority 1265, available: no)
                output:analog-surround-41: Analog Surround 4.1 Output (priority 1300, available: no)
                output:analog-surround-41+input:analog-stereo: Analog Surround 4.1 Output + Analog Stereo Input (priority 1365, available: no)
                output:analog-surround-50: Analog Surround 5.0 Output (priority 1200, available: no)
                output:analog-surround-50+input:analog-stereo: Analog Surround 5.0 Output + Analog Stereo Input (priority 1265, available: no)
                output:analog-surround-51: Analog Surround 5.1 Output (priority 1300, available: no)
                output:analog-surround-51+input:analog-stereo: Analog Surround 5.1 Output + Analog Stereo Input (priority 1365, available: no)
                output:analog-surround-71: Analog Surround 7.1 Output (priority 1200, available: no)
                output:analog-surround-71+input:analog-stereo: Analog Surround 7.1 Output + Analog Stereo Input (priority 1265, available: no)
                output:iec958-stereo: Digital Stereo (IEC958) Output (priority 38268, available: unknown)
                output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (priority 5565, available: unknown)
                off: Off (priority 0, available: unknown)
        active profile: <output:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_1b.0.analog-stereo/#3: Built-in Audio Analog Stereo
        sources:
                alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#4: Monitor of Built-in Audio Analog Stereo
        ports:
                analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
                        properties:

                analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: no)
                        properties:

                analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "audio-headphones"
                iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
                        properties:
V1del wrote:

FWIW alsactl is part of alsa-utils, if you want to find out which package a certain binary is part of you can run e.g.

pacman -Fy alsactl

I did this, found the path that pacman told me, but it doesn't actually exist on my system. I am not sure if this is what is expected, but please see below.

[dominik@archdom ~]$ sudo pacman -Fy alsactl
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
extra/alsa-utils 1.2.6-1
    usr/bin/alsactl
[dominik@archdom ~]$ /usr/bin/alsactl
bash: /usr/bin/alsactl: No such file or directory
[dominik@archdom ~]$ ls /usr/bin | grep alsa
alsa_delay
alsa_in
alsa_loopback
alsa_out

Last edited by Dominik (2021-12-24 19:46:50)

Offline

#7 2021-12-25 12:06:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,223

Re: [SOLVED] Pulseaudio doesn't detect speakers on startup except replug

The command tells you the package to install which is alsa-utils.

But as mentioned the profile situation is what I suspected to be the case, this should generally stick if you simply do an explicit

pacmd set-card-profile alsa_card.pci-0000_00_1b.0 output:analog-stereo+input:analog-stereo

instead of relying on the autoswitch behaviour. if this does not persist across a reboot even so, you can add the above line without the leading pacmd to the end of your /etc/pulse/default.pa

Offline

#8 2021-12-25 17:18:26

Dominik
Member
Registered: 2021-12-21
Posts: 18

Re: [SOLVED] Pulseaudio doesn't detect speakers on startup except replug

V1del wrote:

But as mentioned the profile situation is what I suspected to be the case, this should generally stick if you simply do an explicit

pacmd set-card-profile alsa_card.pci-0000_00_1b.0 output:analog-stereo+input:analog-stereo

instead of relying on the autoswitch behaviour. if this does not persist across a reboot even so, you can add the above line without the leading pacmd to the end of your /etc/pulse/default.pa

This worked! Thank you so much. I did not need to add it to my pulse default.pa file. Running the command once fixed it and it persists after reboot.

Offline

#9 2021-12-25 20:21:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,223

Re: [SOLVED] Pulseaudio doesn't detect speakers on startup except replug

Great, it's likely you somehow changed that to IEC explicitly once, and pulse generally tries to restore profiles that have been set explicitly over ones that would be enabled implicitly. By running that command you've set an explicit preference on the analog profile which it will remember over the IEC/digital selection.

If this is resolved please mark it as such by editing the title in your first post and prepending [SOLVED] or so (might have to shorten the title a little, as it's close to the char limit)

Last edited by V1del (2021-12-25 20:22:14)

Offline

Board footer

Powered by FluxBB