Pipewire - Inconsistent volume and channel dropping after suspend

I have recently replaced pulseaudio with pipewire and wireplumber due to an issue with my sound devices disappearing when changing speaker profiles and have run into the following issues (that I think were also present with pulse). Pipewire is using the default configuration settings.

I have a SoundBlaster Z that works perfectly until my system resumes from suspend. I do not have any software equalizer installed or configured, just one of the hardware eq profiles selected in alsamixer. Once my system resumes from a suspended state, when playing any audio, the volume level fluctuates almost like there is volume normalization going on. The volume indicated in pavucontrol does not visually show the volume is being raised or lowered, but something is certainly going on in the background. At the same time this occurs, but not always, the right and left channels drop out at different intervals. Restarting pipewire, pipewire-pulse, and wireplumber do not have any effect on this issue. Audio is only restored to normal upon reboot.

I am running kernel 6.1 but this issue occurs under 6.0 as well.

I have an arch install that I have done some testing on separately and I do not have these same issues. I copied the config from that install to my manjaro installation (prompting a switch from pipewire-media-session to wireplumber) and it seemed to work better, but the issue has re-appeared after today’s update.

inxi -Faz

System:
  Kernel: 6.1.0-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=fc3d7c94-0c04-4f87-a3ca-8d0c9119691b rw quiet
    udev.log_priority=3
  Desktop: KDE Plasma v: 5.26.2 tk: Qt v: 5.15.6 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: X670E AORUS MASTER v: -CF
    serial: <superuser required>
  Mobo: Gigabyte model: X670E AORUS MASTER v: x.x
    serial: <superuser required> UEFI: American Megatrends LLC. v: F8b
    date: 10/21/2022
Battery:
  ID-1: hidpp_battery_0 charge: 77% condition: N/A volts: 4.0 min: N/A
    model: Logitech G502 LIGHTSPEED Wireless Gaming Mouse type: N/A
    serial: <filter> status: discharging
