I run into a very strange bug, I have a gsx 2070 super mobile video card but after installing the latest drivers, the laptop only recognizes 1 screen at a time.
A restart is required for the laptop screen to work again, however the external screen does not work more than. When I restart with my external screen plugged in, my laptop screen does not work again.
Hopefully someone can help me because this makes me a bit desperate.nvidia-bug-report.log (1.8 MB)
From your bug report log, it looks like your laptop uses a hybrid graphics configuration, where the internal panel is connected to an Intel integrated GPU and the external screen is connected to the NVIDIA discrete GPU.
In order to use both displays simultaneously, you’ll need to use a configuration that uses both GPUs simultaneously. There are two options there:
dGPU primary - the desktop is rendered on the NVIDIA GPU and displayed on the external panel directly, frames are sent to the Intel GPU for display on the internal panel. This mode is often referred to as “PRIME”.
iGPU primary - the desktop is rendered on the Intel GPU and displayed on the internal panel directly. Frames are sent to the NVIDIA GPU for display on the external panel. This mode is often referred to as “Reverse PRIME”. In this mode, you can choose to run specific graphics-heavy applications on the NVIDIA GPU.
Looking at your system configuration, it looks like there’s a configuration file that would set your system up in a dGPU-primary configuration: /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf (note the “PrimaryGPU” option that overrides the default Intel primary GPU).
However, you have a configuration file in /etc/X11/xorg.conf that overrides this automatic configuration and specifies a configuration that only uses the NVIDIA GPU. This is likely why your internal panel isn’t working.
Given your system setup, I would recommend using an iGPU-primary “render offload” configuration, which you should be able to do by deleting both /etc/X11/xorg.conf and /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf and instead letting the system autoconfigure itself.
You might also want to look into enabling the runtime power management options documented in Chapter 22 of the README. Combined with render offload, this will allow the NVIDIA GPU to be powered off when no applications are running on it and the external display is disabled.
Move /etc/X11/xorg.conf and /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf to a backup location and then restart your display manager (or just reboot the whole computer).
nvidia-settings doesn’t know how to configure displays in this mode.
Normally the desktop environment takes care of binding GPUs together for display offload, but maybe yours doesn’t for some reason. Can you please check the output of xrandr --listproviders and also try running xrandr --setprovideroutputsource 1 0; xrandr --auto ?
Unfortunately these commands have to be run after the X server starts. Typically your desktop environment would take care of this but if yours doesn’t, you’ll have to check how to add these commands to the startup scripts for your desktop.