You are not logged in.

#1 2019-07-17 17:24:56

Kicer
Member
From: Poland
Registered: 2014-10-02
Posts: 72
Website

pulse audio marks my sound card as unplugged and unavailable

Hi

One day PulseAudio decided to mark my sound card as unplugged and unavailable.
Device still works as it used to but I need to select it each time I boot my PC (PA cannot find any plugged device and just turns sound off) which becomes annoying.

I tried some tricks to 'reset' PA found on forums but it didn't work (also people usually have problems with HDMI sound).

Any idea how to fix it?

Offline

#2 2019-07-18 04:54:58

MrFlacko
Member
Registered: 2019-01-08
Posts: 21

Re: pulse audio marks my sound card as unplugged and unavailable

driver issue?

Offline

#3 2019-07-18 10:19:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,196

Re: pulse audio marks my sound card as unplugged and unavailable

There's been a lot of work (and apparently regressions) in recent kernels and how they handle jack detection.  If you don't want to "actively" fix it by testing kernel versions and seeing if you can identify an offending commit, you could add a relevant set-sink-port command to be executed at the end of your /etc/pulse/default.pa .

That's all we can say with as little information as is provided, you might want to post

amixer -c0
pacmd list-cards
pacmd list-sinks

so we get some overview of what you're seeing.

Offline

#4 2019-07-18 15:11:32

Kicer
Member
From: Poland
Registered: 2014-10-02
Posts: 72
Website

Re: pulse audio marks my sound card as unplugged and unavailable

@V1del here we go:

