System freezing after entering suspend

Hi everyone.
I’ve been having this issue for some weeks:
My system has been freezing when going into sleep, particularly, my GPU fans turn on and the case LEDs turn on, but the system is completely unresponsive to any input and there’s no output to my monitor. Networking is also gone since I can’t get any pings. Weird thing: If I unplug the PSU from my UPS and reconnect it quickly, the system comes back. If I switch off and on the PSU, the system turns off and requires switching it on from the case’s power button. I can consistently reproduce this by playing Final Fantasy XIV, but not when I play other games.

I appreciate any help.

RX 7800 XT
Ryzen 7 5800X3D
Gigabyte B550 AORUS ELITE AX V2
Asus Monitor via DP.

Could it be a PSU issue / on it’s way out? Sounds like you are a Gamer, do you have a high powered graphics card is your PSU powerful enough. I had similar issue when a PSU of mine was on its way out - fans spinning but nobody home as it were.

Hiya. Are you running 7.0.x kernel by any chance? You can check it by running uname -r

Yes, updated 2 days ago, 7.0.3; but this has been happening since 6.19.

It only happens with this game and not, for example, Clair Obscure: Expedition 33 which is a much more demanding game.

Could you try downgrading to 6.18.26 by installing kernel-longterm and see if it keeps happening?

Yes and I can confirm the bug happens in kernel-longterm too, 6.18.26.

Then you probably have to go through sleep troubleshooting steps. Start by checking if you can see anything off in sudo journalctl -b If nothing there you may need to mess with /sys/power/pm_trace and /sys/power/pm_test. I could find it described a bit here https://wiki.ubuntu.com/DebuggingKernelSuspend

I don’t see system attempting to sleep in that log. sudo journalctl -b shows log for current boot. If after failed sleep you rebooted you need to check logs for previous boot with sudo journalctl -b -1. They should have something like systemd-logind[1135]: The system will suspend now! or anything mentioning suspend.

It suspends in:
May 10 18:04:54 klaasje systemd-logind[1343]: The system will suspend now!

Github truncated the file… I see it now. I found those errors in your log:

May 10 18:05:18 klaasje kernel: xhci_hcd 0000:02:00.0: xHC error in resume, USBSTS 0x401, Reinit
May 10 18:05:18 klaasje kernel: usb usb1: root hub lost power or was reset
May 10 18:05:18 klaasje kernel: usb usb2: root hub lost power or was reset
May 10 18:05:18 klaasje kernel: usb 1-1: WARN: invalid context state for evaluate context command.
May 10 18:05:18 klaasje kernel: usb 1-1: reset full-speed USB device number 2 using xhci_hcd
May 10 18:05:18 klaasje kernel: amdgpu 0000:09:00.0: amdgpu: SMU driver if version not matched
May 10 18:05:18 klaasje kernel: ahci 0000:02:00.1: port does not support device sleep
May 10 18:05:18 klaasje kernel: usb 1-6: reset high-speed USB device number 4 using xhci_hcd
May 10 18:05:18 klaasje kernel: usb 1-5: WARN: invalid context state for evaluate context command.
May 10 18:05:18 klaasje kernel: usb 1-5: reset full-speed USB device number 3 using xhci_hcd
May 10 18:05:18 klaasje kernel: usb 1-7: WARN: invalid context state for evaluate context command.
May 10 18:05:18 klaasje kernel: usb 1-7: reset full-speed USB device number 5 using xhci_hcd
May 10 18:05:24 klaasje kernel: amdgpu 0000:09:00.0: amdgpu: VM memory stats for proc kscreenlocker_g(27427) task kscreenloc:cs0(27401) is non-zero when fini
May 10 18:06:20 klaasje kwin_wayland[2227]: Libinput: event7  - ckb1: Corsair Gaming SCIMITAR RGB Mouse vM: client bug: event processing lagging behind by 23ms, your system is too slow
May 10 18:06:23 klaasje kernel: amdgpu 0000:09:00.0: amdgpu: VM memory stats for proc (0) task (0) is non-zero when fini

Most of them are USB errors and they shouldn’t be a problem. But I also see three weird AMD errors and one minor KDE warning. Unfortunately two of them got cut off early. :frowning_face: It sure looks like GPU fails to resume from sleep. I don’t have AMD GPU, so I can’t verify it on my PC. I don’t see existing issues at OpenSUSE’s bugzilla either. So you might need to open a new one for your issue.

@lavadrop Hi, sounds similar? https://www.reddit.com/r/linux_gaming/comments/1ol9kaq/amdgpu_crashing_while_playing_a_game_what_should/?

The difference with mine is that I get the crash only when I suspend, no crash while the game is running.

Hey everyone, apparently it’s my Logitech K650 Logi Bolt:

However, I don’t know why waking up freezes my GPU.