Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Ubuntu 11.04. I can not install my nvidia Geforce 310m driver.

I active it by Hardware Drivers (recomended) but it is not in use. I ran this command in terminal sudo nvidia-xconfig then restarted my computer.

My computer after restarting can not load login window and it is black. How can i solve this problem?

share|improve this question

migrated from May 1 '11 at 21:22

This question came from our site for professional and enthusiast programmers.

If you have a Sony Vaio VPCCW laptop, you may follow the below instructions. Note that the configuration details for the Nvidia GT 310M cards may be different across machines. For example, some manufacturers may implement some kind of hybrid graphics (like Optimus). For more details on that, see How well do laptops with Nvidia Optimus work?

From this post on the Ubuntu Forums

  1. Download >sonycw.txt< to your /home/username/ directory.

Note bodhi.zazen: You probably need to have an account on the forums to download that file, I could not find another option, sorry.

Note bodhi.zazen: - I left the sonycw.bin link as it may help some. If you do not have a sony, try the nvidia driver without the sonycw.bin. If it does not work, google search for your hardware and a more appropriate EDID.

  1. Rename sonycw.txt to sonycw.bin

  2. Open terminal and paste these commands.

    sudo mv /home/your_user_name_here/sonycw.bin /etc/X11/
    gksu gedit /etc/X11/xorg.conf
  3. Paste this in xorg.conf and then save:

    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    Option "ConnectedMonitor" "DFP-0"
    Option "CustomEDID" "DFP-0:/etc/X11/sonycw.bin"
  4. Install nvidia-glx-185

    sudo apt-get install nvidia-glx-185
  5. Restart the computer and your done

for additional information see

share|improve this answer
This information only applies to the mentioned laptop model, using it with other machine may damage it (due to forcing EDID). I've seen GT310M cards which are Optimus-alike for which may help – Lekensteyn Mar 30 '12 at 15:20

Your Answer


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