Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux] Error: Unable to query size of supported swapchain formats. #371

Closed
CandyFiend opened this issue Apr 10, 2021 · 4 comments
Closed

Comments

@CandyFiend
Copy link

CandyFiend commented Apr 10, 2021

Your system information

  • System information from steam (Steam -> Help -> System Information) in a gist:
    gist: mhwd, console.log, system information
  • Have you checked for system updates?: Yes (system, steam, game)
  • Are you using the latest stable video driver available for your system? Yes 460
  • Have you verified the game files?: Yes

Please describe your issue in as much detail as possible:

I have updated the game. When I ran it, it said my graphics card does not support opengl3.1. I rebooted the system and got a new error: "Unable to query size of supported swapchain formats."

Linux torq-manjaro-dexp 5.9.16-1-MANJARO #1 SMP PREEMPT Mon Dec 21 22:00:46 UTC 2020 x86_64 GNU/Linux
Manjaro 21.0.1 Ornara
Kernel nvidia-drm.modeset=1 (only nvidia gpu)
My graphics card (940M) supports opengl 4.6

@CandyFiend CandyFiend changed the title Error: Unable to query size of supported swapchain formats. [Linux] Error: Unable to query size of supported swapchain formats. Apr 10, 2021
@kisak-valve
Copy link
Member

kisak-valve commented Apr 10, 2021

Hello @CandyFiend, it looks like you have an Optimus laptop. These laptops usually use the Intel chipset to render, but this section of your system information tells us that Vulkan is broken on your system.

There's a couple options you can try. These are separate suggestions.

  1. Try setting's the game's launch options to -gl which should tell the game to use OpenGL.

  2. Install the vulkan-intel system package which should let the game render on the Intel Haswell chipset.

  3. Look into using nVidia's PRIME Render Offload. Setting the game's launch options to __NV_PRIME_RENDER_OFFLOAD=1 %command% might be all that's needed to use that.

@CandyFiend
Copy link
Author

Thanks, I will try this. Yesterday, before the update, the game worked for me.

@CandyFiend
Copy link
Author

I recently turned off intel graphics.
link to instructions in 13
ArchWiki
Now I found that the system deleted the nvidia config in /etc/X11/xorg.conf.d/ and replaced it with the clear mhwd config. Of course, he did not copy the settings and the system again began to use Intel graphics without using nvidia GPU. I copied the old settings to a new file, rebooted and it worked again.

@kisak-valve
Copy link
Member

Glad to hear you got it working. Closing because this was a system config issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants