A few days ago I ran a sudo apt update
+ upgrade
on my Ubuntu 16.04. I had not done so for about 2 months. In the meantime, I had changed my graphics card from a GTX 1060 to a GTX 1070.
When today I tried to login, I discovered I had entered an annoying infinite login loop. This is the content of my xsessions-errors
log:
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 155 (NV-GLX)
Minor opcode of failed request: 4 ()
Resource id in failed request: 0x3d0
Serial number of failed request: 46
Current serial number in output stream: 46
openConnection: connect: No such file or directory
cannot connect to brltty at :0
[...]
Looking at the promising answers to this question, I tried the following:
- Check the ownership of
.Xauthority
belongs to me, and notroot
(it does belong to me) - Reconfigure
lightdm
- Reinstall
lightdm
- Check if my
/home/
is full (it's at 44% usage)
all unsuccessfully. Then I started believing my issue lies in a NVIDIA drivers update, as I read multiple sources on various websites explaining that was a common issue. It's worth adding I did not make any recent modification to ./profile
or similar, and never run the command startx
in my life.
I found these potential solutions to my issue that revolve around NVIDIA drivers:
- installing
nvidia-current
drivers (older than latest supported by NVIDIA) as proposed here; - reinstalling NVIDIA drivers by running
nvidia-installer.sh
as proposed here;
My problem is that on my computer I spent tens of hours configuring CUDA, in a delicate balance with NVIDIA drivers, and various packages. For installing CUDA, I also had to install a specific Ubuntu kernel version (4.4).
Is there a chance that my CUDA environment will break if I touch the drivers? Is there actually anything else I could try to fix the issue?