Manjaro Freezes Occasionally?

My version of Manjaro has occasional freezing issues where I’ll leave the computer for a bit (or sometimes right in the midde of a movie, the desktop will just suddenly deadlock.

Nothing can be accessed, not even Ctrl + F2. The only option is a hard reboot.

How can I solve this issue or get more information to solve it?
Hardware:

    System:    Host: MidnightStarSign Kernel: 5.8.1-3-MANJARO x86_64 bits: 64 compiler: N/A 
               Desktop: KDE Plasma 5.19.4 Distro: Manjaro Linux 
    Machine:   Type: Desktop Mobo: ASUSTeK model: PRIME X570-PRO v: Rev X.0x 
               serial: <superuser/root required> UEFI: American Megatrends v: 1407 date: 04/02/2020 
    CPU:       Topology: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2 
               L2 cache: 3072 KiB 
               flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 94842 
               Speed: 3950 MHz min/max: 2200/3950 MHz Core speeds (MHz): 1: 3950 2: 3950 3: 3950 4: 3950 
               5: 3950 6: 3950 7: 3950 8: 3950 9: 3950 10: 3950 11: 3950 12: 3950 
    Graphics:  Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] vendor: ASRock 
               driver: amdgpu v: kernel bus ID: 0a:00.0 
               Display: x11 server: X.Org 1.20.8 driver: amdgpu FAILED: ati unloaded: modesetting,radeon 
               resolution: 1: 1920x1080~60Hz 2: 1920x1080~60Hz 3: 1920x1080~60Hz 
               OpenGL: renderer: AMD Radeon RX 5600 XT (NAVI10 DRM 3.38.0 5.8.1-3-MANJARO LLVM 10.0.1) 
               v: 4.6 Mesa 20.1.5 direct render: Yes 
    Audio:     Device-1: AMD Navi 10 HDMI Audio driver: snd_hda_intel v: kernel bus ID: 0a:00.1 
               Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
               bus ID: 0c:00.4 
               Device-3: Microdia USB 2.0 Camera type: USB driver: snd-usb-audio,uvcvideo bus ID: 5-2:3 
               Sound Server: ALSA v: k5.8.1-3-MANJARO 
    Network:   Device-1: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: 5.6.0-k port: f000 
               bus ID: 04:00.0 
               IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: 24:4b:fe:5b:08:2a 
    Drives:    Local Storage: total: 4.64 TiB used: 1.65 TiB (35.4%) 
               ID-1: /dev/nvme0n1 vendor: Western Digital model: WDS100T2B0C-00PXH0 size: 931.51 GiB 
               ID-2: /dev/sda vendor: Seagate model: ST2000LM015-2E8174 size: 1.82 TiB 
               ID-3: /dev/sdb vendor: Seagate model: ST380815AS size: 74.51 GiB 
               ID-4: /dev/sdc vendor: Toshiba model: MQ01ABD100 size: 931.51 GiB 
               ID-5: /dev/sdd vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB 
               ID-6: /dev/sde type: USB vendor: Toshiba model: TransMemory size: 14.92 GiB 
               ID-7: /dev/sdf type: USB vendor: SanDisk model: Gaming Xbox 360 size: 7.48 GiB 
    Partition: ID-1: / size: 767.00 GiB used: 485.33 GiB (63.3%) fs: btrfs dev: /dev/dm-0 
               ID-2: /home size: 767.00 GiB used: 485.33 GiB (63.3%) fs: btrfs dev: /dev/dm-0 
    Swap:      ID-1: swap-1 type: partition size: 64.00 GiB used: 0 KiB (0.0%) dev: /dev/dm-1 
    Sensors:   System Temperatures: cpu: 69.1 C mobo: N/A gpu: amdgpu temp: 54 C 
               Fan Speeds (RPM): N/A gpu: amdgpu fan: 0 
    Info:      Processes: 486 Uptime: 32m Memory: 31.33 GiB used: 7.32 GiB (23.4%) Init: systemd 
               Compilers: gcc: 10.1.0 Packages: 1576 Shell: Bash v: 5.0.18 inxi: 3.1.05

I cant see boot options from your output … but newer ryzen … maybe you want to add

iommu=pt idle=nomwait

And … possibly … this

rcu_nocbs=0-15

(assuming you have 16 threads … ie: a 8 core with 2 threads per core … use 0-7 if 8 threads, etc)

Try going to your BIOS and change it from “Power Supply Idle” to “Typical”. That fixes a lot of freezing issues for AMD CPUs.

Will do @ next reboot.

Is this a generic setting or unique to my motherboard?

Do you know exactly where it is?

It’s different for every MOBO. For me it’s:

Advanced > AMD CBS > Zen Common Options > Power Supply Idle Control

Is this a hardware issue, or an issue with Manjaro?

Was this a known problem at one point? How did you learn about this?

Just curious.

Software it seems? Because it only happens in Linux, not Windows.

It’s been a known issue since the first Ryzen series; it’s been all over /r/AMD and Linux forums. I had to do it for my Ryzen 7 1700x. It happens when the CPU is idle, for some reason it freezes.

Also:

Wow, fascinating, I had never heard of this issue.

It only freezes about once per day, and usually when idle.

Needless to say, I can’t really have that with my hectic schedule :sweat_smile: