I don't know what's going on with my audio stack

Yesterday I connected my microphone because I needed to use Discord and chat with my friends. I discovered a strange behavior. No matter what I do there is a strange noise coming from my microphone (I guess?). The thing I can hear the noise even if my microphone is not connected and pavucontrol seems to confirm this.
Today I was able do make a recordig of the issue, here: Audio bug Garuda - YouTube

Let me know what logs do you need, I'll gladly provide them to you

Missing your garuda-inxi.

2 Likes

Did it not alert you to include this when you made this post?

3 Likes

Sure, but people do not like to read, my picture about nobody understand (so I moved it away).
And for a video, I have no time :wink:

5 Likes

Sorry I must have deleted the text in a hurry

Here's the output:

System:
  Kernel: 5.18.12-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=3b52a2cf-a724-4548-b109-e2a369bab4d2 rw rootflags=subvol=@
    quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    resume=UUID=fb2cf117-9582-47a3-87a3-e38488adb30d loglevel=3 ibt=off
    nvidia-drm.modeset=1
  Desktop: GNOME v: 42.3.1 tk: GTK v: 3.24.34 wm: gnome-shell dm: GDM
    v: 42.0 Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop System: Micro-Star product: MS-7A34 v: 1.0
    serial: <superuser required>
  Mobo: Micro-Star model: B350 TOMAHAWK (MS-7A34) v: 1.0
    serial: <superuser required> UEFI-[Legacy]: American Megatrends v: 1.M0
    date: 01/23/2019
