Crash to black screen if I open Unreal 5 games/the Unreal 5 editor after waking from sleep

If I put windows to sleep, and after waking from sleep I open an unreal 5 game, or the unreal 5 editor, sometimes the whole laptop forcefully restarts and SOMETIMES swaps the IDs of the 2 nvme drives (nvme0n1 becomes nvme1n1 and vice-versa)

Emphasis on sometimes. None of the issues are consistent, they are pretty random, but the circumstances are always the same: I’m on windows (11), I just woke the laptop from sleep, I launch something related to Unreal 5. (so far no Unreal 4 games have caused this, so it’s something from 5)

This doesn’t happen all the time, and I’ve never experienced something similar with any other application, and not at all on linux. Only on windows 11, and only Unreal 5.

This issue also isn’t present on other laptops with the same games and projects, so it’s an issue with my framework 16 (tho idk if it’s with the fw 16 in general, or just mine has this problem)

I’ve even swapped the motherboard for a different reason, and the issue persists. Same with the dGPU, I swapped it for a different reason, but the issue happened before and after as well.

Every once in a while grub gets corrupted and goes into grub-rescue, and I have to reinstall it. This is consistent, every time the crash happens, grub breaks, regardless if the nvme swap happens or not)

edit: Forgot to say it only happens if the taskbar is hidden and Unreal is in fullscreen/borderless.

You mentioned grub, so I am guessing you are dual booting. Are you using secure boot, and does the Linux distro you have ALSO have a secure boot entry?

No, secure boot and tpm are both turned off
And yes, I am dual booting Windows 11 and CachyOS (fancy arch distro)

My guess is that this is related to secure boot and the unreal 5 engine. It is introducing something in at the kernel level (anti-cheat, etc.) that is signed, but since secure boot isn’t enabled it is panicking. This is because the kernel is changing states when resuming from sleep.

This is really just spitballing, but try enabling secure boot and loading Windows 11. Sleep the 16. Wake and then try playing the game. Does it crash?

It didn’t work.
Secure boot didn’t make a difference

1 Like

Maybe turn the TPM on?

Have you already looked in event viewer to see if you can discern a bit more information about the crash and what is causing it?

Here are the events around when the most crash happened naturally
You can see the last event at 14:37

The time is a little messed up because booting into linux rolls windows back 1 or 2 hours sometimes, but the crash happened at 14:41 (I know because I sent a message to a friend immediately afterwards complaining about it), and there was no event between that one and the next boot at 15:19

Maybe I’m looking in the wrong place? I looked at the /Windows Logs/System

I will try TPM but I don’t have the time right now to fix windows and linux again if the crash does happen, I will test TPM tomorrow

1 Like