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:
# 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
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 /paste. ubuntu. com/p/2WScDVDQP q/
https:/
cat /lib/udev/ rules.d/ 61-gdm. rules /paste. ubuntu. com/p/5K6hgKmrG 2/
https:/
# that's for nvidiafb which is normal and comes from the kmod package d/blacklist- framebuffer. conf:blacklist nvidiafb
➜ ~ grep -RiP nvidia /etc/modprobe.d
/etc/modprobe.
➜ ~ uname -r
5.4.0-14-generic
➜ ~ dpkg -l | grep -P 'nvidia- prime|nvidia- driver| Xorg|gdm3' xorg-video- nvidia- 440 440.59-0ubuntu2 amd64 NVIDIA binary Xorg driver
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-