Graphical corruption leading to hard crash after resuming from sleep

Resuming from sleep, my system woke up to a scary corrupted white screen. I could not do anything, even switching to tty didn’t work. I think this is some kind of corruption related to the graphics card not resuming correctly. Anyway the only way to resume is to hard reset the computer, because I can’t do anything when it happens.

Any clue on how to troubleshoot it? It already did it twice, but most times it does resume correctly.

My system (fix’d):

System:
  Kernel: 5.19.6-200.fc36.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.37-35.fc36 Desktop: KDE Plasma v: 5.25.4 tk: Qt v: 5.15.5 wm: kwin_x11
    dm: SDDM Distro: Fedora release 36 (Thirty Six)
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: ROG STRIX B550-I GAMING v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 2803
    date: 04/28/2022
CPU:
  Info: 6-core model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3
    rev: 0 cache: L1: 384 KiB L2: 3 MiB L3: 32 MiB
  Speed (MHz): avg: 2497 high: 3600 min/max: 2200/4650 boost: enabled
    cores: 1: 2200 2: 2200 3: 3600 4: 2286 5: 2200 6: 2878 7: 2200 8: 2200
    9: 3600 10: 2200 11: 2200 12: 2207 bogomips: 88797
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] driver: amdgpu
    v: kernel arch: RDNA 2 pcie: speed: 16 GT/s lanes: 16 ports: active: DP-1
    empty: DP-2,DP-3,HDMI-A-1 bus-ID: 09:00.0 chip-ID: 1002:73bf
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 22.1.3
    compositor: kwin_x11 driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,radeon,vesa gpu: amdgpu display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96
  Monitor-1: DP-1 mapped: DisplayPort-0 model: Samsung LC32G7xT
    res: 2560x1440 dpi: 93 diag: 806mm (31.7")
  OpenGL: renderer: AMD Radeon RX 6800 (sienna_cichlid LLVM 14.0.0 DRM 3.47
  5.19.6-200.fc36.x86_64)
    v: 4.6 Mesa 22.1.7 direct render: Yes
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel
    pcie: speed: 16 GT/s lanes: 16 bus-ID: 09:00.1 chip-ID: 1002:ab28
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 0b:00.4 chip-ID: 1022:1487
  Sound Server-1: ALSA v: k5.19.6-200.fc36.x86_64 running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.57 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: speed: 5 GT/s
    lanes: 1 bus-ID: 06:00.0 chip-ID: 8086:2723
  IF: wlp6s0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-5:2 chip-ID: 8087:0029
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Drives:
  Local Storage: total: 5.46 TiB used: 2.09 TiB (38.4%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 980 PRO 500GB
    size: 465.76 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 51.9 C
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 970 EVO Plus 500GB
    size: 465.76 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 48.9 C
  ID-3: /dev/sda vendor: Seagate model: ST5000LM000-2AN170 size: 4.55 TiB
    speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: / size: 72.93 GiB used: 14.74 GiB (20.2%) fs: btrfs
    dev: /dev/nvme0n1p6
  ID-2: /boot size: 973.4 MiB used: 293.1 MiB (30.1%) fs: ext4
    dev: /dev/nvme0n1p5
  ID-3: /boot/efi size: 96 MiB used: 46.9 MiB (48.8%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 72.93 GiB used: 14.74 GiB (20.2%) fs: btrfs
    dev: /dev/nvme0n1p6
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 2.5 MiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 43.0 C mobo: 42.0 C gpu: amdgpu temp: 60.0 C
    mem: 58.0 C
  Fan Speeds (RPM): fan-1: 719 gpu: amdgpu fan: 682
Info:
  Processes: 425 Uptime: 3h 54m Memory: 15.53 GiB used: 10.96 GiB (70.6%)
  Init: systemd v: 250 target: graphical (5) default: graphical Compilers:
  gcc: 12.2.1 Packages: note: see --pkg flatpak: 14 Shell: Bash v: 5.1.16
  running-in: konsole inxi: 3.3.19

By the way, I haven’t had this issue before, for example on KDE Neon.

You mentioned that it may be caused by graphical driver but the inxi info you posted does not have the GPU info.

Please post the output of inxi -Fzxx for us.

Sorry, I copypasted something old. Here it is.

System:
  Kernel: 5.19.6-200.fc36.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.37-35.fc36 Desktop: KDE Plasma v: 5.25.4 tk: Qt v: 5.15.5 wm: kwin_x11
    dm: SDDM Distro: Fedora release 36 (Thirty Six)
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: ROG STRIX B550-I GAMING v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 2803
    date: 04/28/2022
CPU:
  Info: 6-core model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3
    rev: 0 cache: L1: 384 KiB L2: 3 MiB L3: 32 MiB
  Speed (MHz): avg: 2497 high: 3600 min/max: 2200/4650 boost: enabled
    cores: 1: 2200 2: 2200 3: 3600 4: 2286 5: 2200 6: 2878 7: 2200 8: 2200
    9: 3600 10: 2200 11: 2200 12: 2207 bogomips: 88797
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] driver: amdgpu
    v: kernel arch: RDNA 2 pcie: speed: 16 GT/s lanes: 16 ports: active: DP-1
    empty: DP-2,DP-3,HDMI-A-1 bus-ID: 09:00.0 chip-ID: 1002:73bf
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 22.1.3
    compositor: kwin_x11 driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,radeon,vesa gpu: amdgpu display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96
  Monitor-1: DP-1 mapped: DisplayPort-0 model: Samsung LC32G7xT
    res: 2560x1440 dpi: 93 diag: 806mm (31.7")
  OpenGL: renderer: AMD Radeon RX 6800 (sienna_cichlid LLVM 14.0.0 DRM 3.47
  5.19.6-200.fc36.x86_64)
    v: 4.6 Mesa 22.1.7 direct render: Yes
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel
    pcie: speed: 16 GT/s lanes: 16 bus-ID: 09:00.1 chip-ID: 1002:ab28
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 0b:00.4 chip-ID: 1022:1487
  Sound Server-1: ALSA v: k5.19.6-200.fc36.x86_64 running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.57 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: speed: 5 GT/s
    lanes: 1 bus-ID: 06:00.0 chip-ID: 8086:2723
  IF: wlp6s0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-5:2 chip-ID: 8087:0029
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Drives:
  Local Storage: total: 5.46 TiB used: 2.09 TiB (38.4%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 980 PRO 500GB
    size: 465.76 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 51.9 C
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 970 EVO Plus 500GB
    size: 465.76 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 48.9 C
  ID-3: /dev/sda vendor: Seagate model: ST5000LM000-2AN170 size: 4.55 TiB
    speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: / size: 72.93 GiB used: 14.74 GiB (20.2%) fs: btrfs
    dev: /dev/nvme0n1p6
  ID-2: /boot size: 973.4 MiB used: 293.1 MiB (30.1%) fs: ext4
    dev: /dev/nvme0n1p5
  ID-3: /boot/efi size: 96 MiB used: 46.9 MiB (48.8%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 72.93 GiB used: 14.74 GiB (20.2%) fs: btrfs
    dev: /dev/nvme0n1p6
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 2.5 MiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 43.0 C mobo: 42.0 C gpu: amdgpu temp: 60.0 C
    mem: 58.0 C
  Fan Speeds (RPM): fan-1: 719 gpu: amdgpu fan: 682
Info:
  Processes: 425 Uptime: 3h 54m Memory: 15.53 GiB used: 10.96 GiB (70.6%)
  Init: systemd v: 250 target: graphical (5) default: graphical Compilers:
  gcc: 12.2.1 Packages: note: see --pkg flatpak: 14 Shell: Bash v: 5.1.16
  running-in: konsole inxi: 3.3.19