NVIDIA cards should have set AllowExternalGpus in /usr/share/X11/xorg.conf.d/10-nvidia.conf

Bug #1881701 reported by Jens Nachtigall
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-440 (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-450 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have a Lenovo Thunderbold 3 Graphics Dock (comes integrated NVIDIA MTX 1050 graphics card), see https://support.lenovo.com/de/en/accessories/acc500012

*What happened:*

With nvidia-graphics-drivers-440 I just got a black screen. After looink into the /var/log/Xorg.0.log I noticed:

```

    (WW) NVIDIA(GPU-0): This device is an external GPU, but external GPUs have not

    (WW) NVIDIA(GPU-0): been enabled with AllowExternalGpus. Disabling this device

    (WW) NVIDIA(GPU-0): to prevent crashes from accidental removal.

    (EE) NVIDIA(0): Failing initialization of X screen 0
```

Some googling turned up https://forums.developer.nvidia.com/t/egpu-and-intel-nuc-xorg-conf-issues-login-loop-and-hanging/69409/4

After I added the `Option "AllowExternalGpus" "true"` to `Section "OutputClass"` of `/usr/share/X11/xorg.conf.d/10-nvidia.conf` and rebooting the card worked.

This is a matter for all eGPUs (external GPUs) that run NVIDIA I guess. See reports at https://www.reddit.com/r/thinkpad/comments/fcuhkn/running_thunderbold_3_graphics_dock_nvidia_mtx/ and aforementioned https://forums.developer.nvidia.com/t/egpu-and-intel-nuc-xorg-conf-issues-login-loop-and-hanging/69409/4

*Possible solution*

Add this line to /usr/share/X11/xorg.conf.d/10-nvidia.conf:
```
Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    # vvvvv ADD THIS LINE vvvvvvvvvvvvvvvvvvvvv
    Option "AllowExternalGpus" "true"
    # ^^^^^^^^^ ADD THIS LINE ^^^^^^^^^^^^^^^^^^^
    ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg"
EndSection
```

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xserver-xorg-video-nvidia-440 440.82+really.440.64-0ubuntu6 [modified: usr/share/X11/xorg.conf.d/10-nvidia.conf]
ProcVersionSignature: Ubuntu 5.4.0-33.37-generic 5.4.34
Uname: Linux 5.4.0-33-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.2
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Tue Jun 2 07:30:47 2020
InstallationDate: Installed on 2019-09-19 (257 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: nvidia-graphics-drivers-440
UpgradeStatus: Upgraded to focal on 2020-05-29 (3 days ago)

Revision history for this message
Jens Nachtigall (nachtigall) wrote :
Revision history for this message
Randall Leeds (randall-leeds) wrote :

I can confirm that adding:

  Option "AllowExternalGpus"

Fixes my issue. This may be the same as #1790515, too.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-440 (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-450 (Ubuntu):
status: New → Confirmed
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote (last edit ):

Confirmed I had to jump through these hoops on a ThinkPad X1 Carbon 9th Generation, with a Razer Core attached. Using 21.04.

tags: added: hirsute
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.