No sound even though device is recognised, in use, and set up correctly.

After doing tons of searching I found a solution that sort of helped, it was to run

sudo rmmod snd-hda-intel -f; sudo modprobe snd-hda-intel

This initially immediately solved my issue, but the next time it stopped working I had to run the command several times before it worked, and now the command won't fix it at all.

When the issue first popped up, I remember I temporarily got my audio to work by reinstalling some packages, some alsa ones and also pulseaudio, now that's not working either.

Here's alsa information...

Additionally, the speakers (only when not working) will crackle and pop occasionally, and every time I unload and reload the kernel module, it sounds like someone is hotplugging my speakers.

The speakers definitely aren't the problem, I tested with my phone. The 5.1 surround definitely isn't a problem, I tested thoroughly with it just the 2.1 jack in.

Additionally, pulseaudio, or alsa, or whatever actually monitors these things, CAN see when I plug and unplug the speakers. The playback option goes away when it's unplugged.

The same situation with the front jack as well.

CPU: AMD Ryzen 7 3700X (16) @ 3.600GHz
GPU: AMD ATI Radeon RX 5600 OEM/5600 XT / 5700/5700 XT
Sound device: Analog on ASRock A320M-HDV (yeah, I know it's not great, but it wasn't exactly my choice which one I got with the proc, long, hopefully irrelevant story.)
Kernel: 5.7
All packages up to date with stable

Oh, the command worked again, after not working when I ran it DOZENS of times. And everything looks the same.

I'm really at a loss.

Now it stopped working randomly while listening to music, I didn't let it suspend or anything.

I ran the command again, and the audio came back, but then it immediately went away again.

I ran it again, and it played for about 1 minute, before stopping again.

This is really weird. Could it be a hardware problem?

Ok - well a completely useless addition to the thread here - but I got sick with audio problems, back in 2009 - if it didn't crackle or hum due to cable routing (I had wires connected from my Amp to the PC casing and a cold water pipe too).

Is there no way you can just run HDMI to a receiver?

That might be the best "solution". I have HDMI seen as an audio device, so and I think that with a little research I could find an audio splitter that's compatible with my speakers.

Hi there, and welcome to the Manjaro Community!

My setup is similar to yours -- I have a ASRock X370 motherboard but with a Ryzen 5 1600 and a Nvidia GTX 1060, and I also use analog output. But sound works completely fine on my end.

How long ago did the audio issues begin to crop up, and did it first appear randomly, since installing Manjaro, or as a result of changing settings?

Did you get any error logs in journalctl related to ALSA and/or PulseAudio?

Finally, what's your inxi -Fxzc0 --no-host output?

Thanks! Been using it since around 2018 after some distro-hopping.

The issues are brand new, because this is an absolutely fresh install on new hardware. It's been happening since day 1, and this is day 2.

journalctl output is

t0rb1t@Aragorn ~> journalctl
-- Logs begin at Tue 2020-07-07 22:39:10 CST, end at Thu 2020-07-09 22:53:34 CST. --
Jul 07 22:39:10 Aragorn kernel: Linux version 5.6.7-1-MANJARO (builder@f2f5d17b78eb) (gcc version 9.3.0 (Arch Li>
Jul 07 22:39:10 Aragorn kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.6-x86_64 root=UUID=06761238-9f6e-465e-9>
Jul 07 22:39:10 Aragorn kernel: KERNEL supported cpus:
Jul 07 22:39:10 Aragorn kernel:   Intel GenuineIntel
Jul 07 22:39:10 Aragorn kernel:   AMD AuthenticAMD
Jul 07 22:39:10 Aragorn kernel:   Hygon HygonGenuine
Jul 07 22:39:10 Aragorn kernel:   Centaur CentaurHauls
Jul 07 22:39:10 Aragorn kernel:   zhaoxin   Shanghai  
Jul 07 22:39:10 Aragorn kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Jul 07 22:39:10 Aragorn kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Jul 07 22:39:10 Aragorn kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Jul 07 22:39:10 Aragorn kernel: x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
Jul 07 22:39:10 Aragorn kernel: x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacte>
Jul 07 22:39:10 Aragorn kernel: BIOS-provided physical RAM map:
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x00000000000a0000-0x00000000000fffff] reserved
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x0000000000100000-0x0000000009cfffff] usable
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x0000000009d00000-0x0000000009ffffff] reserved
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x000000000a000000-0x000000000a1fffff] usable
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x000000000a200000-0x000000000a20bfff] ACPI NVS
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x000000000a20c000-0x000000000affffff] usable
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x000000000b000000-0x000000000b01ffff] reserved
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x000000000b020000-0x00000000da58cfff] usable
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x00000000da58d000-0x00000000dbaa6fff] reserved
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x00000000dbaa7000-0x00000000dbc28fff] usable
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x00000000dbc29000-0x00000000dc03efff] ACPI NVS
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x00000000dc03f000-0x00000000dcbfcfff] reserved
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x00000000dcbfd000-0x00000000dcc8bfff] type 20
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x00000000dcc8c000-0x00000000deffffff] usable
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x00000000df000000-0x00000000dfffffff] reserved
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x00000000fd000000-0x00000000ffffffff] reserved
Jul 07 22:39:10 Aragorn kernel: BIOS-e820: [mem 0x0000000100000000-0x000000041f37ffff] usable
Jul 07 22:39:10 Aragorn kernel: NX (Execute Disable) protection: active
Jul 07 22:39:10 Aragorn kernel: efi: EFI v2.70 by American Megatrends
Jul 07 22:39:10 Aragorn kernel: efi:  ACPI 2.0=0xdbfbc000  ACPI=0xdbfbc000  SMBIOS=0xdcac2000  SMBIOS 3.0=0xdcac>
Jul 07 22:39:10 Aragorn kernel: SMBIOS 3.2.1 present.
Jul 07 22:39:10 Aragorn kernel: DMI: To Be Filled By O.E.M. To Be Filled By O.E.M./A320M-HDV R4.0, BIOS P3.70 11>
Jul 07 22:39:10 Aragorn kernel: tsc: Fast TSC calibration failed
Jul 07 22:39:10 Aragorn kernel: e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
Jul 07 22:39:10 Aragorn kernel: e820: remove [mem 0x000a0000-0x000fffff] usable
Jul 07 22:39:10 Aragorn kernel: last_pfn = 0x41f380 max_arch_pfn = 0x400000000
Jul 07 22:39:10 Aragorn kernel: MTRR default type: uncachable
Jul 07 22:39:10 Aragorn kernel: MTRR fixed ranges enabled:
Jul 07 22:39:10 Aragorn kernel:   00000-9FFFF write-back
Jul 07 22:39:10 Aragorn kernel:   A0000-BFFFF write-through
Jul 07 22:39:10 Aragorn kernel:   C0000-FFFFF write-protect
Jul 07 22:39:10 Aragorn kernel: MTRR variable ranges enabled:
Jul 07 22:39:10 Aragorn kernel:   0 base 000000000000 mask FFFF80000000 write-back
Jul 07 22:39:10 Aragorn kernel:   1 base 000080000000 mask FFFFC0000000 write-back
Jul 07 22:39:10 Aragorn kernel:   2 base 0000C0000000 mask FFFFE0000000 write-back
Jul 07 22:39:10 Aragorn kernel:   3 base 0000DC320000 mask FFFFFFFF0000 uncachable
Jul 07 22:39:10 Aragorn kernel:   4 disabled
Jul 07 22:39:10 Aragorn kernel:   5 disabled
Jul 07 22:39:10 Aragorn kernel:   6 disabled
Jul 07 22:39:10 Aragorn kernel:   7 disabled
Jul 07 22:39:10 Aragorn kernel: TOM2: 0000000420000000 aka 16896M

