Testing with 381.22 on the same machine where I gave up and went back to 364 on previous versions (https://devtalk.nvidia.com/default/topic/1003432/linux/375-381-09-980m-hangs-system-if-external-monitor-is-connected/), the driver does not appear to find the internal laptop screen as a valid display device.
The machine will boot to a black screen, and I can ctrl-alt-f1 to a VTY and see the terminal session fine, I just can’t access the xorg sessions. I can even log into the black screen by typing my password blindly, but the desktop will of course be black after I hear it startup since the driver’s not outputing anything.
Using prime-select nvidia:
36.358] (**) NVIDIA(0): Option "IgnoreDisplayDevices" "CRT"
[ 36.359] (**) NVIDIA(0): Enabling 2D acceleration
[ 36.741] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[ 36.741] (--) NVIDIA(0): DFP-0
[ 36.741] (--) NVIDIA(0): DFP-1
[ 36.741] (--) NVIDIA(0): DFP-2
[ 36.741] (--) NVIDIA(0): DFP-3
[ 36.741] (--) NVIDIA(0): DFP-4
[ 36.758] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 980M (GM204-B) at PCI:1:0:0 (GPU-0)
[ 36.758] (--) NVIDIA(0): Memory: 8388608 kBytes
[ 36.758] (--) NVIDIA(0): VideoBIOS: 84.04.85.00.1c
[ 36.758] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[ 36.759] (--) NVIDIA(GPU-0): DFP-0: disconnected
[ 36.759] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[ 36.759] (--) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
[ 36.759] (--) NVIDIA(GPU-0):
[ 36.759] (--) NVIDIA(GPU-0): DFP-1: disconnected
[ 36.759] (--) NVIDIA(GPU-0): DFP-1: Internal DisplayPort
[ 36.759] (--) NVIDIA(GPU-0): DFP-1: 960.0 MHz maximum pixel clock
[ 36.759] (--) NVIDIA(GPU-0):
[ 36.759] (--) NVIDIA(GPU-0): DFP-2: disconnected
[ 36.759] (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
[ 36.759] (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
[ 36.759] (--) NVIDIA(GPU-0):
[ 36.759] (--) NVIDIA(GPU-0): DFP-3: disconnected
[ 36.759] (--) NVIDIA(GPU-0): DFP-3: Internal DisplayPort
[ 36.759] (--) NVIDIA(GPU-0): DFP-3: 960.0 MHz maximum pixel clock
[ 36.759] (--) NVIDIA(GPU-0):
[ 36.759] (--) NVIDIA(GPU-0): DFP-4: disconnected
[ 36.759] (--) NVIDIA(GPU-0): DFP-4: Internal TMDS
[ 36.759] (--) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
[ 36.759] (--) NVIDIA(GPU-0):
[ 36.759] (==) NVIDIA(0):
[ 36.759] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[ 36.759] (==) NVIDIA(0): will be used as the requested mode.
[ 36.759] (==) NVIDIA(0):
[ 36.759] (--) NVIDIA(0): No enabled display devices found; starting anyway because
[ 36.759] (--) NVIDIA(0): AllowEmptyInitialConfiguration is enabled
meanwhile, if I prime-select intel, it can find the internal display fine and I can log in and use the machine normally:
382.589] (II) LoadModule: "intel"
[ 382.589] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 382.592] (II) Module intel: vendor="X.Org Foundation"
[ 382.592] compiled for 1.18.3, module version = 2.99.917
[ 382.592] Module class: X.Org Video Driver
[ 382.592] ABI class: X.Org Video Driver, version 20.0
[ 382.592] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 382.593] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 382.593] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 382.593] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[ 382.594] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20161121
[ 382.594] (II) intel(0): SNA compiled: xserver-xorg-video-intel 2:2.99.917+git20160706-1ubuntu1 (Timo Aaltonen <tjaalton@debian.org>)
[ 382.594] (II) intel(0): SNA compiled for use with valgrind
[ 382.597] (--) intel(0): gen9 engineering sample
[ 382.597] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2; using a maximum of 4 threads
[ 382.597] (II) intel(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 382.597] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[ 382.597] (==) intel(0): RGB weight 888
[ 382.597] (==) intel(0): Default visual is TrueColor
[ 382.597] (**) intel(0): Option "Backlight" "intel_backlight"
[ 382.597] (II) intel(0): Output eDP1 has no monitor section
[ 382.644] (**) intel(0): Found backlight control interface intel_backlight (type 'raw') for output eDP1
[ 382.644] (II) intel(0): Enabled output eDP1
I don’t have the xserver-xorg-nouveau drivers installed at all, so I’m not sure what would block the 381 drivers from seeing the display device. I’ve tried with prime as well as manually setting up xorg and setting the nogpumanager kernel parameter.
Backleveling to 364 (and switching bios to discrete mode), the panel can be seen again.
[ 247.369] (--) NVIDIA(GPU-0): SDC (DFP-1): connected
[ 247.369] (--) NVIDIA(GPU-0): SDC (DFP-1): Internal DisplayPort
[ 247.369] (--) NVIDIA(GPU-0): SDC (DFP-1): 960.0 MHz maximum pixel clock
Here’s the info from 364 with both the internal and external screen connected (381 says there are 0 display devices). The internal screen is the 4k g-sync monitor:
19:14:34 evil@sager ~» sudo nvidia-xconfig --query-gpu-info
Number of GPUs: 1
GPU #0:
Name : GeForce GTX 980M
UUID : GPU-e2f980da-ea7e-4335-6ae3-41ae731aed6d
PCI BusID : PCI:1:0:0
Number of Display Devices: 2
Display Device 0 (TV-0):
EDID Name : Ancor Communications Inc ASUS MX299
Minimum HorizSync : 26.000 kHz
Maximum HorizSync : 83.000 kHz
Minimum VertRefresh : 24 Hz
Maximum VertRefresh : 76 Hz
Maximum PixelClock : 240.000 MHz
Maximum Width : 2560 pixels
Maximum Height : 1080 pixels
Preferred Width : 2560 pixels
Preferred Height : 1080 pixels
Preferred VertRefresh : 60 Hz
Physical Width : 670 mm
Physical Height : 280 mm
Display Device 1 (TV-1):
EDID Name : SDC
Minimum HorizSync : 133.193 kHz
Maximum HorizSync : 133.193 kHz
Minimum VertRefresh : 59 Hz
Maximum VertRefresh : 59 Hz
Maximum PixelClock : 526.910 MHz
Maximum Width : 3840 pixels
Maximum Height : 2160 pixels
Preferred Width : 3840 pixels
Preferred Height : 2160 pixels
Preferred VertRefresh : 60 Hz
Physical Width : 340 mm
Physical Height : 190 mm