The external monitor problem is probably a well-known gdm3 bug: gdm3 with nvidia modeset=1 stops the nvidia driver from detecting external monitors (possibly it invokes some wayland features when it shouldn't). It is not a problem with nvidia-prime or with the kernel. You can fix it by using lightdm instead of gdm3. This bug affects fedora as well.
ubuntu 19.04 has reverted to nvidia modeset = 0 be default to avoid this bug (at the cost of unfixable screen tearing for Optimus users in nvidia mode). nvidia-prime does always include the nvidia modules in the initramfs kernel, this was a change in 18.10 backported to 18.04. Previous nvidia- prime pacakges used to rebuild initramfs to add or remove the module, but this is not required any longer. Choosing prime-select intel means the nvidia module is unloaded when the machine is starting. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1798708 Title: It will load nvidia driver when swith to Intel mode Status in linux package in Ubuntu: Confirmed Bug description: We found the nvidia-prime will not run update-initramfs as before. After switch to intel, then reboot I found the nvidia modules was loaded. If I did S3 or close the lid, and resume back, the nvidia modules was removed, so the gnome session will be reloaded, you need to login again, all the opend applications in this session was gone. nvidia-prime 0.8.8.1 linux 4.15.0-1021-oem nvidia-driver-390 380.87-0ubuntu0~gpu18.04.1. --- ProblemType: Bug ApportVersion: 2.20.9-0ubuntu7.4 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC1: u 2218 F.... pulseaudio /dev/snd/controlC0: u 2218 F.... pulseaudio CurrentDesktop: ubuntu:GNOME DistributionChannelDescriptor: # This is the distribution channel descriptor for the OEM CDs # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor canonical-oem-sutton-bionic-amd64-20181018-40+sutton-mccarthy-bionic-amd64+iso DistroRelease: Ubuntu 18.04 HibernationDevice: RESUME=UUID=2b45d917-3587-410f-9b94-f52eb082b7dc InstallationDate: Installed on 2018-10-19 (0 days ago) InstallationMedia: Ubuntu 18.04 "Bionic" - Build amd64 LIVE Binary 20181018-09:17 MachineType: LENOVO 20MEZ480US NonfreeKernelModules: nvidia Package: linux (not installed) ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-1021-oem root=UUID=e68fa8d5-22f5-464b-9775-753b4ae159eb ro noprompt quiet splash acpi_osi=! acpi_osi=Linux-Lenovo-NV-HDMI-Audio vt.handoff=1 ProcVersionSignature: Ubuntu 4.15.0-1021.24-oem 4.15.18 RelatedPackageVersions: linux-restricted-modules-4.15.0-1021-oem N/A linux-backports-modules-4.15.0-1021-oem N/A linux-firmware 1.173.1 Tags: bionic Uname: Linux 4.15.0-1021-oem x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo _MarkForUpload: True dmi.bios.date: 10/04/2018 dmi.bios.vendor: LENOVO dmi.bios.version: N2EET30W (1.12 ) dmi.board.asset.tag: Not Available dmi.board.name: 20MEZ480US dmi.board.vendor: LENOVO dmi.board.version: SDK0Q40104 WIN dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: None dmi.modalias: dmi:bvnLENOVO:bvrN2EET30W(1.12):bd10/04/2018:svnLENOVO:pn20MEZ480US:pvrThinkPadP1:rvnLENOVO:rn20MEZ480US:rvrSDK0Q40104WIN:cvnLENOVO:ct10:cvrNone: dmi.product.family: ThinkPad P1 dmi.product.name: 20MEZ480US dmi.product.version: ThinkPad P1 dmi.sys.vendor: LENOVO To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1798708/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp