After logging on to ubuntu, enter the user name and password and jump back to the logon interface RT. I installed an input method in Ubuntu 12.04 one day and logged on again after logging out. Enter the correct user password on the logon page. The screen is black for a period of time and you will be redirected back to the logon page. The restart is invalid. Search online. The solution to this problem is found. Follow his methods to solve the problem. Symptom: after entering the password on the Ubuntu login interface, the black screen will pop up and text such as check battery state will pop up again. Cause: the. Xauthority file owner in the main directory is changed to root, so that the. Xauthority file cannot be obtained when users log on. Note: Xauthority is a startx script record file. When Xserver is started, read the file ~ /. Xauthority. Read the corresponding display record. When a client program is started to call XOpenDisplay (), it also reads the file and sends the magic code to Xserver. When Xserver verifies that this magic code is correct, it will agree to the connection. Observe the startx script and you can see that every time startx runs, a new record is added to ~ by using the xauth add command before xinit is called ~ /. Xauthority, used to run X this time to use the authentication solution: we need to change the. Xauthority owner to the login user (or simply delete. Xauthority, this method