$ amixer -c0
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 58 [91%] [-6.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 0 [0%] [-64.00dB] [off]
  Front Right: Playback 0 [0%] [-64.00dB] [off]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Front Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%] [30.00dB]
  Front Right: 3 [100%] [30.00dB]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Side',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Line Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 46 [100%] [30.00dB] [on]
  Front Right: Capture 46 [100%] [30.00dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 30 [65%] [14.00dB] [off]
  Front Right: Capture 30 [65%] [14.00dB] [off]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Digital',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 0 [0%] [-30.00dB]
  Front Right: Capture 0 [0%] [-30.00dB]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Front Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Front Mic'
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Rear Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Rear Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
$ pacmd list-cards
2 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 = "0fbc"
                device.string = "1"
                device.description = "HDA NVidia"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Wyjście Digital Stereo (HDMI) (priority 5900, available: no)
                output:hdmi-surround: Wyjście Digital Surround 5.1 (HDMI) (priority 800, available: no)
                output:hdmi-surround71: Wyjście Digital Surround 7.1 (HDMI) (priority 800, available: no)
                output:hdmi-stereo-extra1: Wyjście Digital Stereo (HDMI 2) (priority 5700, available: no)
                output:hdmi-surround-extra1: Wyjście Digital Surround 5.1 (HDMI 2) (priority 600, available: no)
                output:hdmi-surround71-extra1: Wyjście Digital Surround 7.1 (HDMI 2) (priority 600, available: no)
                output:hdmi-stereo-extra2: Wyjście Digital Stereo (HDMI 3) (priority 5700, available: no)
                output:hdmi-surround-extra2: Wyjście Digital Surround 5.1 (HDMI 3) (priority 600, available: no)
                output:hdmi-surround71-extra2: Wyjście Digital Surround 7.1 (HDMI 3) (priority 600, available: no)
                output:hdmi-stereo-extra3: Wyjście Digital Stereo (HDMI 4) (priority 5700, available: no)
                output:hdmi-surround-extra3: Wyjście Digital Surround 5.1 (HDMI 4) (priority 600, available: no)
                output:hdmi-surround71-extra3: Wyjście Digital Surround 7.1 (HDMI 4) (priority 600, available: no)
                off: Wyłączone (priority 0, available: unknown)
        active profile: <off>
        ports:
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                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: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
    index: 1
        name: <alsa_card.pci-0000_00_1b.0>
        driver: <module-alsa-card.c>
        owner module: 7
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf7210000 irq 33"
                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 = "8ca0"
                device.product.name = "9 Series Chipset Family HD Audio Controller"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "Wbudowany dźwięk"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Wejście Analogowe stereo (priority 65, available: no)
                output:analog-stereo: Wyjście Analogowe stereo (priority 6500, available: no)
                output:analog-stereo+input:analog-stereo: Analogowy dupleks stereo (priority 6565, available: no)
                output:analog-surround-21: Wyjście Analogowe przestrzenne 2.1 (priority 1300, available: no)
                output:analog-surround-21+input:analog-stereo: Wyjście Analogowe przestrzenne 2.1 + Wejście Analogowe stereo (priority 1365, available: no)
                output:analog-surround-40: Wyjście Analogowe przestrzenne 4.0 (priority 1200, available: no)
                output:analog-surround-40+input:analog-stereo: Wyjście Analogowe przestrzenne 4.0 + Wejście Analogowe stereo (priority 1265, available: no)
                output:analog-surround-41: Wyjście Analogowe przestrzenne 4.1 (priority 1300, available: no)
                output:analog-surround-41+input:analog-stereo: Wyjście Analogowe przestrzenne 4.1 + Wejście Analogowe stereo (priority 1365, available: no)
                output:analog-surround-50: Wyjście Analogowe przestrzenne 5.0 (priority 1200, available: no)
                output:analog-surround-50+input:analog-stereo: Wyjście Analogowe przestrzenne 5.0 + Wejście Analogowe stereo (priority 1265, available: no)
                output:analog-surround-51: Wyjście Analogowe przestrzenne 5.1 (priority 1300, available: no)
                output:analog-surround-51+input:analog-stereo: Wyjście Analogowe przestrzenne 5.1 + Wejście Analogowe stereo (priority 1365, available: no)
                output:analog-surround-71: Wyjście Analog Surround 7.1 (priority 1200, available: no)
                output:analog-surround-71+input:analog-stereo: Wyjście Analog Surround 7.1 + Wejście Analogowe stereo (priority 1265, available: no)
                output:iec958-stereo: Wyjście Cyfrowe stereo (IEC958) (priority 5500, available: unknown)
                output:iec958-stereo+input:analog-stereo: Wyjście Cyfrowe stereo (IEC958) + Wejście Analogowe stereo (priority 5565, available: unknown)
                off: Wyłączone (priority 0, available: unknown)
        active profile: <output:analog-surround-21>
        sinks:
                alsa_output.pci-0000_00_1b.0.analog-surround-21/#2: Wbudowany dźwięk Analogowe przestrzenne 2.1
        sources:
                alsa_output.pci-0000_00_1b.0.analog-surround-21.monitor/#3: Monitor of Wbudowany dźwięk Analogowe przestrzenne 2.1
        ports:
                analog-input-front-mic: Przedni mikrofon (priority 8500, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-rear-mic: Tylny mikrofon (priority 8200, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-linein: Wejście liniowe (priority 8100, latency offset 0 usec, available: no)
                        properties:

                analog-output-lineout: Wyjście liniowe (priority 9900, latency offset 0 usec, available: no)
                        properties:

                analog-output-headphones: Słuchawki (priority 9000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
                iec958-stereo-output: Wyjście cyfrowe (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
                        properties:

Sorry about polish names, I found no single solution to print in in english. Anyway, the problematic audio card is the second one.

$ pacmd list-sinks
1 sink(s) available.
  * index: 2
        name: <alsa_output.pci-0000_00_1b.0.analog-surround-21>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9039
        volume: front-left: 52226 /  80% / -5,92 dB,   front-right: 52226 /  80% / -5,92 dB,   lfe: 52226 /  80% / -5,92 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 3 k 44100 Hz
        channel map: front-left,front-right,lfe
        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: 7
        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 0xf7210000 irq 33"
                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 = "8ca0"
                device.product.name = "9 Series Chipset Family HD Audio Controller"
                device.form_factor = "internal"
                device.string = "surround21:0"
                device.buffering.buffer_size = "529200"
                device.buffering.fragment_size = "264600"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-surround-21"
                device.profile.description = "Analogowe przestrzenne 2.1"
                device.description = "Wbudowany dźwięk Analogowe przestrzenne 2.1"
                alsa.mixer_name = "Realtek ALC887-VD"
                alsa.components = "HDA:10ec0887,1458a182,00100302"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-lineout: Wyjście liniowe (priority 9900, latency offset 0 usec, available: no)
                        properties:

        active port: <analog-output-lineout>

Offline

#5 2019-07-19 23:57:19

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,196

Re: pulse audio marks my sound card as unplugged and unavailable

That does look weird indeed, the "quick" fix would be adding

set-card-profile alsa_card.pci-0000_00_1b.0 output:analog-surround-21
set-sink-port alsa_output.pci-0000_00_1b.0.analog-surround-21 analog-output-lineout 

to the end of your /etc/pulse/default.pa

Figuring out "why" exactly that is the cause might need some digging, as an easy pick you might want to test the LTS kernel, if that doesn't work you might have to change detection logic with hdajackretask. That can be a bit involved, and if above works it's likely to be the simplest solution.

Offline

Board footer

Powered by FluxBB