X11 freezes while using dedicated GPU (prime-run) for Minecraft

OS: Garuda Linux
GPU: GTX 1050 Mobile
Minecraft 1.19.2 Fabric

Hello. I am using the NVIDIA 530.41.03 drivers on my optimus laptop (DELL XPS 15 9560). Launching Minecraft: Java Edition in fullscreen with prime-run causes X11 to freeze up, not letting me enter a TTY or do anything. Steam games using prime-run are unaffected by this problem.

nvidia-bug-report.log (23.8 MB)

[   136.885] (WW) modeset(0): Present-flip: queue async flip during flip on CRTC 0 failed: Invalid argument
[   136.917] (WW) modeset(0): Present-flip: queue async flip during flip on CRTC 0 failed: Invalid argument
[   136.929] (WW) modeset(0): Present-flip: queue async flip during flip on CRTC 0 failed: Invalid argument
[   136.945] (WW) modeset(0): Present-flip: queue async flip during flip on CRTC 0 failed: Invalid argument
[   136.964] (WW) modeset(0): Present-flip: queue async flip during flip on CRTC 0 failed: Invalid argument
[   136.977] (WW) modeset(0): Present-flip: queue async flip during flip on CRTC 0 failed: Invalid argument
[   136.997] (WW) modeset(0): Present-flip: queue async flip during flip on CRTC 0 failed: Invalid argument
[   137.014] (WW) modeset(0): Present-flip: queue async flip during flip on CRTC 0 failed: Invalid argument
[   137.030] (WW) modeset(0): Present-flip: queue async flip during flip on CRTC 0 failed: Invalid argument
[   137.047] (WW) modeset(0): Present-flip: queue async flip during flip on CRTC 0 failed: Invalid argument
[   137.063] (WW) modeset(0): Present-flip: queue async flip during flip on CRTC 0 failed: Invalid argument
[   137.080] (WW) modeset(0): Present-flip: detected too frequent flip errors, disabling logs until frequency is reduced
[   160.013] (WW) modeset(0): flip queue retry
[   161.013] (WW) modeset(0): flip queue retry
[   177.015] (WW) modeset(0): flip queue retry
[   178.015] (WW) modeset(0): flip queue retry

This rather looks like a known i915 issue, async flip was gradually enabled on all intel igpus but on some, it doesn’t work.

What should I do then?

Issue seems to have been fixed by installing Prism Launcher and glfw-x11 from the AUR, then going into the edit menu of my instance and checking “Use system installation of GLFW” under Settings > Workarounds, then checking “Use dedicated GPU” under Settings > Performance.

This only happened on Minecraft, or other games too?

Im having a similar problem, were when i start a game or during gameplay (in any game using the dGPU), the entire system just freezes/crashes, were i cant access the TTY too

Im with an Nvidia Optimus Laptop using Fedora 37 KDE with X11, and 530 Drivers, so if happened in other games to you, this can help me to fix too(maybe)

Instead of using a prime-run script, im using the variables __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia

Had this problem too before the Minecraft one started happening. I fixed it by updating my UEFI to the latest version using fwupd. I assume it was because of a version mismatch between the NVIDIA GPU and the BIOS, though I’m not sure.

Well, so looks like it isnt the same as yours, because i verified here with fwupd, my UEFI is in the latest version, soooo, IDK what is causing, maybe is the Nvidia drivers it self?

Ah okay then. Good luck with your problem!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.