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
- Download >sonycw.txt< to your
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.
Open terminal and paste these commands.
sudo mv /home/your_user_name_here/sonycw.bin /etc/X11/
gksu gedit /etc/X11/xorg.conf
Paste this in xorg.conf and then save:
VendorName "NVIDIA Corporation"
Option "ConnectedMonitor" "DFP-0"
Option "CustomEDID" "DFP-0:/etc/X11/sonycw.bin"
sudo apt-get install nvidia-glx-185
Restart the computer and your done
for additional information see