Audio4Linux / JDSP4Linux

An audio effect processor for PipeWire and PulseAudio clients
GNU General Public License v3.0
922 stars 35 forks source link

Prevents proton games from receiving audio #77

Closed zany130 closed 1 year ago

zany130 commented 1 year ago

As the title says James dsp sometimes (seems to be random) prevents proton games from receiving audio which also causes really long game start-up

sys info:

 garuda-inxi
System:
  Kernel: 6.0.12-272-tkg-bmq arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: intel_pstate=passive intel_pstate=passive
    BOOT_IMAGE=/@/boot/vmlinuz-linux-linux-tkg-bmq-generic_v3
    root=UUID=53e270ad-dfd5-4874-a125-69d21ada6b8d rw rootflags=subvol=@
    rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
    sysrq_always_enabled=1 amdgpu.ppfeaturemask=0xffffffff nowatchdog
    nmi_watchdog=0 initrd=@\boot\initramfs-linux-tkg-bmq-generic_v3.img
  Desktop: KDE Plasma v: 5.26.4 tk: Qt v: 5.15.7 wm: kwin_wayland vt: 2
    dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASRock model: X470 Taichi serial: <superuser required>
    UEFI: American Megatrends v: P4.90 date: 05/18/2022
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 3
    serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
  Device-2: ps-controller-battery-a0:ab:51:90:7e:70 model: N/A serial: N/A
    charge: N/A status: discharging
CPU:
  Info: model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3 gen: 4
    level: v3 note: check built: 2021-22 process: TSMC n7 (7nm)
    family: 0x19 (25) model-id: 0x21 (33) stepping: 2 microcode: 0xA20120A
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
    L3: 32 MiB desc: 1x32 MiB
  Speed (MHz): avg: 3882 high: 4645 min/max: 2200/4650 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 4090 2: 3697
    3: 3910 4: 3677 5: 3662 6: 3721 7: 4026 8: 4645 9: 3598 10: 3710 11: 3717
    12: 4140 bogomips: 88892
  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: AMD Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M]
    vendor: Gigabyte driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x
    process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s
    lanes: 16 ports: active: DP-1,HDMI-A-1 empty: DP-2,HDMI-A-2
    bus-ID: 10:00.0 chip-ID: 1002:73df class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.4 with: Xwayland v: 22.1.5
    compositors: 1: kwin_wayland 2: Gamescope driver: X: loaded: amdgpu
    unloaded: modesetting,radeon alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu d-rect: 3444x864 display-ID: 0
  Monitor-1: DP-1 pos: primary,left res: 2048x864 size: N/A modes: N/A
  Monitor-2: HDMI-A-1 pos: right res: 1396x785 size: N/A modes: N/A
  API: OpenGL v: 4.6 Mesa 22.2.3 renderer: AMD Radeon RX 6700 XT (navi22
    LLVM 14.0.6 DRM 3.48 6.0.12-272-tkg-bmq) direct render: Yes
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel
    bus-ID: 5-4.1:4 pcie: chip-ID: 054c:0e53 gen: 4 speed: 16 GT/s
    class-ID: 0a00 lanes: 16 bus-ID: 10:00.1 chip-ID: 1002:ab28 class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASRock
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 12:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Sony INZONE H9 / H7 type: USB
    driver: cdc_acm,hid-generic,snd-usb-audio,usbhid
  Sound API: ALSA v: k6.0.12-272-tkg-bmq running: yes
  Sound Interface: sndio v: N/A running: no
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.61 running: yes
Network:
  Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 08:00.0
    chip-ID: 8086:24fb class-ID: 0280
  IF: wlp8s0 state: down mac: <filter>
  Device-2: Intel I211 Gigabit Network vendor: ASRock driver: igb v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 0a:00.0
    chip-ID: 8086:1539 class-ID: 0200
  IF: enp10s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Edimax Bluetooth Adapter type: USB driver: btusb v: 0.8
    bus-ID: 1-8:4 chip-ID: 7392:c611 class-ID: e001 serial: <filter>
  Report: bt-adapter ID: hci0 rfk-id: 1 state: up address: <filter>
