X always loads modesetting driver for gpus activated after X was started
@karolherbst
Submitted by Karol Herbst Assigned to Xorg Project Team
Description
Created attachment 117234 xorg.conf
Whenever I load a kernel module for my nvidia card (nvidia or nouveau, doesn't matter) the X server always loads the modsetting driver for this gpu as long as no module was loaded at X launch time.
This conflicts with my xorg.conf, where I force the dummy module for the nvidia card. And yes I don't want the nouveau nor the modesetting DDX to be loaded, because it makes it impossible for me to unload the module while X is running. And because I only use DRI3 to get gpu offloading.
This actually causes the X server to crash directly after loading the nouveau module.
When a module was loaded at X launch time (nvidia or nouveau), the X server doesn't load anything for this card as expected, whenever I remove and load the modules again.
On a side note: even if I use bumblebee and load the nvidia ddx module in another X server, my primary X server still will load the modesetting driver in the former case, not the latter one.
System information: laptop hybrid graphics intel hsw + nvidia gentoo x server 1.17.2
Attachment 117234, "xorg.conf":
xorg.conf