Software & AppsOperating SystemLinux

How To Fix Login to Black Screen Issue in Ubuntu 18.04 with Nvidia Graphics Cards

Ubuntu 20

Introduction

If you’re using Ubuntu 18.04 with an Nvidia graphics card, you might encounter a black screen issue when trying to log in. This is a common issue that many users face, and it’s usually related to the Nvidia graphics driver. In this article, we will guide you through the process of troubleshooting and resolving this issue.

Understanding the Problem

When you log into Ubuntu, the system should load the desktop environment and display your desktop. However, if you’re seeing a black screen, it means that something is preventing the desktop environment from loading correctly. This could be due to a variety of factors, but one of the most common culprits is the Nvidia graphics driver.

Checking the Desktop Sessions

The first step in troubleshooting this issue is to confirm which desktop session you are having trouble logging into. Ubuntu 18.04 typically provides two options: GNOME and Unity. If both options result in a black screen, it’s a crucial piece of information for troubleshooting.

Checking Ownership of Files

Next, you’ll want to check the ownership of files in your personal area. You can do this by running the following command in the terminal:

find ~/ -mount ! -user $(whoami)

This command will list any files that are not owned by your user. If any files are not owned by you, you can retake ownership by running the following command:

sudo chown -R $(whoami):$(whoami) ~/

Reinstalling the Nvidia Driver

Since the black screen issue is often related to the Nvidia graphics driver, it’s a good idea to try reinstalling the driver. You can do this by running the following command:

sudo apt install libnvidia-gl-390

This command will reinstall the libnvidia-gl-390 driver. If there are no issues during the installation, it should resolve any problems related to the Nvidia driver.

Installing the LightDM Login Manager

If reinstalling the Nvidia driver doesn’t resolve the issue, you might want to try installing the LightDM login manager. You can do this by running the following command:

sudo apt install lightdm

During the installation, you’ll be asked to select the default login manager. Make sure to select LightDM. You can toggle between LightDM and the GNOME login manager by running the following command:

sudo dpkg-reconfigure lightdm

Conclusion

If none of the above steps resolve the black screen issue, further troubleshooting may be required. You might want to check for any error messages in the system logs (/var/log/syslog) or Xorg logs (/var/log/Xorg.0.log) that could provide more information about the issue.

Remember, it’s always a good idea to backup important files before making any changes to your system. If you’re not comfortable with troubleshooting this issue yourself, consider seeking help from a professional or a knowledgeable friend.

We hope this guide has been helpful in resolving your black screen issue in Ubuntu 18.04 with Nvidia graphics cards. If you have any questions or need further assistance, feel free to leave a comment below.

How do I determine which desktop session I am having trouble logging into?

To determine which desktop session you are having trouble with, you can check the available options in the login screen. Ubuntu 18.04 typically provides two options: GNOME and Unity. If both options result in a black screen, it indicates a more general issue.

How can I check the ownership of files in my personal area?

You can check the ownership of files in your personal area by running the command find ~/ -mount ! -user $(whoami) in the terminal. This command will list any files that are not owned by your user.

How can I retake ownership of files that are not owned by me?

To retake ownership of files that are not owned by you, you can run the command sudo chown -R $(whoami):$(whoami) ~/ in the terminal. This command will change the ownership of all files in your personal area to your user.

How do I reinstall the Nvidia graphics driver?

To reinstall the Nvidia graphics driver, you can run the command sudo apt install libnvidia-gl-390 in the terminal. This command will reinstall the libnvidia-gl-390 driver, which often resolves issues related to the Nvidia driver.

What should I do if reinstalling the Nvidia driver doesn’t fix the black screen issue?

If reinstalling the Nvidia driver doesn’t resolve the black screen issue, you can try installing the LightDM login manager. You can do this by running the command sudo apt install lightdm in the terminal. During the installation, make sure to select LightDM as the default login manager.

How can I switch between LightDM and the GNOME login manager?

You can switch between LightDM and the GNOME login manager by running the command sudo dpkg-reconfigure lightdm in the terminal. This command will allow you to toggle between the two login managers.

What should I do if none of the above steps resolve the black screen issue?

If none of the above steps resolve the black screen issue, you may need to further troubleshoot the problem. Check for any error messages in the system logs (/var/log/syslog) or Xorg logs (/var/log/Xorg.0.log) that could provide more information about the issue. Consider seeking help from a professional or a knowledgeable friend if you’re not comfortable with troubleshooting it yourself.

Leave a Comment

Your email address will not be published. Required fields are marked *