My laptop sometimes freeze on boot, not reaching the login screen. The screen freezes on the Ubuntu logo. I googled a lot, most posts relates to a Nvidia driver issue, but my laptop does not have a Nvidia card. I seem to notice that the problem relates to prior using the laptop on battery, or maybe closing the lid.
Yesterday I was using my recently fresh installed Ubunto 20.04 on battery. I remember - hope I am not wrong - that after usage I shutdown (not suspend) the machine and THEN closed the lid (again I hope my memory is correct here).
This morning when I tried to boot the machine I was shown a frozen screen. Then I used the "Magic SysRq keys" - Alt+SysRq+"REISUB" to reboot the machine, and this time the system went up quickly. I then used journalctl to check the previous boot:
journalctl -b-1 -a --no-pager
The complete output can be found here https://gist.github.com/bingtimren/c82cd760bb4788c0e480e08900985c04
I'm not familiar with booting and kernel, but it seems to me that the problem is with logind service failing to start.
May 28 10:11:09 bing-e480 dbus-daemon[770]: [system] Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
May 28 10:11:09 bing-e480 gdm3[895]: GdmLocalDisplayFactory: Failed to issue method call: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
......
May 28 10:12:13 bing-e480 systemd[1]: systemd-logind.service: start operation timed out. Terminating.
May 28 10:13:44 bing-e480 systemd[1]: systemd-logind.service: State 'stop-sigterm' timed out. Killing.
May 28 10:13:44 bing-e480 systemd[1]: systemd-logind.service: Killing process 798 (systemd-logind) with signal SIGKILL.
May 28 10:15:14 bing-e480 systemd[1]: systemd-logind.service: Processes still around after SIGKILL. Ignoring.
More information about the computer:
Lenovo Thinkpad E480
Memory: 16G
Processor: Intel® Core™ i7-8550U CPU @ 1.80GHz × 8
Graphics: Radeon 500 Series (POLARIS12, DRM 3.35.0, 5.4.0-31-generic, LLVM 9.0.1) / Mesa Intel® UHD Graphics 620 (KBL GT2)
OS: Ubuntu 20.04LTS64-bit
The system is the only OS on the machine and is default installed.
Can anyone help?