2

I am currently having problems with my Nvidia driver after upgrading Ubuntu to the latest version. I get 640x480 and a log-in loop.

If I drop to a shell and re-install the driver by executing these commands:

sudo service lightdm stop
sudo bash NVIDIA-Linux-x86_64-367.44.run

I can do...

sudo service lightdm start

And everything works again - full resolution, can log in.

After rebooting, I end up with 640x480 and the log in loop again.

I am sure when I originally set up the machine a few years ago, I had to do something else, but I cannot remember what it was.

Any help appreciated.

The card model is a GeForce GTX 750Ti this looks like the same issue as Login Loop, Video Driver Problem, Reinstalling Driver Fixes until Reboot which has no answer, so I'll keep this question up to date with my progress...

Update 1

Followed Graphics issues after/while installing Ubuntu 16.04/16.10 with NVIDIA graphics by doing...

sudo apt-get purge nvidia-*
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-370
sudo reboot

I got some warnings about uninstalling the old driver during the last command...

WARNING: Your driver installation has been altered since it was initially
         installed; this may happen, for example, if you have since installed
         the NVIDIA driver through a mechanism other than nvidia-installer
         (such as your distribution's native package management system).
         nvidia-installer will attempt to uninstall as best it can.  Please see
     the file '/var/log/nvidia-uninstall.log' for details.

... and then it outputs some errors like this...

ERROR: Unable to create '/usr/lib32/nvidia-370/libGLESv1_CM_nvidia.so.370.28'
       for copying (No such file or directory)

...but it looks like this is due to the uninstall.

Now after a reboot, I do not get the log in loop, but I still only have 640x480 as the only available screen size

I'm going round in circles on this one...

  • 1
    This is a wrong way of installing Nvidia drivers. Install from Ubuntu repos or a PPA. – Pilot6 Sep 10 '16 at 13:08
  • 1
    @Pilot6 have tried that (tried quite a lot of things during spare time over the last few weeks), the only way I can get into my desktop at the moment is by doing the above steps every time after a reboot, it's getting annoying... Read hundreds of posts by people with simliar issues... – BretC Sep 10 '16 at 13:16
  • The drivers don't actually take effect until you reboot. – TheWanderer Sep 10 '16 at 13:18
  • 1
  • 1
    Looks like this user askubuntu.com/questions/755700/… has had the same problem... As there are no answers, I am dreading the nuclear option of "reinstall everything and hope it works" :( – BretC Sep 10 '16 at 13:55
0

After wasting about 10 hours of my life over this for the past few weeks, I've finally found out what the problem was.

I went back to my original way of installing the driver as in the question.

After powering on my machine, I was in 640x480 mode, so I opened a shell and typed...

> lspci -nnk | grep -iA2 vga

After a fresh reboot it was listing...

bret@bret-Precision-WorkStation-T5500:~$ lspci -nnk | grep -iA2 vga
03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] [10de:1380] (rev a2)
        Subsystem: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] [10de:1380]
        Kernel modules: nvidiafb, nouveau, nvidia_352

After stopping lightdm, re-installing the driver and starting it again, the command output was...

03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] [10de:1380] (rev a2)
        Subsystem: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] [10de:1380]
        **Kernel driver in use: nvidia**

I then remembered what I did when I originally set up the machine with Ubunto 14.11, I had to blacklist the other two modules by adding...

# Blacklist modules that conflict with NVidia driver...
blacklist nouveau
blacklist nvidiafb

to /etc/modprobe.d/blacklist.conf

Now when I reboot, everything works.

  • This jogged my memory... askubuntu.com/questions/35273/… - I also removed a file that was left by an old nvidia v352 driver in modprobe.d - not sure if this made any difference – BretC Sep 10 '16 at 15:28
  • As commented above: This is a wrong way of installing Nvidia drivers. Install from Ubuntu repos or a PPA – user589808 Jan 17 '17 at 13:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.