Here is more information. I am moving this away from dracut since it isn't a matter of that system failing against Nvidia setup cases that affect SDDM on my older laptop MSI Optimus laptop.
Even if I place /etc/modprobe.d/blacklist-nvidia.conf blacklist nvidia blacklist nvidia-drm blacklist nvidia-modeset blacklist nvidia-uvm blacklist nouveau Things were not working out for this old Optimus laptop since it would try to load the modules causing SDDM to fail. Maybe I should make it an SDDM issue instead? Anyway, if you install the following packages as I like to load the nvidia modules dynamically from a script > linux-modules-nvidia-570-6.14.0-22-generic 6.14.0-22.22 amd64 Linux kernel > nvidia modules for version 6.14.0-22 > linux-objects-nvidia-570-6.14.0-22-generic 6.14.0-22.22 amd64 Linux kernel > nvidia modules for version 6.14.0-22 (objects) > linux-signatures-nvidia-6.14.0-22-generic 6.14.0-22.22 amd64 Linux kernel > signatures for nvidia modules for version 6.14.0-22-generic It leaves SDDM to fail to boot using i815 and Nvidia trying to take over. I literally couldn't figure out why SDDM was still failing. I ran lsmod | grep nvidia|nouveau and of course the modules were loading regardless of the blacklist script. I also had in /etc/default/grub GRUB_CMDLINE_LINUX="nogpumanager modprobe.blacklist=nouveau,nvidia,nvidiafb,nvidia-uvm,nvidia-drm,nvidia-modeset and ran the grub2 update but still found SDDM failing to load with issues of permissions and the modules mentioned of nvidia being loaded. I finally masked the following files from these packages > nvidia-kernel-common-570: /lib/systemd/system/nvidia-powerd.service > nvidia-compute-utils-570: /usr/lib/systemd/system/nvidia-persistenced.service And now finally, I have a SDDM that boots properly. I can load/unload nvidia modules easily and run software using custom scripts such as https://gist.github.com/m1st0/e6348a7ef50d5e17d41485fdac9292f3 . In summary, you need the blacklist files in /etc/modprobe.d , systemctl mask those services I mentioned, and the kernel options in /etc/default/grub and update-initramfs. SDDM will boot to i915 Intel graphics as needed thereby. ** Package changed: dracut (Ubuntu) => nvidia-kernel-common (Ubuntu) ** Summary changed: - Grub Won't Boot After Dracut Failure + SDDM Won't Boot After Nvidia Setup -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2115336 Title: SDDM Won't Boot After Nvidia Setup To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-kernel-common/+bug/2115336/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
