Closed theotherJohnC closed 4 years ago
I'm not sure we want to add this option by default. See also NVIDIA's README ...
Option "AllowExternalGpus" "boolean"
This option allows the NVIDIA X driver to configure X screens on external
GPUs, also known as eGPUs. Note that this option is applied globally:
setting this option to true will enable the use of all eGPUs.
"AllowExternalGpus" defaults to false, to avoid putting the X server in a
situation where a GPU it is actively using can be hot-unplugged. External
GPUs are often used in short-running compute scenarios, which better
tolerate the eGPU being hot-unplugged. In such cases, a different GPU may
be used to display the X11 desktop.
In addition to eGPUs, "AllowExternalGpus" set to false may prevent the
NVIDIA X driver from configuring X screens on GPUs attached to internal
PCIe slots with surprise removal/hot-unplug support, such as in some
enterprise systems.
Default: false. The NVIDIA X driver will not configure X screens on eGPUs.
I wonder if this kind of check couldn't be done automatically, external Nvidia GPUs should work regardless of what happens with eDP display, so setting AllowExternalGpus
during boot, only if external GPU is connected could work just fine (but then obviously hotplugging in session that didn't have eGPU connected from the startup wouldn't work)
No risk. No fun. Let's take it. ;-)
When using an eGPU, Xorg will fail with:
Adding
Option "AllowExternalGpus"
will enable eGPUs to work by default afterprime-select nvidia
if an eGPU is indeed plugged in.