2

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.

1 Answers1

0

Have you tried this (I'm assuming you can get a terminal on the broken PC):

Go to the NVIDIA website and download the latest driver for your card. The Linux driver should be a ".run" file.

Put the driver on a USB stick and pop it in the broken PC.

Use this command to force it to boot into text mode:

sudo systemctl set-default mutli-user.target

And this one to reboot:

sudo shutdown -r 0

Next time the terminal comes up, log in, copy the Nvidia driver to the PC using:

cp <source> <destination>

Make sure the Nvidia file is executable by doing:

sudo chmod +x <driver name>

Run the installer by adding "./" to the start of it:

./<driver name>

When it's finished you want to tell the PC to boot back into graphical mode by doing:

sudo systemctl set-default graphical.target

And reboot to the desktop:

sudo shutdown -r 0

Hope this helps.