Fedora KDE, the screen freezes after about an hour of activity. The last few moments of audio playing before the freeze continue to loop, and the keyboard and mouse stop being detected by the system

The problem occurring is similar to the one described in this post: Fedora 40 KDE system freezes/locks up after an hour or 2.

The system freezes completely. The keyboard, moreover, does not even seem to receive power anymore, since if I press the caps lock button, the light indicating caps lock activation does not light up. If there was audio playing, the last few moments played continue to loop. The only way to get out of the situation described is to force the computer to shut down with the shut down button.
I am using Fedora in dual boot with Windows 10, Windows is installed on the SSD and Fedora on the HDD of the computer.
Please tell me what commands I can use to get in-depth information about the error so that I can share it, Fedora is the first Linux system I am using “seriously” to avoid Windows 11 but this problem is definitely annoying.

General specifications of my computer: 16gb RAM, Ryzen 5 2400g with VEGA 11. Windows 10 works fine and has no issues, Fedora is updated to the latest version of Fedora KDE plasma desktop.

Thank you in advance for your help!

Commands to findout information about the system:

Description of your hardware: we like to use inxi inxi -Fzxx
The logs are all stored in two journals, the system journal and the user journal.
Use journalctl to view the system journal and journalctl --user to view the user journal.

Do you have another computer that you could use to ssh into the failing system?
If so then ssh into the system and look at the recent system logs.

A broken caps lock could mean that the linux kernel has crash.
Or it could be an issue with the USB port that the keyboard is plugged into.
Try using a different USB port. Also you can try unplugging and plugging in the keyboard to see if it comes to life.

The power button should do a controlled shutdown. Does that work?
If it does then you can view the logs of previous boot using sudo journalctl -b -1.
Look for kernel panics, messages about USB.

It might be that you have a hardware issue. It would be worth testing your memory using the memtest tool. You would need to run it for a long time, suggest you leave it running overnight.

I will try that, thank you, for now I tried installing the GNOME Desktop Environment along with KDE and, interesting thing, Fedora now is not crashing… I will do some testing.

Is the system freezing while you’re actively using it or after sitting unused for a while? If the later, then I’m wondering if the system is trying to go to sleep (suspend). There have been a lot of bugs lately causing suspend problems or problems trying to resume after a suspend. Go to your Gnome or KDE settings are see how long your system is set to suspend after no activity and see if that matches how long before you hit the hang. I’m hitting a new problem trying to resume from suspend after updating to the 6.12.10 kernel.

Hello, thanks for your answer, the system freezes also while I’m using it… I also set the system to never suspend when not active.

Okay, so, the USB port isn’t the problem, actually a few seconds after the freeze the keyboard still activactes the caps lock (even if after some seconds I pressed the caps button).
The power button doesn’t do anything if I press it once (it just shuts the monitor but the computer still works, as I can hear from the noise and because the light of the button would start flashing, instead it stays still).

I ran the commands you suggested, they all worked succesfully and I exported their content to .txt files; I tried to look at them and there are things that seem to “fail” now and then but I’m really new to Linux and I have no idea about what I’m looking at most of times…

Do you think it would be safe to upload the output of the said commands here in my post so someone can help me or do they contain sensitive information?

P. S.: Also GNOME freezes, now, by the way. :slight_smile:

I found this, it looks like the point where the freeze happens… I would upload the whole .txt file on pasebin…

gen 27 19:40:50 fedora audit: BPF prog-id=142 op=UNLOAD
gen 27 19:40:50 fedora audit: BPF prog-id=141 op=UNLOAD
gen 27 19:40:50 fedora audit: BPF prog-id=140 op=UNLOAD
gen 27 19:41:15 fedora kernel: amdgpu 0000:09:00.0: amdgpu: Dumping IP State
gen 27 19:41:20 fedora kernel: hrtimer: interrupt took 241977908 ns
gen 27 19:41:22 fedora gnome-shell[2254]: libinput error: event2  - LIDL Deskset LIDL Deskset Mouse: client bug: event processing lagging behind by 80ms, your system is too slow
gen 27 19:41:44 fedora kernel: watchdog: BUG: soft lockup - CPU#2 stuck for 22s! [kworker/u32:0:11]
gen 27 19:41:44 fedora kernel: CPU#2 Utilization every 4s during lockup:
gen 27 19:41:48 fedora kernel:         #1:   2% system,          0% softirq,          0% hardirq,          0% idle
gen 27 19:41:48 fedora kernel:         #2:   2% system,          0% softirq,          0% hardirq,          0% idle
gen 27 19:41:48 fedora kernel:         #3:   2% system,          0% softirq,          0% hardirq,          0% idle
gen 27 19:41:48 fedora kernel:         #4:   2% system,          0% softirq,          0% hardirq,          0% idle
gen 27 19:41:48 fedora kernel:         #5:   2% system,          0% softirq,          0% hardirq,          0% idle

