You are not logged in.

#1 2022-10-19 14:45:44

ttshaw1
Member
Registered: 2020-04-12
Posts: 38

[SOLVED] Have to clear ~/.local/state/wireplumber on every reboot

Since upgrading pipewire and attendant packages to 1:0.3.59-2, sound hasn't been working well on my system. When I start my computer, nothing can play audio until I clear ~/.local/state/wireplumber and reboot, at which point I can have one process play audio. For example, Lollypop music player will play one song, then throw an error when the next queued one should start. Or I can open VLC and watch a movie. I'm looking to get to the root cause of this rather than doing something hacky like writing a script to constantly clear wireplumber settings. Any advice?

Output for relevant commands below

pactl list cards

Card #0
        Name: alsa_card.usb-E1DA_E1DA__9038D_PCM32_384_DSD256_CTUA181119A-00
        Driver: module-alsa-card.c
        Owner Module: 6
        Properties:
                alsa.card = "2"
                alsa.card_name = "E1DA #9038D PCM32/384 DSD256"
                alsa.long_card_name = "E1DA E1DA #9038D PCM32/384 DSD256 at usb-0000:02:00.0-1, high speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:02:00.0-usb-0:1:1.0"
                sysfs.path = "/devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-1/1-1:1.0/sound/card2"
                udev.id = "usb-E1DA_E1DA_#9038D_PCM32_384_DSD256_CTUA181119A-00"
                device.bus = "usb"
                device.vendor.id = "2fc6"
                device.vendor.name = "Comtrue Inc."
                device.product.id = "6013"
                device.product.name = "E1DA #9038D PCM32/384 DSD256"
                device.serial = "E1DA_E1DA_#9038D_PCM32_384_DSD256_CTUA181119A"
                device.string = "2"
                device.description = "E1DA #9038D PCM32/384 DSD256"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        Profiles:
                output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6500, available: yes)
                output:iec958-stereo: Digital Stereo (IEC958) Output (sinks: 1, sources: 0, priority: 5500, available: yes)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: output:iec958-stereo
        Ports:
                analog-output: Analog Output (type: Analog, priority: 9900, latency offset: 0 usec, availability unknown)
                        Part of profile(s): output:analog-stereo
                iec958-stereo-output: Digital Output (S/PDIF) (type: SPDIF, priority: 0, latency offset: 0 usec, availability unknown)
                        Part of profile(s): output:iec958-stereo

