Well, I'm currently running nvidia-390 with prime set to intel.
Code:
~$ lsmod | grep nouveau
nouveau 1716224 2
ttm 106496 1 nouveau
mxm_wmi 16384 1 nouveau
wmi 24576 7 dell_wmi,wmi_bmof,intel_wmi_thunderbolt,dell_wmi_descriptor,mxm_wmi,nouveau,dell_smbios_wmi
i2c_algo_bit 16384 2 nouveau,i915
drm_kms_helper 167936 2 nouveau,i915
drm 401408 20 nouveau,i915,ttm,drm_kms_helper
video 40960 4 dell_wmi,dell_laptop,nouveau,i915
I managed to solve the issue (for my config anyway) :
- remove nouveau from PM excluded devices from TLP
- remove the nouveau.runpm=0 option from grub (created by prime when switching to intel)
- reboot, obviously
Some users in french forum noticed that some nvidia GPU hang with nouveau, so I can just tell it works for my quadro M1000M.
The issue (in my case) is not about switching between nvidia and intel, it's about nvidia gpu power management when switching to intel mode.