Drives:
  Local Storage: total: 2.96 TiB used: 3.89 TiB (131.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:3 vendor: Samsung model: SSD 980 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 1B4QFXO7 temp: 38.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO 250GB
    size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 2B2QEXE7 temp: 38.9 C scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000DX002-2DV164
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: CC41 scheme: GPT
Partition:
  ID-1: / raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 770.7 GiB (82.8%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:5
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 24.6 MiB (8.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:4
  ID-3: /home raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 770.7 GiB (82.8%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:5
  ID-4: /var/log raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 770.7 GiB (82.8%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:5
  ID-5: /var/tmp raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 770.7 GiB (82.8%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:5
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 50 (default 100)
  ID-1: swap-1 type: zram size: 31.27 GiB used: 2.41 GiB (7.7%)
    priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 49.0 C mobo: 38.0 C gpu: amdgpu temp: 57.0 C
    mem: 58.0 C
  Fan Speeds (RPM): cpu: 1896 fan-1: 0 fan-3: 1308 fan-4: 1490 fan-5: 1210
    gpu: amdgpu fan: 947
  Power: 12v: N/A 5v: N/A 3.3v: 3.18 vbat: 3.28 gpu: amdgpu watts: 62.00
Info:
  Processes: 488 Uptime: 5h 8m wakeups: 6 Memory: 31.27 GiB
  used: 17.11 GiB (54.7%) Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: 2454
  pm: pacman pkgs: 2429 libs: 581 tools: octopi,paru pm: appimage pkgs: 0
  pm: flatpak pkgs: 25 Shell: fish v: 3.5.1 default: Bash v: 5.1.16
  running-in: alacritty inxi: 3.3.23
Garuda (2.6.10-1):
  System install date:     2022-11-27
  Last full system update: 2022-12-10
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       Probably (Run as root to verify)
  Snapshots:               Snapper
  Failed units:            systemd-networkd-wait-online.service
timschneeb commented 1 year ago

Probably related to #74, if you're using Pipewire.

Try to update wireplumber to version 0.4.12-2 and restart the service. If that version hasn't been packaged for your distro yet, you can also apply the fix manually, see here: https://github.com/Audio4Linux/JDSP4Linux/issues/74#issuecomment-1301701043

zany130 commented 1 year ago

yeah I am using pipewire.

seems like I already had wireplumber 0.4.12-2

pacman -Qi wireplumber
Name            : wireplumber
Version         : 0.4.12-2
Description     : Session / policy manager implementation for PipeWire
Architecture    : x86_64
URL             : https://pipewire.pages.freedesktop.org/wireplumber/
Licenses        : MIT
Groups          : None
Provides        : pipewire-session-manager
Depends On      : libwireplumber=0.4.12-2  libsystemd.so=0-64  lua  pipewire
Optional Deps   : wireplumber-docs: Documentation
Required By     : gst-plugin-pipewire  kwin  pipewire-alsa  pipewire-jack  pipewire-pulse
                  pipewire-support  pipewire-v4l2
Optional For    : pipewire
Conflicts With  : pipewire-media-session
Replaces        : None
Installed Size  : 865.23 KiB
Packager        : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date      : Sun 27 Nov 2022 06:36:43 PM EST
Install Date    : Tue 29 Nov 2022 03:33:34 PM EST
Install Reason  : Installed as a dependency for another package
Install Script  : Yes
Validated By    : Signature
zany130 commented 1 year ago

installed wireplumber 0.4.13 from the arch testing repo and the problem got worse

now it happens consistently (and on all apps to including chrome browsers)

zany130 commented 1 year ago

resolved in https://github.com/Audio4Linux/JDSP4Linux/issues/74