Solve the problem of abnormal screen display after ubuntu18.04 update

Students who have used ubuntu for deep learning know that NVIDIA drivers are particularly difficult to install. In the morning, I clicked on the Ubuntu update. After I restarted the update, the computer could not turn on with a black screen. Then all kinds of manual installation of the driver, what about downloading the driver on the official website, installing with the parameter -no-opengl-files, turning off nouveau, turning off lightdm, these are all useless. As shown below:

Note: Do not update the kernel when updating the Ubuntu software. The high version of the kernel may not match the nvidia driver, so you can update the software next time, but do not update the kernel! ! !

It looks good from the picture, but it actually looks like 800*600. All kinds of toss, all kinds of upset, all kinds of manual installation. Installing a graphics card driver makes the system a mess.

Attention Attention:

The error message is shown above. What does that mean? There are two situations where this problem can occur. First, the nvidia kernel module is running and may be occupied by a program; second, the ubuntu kernel does not support the current nvidia kernel module. If there is no running program that requires gpu, then there may be a problem with the nvida kernel module.

How to solve it?

I found a big tweet online, but in the end it was just two commands.

ubuntu-drivers devices
 
ubuntu-drivers autoinstall

Then update the grub boot

sudo vi /etc/default/grub
# 把文件中"...splash"引号内的文本添加一段改成"... splash acpi_osi=linux"
# :wq,保存退出
sudo update-grub2

Ok, you're done, reboot and re-enter the ubuntu system, open nvidia-settings, run nvidia-smi, and take a group photo, as shown below:

Guess you like

Origin blog.csdn.net/Xiao_Xue_Seng/article/details/100039503