How to deal with freezing at the login screen in Arch/Artix Linux
It all started when I opened a site called "Koikatsu Sunshine," which apparently caused a high load by heavily utilizing the GPU, and then my desktop environment crashed.
After that, it started freezing after entering the password on the login screen, and I couldn't open it.
Since I could log in as root, I saw that there was room for recovery.
So, I thought it was failing to start X window, so I looked into Xorg.0.log in /var/log/ as root to check the error log.
[ 969.594] (EE) AIGLX error: dlopen of /usr/lib/dri/i965_dri.so failed (/usr/lib/dri/i965_dri.so: cannot open shared object file: No such file or directory)
[ 969.594] (EE) AIGLX error: unable to load driver i965
Seeing the string "i965", I thought it was an Intel driver, but the Intel driver couldn't be loaded?
Since it could start as root, I judged that it wasn't very relevant and looked for people with similar symptoms.
[Solved] Stuck after entering password at login page
Found one. Username "ganja" (lol)
Reading the latter part, it seems like the administrative privileges (access rights) might have been transferred to another user, or the authentication file itself might be corrupted? So, it suggests changing the permissions or deleting the file itself.
"Take ownership of bashrc, delete .Xauthority, and then try logging in as ganja again."
So, the permissions of the two files were for the target username, so there was no problem. I then renamed .Xauthority to backup.Xauthority, and I was able to log in successfully.
Ah, that's good, that's good.