Card #1
        Name: alsa_card.pci-0000_0a_00.1
        Driver: module-alsa-card.c
        Owner Module: 7
        Properties:
                alsa.card = "0"
                alsa.card_name = "HDA ATI HDMI"
                alsa.long_card_name = "HDA ATI HDMI at 0xfce60000 irq 76"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:0a:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:0a:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "aaf0"
                device.product.name = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]"
                device.string = "0"
                device.description = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Profiles:
                output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: no)
                output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
                output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5700, available: no)
                output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 38468, available: yes)
                output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (sinks: 1, sources: 0, priority: 5700, available: no)
                output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
                output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: output:hdmi-stereo-extra2
        Ports:
                hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "video-display"
                        Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
                hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "video-display"
                        Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
                hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, available)
                        Properties:
                                device.icon_name = "video-display"
                                device.product.name = "PHL 246V5"
                        Part of profile(s): output:hdmi-stereo-extra2
                hdmi-output-3: HDMI / DisplayPort 4 (type: HDMI, priority: 5600, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "video-display"
                        Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-surround-extra3, output:hdmi-surround71-extra3

Card #2
        Name: alsa_card.usb-USB_Camera_USB_Camera_SN0001-02
        Driver: module-alsa-card.c
        Owner Module: 8
        Properties:
                alsa.card = "3"
                alsa.card_name = "USB Camera"
                alsa.long_card_name = "USB Camera USB Camera at usb-0000:0b:00.3-1, high speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:0b:00.3-usb-0:1:1.2"
                sysfs.path = "/devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb3/3-1/3-1:1.2/sound/card3"
                udev.id = "usb-USB_Camera_USB_Camera_SN0001-02"
                device.bus = "usb"
                device.vendor.id = "0c45"
                device.vendor.name = "Microdia"
                device.product.id = "6366"
                device.product.name = "Webcam Vitade AF"
                device.serial = "USB_Camera_USB_Camera_SN0001"
                device.form_factor = "webcam"
                device.string = "3"
                device.description = "Webcam Vitade AF"
                module-udev-detect.discovered = "1"
                device.icon_name = "camera-web-usb"
        Profiles:
                input:mono-fallback: Mono Input (sinks: 0, sources: 1, priority: 1, available: yes)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: input:mono-fallback
        Ports:
                analog-input-mic: Microphone (type: Mic, priority: 8700, latency offset: 0 usec, availability unknown)
                        Properties:
                                device.icon_name = "audio-input-microphone"
                        Part of profile(s): input:mono-fallback

Card #3
        Name: alsa_card.pci-0000_0c_00.3
        Driver: module-alsa-card.c
        Owner Module: 9
        Properties:
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xfcd00000 irq 78"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:0c:00.3"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0c:00.3/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "1457"
                device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
                device.string = "1"
                device.description = "Family 17h (Models 00h-0fh) HD Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Profiles:
                input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 65, available: no)
                output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 39268, available: yes)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6565, available: yes)
                output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources: 0, priority: 33968, available: yes)
                output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 1265, available: yes)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: output:analog-stereo
        Ports:
                analog-input-front-mic: Front Microphone (type: Mic, priority: 8500, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "audio-input-microphone"
                        Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
                analog-input-rear-mic: Rear Microphone (type: Mic, priority: 8200, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "audio-input-microphone"
                        Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
                analog-input-linein: Line In (type: Line, priority: 8100, latency offset: 0 usec, not available)
                        Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40+input:analog-stereo
                analog-output-lineout: Line Out (type: Line, priority: 9000, latency offset: 0 usec, availability unknown)
                        Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo
                analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "audio-headphones"
                        Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo

pactl list sinks

Sink #0
        State: SUSPENDED
        Name: alsa_output.usb-E1DA_E1DA__9038D_PCM32_384_DSD256_CTUA181119A-00.iec958-stereo
        Description: E1DA #9038D PCM32/384 DSD256 Digital Stereo (IEC958)
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 6
        Mute: no
        Volume: front-left: 32768 /  50% / -18.06 dB,   front-right: 32768 /  50% / -18.06 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.usb-E1DA_E1DA__9038D_PCM32_384_DSD256_CTUA181119A-00.iec958-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 = "USB Audio"
                alsa.id = "USB Audio"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "2"
                alsa.card_name = "E1DA #9038D PCM32/384 DSD256"
                alsa.long_card_name = "E1DA E1DA #9038D PCM32/384 DSD256 at usb-0000:02:00.0-1, high speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:02:00.0-usb-0:1:1.0"
                sysfs.path = "/devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-1/1-1:1.0/sound/card2"
                udev.id = "usb-E1DA_E1DA_#9038D_PCM32_384_DSD256_CTUA181119A-00"
                device.bus = "usb"
                device.vendor.id = "2fc6"
                device.vendor.name = "Comtrue Inc."
                device.product.id = "6013"
                device.product.name = "E1DA #9038D PCM32/384 DSD256"
                device.serial = "E1DA_E1DA_#9038D_PCM32_384_DSD256_CTUA181119A"
                device.string = "iec958:2"
                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 = "E1DA #9038D PCM32/384 DSD256 Digital Stereo (IEC958)"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        Ports:
                iec958-stereo-output: Digital Output (S/PDIF) (type: SPDIF, priority: 0, availability unknown)
        Active Port: iec958-stereo-output
        Formats:
                pcm

Sink #1
        State: SUSPENDED
        Name: alsa_output.pci-0000_0a_00.1.hdmi-stereo-extra2
        Description: Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] Digital Stereo (HDMI 3)
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 7
        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_0a_00.1.hdmi-stereo-extra2.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 = "PHL 246V5"
                alsa.id = "HDMI 2"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "8"
                alsa.card = "0"
                alsa.card_name = "HDA ATI HDMI"
                alsa.long_card_name = "HDA ATI HDMI at 0xfce60000 irq 76"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:0a:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:0a:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "aaf0"
                device.product.name = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]"
                device.string = "hdmi:0,2"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "hdmi-stereo-extra2"
                device.profile.description = "Digital Stereo (HDMI 3)"
                device.description = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] Digital Stereo (HDMI 3)"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, available)
        Active Port: hdmi-output-2
        Formats:
                pcm

