My system contains 2 Nvidia cards. What i'm trying to achieve is one card driven by
nouveau driver while the other by the official
nvidia blob driver.
Both drivers successfully cohabit if the nvidia one is launched automatically on boot, using a specific nvidia driver option "nvidia_340.NVreg_AssignGpus=0:02:00." that make the driver to probe only a specific device, and the nouveau driver is launched manually with
modprobe, probing the other unused device.
I would like to automate things by making both modules to load on boot but i have not managed to tell
nouveau driver to probe only one of the two graphic cards. Loading order of modules seems nondeterministic and when nouveau module is loaded before nvidia module it probes both and prevents the official nvidia to access to the other.
I know i could do a systemd service task to execute
modprobe nouveau during boot phase (that is executed well after the load of nvidia module) but i guess there is a better way to do that. I think of
udev but as i don't know it much i'm not sure it is the way to go.
What is the proper way to handle this ?