External Nvidia GPUs won't work with recent proprietary drivers

Bug #1876616 reported by Germain Chazot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-drivers-common (Ubuntu)
New
Undecided
Unassigned

Bug Description

Since Nvidia drivers version 396 (still present in 440), `gpu-manager` generates a configuration that does not allow External GPUs.

The reason is a new XConfig option introduced by Nvidia: "AllowExternalGpus" which defaults to False.

https://download.nvidia.com/XFree86/Linux-x86_64/396.18/README/xconfigoptions.html#AllowExternalGpus

The rationale behind their default value seems to be that eGPUs are not necessarily used for display but can be used to add general purpose GPU computing capacity to computers that don't need it on a permanent basis. It seems to me that eGPU usage for display should also be covered on Ubuntu.

As there is no clear way to configure the output of gpu-manager in the documentation, it makes it fiddly to add this setting.

Workaround available:
For now I've done it by duplicating `/usr/share/X11/xorg.conf.d/11-nvidia-prime.conf` generated by gpu-manager into `/etc/X11/xorg.conf.d/12-nvidia-prime-fix.conf` and adding the setting in there, in order to override the configuration generated by gpu-manager. However this is not future-proof as this means that future updates to gpu-manager will not be taken into account in my configuration. It's also quite an obscure solution for most users.

Revision history for this message
Germain Chazot (gchazot) wrote (last edit ):

Little update about this.

The problem is still present with nvidia-driver 460, on Ubuntu 20.04.

Also I've set up another laptop with nvidia-driver 495 on Ubuntu 21.10 and the problem is still there.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.