Ubuntu 18.04 is stuck at loading screen after new installation
I installed Ubuntu 18.04 from a bootable USB last night, but when I tried to login to the operating system I got stuck at a ubuntu loading screen with five dots on it.
I have seen an older question where it might seem to be a graphics problem, and the solution mentioned was to press Ctrl +Alt+f1,f2,f3 etc. to go the shell, but when I do that the shell is not showing up.
What else can I try?
Ubuntu 18.04 uses Wayland display server which does not work on a few systems.
Try the below steps to make the system boot normally:
- Go to recovery mode from the GRUB menu and then boot into the system. Recovery mode uses low graphics and hence will not get stuck at the splash (logo) screen.
- Once you are logged in, open a terminal (Use Ctrl+Alt+t shortcut)
-
Try changing the display server to Xorg in the gdm3 custom conf file using the below command and reboot the system.
sudo gedit /etc/gdm3/custom.conf
Change
#WaylandEnable=false
toWaylandEnable=false
(Basically uncommenting it).Reboot the system.
This will disable the Wayland display server and make the system to use the Xorg display server. Your system should hopefully progress to the login screen now with a normal boot.
Let me know if this works.
Reference: https://linuxconfig.org/how-to-disable-wayland-and-enable-xorg-display-server-on-ubuntu-18-04-bionic-beaver-linux
The similar stuck issue occurs when I try to restart or shutdown the system after a new installation of ubuntu 18.04.2 on my laptop.
I solved the problem by switch from Nouveau driver to Nvidia driver, using Software & Updates App, as following screenshot. The problem disappers after using Nvidia driver, so I assume there are some potential bugs in Nouveau driver.
Just for references, here is my video card info:
$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001D12sv00001D72sd00001604bc03sc02i00
vendor : NVIDIA Corporation
driver : nvidia-driver-390 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
$ sudo lshw -c video
# OR
$ sudo lshw -c display
*-display
description: VGA compatible controller
product: HD Graphics 620
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 02
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:128 memory:b2000000-b2ffffff memory:c0000000-cfffffff ioport:4000(size=64) memory:c0000-dffff
*-display
description: 3D controller
product: GP108M [GeForce MX150]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=nvidia latency=0
resources: irq:133 memory:b3000000-b3ffffff memory:a0000000-afffffff memory:b0000000-b1ffffff ioport:3000(size=128)
For the issue of stucking in the Background or Lock Screen, I have tried the way to complete the task.
1. Give the command
$ sudo gedit /etc/default/grub
2. Add nomodeset
Modify the following line
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to the the new one.
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
3. Save and Exit
Reference:
https://itsfoss.com/fix-ubuntu-freezing/