How to Automatically Start LightDM on Boot in Linux Mint?

0
61
Asked By TechWizard42 On

I'm using Linux Mint Debian Edition, and every time I boot my system, I have to manually type "systemctl restart lightdm.service" in tty mode to get my desktop environment running. It's a bit annoying since it shouldn't be this way. I have NVIDIA drivers (580) installed, and I'm starting to think it might be related to those. I tried using the command "systemctl enable lightdm.service" to enable it at boot, but that didn't work. I even reinstalled lightdm, but nothing changed. Has anyone else experienced this?

2 Answers

Answered By BeginnerCoder99 On

You might want to check the status of lightdm with the command `systemctl status lightdm`. If it's not working, paste the output here. Also, using `systemctl enable lightdm.service` is correct for ensuring it starts on boot, but if a different login manager is set as default, it might not work as expected.

Answered By TechGuru88 On

This issue could be a race condition between the GPU driver and LightDM. Try adding these lines to `/etc/initramfs-tools/modules`: `nvidia`, `nvidia_modeset`, `nvidia_uvm`, and `nvidia_drm`. After that, run `sudo update-initramfs -uk all`. This should load the GPU driver early enough so that LightDM can start without problems.

TechWizard42 -

It worked!!!! Thank you for the help!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.