Ubuntu, nvidia, projector, screen cloning, 1024×768 resolution
I have a laptop that I use for teaching. It is connected to a projector. Everything was fine until today. The next semester starts next Monday, so today I checked if the laptop still works well with some projectors. Nope. Of course not! I tried three classrooms. One projector was OK, but two others didn’t recognize my laptop (“no connection”).
In order to avoid problems with the nvidia driver, I used to keep an old driver on my machine that worked well. When the packages were updated, I always left out the nvidia packages. But something happened since December… So I decided to upgrade all the Nvidia packages too. By the way, I have Ubuntu 12.04 LTS on this laptop. The result almost made me cry: after the upgrade I couldn’t change the resolution on my laptop anymore. If I want to use a projector in clone mode, switching to resolution 1024×768 is mandatory. Damn!
This article saved my ass. It explains how to update your Nvidia driver with the newest one directly from Nvidia. The new driver, which came out in January 2014, works well. I can change the resolution and cloning works too. Phew…
Here I sum up the steps from the aforementioned article:
(1) Download the latest driver for your card from http://www.nvidia.com/Download/index.aspx .
(2) Blacklist the
nouveau driver. “
sudo vi /etc/modprobe.d/blacklist.conf” and add this line to the end:
(3) Switch to the virtual terminal (Ctrl+Alt+F1) and execute these steps:
$ sudo apt-get remove --purge nvidia* $ sudo service lightdm stop # locate the downloaded driver and run it # your version probably will be newer $ sudo sh ./NVIDIA-Linux-x86_64-295.33.run $ sudo reboot
If something went wrong and you encounter some problems during the reboot, here is how to revert the changes. Switch to the virtual terminal (Ctrl+Alt+F1) and execute these steps:
$ sudo sh ./NVIDIA-Linux-x86_64-295.33.run --uninstall $ sudo apt-get install nvidia-current $ sudo service lightdm restart