"modesetting" driver grabs all screens
I have 2 GPUs in my laptop and would like to run the internal GPU on the modesetting driver and the dedicated GPU on the nouveau driver. Until recently that used to be the default, but with the latest upgrade now by default it uses "modesetting" for both, and then issues like #948 started to happen.
So I wrote the following config file:
Section "Device"
Identifier "Intel Graphics"
Driver "modesetting"
EndSection
Section "Device"
Identifier "Nvidia card"
Driver "nouveau"
EndSection
Unfortunately, this still uses the modesetting driver for both, as reported by xrandr --listproviders
:
Providers: number : 2
Provider 0: id: 0x43 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 1 associated providers: 1 name:modesetting
Provider 1: id: 0xed cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 3 associated providers: 1 name:modesetting
When I replace modesetting
by intel
, it starts using nouveau for the second GPU as expected, which leads me to believe that it is the modesetting driver that is somehow grabbing the NVidia card before nouveau gets a chance. (With the intel driver on the internal GPU, I only get garbled pictures on external screens, so that's not an option for actual operation.)
Environment:
Debian Testing
xserver-xorg-core 2:1.20.6-1
xserver-xorg-video-nouveau 1:1.0.16-1
xserver-xorg-video-intel 2:2.99.917+git20190815-1
Intel Corporation HD Graphics P530 (rev 06)
NVIDIA Corporation GM107GLM [Quadro M2000M] (rev a2)