mojira.dev
MCL-17125

Launcher window blank/black when using dedicated GPU

I have a dual GPU system (AMD/NVIDIA) running Linux Mint. When running in an On-Demand mode, my desktop allows me to run a program either on the default AMD GPU, or offload it to the much faster NVIDIA GPU. This used to work perfectly until today's update. Now, having the Minecraft Launcher offloaded to the NVIDIA GPU brings up a blank/black window. Without offloading, I can run it just fine, but it won't be running on my faster NVIDIA GPU, so I can't use more advanced shaders without bogging down the game.

Linked issues

Attachments

Comments 15

I have the same issue on ubuntu 20.04.2 LTS , I have gtx 1050  nvidia gpu on proprietary driver version 460.39, the ui elements in the window are there but it's seems to be behind a black screen.

[media]

I can even click play with the black screen there and it would run the game with the nvidia gpu .

[media]

Do you have latest stable video drivers installed?

Same issue here.
Arch Linux Kernel 5.11
GTX 940M
Driver v460.56

Working on the Intel iGPU

Can you attach logs? See the "/.minecraft/launcher_log.txt" and "/.minecraft/launcher_cef_log.txt" files.

An attachment with a disallowed file extension has been removed from this ticket.

Executable files and documents are not allowed as attachments.
Please attach crash reports, log files and screenshots as they are instead of pasting them into a document.
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit

5 more comments

@Czarek-Mojang That sounds reasonable. I'm looking forward to the update!

 

@Fabian Röling I don't think the feature is released yet, so it won't work with the current launcher. When the new fixed launcher is released, assuming your problem is the same as mine, then you won't need to define the DRI_PRIME or __NV_PRIME_RENDER_OFFLOAD variables yourself, as PRIME and the prime-run command alias should do that for you.

@Akoi Feel free to create a separate issue for your problem, because this one is specific for Linux with dual GPU system.

This should now be available to turn off. We have a switch available under settings to disable GPU acceleration.

Yep we release not long ago the self-update mechanism on Linux too. You now get the new updates automatically 🙂
As Czarek mentioned before we do some smart checking of environment variables when the Launcher starts, and disable hardware acceleration automatically. We have some remaining work to show this in the actual settings that it's disabled.

Hi @unknown, we don't support manual updating. It allows us to change both the client and our services without having to stay backward-compatible, and ensures the Launcher behaves consistently across all our supported operating systems.

Michael D Freeman

(Unassigned)

Community Consensus

Retrieved