Sink #2
        State: SUSPENDED
        Name: alsa_output.pci-0000_0c_00.3.analog-stereo
        Description: Family 17h (Models 00h-0fh) HD Audio Controller Analog Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 9
        Mute: no
        Volume: front-left: 27111 /  41% / -23.00 dB,   front-right: 27111 /  41% / -23.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_0c_00.3.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 = "ALC892 Analog"
                alsa.id = "ALC892 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xfcd00000 irq 78"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:0c:00.3"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0c:00.3/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "1457"
                device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
                device.string = "front:1"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Family 17h (Models 00h-0fh) HD Audio Controller Analog Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                analog-output-lineout: Line Out (type: Line, priority: 9000, availability unknown)
                analog-output-headphones: Headphones (type: Headphones, priority: 9900, not available)
        Active Port: analog-output-lineout
        Formats:
                pcm

pactl list sink-inputs

Sink Input #10
        Driver: protocol-native.c
        Owner Module: 14
        Client: 22
        Sink: 2
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Format: pcm, format.sample_format = "\"s16le\""  format.channels = "2"  format.rate = "44100"  format.channel_map = "\"front-left,front-right\""
        Corked: yes
        Mute: no
        Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        Buffer Latency: 104943 usec
        Sink Latency: 0 usec
        Resample method: n/a
        Properties:
                media.name = "'Title' by 'Artist'"
                application.name = "Lollypop"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "35"
                media.role = "music"
                application.icon_name = "org.gnome.Lollypop"
                application.process.id = "1041"
                application.process.user = "user"
                application.process.host = "host"
                application.process.binary = "python3.10"
                application.language = "C"
                window.x11.display = ":1"
                application.process.machine_id = "f73a00a351324b5eba39deeafc40d4f9"
                application.process.session_id = "1"
                module-stream-restore.id = "sink-input-by-media-role:music"
                media.title = "Title"
                media.artist = "Artist"

sudo fuser -v /dev/snd/*

                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  user       1002 F.... pulseaudio
                     user       1109 F.... wireplumber
/dev/snd/controlC1:  user       1002 F.... pulseaudio
                     user       1109 F.... wireplumber
/dev/snd/controlC2:  user       1002 F.... pulseaudio
                     user       1109 F.... wireplumber
/dev/snd/controlC3:  user       1002 F.... pulseaudio
                     user       1109 F.... wireplumber
/dev/snd/seq:        user       1108 F.... pipewire

Last edited by ttshaw1 (2022-10-21 00:03:02)

Offline

#2 2022-10-19 15:10:32

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

Re: [SOLVED] Have to clear ~/.local/state/wireplumber on every reboot

Why is pulseaudio running as well? You want either pulseaudio or wireplumber controlling your audio devices, not both. If you want to actually switch to pipewire as a stack then install pipewire-audio and pipewire-pulse (... and pipewire-alsa) if you want to stay on pulseaudio and only use pipewire for screen sharing remove pipewire-audio and wireplumber and switch that to pipewire-media-session and keep pulseaudio.

Last edited by V1del (2022-10-19 15:12:08)

Offline

#3 2022-10-21 00:02:43

ttshaw1
Member
Registered: 2020-04-12
Posts: 38

Re: [SOLVED] Have to clear ~/.local/state/wireplumber on every reboot

I installed pipewire-pulse, which uninstalled pulseaudio and another package or two. That seems to have solved it. Thanks!

Offline

Board footer

Powered by FluxBB