Failed to start detect the available GPUs and deal with any system changes Failed to start Light Display Manager

Failed to start detect the available GPUs and deal with any system changes
Failed to start Light Display Manager.

I am getting this error whenever i boot up my PC, after 2 or 3 attempts it gets resolved.
I went to the internet and searched
I found one solution

https://bbs.minisforum.com/threads/on-reboot-only-failed-to-start-detect-the-available-gpus-and-deal-with-any-system-changes.1792/
Thanks for your reply. I solved it like this:

sudo nano /etc/default/grub
change: GRUB_CMDLINE_LINUX=“” to: GRUB_CMDLINE_LINUX=“nogpumanager”, save and exit: CTRL+O, CTRL+X
update grub: sudo update-grub

But I am not sure if that is the desired solution. I will definitely try your fix today and report back.

the above solution didnt worked, so i am trying the second solution

This is a known issue with lightdm and gnome. I see it have latest intel gpu.

Let me find the fix for you.

Can you this fix.
Edit this file /etc/lightdm/lightdm.conf

And add this line under [LightDM]

logind-check-graphical=true

the issue is i dont see lightdm.conf file in the above directory, Has anyone encountered this issue before.

for now I have booted 3 time with

RestartSec=0.5

And it has worked, thanks