albertomilone, looks good to me. I tried switching from nvidia to intel and back rebooting on each attempt and haven't managed to reproduce the issue. Looks like reordering udev rules and/or adding another device class in your change helped (thanks a lot!).
I don't see an nvidia device in lspci output as well after rebooting with `prime-select intel` done: ➜ ~ lspci | grep -i nvidia ➜ ~ ➜ ~ lspci | grep -i VGA 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04) /lib/udev/rules.d/50-pm-nvidia.rules https://paste.ubuntu.com/p/2WScDVDQPq/ cat /lib/udev/rules.d/61-gdm.rules https://paste.ubuntu.com/p/5K6hgKmrG2/ # that's for nvidiafb which is normal and comes from the kmod package ➜ ~ grep -RiP nvidia /etc/modprobe.d /etc/modprobe.d/blacklist-framebuffer.conf:blacklist nvidiafb ➜ ~ uname -r 5.4.0-14-generic ➜ ~ dpkg -l | grep -P 'nvidia-prime|nvidia-driver|Xorg|gdm3' ii gdm3 3.34.1-1ubuntu1 amd64 GNOME Display Manager ii nvidia-driver-440 440.59-0ubuntu2 amd64 NVIDIA driver metapackage ii nvidia-prime 0.8.14 all Tools to enable NVIDIA's Prime ii xserver-xorg-core 2:1.20.7-2ubuntu1 amd64 Xorg X server - core server ii xserver-xorg-legacy 2:1.20.7-2ubuntu1 amd64 setuid root Xorg server wrapper ii xserver-xorg-video-nvidia-440 440.59-0ubuntu2 amd64 NVIDIA binary Xorg driver -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to nvidia-prime in Ubuntu. https://bugs.launchpad.net/bugs/1848326 Title: [cosmic+] error booting with prime-select intel: prime-select does not update initramfs to blacklist nvidia modules Status in nvidia-prime package in Ubuntu: Fix Released Status in ubuntu-drivers-common package in Ubuntu: In Progress Status in nvidia-prime source package in Bionic: Triaged Status in ubuntu-drivers-common source package in Bionic: Triaged Status in nvidia-prime source package in Eoan: Triaged Status in ubuntu-drivers-common source package in Eoan: Triaged Bug description: when I try to boot with the iGPU selected, DE won't boot, with nvidia selected, everithing is fine. I tried uninstalling nvidia driver and it allowed my to access without any problems and intel is working fine ProblemType: Bug DistroRelease: Ubuntu 19.10 Package: nvidia-prime 0.8.13 ProcVersionSignature: Ubuntu 5.3.0-18.19-generic 5.3.1 Uname: Linux 5.3.0-18-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu8 Architecture: amd64 CurrentDesktop: KDE Date: Wed Oct 16 12:41:26 2019 Dependencies: InstallationDate: Installed on 2019-09-25 (20 days ago) InstallationMedia: Kubuntu 19.10 "Eoan Ermine" - Beta amd64 (20190925) PackageArchitecture: all SourcePackage: nvidia-prime UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1848326/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