CPU:
  Info: model: AMD Ryzen 9 7900X bits: 64 type: MT MCP arch: Zen 4 gen: 5
    level: v4 note: check built: 2022 process: TSMC n5 (5nm) family: 0x19 (25)
    model-id: 0x61 (97) stepping: 2 microcode: 0xA601203
  Topology: cpus: 1x cores: 12 tpc: 2 threads: 24 smt: enabled cache:
    L1: 768 KiB desc: d-12x32 KiB; i-12x32 KiB L2: 12 MiB desc: 12x1024 KiB
    L3: 64 MiB desc: 2x32 MiB
  Speed (MHz): avg: 4684 high: 5426 min/max: 3000/5733 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 4700 2: 4700
    3: 5426 4: 4700 5: 4700 6: 4700 7: 4700 8: 4700 9: 3599 10: 4700 11: 4700
    12: 4700 13: 4700 14: 4700 15: 4700 16: 4700 17: 4700 18: 4700 19: 4700
    20: 4700 21: 4700 22: 4700 23: 4700 24: 4700 bogomips: 225677
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GP104 [GeForce GTX 1080] driver: nvidia v: 520.56.06
    alternate: nouveau,nvidia_drm non-free: 520.xx+
    status: current (as of 2022-10) arch: Pascal code: GP10x
    process: TSMC 16nm built: 2016-21 pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.0 chip-ID: 10de:1b80 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: N/A
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 5120x1440 s-dpi: 108 s-size: 1204x342mm (47.40x13.46")
    s-diag: 1252mm (49.28")
  Monitor-1: DP-2 pos: right res: 2560x1440 hz: 60 dpi: 109
    size: 597x336mm (23.5x13.23") diag: 685mm (26.97") modes: N/A
  Monitor-2: DP-4 pos: primary,left res: 2560x1440 hz: 144 dpi: 109
    size: 597x336mm (23.5x13.23") diag: 685mm (26.97") modes: N/A
  API: OpenGL v: 4.6.0 NVIDIA 520.56.06 renderer: NVIDIA GeForce GTX
    1080/PCIe/SSE2 direct render: Yes
Audio:
  Device-1: NVIDIA GP104 High Definition Audio driver: snd_hda_intel v: kernel
    pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10f0
    class-ID: 0403
  Device-2: Creative Labs Sound Core3D [Sound Blaster Recon3D / Z-Series]
    driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    bus-ID: 0c:00.0 chip-ID: 1102:0012 class-ID: 0403
  Sound API: ALSA v: k6.1.0-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.59 running: yes
Network:
  Device-1: Intel Ethernet I225-V vendor: Gigabyte driver: igc v: kernel pcie:
    gen: 2 speed: 5 GT/s lanes: 1 port: N/A bus-ID: 0d:00.0 chip-ID: 8086:15f3
    class-ID: 0200
  IF: enp13s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Wi-Fi 6 AX210/AX211/AX411 160MHz driver: iwlwifi v: kernel
    pcie: gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 0e:00.0 chip-ID: 8086:2725
    class-ID: 0280
  IF: wlp14s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX210 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-9:2
    chip-ID: 8087:0032 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Drives:
  Local Storage: total: 1.94 TiB used: 126.46 GiB (6.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:5 vendor: Smart Modular Tech.
    model: SHPP41-1000GM size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 51060A20 temp: 50.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Crucial model: CT1000P1SSD8
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: P3CR013 temp: 44.9 C scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: Crucial model: CT128MX100SSD1
    size: 119.24 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: MU01 scheme: GPT
Partition:
  ID-1: / raw-size: 931.22 GiB size: 915.53 GiB (98.32%)
    used: 126.46 GiB (13.8%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:7
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 316 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:6
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 41.9 C mobo: N/A gpu: nvidia temp: 48 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 31%
Info:
  Processes: 378 Uptime: 32m wakeups: 2 Memory: 31.09 GiB
  used: 3.22 GiB (10.4%) Init: systemd v: 251 default: graphical
  tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman
  pkgs: 1342 libs: 347 tools: pamac Shell: Zsh v: 5.9 default: Bash v: 5.1.16
  running-in: yakuake inxi: 3.3.23

pacman -Qs ‘pulse|pipewire’

local/gst-plugin-pipewire 1:0.3.59-5
    Multimedia graph framework - pipewire plugin
local/kpipewire 5.26.3-1 (plasma)
    Components relating to pipewire use in Plasma
local/lib32-libcanberra 1:0.30+r2+gc0620e4-2
    A small and lightweight implementation of the XDG Sound Theme Specification (32-bit)
local/lib32-libpulse 16.1-1
    A featureful, general-purpose sound server (32-bit client libraries)
local/libcanberra 1:0.30+r2+gc0620e4-2
    A small and lightweight implementation of the XDG Sound Theme Specification
local/libpulse 16.1-3
    A featureful, general-purpose sound server (client library)
local/manjaro-pipewire 20221015-2
    Manjaro meta package for complete PipeWire support.
local/pamixer 1.6-2
    Pulseaudio command-line mixer like amixer
local/pavucontrol-qt 1.2.0-1 (lxqt)
    A Pulseaudio mixer in Qt (port of pavucontrol)
local/pipewire 1:0.3.59-5
    Low-latency audio/video router and processor
local/pipewire-alsa 1:0.3.59-5
    Low-latency audio/video router and processor - ALSA configuration
local/pipewire-audio 1:0.3.59-5
    Low-latency audio/video router and processor - Audio support
local/pipewire-jack 1:0.3.59-5
    Low-latency audio/video router and processor - JACK support
local/pipewire-pulse 1:0.3.59-5
    Low-latency audio/video router and processor - PulseAudio replacement
local/plasma-pa 5.26.3-1 (plasma)
    Plasma applet for audio volume management using PulseAudio
local/pulseaudio-ctl 1.70-1
    Control pulseaudio volume from the shell or mapped to keyboard shortcuts.
local/pulseaudio-qt 1.3-1
    Qt bindings for libpulse
local/qpwgraph 0.3.6-1
    PipeWire Graph Qt GUI Interface
local/wireplumber 0.4.12-1
    Session / policy manager implementation for PipeWire

pactl info

Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 125
Tile Size: 65472
User Name: patrick
Host Name: patrick-pc
Server Name: PulseAudio (on PipeWire 0.3.59)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_0c_00.0.analog-surround-21
Default Source: alsa_output.pci-0000_0c_00.0.analog-surround-21.monitor
Cookie: a726:40d2

Any advice is greatly appreciated.

After reading everything I could find about the Sound Blaster Z and tweaking config files to no avail I ultimately decided to retire the Z and replace it with a Sound Blaster X4 usb dac. I hate to retire the Z since its a great card in Windows, but the issues I was facing were a deal breaker.

Going with a Creative device once again was a gamble and I was fully expecting to have to return it but I have been incredibly happy with the sound and performance of the X4. In typical Creative fashion, all of the features are not available to linux users, but sacrifices must be made I guess.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.