This is the output of

inxi -Fxzc0 --no-host

System:    Kernel: 5.7.0-3-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 Desktop: KDE Plasma 5.18.5 
           Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: ASRock model: A320M-HDV R4.0 serial: <filter> UEFI: American Megatrends 
           v: P3.70 date: 11/13/2019 
CPU:       Topology: 8-Core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 115233 
           Speed: 3249 MHz min/max: 2200/3600 MHz Core speeds (MHz): 1: 2400 2: 2159 3: 3724 4: 2058 5: 2481 
           6: 2075 7: 1912 8: 1887 9: 3600 10: 2191 11: 3056 12: 1881 13: 1901 14: 2057 15: 2388 16: 2173 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] 
           vendor: Gigabyte driver: amdgpu v: kernel bus ID: 09:00.0 
           Display: x11 server: X.Org 1.20.8 driver: amdgpu FAILED: ati unloaded: modesetting,radeon 
           resolution: 1920x1080~60Hz, 1920x1080~60Hz, 2560x1080~60Hz 
           OpenGL: renderer: AMD Radeon RX 5700 XT (NAVI10 DRM 3.37.0 5.7.0-3-MANJARO LLVM 10.0.0) 
           v: 4.6 Mesa 20.0.7 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Navi 10 HDMI Audio driver: snd_hda_intel v: kernel 
           bus ID: 09:00.1 
           Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: ASRock 
           driver: snd_hda_intel v: kernel bus ID: 0b:00.4 
           Sound Server: ALSA v: k5.7.0-3-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASRock driver: r8169 
           v: kernel port: f000 bus ID: 06:00.0 
           IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 8.64 TiB used: 3.61 TiB (41.7%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: WDS100T3X0C-00SJG0 size: 931.51 GiB 
           ID-2: /dev/sda vendor: Western Digital model: WD2003FZEX-00Z4SA0 size: 1.82 TiB 
           ID-3: /dev/sdb vendor: Samsung model: HD204UI size: 1.82 TiB 
           ID-4: /dev/sdc vendor: Crucial model: CT500MX500SSD1 size: 465.76 GiB 
           ID-5: /dev/sdd vendor: Western Digital model: WD4004FZWX-00GBGB0 size: 3.64 TiB 
Partition: ID-1: / size: 98.27 GiB used: 10.56 GiB (10.7%) fs: ext4 dev: /dev/sdc2 
           ID-2: /home size: 915.89 GiB used: 433.55 GiB (47.3%) fs: ext4 dev: /dev/nvme0n1p1 
           ID-3: swap-1 size: 20.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sdc3 
Sensors:   System Temperatures: cpu: 55.5 C mobo: N/A gpu: amdgpu temp: 54 C 
           Fan Speeds (RPM): N/A gpu: amdgpu fan: 0 
Info:      Processes: 343 Uptime: 4h 33m Memory: 15.57 GiB used: 3.76 GiB (24.1%) Init: systemd Compilers: 
           gcc: 10.1.0 Shell: fish v: 3.1.2 inxi: 3.0.37

I should also mention that I tested it live again, and the sound still stopped after a suspend, and the same command would bring it back after a couple of tries.

It appears you posted the first few lines of journalctl, which actually isn't what I'm looking for. Can you post the output of journalctl | grep alsa and journalctl | grep pulseaudio?

In case you don't know, the grep command after the pipe (|) lets you search through journalctl based on the characters you provided.

And as for your inxi output, it turns out that my motherboard has a different audio chip than yours despite having the same manufacturer and probably the same chipset series.

Sorry about that, simple mistake.

Alsa journal
Pulse journal

Also, I've ordered a USB sound card, it should be here in a couple of days.
That may be the best solution.

Forum kindly sponsored by