As of about two days ago, upon attempting to log into my Ubuntu machine, any inputs in the Ubuntu login GUI result in a total freezing of the system. Prior to UN/Password being submitted all elements of the interface behave as expected (to include widgets, mouse, keyboard etc.) The only recourse is to force shutdown.

Background details:

  • Ubuntu 16.04 LTS

  • MSI 64x single boot (UEFI)

  • Admin boot password is active

  • Any GUI-based login attempts lock the entire system requiring forced shut down

I've been trying to figure this one out since Saturday morning (almost two days now).


  • No errors currently exist in the system bios

  • Live images can boot into both Legacy and UEFI. (Tested with Kali live, Ubuntu Live, Grub2 Repair Disk, and the super awesome USB version of SystemRepairCD )

  • The projects I was working on prior to the manifestation of the issues at hand involved installing Google Cloud SDK, Firebase, NPM, and NodeJS.

  • Last week I set up a WAVES blockchain node


The problem likely exists within a PATH conflict. I recall having trouble with some bugs related to NPM and NodeJS permissions and so (as is suggested in the official documentation, and as is suggested by Firebase documentation), I set up an alternative PATH.

Please see the following for reference: NPM: Fixing NPM Permissions

So all of that having been said, the problem remains. Additionally I attempted the following at the GUI login page:

(Control) + (Alt) + (F1)

The command froze my system... Again.

Please assist me with this error as I really need to be operational again before the work-week begins.

Thank you all in advance.


(20170724) It appears as if several other people are having issues with GUI related errors which come from the newest line of NVIDIA GTX graphics cards.

  • If it freezes in TTY before any attempt of graphical login it won't be easy. Maybe boot a live session, chroot and try undoing the last changes (your hypothesis is plausible but it could be more than that and you mentioned permission so...). Other than that, I have no idea. Reinstalling is probably faster. – user692175 Jul 24 '17 at 5:43
  • @MichaelBay lol I'm hoping this doesn't come down to a reinstall but I've found an extra drive to salvage files on to if it comes to that. Working on the chroot via live image at the moment (fingers crossed) – h8rt3rmin8r Jul 24 '17 at 5:56
  • 1
    does recovery mode work? – ravery Jul 24 '17 at 5:57
  • @ravery I was able to boot into a previous version of Ubuntu without recovery mode. I just don't know what aspect/s of the current version are causing the system to break down. – h8rt3rmin8r Jul 24 '17 at 9:04
  • @user716881 Could you grab the /var/log/syslog? That might tell us something. Also, does ALT+Sysrq+R,E,I,S,U,B work? – Android Dev Jul 24 '17 at 12:47


This post explains the basis for a working solution: How to change proprietary video driver using the command line?

In summary, the most recent Ubuntu update threw off the synergistic balance between many of the latest NVIDIA mobile graphics cards and the Ubuntu system. As a result, users were met by a frozen GUI or a command line upon attempting to log in after the update completed. Ultimately, the working solution is to take the following steps:


This may involve a forced shutdown if you're stuck at the frozen GUI login page. To perform this, simply press and hold the power button till your system shuts down. Press the power button again to initiate the Power-On sequence.


It is important that you perform this step as it will save you from having to perform another more complicated step during this process. "Safety Boot" is disabled via your BIOS/UEFI boot menu. Accessing the BIOS menu can be a matter of frustration for some, as the methods of entry are different for many computers (it's based on your hardware, so you may end up having to look it up). That being said, MANY machines can be forced into the boot menu by consistently pressing (or holding) either the DELETE, F10, F2, SHIFT, or the ESC buttons several times during the initial booting process until the menu appears. Once you enter the BIOS menu, navigate through to the "Safety Boot" setting and ensure that it is disabled. (Not all machines are equipped with Safety Boot)


After making sure Safety Boot is disabled, restart the system again


For some systems, the GRUB menu is displayed every time the computer is turned on. For other systems (like mine) you'll have to press and hold the SHIFT key while booting up the system to access GRUB. Upon getting to the menu, navigate to the "Advanced Options" section and select the previous update of Ubuntu (just look at the version numbers). There is no need to access the system via safety mode etc. Simply use the previous edition of Ubuntu which predates the faulty GPU driver update.


Once inside the system you'll need to get the Ubuntu driver tool by typing the following commands into your system Terminal:

sudo apt install ubuntu-drivers-common
sudo apt-get update

Now run the tool with the following command:

sudo ubuntu-drivers devices

This will give you a readout of your graphics cards and the available drivers which correspond to them. Here is an example of what this list may look like:

== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==

vendor   : NVIDIA Corporation
modalias : pci:v000010DEd00000DDAsv000017AAsd000021D1bc03sc00i00
model    : GF106GLM [Quadro 2000M]
driver   : xserver-xorg-video-nouveau - distro free builtin
driver   : nvidia-304-updates - distro non-free
driver   : nvidia-304 - distro non-free
driver   : nvidia-331 - distro non-free recommended
driver   : nvidia-331-updates - distro non-free

Notice that one of the options says "recommended". That's the one to get. Just download and install that driver (and reboot the system) with the following commands:

sudo apt-get install nvidia-331
sudo apt-get update
sudo reboot

You can now log into your user account via the Ubuntu GUI.


I have noticed that when I try to use the new default of Linux version 4.10.x, then it fails to log in. I have tried to use recovery mode, but that still failed.

I have to go into the advanced mode (holding onto shift as the computer starts up) and use the previous version. Linux 4.8.0-58, and then it works. I have an NVidia Quadro FX 4600 and an Intel Core Quad machine.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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