Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have: ASUS P4V800D-X Intel Pentium 4 HT 2.80GHz 2.5GB RAM 40GB HDD nVidia 9500GT

When I installed nVidia drivers downloaded from nvidia.com website (selected recommended drivers), I simply can't boot into desktop. I pass through purple screen, and then I get black screen with flashing white underscore on left hand side. Keyboard shortcuts are not working and the only way to get to desktop mode is booting into recovery mode (holding shift when booting etc.). In recovery mode I run:

sudo apt-get remove --purge nvidia*

and that is the only way to get a "normal" desktop environment. I put a quotes on a normal because computer is running slow and I can't set proper resolution.

Also, I've tried to install drivers via ubuntu GUI interface (proprietary, tested drivers), but with no luck.

I am using Ubuntu 14.04

share|improve this question
    
Install the package apt://nvidia-current (sudo apt-get install nvidia-current, if apturl doesn't work) –  the_Seppi Apr 18 at 21:59
    
Thanks for the answer, but I still have the same problem. –  Dobroslav Apr 19 at 9:28

5 Answers 5

I'm on a HP 8710p and upgraded to the nVidia drivers a while ago. Now I run into black screens during boot, seemingly randomly.

Dobroslav's accepted answer - reinstalling the nVidia drivers and recompiling the kernel - seemed to solve the problem at first, but later I ran into a black screen again.

I searched around and found that this theory might explain the problem. Because twice in a row, things seemed to work directly after installing the new nVidia driver, but after the next reboot the black screen was back. Then on the next reboot, all was fine again. This would match with the theory that on reboot, the kernel module gets recompiled, but X already gets started before that happens, and so the module is not loaded - but on the next reboot it will already be compiled, and things work as normal.

So I found a workaround to the problem: whenever I get the black screen, I get rid of it by restarting X using these steps:

  1. Open a terminal with Ctrl + Alt + F1
  2. Login and type in terminal:

    ps a | grep X
    
  3. One of the lines will contain '/usr/bin/X' and start with a number, then 'tty7'. Eg. '2261 tty7'. Remember the number, which is the process id of the X server, and type:

    kill <number>
    

In my case, I then see an nVidia screen and directly after that I see the X login prompt come up. It's not a solution, but it's an acceptable workaround for me for now - at least I don't have to reboot or work with outdated drivers. I hope it helps someone else.

share|improve this answer
up vote 0 down vote accepted

I've finally solved my problem! For people who have the same problem like I had, here is the solution:

I recommend to make a fresh install of your system, if you already have an issue with drivers.

  1. Boot up Ubuntu and make sure you're connected on the internet.
  2. Open a terminal with Ctrl + Alt + F1
  3. Login and here is what you have to type in terminal:

    sudo apt-get update
    sudo apt-get dist-upgrade
    sudo apt-get install build-essential
    sudo apt-get install linux-source
    sudo apt-get install linux-headers-generic
    sudo apt-get dist-upgrade
    sudo reboot
    
  4. After reboot, repeat step 2. You'll need here an internet connection, again. Run these commands:

    sudo apt-get install nvidia-current-updates
    sudo nvidia-xconfig
    sudo reboot
    

It is very important to run nvidia-xconfig! If you don't run it, you'll crash your system!

After you've done this, you'll have a working nVidia graphics driver. Cheers!

share|improve this answer
    
This doesn't work for me... I'll post my own answer. –  littlegreen Oct 30 at 6:48

I fumbled around with Nvidia drivers and this black screen issue for two days. And I fell into this pit because of the 14.04 upgrade from 12.04. Grrr!

The original issue I was trying to resolve was the high cpu utilization of firefox, compiz & Xorg which made the graphics fairly unusable. After attempting to resolve that issue by upgrading the Nvidia driver, all went south and the black screen of death ensued.

Here's some commands that speak to my desktop configuration in case that helps...

"lshw" command produces:

description: Mini Tower Computer
product: OptiPlex GX270

"lspci -vnn | grep -i VGA -A 12" command produces:

VGA compatible controller [0300]: NVIDIA Corporation NV18 [GeForce4 MX 440 AGP 8x]

"wmctrl -m" command produces:

Name: Metacity
Class: N/A
PID: N/A
Window manager's "showing the desktop" mode: N/A

At the end of the day, I'm not 100% sure what worked as I fumbled around so much. Here's what I think did it.

Use the following to get rid of all Nvidia bits and rely on the default driver Nouveau.

sudo apt-get purge "nvidia *"

Then opt for using Metacity instead of Compiz. Those are the two salient changes I made and the result is a much improved graphics experience with acceptable cpu utilization when doing something such as video streaming from CNNx. Firefox still shows high cpu utilization in "nice top" but that doesn't seem to impact the graphics and especially the video streaming.

share|improve this answer
    
@amc This seems like an answer. See the text after "Here's what I think did it." –  Eliah Kagan Oct 17 at 2:37
    
@EliahKagan fair enough, though there's a lot of extra info, and it's not a "confident" answer. –  amc Oct 17 at 2:52

Had the same issue and this is what worked for me:

  1. install synaptic sudo apt-get install synaptic

  2. within synaptic, find the latest Nvidia driver by typing "nvidia" then search and checking version number (in my case v331.38) nvidia-331-updates

  3. after synaptic has done its thing, in a terminal: sudo nvidia-xconfig

Now I get a perfect boot and am using driver v331.38, not the latest but the latest certified by canonical.

share|improve this answer

The following thing worked for me.

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install build-essential
sudo apt-get install linux-source
sudo apt-get install linux-headers-generic
sudo apt-get dist-upgrade
sudo apt-get install nvidia-current-updates
sudo nvidia-xconfig
sudo reboot
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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