System is randomly freezing

My system will freeze at random, it won’t let me use the keyboard, the mouse cursor usually can be moved but it can’t actually do anything. It doesn’t unfreeze until I reboot by holding down the button on my PC. I’ve looked through the similar topics but none of the solutions there work. I’d appreciate any help and I will give any requested info

Edit:
I’ve also noticed that using the media keys always causes the system to freeze, though it still happens at other times

inxi -Fxxxz

System:
  Kernel: 5.12.0-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  Desktop: Cinnamon 4.8.6 tk: GTK 3.24.29 vt: 1 dm: LightDM 1.30.0 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop System: Dell product: G5 5090 v: N/A serial: <filter> 
  Chassis: type: 3 serial: <filter> 
  Mobo: Dell model: 0DXJD9 v: A00 serial: <filter> UEFI: Dell v: 1.4.0 
  date: 10/20/2020 
CPU:
  Info: 6-Core model: Intel Core i5-9400 bits: 64 type: MCP arch: Kaby Lake 
  note: check rev: D cache: L2: 9 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 34814 
  Speed: 800 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 5: 800 6: 800 
Graphics:
  Device-1: NVIDIA TU117 [GeForce GTX 1650] vendor: Dell driver: nvidia 
  v: 460.73.01 bus-ID: 01:00.0 chip-ID: 10de:1f82 class-ID: 0300 
  Display: server: X.Org 1.20.11 driver: loaded: nvidia 
  resolution: 1920x1080~60Hz s-dpi: 96 
  OpenGL: renderer: GeForce GTX 1650/PCIe/SSE2 v: 4.6.0 NVIDIA 460.73.01 
  direct render: Yes 
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Dell driver: snd_hda_intel 
  v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403 
  Device-2: NVIDIA vendor: Dell driver: snd_hda_intel v: kernel 
  bus-ID: 01:00.1 chip-ID: 10de:10fa class-ID: 0403 
  Sound Server-1: ALSA v: k5.12.0-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.26 running: no 
Network:
  Device-1: Realtek vendor: Dell driver: r8169 v: kernel port: 3000 
  bus-ID: 03:00.0 chip-ID: 10ec:2502 class-ID: 0200 
  IF: enp3s0 state: down mac: <filter> 
  Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter 
  vendor: Dell driver: ath10k_pci v: kernel port: 3000 bus-ID: 04:00.0 
  chip-ID: 168c:0042 class-ID: 0280 
  IF: wlp4s0 state: up mac: <filter> 
Bluetooth:
  Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 1-14:7 
  chip-ID: 0cf3:e009 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends 
Drives:
  Local Storage: total: 3.2 TiB used: 377.98 GiB (11.6%) 
  ID-1: /dev/nvme0n1 vendor: Toshiba model: KBG40ZNS256G NVMe 256GB 
  size: 238.47 GiB speed: 31.6 Gb/s lanes: 4 rotation: SSD serial: <filter> 
  rev: 10410104 scheme: GPT 
  ID-2: /dev/sda vendor: Seagate model: ST1000DM010-2EP102 size: 931.51 GiB 
  speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: CC45 scheme: GPT 
  ID-3: /dev/sdb vendor: Seagate model: ST2000LM015-2E8174 size: 1.82 TiB 
  speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter> rev: 0001 
  ID-4: /dev/sdc type: USB vendor: Lexar model: USB Flash Drive 
  size: 7.47 GiB rotation: SSD serial: <filter> rev: 1100 
  ID-5: /dev/sdd type: USB vendor: HP model: x900w size: 231.6 GiB 
  serial: <filter> rev: PMAP scheme: MBR 
Partition:
  ID-1: / size: 225.02 GiB used: 15.83 GiB (7.0%) fs: ext4 
  dev: /dev/nvme0n1p3 
  ID-2: /boot/efi size: 998 MiB used: 296 KiB (0.0%) fs: vfat 
  dev: /dev/nvme0n1p1 
  ID-3: /home size: 723.27 GiB used: 46.76 GiB (6.5%) fs: ext4 
  dev: /dev/dm-0 mapped: home1 
Swap:
  ID-1: swap-1 type: partition size: 7.81 GiB used: 0 KiB (0.0%) 
  priority: -2 dev: /dev/nvme0n1p2 
Sensors:
  System Temperatures: cpu: 54.0 C mobo: N/A gpu: nvidia temp: 41 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 20% 
Info:
  Processes: 255 Uptime: 7m wakeups: 0 Memory: 23.34 GiB 
  used: 2.53 GiB (10.9%) Init: systemd v: 247 target: multi-user.target 
  Compilers: gcc: 10.2.0 Packages: 1335 pacman: 1328 flatpak: 7 Shell: Bash 
  v: 5.1.0 running-in: gnome-terminal inxi: 3.3.04

Did you try other kernels besides the newest one?

Never do that to your system, enable/try these first:

1 Like

Yes, it didn’t help anything

Thank you

This is indication of a still working machine.
Can you still ping it from another device or ssh into it?
What about switching to another tty?