Linux resolution is abnormal or circular login

Linux resolution is abnormal or circular login

phenomenon

Abnormal resolution

After Linux is turned on, the icon becomes larger (the resolution is incorrect), and the children's shoes with dual monitors have only one monitor showing the desktop, and the other monitor has no signal input.

Cycle login

Log in to an ordinary user account, enter the password and then go to the user selection interface

开机
用户选择界面
选择普通用户
输入密码&回车

the reason

The reason for the abnormal resolution is mostly that the graphics card is hung up.

Cyclic login may be that the user account has not been created, or the graphics card may be faulty. If the account can be logged in normally before, it is likely to be a problem with the graphics card. In this case, there are usually complications of abnormal resolution.

Knocking on the blackboard: As long as the resolution is abnormal, most of the graphics card hangs

solution

Reinstall the graphics driver

I hope you still save the graphics card driver installation package during installation, if not, you need to download it again

Driver Download

If there is a driver installation package, please skip this step

Drive reinstallation

Enter the administrator directory as an administrator

su [administrator name]
cd ~

Open the directory where the driver is located, reinstall the driver (uninstall and then install), restart, for example:

  • File Directory:00-softwares
  • Driver files:NVIDIA-Linux-x86_64-430.50.run
cd 00-softwares
sudo ./NVIDIA-Linux-x86_64-430.50.run --uninstall
sudo ./NVIDIA-Linux-x86_64-430.50.run
sudu reboot

At this time, the resolution is abnormal or the graphics card problem caused the loop login problem has been solved, you can check the graphics driver status

watch nvidia-smi

Recreate user

Configure root user

$ Is an ordinary administrator, # is a system administrator. The root user does not have a password by default, so it cannot be used. If you want to use root, you must set a password for the root user (if you have a password, skip this step):

sudo passwd root

Create user

Then create a user with admin rights

sudo adduser new_user

Enter the password of the administrator account to start creating a new user, and you can choose to fill in user information

Then when logging in, enter root as the username and then enter the password.

Administrator rights

If you need to give this user root privileges, execute the command:

sudo vim /etc/sudoers

Modify the file as follows:

...

# User privilege specification
root ALL=(ALL) ALL
new_user ALL=(ALL) ALL

Save and exit, the new_user user has root privileges.

Guess you like

Origin blog.csdn.net/qq_38832757/article/details/107554038