Also, here are my pc specs:

System:
  Kernel: 6.12.10-200.fc41.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 14.2.1
  Console: pty pts/2 wm: gnome-shell DM: 1: GDM 2: SDDM note: stopped
    Distro: Fedora Linux 41 (KDE Plasma)
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME B450M-A v: Rev X.0x
    serial: <filter> part-nu: SKU BIOS: American Megatrends v: 4002
    date: 02/24/2023
CPU:
  Info: quad core model: AMD Ryzen 5 2400G with Radeon Vega Graphics bits: 64
    type: MT MCP arch: Zen rev: 0 cache: L1: 384 KiB L2: 2 MiB L3: 4 MiB
  Speed (MHz): avg: 1600 min/max: 1600/3900 boost: disabled cores: 1: 1600
    2: 1600 3: 1600 4: 1600 5: 1600 6: 1600 7: 1600 8: 1600 bogomips: 62400
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Raven Ridge [Radeon Vega Series
    / Radeon Mobile Series] vendor: ASUSTeK PRIME driver: amdgpu v: kernel
    arch: GCN-5 pcie: speed: 8 GT/s lanes: 16 ports: active: DP-1
    empty: DVI-D-1,HDMI-A-1 bus-ID: 09:00.0 chip-ID: 1002:15dd temp: 35.0 C
  Display: unspecified server: X.Org v: 24.1.4 with: Xwayland v: 24.1.4
    compositor: gnome-shell driver: dri: radeonsi gpu: amdgpu display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: DP-1 model: Philips PHL 223V5 res: 1920x1080 hz: 60 dpi: 102
    diag: 547mm (21.5")
  API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: swrast
    gbm: drv: radeonsi surfaceless: drv: radeonsi x11: drv: radeonsi
    inactive: wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.3.3 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon Vega 11 Graphics (radeonsi raven
    LLVM 19.1.5 DRM 3.59 6.12.10-200.fc41.x86_64) device-ID: 1002:15dd
  API: Vulkan v: 1.4.304 surfaces: xcb,xlib device: 0 type: integrated-gpu
    driver: N/A device-ID: 1002:15dd device: 1 type: cpu driver: N/A
    device-ID: 10005:0000
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo de: kscreen-doctor
    wl: wayland-info x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP
    Audio vendor: ASUSTeK PRIME B450M-A driver: snd_hda_intel v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 09:00.1 chip-ID: 1002:15de
  Device-2: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio
    vendor: ASUSTeK PRIME B450M-A driver: snd_hda_intel v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 09:00.6 chip-ID: 1022:15e3
  API: ALSA v: k6.12.10-200.fc41.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.2.7 status: off with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Intel Wireless 3165 driver: iwlwifi v: kernel pcie:
    speed: 2.5 GT/s lanes: 1 bus-ID: 01:00.0 chip-ID: 8086:3165
  IF: wlp1s0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK RTL8111H driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 08:00.0 chip-ID: 10ec:8168
  IF: enp8s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface driver: btusb v: 0.8 type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 1-6:2 chip-ID: 8087:0a2a
  Report: btmgmt ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 4.2 lmp-v: 8
Drives:
  Local Storage: total: 1.94 TiB used: 148.28 GiB (7.5%)
  ID-1: /dev/sda vendor: Hitachi model: HUA722020ALA330 size: 1.82 TiB
    speed: 3.0 Gb/s serial: <filter> temp: 28 C
  ID-2: /dev/sdb vendor: Foresee model: 128GB SSD size: 119.24 GiB
    speed: 6.0 Gb/s serial: <filter> temp: 30 C
Partition:
  ID-1: / size: 409.16 GiB used: 147.85 GiB (36.1%) fs: btrfs dev: /dev/sda3
  ID-2: /boot size: 973.4 MiB used: 446.1 MiB (45.8%) fs: ext4
    dev: /dev/sda2
  ID-3: /home size: 409.16 GiB used: 147.85 GiB (36.1%) fs: btrfs
    dev: /dev/sda3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 47.6 C mobo: N/A gpu: amdgpu temp: 47.0 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB note: est. available: 13.55 GiB used: 3.18 GiB (23.5%)
  Processes: 402 Power: uptime: 24m wakeups: 0 Init: systemd v: 256
    target: graphical (5) default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 25
    Compilers: N/A Shell: Sudo v: 1.9.15p5 running-in: ptyxis-agent inxi: 3.3.37

Try to post as pre-formatted text here.