Now before you read anything else - YES I know there are endless questions about this. But none have worked. NONE.
So I've been facing a very frustrating problem twice now. I first have everything smooth (example: Minecraft with 60 FPS, even though some annoying flickering). Then I do something stupid.
First time I accidentally installed an Intel driver even though I had Nvidia. This time - I was stuck in a fullscreen application, couldn't use Ctrl+Alt+F1 because of an error I later fixed, but so I decided to do the Magic Keys combination... Except I typed ROFUS instead of REISUB for some reason. Now it should've shutten down at O and ignored the rest, but still
But after this, randomly my drivers are uninstalled. Everything is super slow, (example: Minecraft is 10 FPS).
So what I do is I mess with the driver. WHATEVER I do with it, whether it's changing to a propietary driver or doing it manually in the command prompt or whatever... It causes a login loop.
Here is what I have tried: (Of course I ran some commands on sudo) Last time: Moved/Deleted et.c et.c on some .Xa file everybody was talking about. More stuff like that people with a different issue had.
ubuntu-drivers autoinstall
apt install nvidia-current
Now: Adding the graphic drivers PPA
ubuntu-drivers autoinstall
The ONLY thing that worked (both times):
apt purge nvidia*
Yes that's right, it is IMPOSSIBLE to login if I have any nvidia- things installed. Now you might be asking "But you keep mentioning last time - How did you solve it then?". I didn't. I had to re-install Ubuntu. It was a nightmare I never want to do again.
EDIT: It's been a really, really, long time since I posted this. But in an unrelated other question, I got my answer. The reason is NVIDIA Optimus. I can't find an Ubuntu wiki on it, but Arch has one.
nvidia-current
is very outdated. You tried this? askubuntu.com/questions/760934/…Unable to locate package nvidia-364
I did all commands exactly as they were given to me.nvidia-375
.