-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Provide a way to choose gpu? #153
Comments
At the moment it checks if you have an NVidia driver installed then uses that, else it just uses /dev/dri. So skipping hte Nvidia card is easy by variable then selecting the dri card could be done maybe with switcheroo (in the container?) Maybe install switcheroo in the container and see if it can be used to select the GPU with everything passed through. NVidia drivers on linux are still not great and not good under wayland yet although better. |
I found a fix for this for now if you have the nvidia container toolkit working and dual GPUs.
|
I take it your are running dual GPU system? |
Yes, that is correct. Struggled for a while to get the Nvidia driver to work fully in my system but once i got the nvidia container toolkit running i was able to find a quite easy solution that don't require rebuilding the docker image. If not having the env flags set wine starts with the primary gpu which in my case is the built in intel. |
Should probably be documented in the readme somrwhere, or maybe even just always included as flags when a Nvidia card is detected in Zwift.sh |
i guess you could add it as optional env so one could add it in the settings file and let the run script include it if it is in the settings file so it not affects anything else. These are also only valid if you have the proprietary drivers from nvidia and not the open drivers for the newer gpus. for the open driver there are different env to use.. |
NixOs nvidia-container-toolkit have been broken for some time now, atleast on my machine.
So when running zwift i get
However as i have a laptop with dual video cards (nvidia/intel) if i run the docker command without the --gpus=all it will choose to run on my intel card instead, and work just fine albeit with less framerate.
So this got me thinking, maybe we should provide a way to choose which graphics system to try to run the container with?
WDYT @sHedC ?
The text was updated successfully, but these errors were encountered: