mojira.dev
MCL-11654

unable to start game if run with optirun (discrete nvidia card)

While I was writing the bug report I found a workaround. I choose to report it anyway as it uses a rather obscure prime-select tool that I never knew about it even though I used optirun for years.

I had already played a few times on this setup using optirun to trigger the discrete card. Now it doesn't work anymore and I don't know what changed. Without optirun it runs fine on Intel but it's way slower.
If I try to run minecraft through optirun in either launchers (2.1.5965 or 1.6 jar version) I get the following error, before the game window shows up:

17:44:23.692 Checking installations.
17:44:23.693 Minecraft client 1.14.4 is ready to start.
17:44:23.693 Starting!
17:44:23.693 Nothing to download!
17:44:23.693 Extracting 7 files!
17:44:23.717 Using default game log configuration client-1.12.xml (outputs XML)
17:44:23.717 Installing versions!
17:44:25.837 Setting user: rber
17:44:32.047 LWJGL Version: 3.2.2 build 10
17:44:33.001 X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  72 (X_PutImage)
  Serial number of failed request:  46
  Current serial number in output stream:  54
17:44:33.001 Process crashed with exit code 1

The workaround I found was to explicitly select the nvidia card through the "prime-select" tool. I just ran prime-select nvidia and the game was able to run again.

I'll say again that prime-select is an obscure tool I've never heard of. Also after rebooting it broke the graphical terminal which rendered the system at least seemingly broken until I ran prime-select unset
I would love If I'm able to help making the game work out of the box in opensuse even in laptops with two graphic cards

Please close this bug.

Comments 1

Please close this bug.
The issue was solved after cleaning up dependencies left after removal of intel opensource driver xf86-video-intel: It removed the libvdpau_va_gl1, libvulkan_intel and libXvMC1 packages and now optirun runs minecraft on the discrete card without any further tweaking
Sorry to bother here with OS issues, but somehow it affected only minecraft or java so it seemed the right choice

Raphael Bertoche

(Unassigned)

Unconfirmed

Retrieved