5

I just installed Ubuntu 22.04 (before I had 20.04) on my Dell laptop and I am having issues with really slow login cca 10s.

Issue is appearing only on first attempt to login, whether it is successful or not, all attempts after the first are quick as I was used to cca 0.5s.

HW Info:

  • Laptop model: Dell Inc. Latitude 5580
  • CPU: Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz, 2900 MHz
  • GPU: nVidia GM107 [GeForce 940MX], Intel HD Graphics 630
  • Memory: 32,0 GiB

3 Answers 3

5

Would have commented, but don't have the rep.

Check your log files for clues.

I noticed the same, with very slow logins taking more than 10 seconds.

In my case there was a problem with the nvidia driver. In /var/log/gpu-manager-switch.log there were many errors including can't access /run/u-d-c-nvidia-drm-was-loaded file and then a message saying it will take 10000ms for the nvidia udev rules to complete.

I upgraded my nvidia driver sudo apt-get install nvidia-driver-510 and now the error messages are gone and the logins are almost immediate.

2
  • 1
    I ran sudo apt-get install nvidia-driver-510 and restarted my computer, after that I wasn't able to boot. To fix boot problem I had to enable SGX in BIOS and in recovery mode run commands from this answer NVIDIA-forum. After fixing boot problem I had problem with launching all of my snap applications (I had to reinstall them). At the end slow login issue was fixed, submitting of login is immediate but after that I have black screen for a few seconds, which is still not ideal. Commented Jun 15, 2022 at 11:46
  • 1
    Yes, it should be faster than that. Maybe try checking your log files for any strange errors or messages immediately after you log in.
    – Mic
    Commented Jun 15, 2022 at 12:29
1

I have the same problem with version 24.04 but with no standalone graphics card so none of the above answers apply. The first graphical login is just stuck forever as far as I can tell. Tried it more than once. Eventually use Ctrl+Alt+F3 at the graphical login screen to switch to command line login. That allowed me to log in. Then I proceed to follow instructions on the internet but nothing applied in my case. Then I logged out and rebooted and then it is fine logging in from the GUI.

0
0

I just had this, and it turned out that it was happening because my monitor was plugged into the motherboard HDMI out rather than the GPU HDMI out.

After swapping the cable, the minutes-long hang after logging in disappeared.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .