Ubuntu 20.04 freezes before login screen, no dual boot

5,598

Solution 1

I have installed Ubuntu 20.04 and faced same problem. The system were hanging in boot screen with connected HDMI cable. Although it was running well without the connected HDMI cable.

I am using following hardware:

  • ASRock B460 board with LGA-1200
  • Intel Core 10th gen. with UHD 630 integrated graphic.

My solution consists of following steps:

  1. sudo apt-get update | sudo apt-get upgrade -y
  2. Restart the system (disconnect HDMI before Ubuntu starts)
  3. sudo nano /etc/default/grub
  4. Set: GRUB_CMDLINE_LINUX_DEFAULT="" just leave it empty
  5. sudo grub-mkconfig -o /boot/grub/grub.cfg
  6. Restart the system

The system does not have now this nice Ubuntu boot screen but instead prints everything on console, then login screen appears.

Solution 2

I also had the booting issue when I was trying to boot with HDMI connected. The presented solutions didn't work for me. So I ended up with downgrading of NVIDIA driver and it helped. I have issues with nvidia-driver-460, so I downgraded to nvidia-driver-450 The steps:

sudo apt-get purge nvidia-*
sudo apt-get udpate
sudo apt-get autoremove
sudo apt-get install nvidia-driver-450
sudo reboot

Btw I left grub config line GRUB_CMDLINE_LINUX_DEFAULT empty.

Share:
5,598

Related videos on Youtube

Kaushal
Author by

Kaushal

Updated on September 18, 2022

Comments

  • Kaushal
    Kaushal almost 2 years

    I have been trying to make Ubuntu 20.04 run on my new ASUS TUF for last 3 days without any luck.

    Right now, the issue I am facing is that my system hangs on login screen.

    I have already installed Nvidia drivers and loaded them.

    Adding nomodeset doesn't work for me, the system gets stuck even before login screen.

    I have already added intel_idle.max_cstate=1 in the grub, it worked for few reboots but then it stopped working.

    Sometimes, like 1 out of 5 times, removing quiet works for me but not always. Also, it makes my system very slow.

    The output for "lspci -k | grep -EA3 'VGA|3D|Display" is shown below:

    00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
        DeviceName: Onboard - Video
        Subsystem: ASUSTeK Computer Inc. UHD Graphics 630 (Mobile)
        Kernel driver in use: i915
    
    01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)
        Subsystem: ASUSTeK Computer Inc. TU117M [GeForce GTX 1650 Mobile / Max-Q]
        Kernel driver in use: nvidia
        Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
    

    I have also done the following:

    sudo dpkg --configure -a
    sudo apt-get update
    sudo apt-get upgrade -y
    

    It helped for few reboots, while making the system slower, like opening and closing terminal took couple of minutes, but has stopped working now.

    Can someone please help me with a permanent solution?

    • Pilot6
      Pilot6 about 4 years
      Disable Secure Boot in BIOS.
    • Kaushal
      Kaushal about 4 years
      Have already done that, didn't work for me.
    • Pilot6
      Pilot6 about 4 years
      Please edit your question and add output of lspci -k | grep -EA3 'VGA|3D|Display' terminal command.
    • Kaushal
      Kaushal about 4 years
      I have edited the question and added the image of the output.
    • Pilot6
      Pilot6 about 4 years
      Please don't post screenshots of text.
    • Kaushal
      Kaushal about 4 years
      Output has been added.
    • Pilot6
      Pilot6 about 4 years
      The output looks good.
  • Zeor137
    Zeor137 over 2 years
    This helped me, though my notebook still doesn't comes out of suspend
  • kurokirasama
    kurokirasama over 2 years
    this helped me too