CPU:
  Info: model: AMD Ryzen 5 1600 bits: 64 type: MT MCP arch: Zen
    built: 2017-19 process: GF 14nm family: 0x17 (23) model-id: 1 stepping: 1
    microcode: 0x8001137
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 576 KiB desc: d-6x32 KiB; i-6x64 KiB L2: 3 MiB desc: 6x512 KiB
    L3: 16 MiB desc: 2x8 MiB
  Speed (MHz): avg: 3644 high: 3699 min/max: N/A cores: 1: 3483 2: 3699
    3: 3699 4: 3699 5: 3256 6: 3699 7: 3699 8: 3699 9: 3699 10: 3699 11: 3699
    12: 3699 bogomips: 88786
  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: 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, STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2070 Rev. A] vendor: CardExpert
    driver: nvidia v: 515.57 alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-06) arch: Turing process: TSMC 12nm
    built: 2018-22 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 3
    speed: 8 GT/s ports: active: none off: HDMI-A-1
    empty: DP-1, DP-2, DP-3, Unknown-1 bus-ID: 1c:00.0 chip-ID: 10de:1f07
    class-ID: 0300
  Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.3
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    alternate: fbdev,nouveau,nv,vesa gpu: nvidia,nvidia-nvswitch
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.00x11.26")
    s-diag: 583mm (22.95")
  Monitor-1: HDMI-A-1 mapped: HDMI-0 note: disabled model: BenQ GW2270
    serial: <filter> built: 2015 res: 1920x1080 hz: 60 dpi: 102 gamma: 1.2
    size: 476x268mm (18.74x10.55") diag: 546mm (21.5") ratio: 16:9 modes:
    max: 1920x1080 min: 640x480
  OpenGL: renderer: NVIDIA GeForce RTX 2070/PCIe/SSE2
    v: 4.6.0 NVIDIA 515.57 direct render: Yes
Audio:
  Device-1: NVIDIA TU106 High Definition Audio vendor: CardExpert
    driver: snd_hda_intel v: kernel bus-ID: 5-3.3.4:11 pcie: chip-ID: 1b1c:0a51
    gen: 3 class-ID: 0300 speed: 8 GT/s lanes: 16 bus-ID: 1c:00.1
    chip-ID: 10de:10f9 class-ID: 0403
  Device-2: AMD Family 17h HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 1e:00.3 chip-ID: 1022:1457 class-ID: 0403
  Device-3: Corsair VOID ELITE Wireless Gaming Dongle type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Sound Server-1: ALSA v: k5.18.12-zen1-1-zen running: yes
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.56 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 19:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp25s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Broadcom BCM20702A0 Bluetooth 4.0 type: USB driver: btusb v: 0.8
    bus-ID: 5-3.3.3:10 chip-ID: 0a5c:21e8 class-ID: fe01 serial: <filter>
  Report: bt-adapter ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: no
    address: <filter>
Drives:
  Local Storage: total: 2.05 TiB used: 1.3 TiB (63.3%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Sabrent model: N/A
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: RKT303.3
    temp: 39.9 C scheme: MBR
  ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital
    model: WD10EZEX-00MFCA0 size: 931.51 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: 1A01 scheme: MBR
  ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST500DM002-1BD142
    size: 465.76 GiB block-size: physical: 4096 B logical: 512 B
    speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: KC48
    scheme: GPT
  ID-4: /dev/sdc maj-min: 8:32 vendor: Samsung model: SSD 850 EVO 500GB
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 2B6Q scheme: GPT
Partition:
  ID-1: / raw-size: 221.27 GiB size: 221.27 GiB (100.00%)
    used: 145.59 GiB (65.8%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-2: /home raw-size: 221.27 GiB size: 221.27 GiB (100.00%)
    used: 145.59 GiB (65.8%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /var/log raw-size: 221.27 GiB size: 221.27 GiB (100.00%)
    used: 145.59 GiB (65.8%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-4: /var/tmp raw-size: 221.27 GiB size: 221.27 GiB (100.00%)
    used: 145.59 GiB (65.8%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.57 GiB used: 2.2 MiB (0.0%)
    priority: 100 dev: /dev/zram0
  ID-2: swap-2 type: partition size: 17.2 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p2 maj-min: 259:2
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: nvidia temp: 39 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 30%
Info:
  Processes: 376 Uptime: 14h 35m wakeups: 1 Memory: 15.57 GiB
  used: 4.45 GiB (28.5%) Init: systemd v: 251 default: graphical
  tool: systemctl Compilers: gcc: 12.1.0 Packages: 1590 pacman: 1574 lib: 489
  flatpak: 16 Shell: fish v: 3.4.1 running-in: gnome-terminal inxi: 3.3.19
Garuda (2.6.5-1):
  System install date:     2022-03-05
  Last full system update: 2022-07-20
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       <superuser required>
  Snapshots:               Snapper
  Failed units:            

If your microphone is not connected then the noise can’t be coming from the microphone. It could, however, be electrical noise that is being amplified (so check your audio gain settings).

What other changes did you make to your audio setup when you were configuring it for Discord?

2 Likes

So, how close is your cell phone to your setup?

3 Likes

I made no changes to my audio setup
I haven't been using my microphone in a long time
The gain is 100%, if I lower it the noise seems to be gone but my voice too lol
I think it should not be there to begin with

Pretty far and noise is still there

Have you searched extensively for terms such as:

Audio noise Linux
Audio static Linux

I'm sure there must be many hits regarding this issue, as I have researched it in the past when I had similar issues. Sometimes a kernel update would solve the issue, or simply test other kernels for some improvement.

1 Like

So, I found this Wiki but I don't know how to make such changes since Garuda uses pipewire by default

https://wiki.archlinux.org/title/PipeWire

I created a new config file following the "Microphone is not detected" section, which looks like this:

context.objects = [
    { factory = adapter
        args = {
            factory.name           = api.alsa.pcm.source
            node.name              = "microphone"
            node.description       = "Undetected Microphone"
            media.class            = "Audio/Source"
            api.alsa.path          = "hw:1,0"
            audio.format           = "S16LE"
            audio.rate             = 48000
    }
]

The issue is still there. To rule out it is a hardware problem, I tested it on Windows too, and it works perfectly
Shall I try pulseaudio, an older kernel peraphs?

If you remove this device, do you still experience the issue?

2 Likes

Yes, I do
Actually, since it is wireless, it is one of the few devices that work flawlessly. But since it's summer and I'd like to avoid using those big headphones, it would be great if this could be sorted out