Loading...
  OR  Zero-K Name:    Password:   

Game doesn't recognize GPU, Linux Ubuntu

6 posts, 320 views
Post comment
Filter:    Player:  
sort
14 months ago
I'm running Linux Ubuntu 22.04.1 LTS. I installed Zero-K for the first time. The game starts fine, the menus work properly, but when I start the tutorial a video starts, but it freezes instantly and then the game crashes. I looked into the settings menu, and it turns out that under 'Graphics driver selected' it says Intel. I think this is the problem here, because the game is relying on my Intel GPU (UHD Graphics 750) which isn't good enough. I also run a Nvidia GeForce RTX 3060, and this should easily be able to run the game. The problem is that the Nvidia GPU is not available in the menu ' Graphics Driver selected'.

Does anyone here know how I can fix this?

+0 / -0

14 months ago
You could try the Linux drivers from their website: https://www.nvidia.co.uk/download/driverResults.aspx/199671/en-uk
Just follow the README listed on their page. Make sure to check the minimum software requirements (http://us.download.nvidia.com/XFree86/Linux-x86_64/525.89.02/README/minimumrequirements.html), as Ubuntu's software repos list really old software versions.
+0 / -0
14 months ago
I am running the latest Nvidia driver. I think that is not the issue. It's just that it doesn't come up in the Zero-K interface somehow.
+0 / -0

14 months ago
Oh you already have it installed. I thought when you said 'Graphics Driver selected' you were talking about the ubuntu settings menu.

In that case, search for 'Nvidia X Server Settings' (called nvidia-settings in terminal), search for something called PRIME (should be called 'PRIME profiles'). There you can set your preferred gpu.

If all else fails, and you are 100% sure nvidia drivers are installed correctly, you could try
__NV_PRIME_RENDER_OFFLOAD=1 ./Zero-K_linux64
in the zero-k directory (assuming non-steam, if on steam you'll have to figure out how to add that argument to the steam command line thing. Shouldn't be too complicated).

I'll admit I don't know much about PRIME, but the above is worth a shot.
https://download.nvidia.com/XFree86/Linux-x86_64/525.89.02/README/primerenderoffload.html
+0 / -0
I've been running the game on my Linux laptop (AMD CPU + NVIDIA GPU) successfully for some time.

When running thru Steam it seems I don't have to configure anything, I guess steam takes care of using the dedicated card. It doesn't seem too happy about Wayland though, but that might just be the lobby.

Before switching to Steam I was running the game thru Lutris. There I had to tick the "Enable NVIDIA Prime Render Offload" when using hybrid mode.

This would pretty much equate the following command:
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia Zero-K

+0 / -0


14 months ago
Ubuntu has a built-in thing to control this, switcherooctl, so you can just do "switcherooctl launch mono zero-k.exe" etc
+0 / -0