Precautions and solutions when installing Ubuntu on NVIDIA GeForce PCs

Introduction

I made my own PC and tried to install Ubuntu 18.04 cleanly, but probably I got stuck due to a problem around the driver of the graphic board. I have solved it by visiting several sites, so I will summarize it.

environment Model number
MB ASUSTeK COMPUTER INC. PRIME X299-A II
CPU Intel Core i9-10920X
GPU MSI GeForce GTX 1660 AERO ITX 6G OC
OS Ubuntu 18.04.5 LTS 5.4.0-48-generic x86_64

How to do a clean install of Ubuntu

Since the information is posted on many sites, I don't think it is necessary for details, but I created a USB installation media and installed it on the system drive from there.

Creating installation media

See here for how to create it. You can use USB of 4GB or more.

OS installation

Since we are using an empty system drive, we selected the boot disk from the BIOS (`F2``ʻor Del during booting on this motherboard). The following screen will be displayed, so select the second "Install Ubuntu" from the top and proceed as it is without any problem. EFI partition etc. will be done without permission if you specify clean installation, so you do not need to think deeply unless it is dual boot etc. See here for detailed settings and installation. install.png

Screen crash

When the OS installation is complete, a screen prompting you to restart will appear. When I proceeded with this, the screen crashed on the login screen (a state where a purple line was partially included in the black background). I tried pressing some keys, but the situation did not change at all.

After investigating, it seems that the compatibility between "Wayland", which is used for the login screen by default in Ubuntu 18.04 LTS, and the NVIDIA graphic board is not good, and there are many problems that the login screen is not displayed. By referring to the following site, stopping "Wayland" and logging in in recovery mode, this problem was solved, ** it seemed as if **. See also: https://linuxfan.info/ubuntu-gdm-wayland-false

Crash again, re-install the driver

After that, when I restarted Ubuntu, the same problem occurred again. I thought that the setting made in the recovery window had disappeared, but when I checked it again, the setting of `` `WaylandEnable = false``` was saved normally, so I started with this setting ** + recovery mode **. It seemed necessary.

I can't go into recovery mode every time, so when I was looking for a way to solve the root cause, I found that I should delete the Nvidia Driver that came in and re-install the driver for Ubuntu. It was. Reference: [Graphical login screen does not appear after starting Ubuntu](https://www.it-swarm-ja.tech/ja/nvidia/ubuntu%E3%82%92%E8%B5%B7%E5 % 8B% 95% E3% 81% 97% E3% 81% 9F% E5% BE% 8C% E3% 80% 81% E3% 82% B0% E3% 83% A9% E3% 83% 95% E3% 82 % A3% E3% 82% AB% E3% 83% AB% E3% 83% AD% E3% 82% B0% E3% 82% A4% E3% 83% B3% E7% 94% BB% E9% 9D% A2 % E3% 81% 8C% E8% A1% A8% E7% A4% BA% E3% 81% 95% E3% 82% 8C% E3% 81% AA% E3% 81% 84/997916704 /)

Enter the following command in the terminal while logged in in recovery mode.

python


$ sudo apt purge nvidia-*
$ sudo apt autoremove
$ sudo ubuntu-drivers autoinstall

After doing this, by restarting, you can log in safely, the driver works properly, and the screen size etc. are recognized with the recommended settings.

Summary

Ubuntu 18.04 (and later?) Seems to be incompatible with the NVIDIA graphics board, so you need to reinstall the appropriate driver. Therefore, I turned off "Wayland" in recovery mode and logged in.

Recommended Posts

Precautions and solutions when installing Ubuntu on NVIDIA GeForce PCs
Precautions when installing fbprophet
Error and solution when installing python3 with homebrew on mac (catalina 10.15)
Install and run dropbox on Ubuntu 20.04
Install OpenCV and Chainer on Ubuntu
Install CUDA 8.0 and Chainer on Ubuntu 16.04
Precautions when installing tensorflow with anaconda
Support when installing pillow on python3.9
Precautions when using codecs and pandas
Install fabric on Ubuntu and try
Notes on installing Ubuntu 18.04 on the XPS 15 7590
Error resolution when installing numba on macOS
Build Python3 and OpenCV environment on Ubuntu 18.04
Notes for installing Sublime Text on Ubuntu
Python virtual environment and packages on Ubuntu
[Note] Procedures for installing Ubuntu on Windows 10
A struggle when installing pyenv on Cygwin
Mount and format Disk on Ubuntu on GCP.
I stumbled upon installing sentencepiece on ubuntu
Install Puppet Master and Client on Ubuntu 16.04
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Check! Troubleshooting when installing PyObjc on Mac
To avoid seeing hell when installing django-toolbelt on windows, heroku and python3.4 (64bit) ...
Error that occurred in OpenCV3 and its solution Precautions when using OpenCV3 on Mac