Writing this question as a resource for future readers.
Environment: Ubuntu 22.04, Wayland
Hardware: Nvidia GeForce MX550
I have an issue where my computer freezes after the login screen. After waiting a few minutes, it eventually loops back to the login screen. And turning off the computer, for some reason, takes 5+ minutes to finish.
What I tried:
Pressing escape during the shutdown screen toggles the Ubuntu shutdown screen to explicit shutdown logs, which reveal that gdm (gnome display manager) is taking the full timeout of 5 minutes to shut down properly.
Following this lead, journalctl --since 2023-08-27 -u gdm.service
prints all of gdm's logs today, showing this log (not this exact log, I copy-pasted it from a similar thread:
Jan 15 08:57:37 KTM65sx gdm[491]: Failed to contact accountsservice: Error calling StartServiceByName for org.freedesktop.Accounts: Refusing activation, D-Bus is shutting down.
With gdm as a lead, I tried a few things:
- This archlinux thread suggesting I install intel-media-driver. Did not resolve the issue.
- This archlinux thread suggested disabling Wayland to resolve the issue. This only changed the behavior of the bug from "login loop" to simple freezing.
- This ticket suggests installing havaged (didn't try this in the end)
- This article recommends adding nomodeset to disable graphics drivers. Did not change the system behavior.
- Lastly, this article suggests checking directory permissions and reinstalling ubuntu-desktop. Did not resolve the issue.