Posts Tagged ‘1024×768’

Ubuntu, nvidia, projector, screen cloning, 1024×768 resolution

February 14, 2014 2 comments

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 .

(2) Blacklist the nouveau driver. “sudo vi /etc/modprobe.d/blacklist.conf” and add this line to the end:

blacklist nouveau

(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 ./
$ 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 ./ --uninstall
$ sudo apt-get install nvidia-current
$ sudo service lightdm restart

Stuck with the resolution 640×480

July 19, 2011 2 comments

We have an old machine that I tried a few days ago. It has Ubuntu 8.04 on it with an integrated Intel graphic card. I remember I was using it with a resolution 1024×768 but now it started in 640×480. Under System -> Settings -> Screen Resolution there was only one option: 640×480. How to switch to 1024×768?

I checked the config file /etc/X11/xorg.conf but it only had one entry with 640×480. So I decided to regenerate this file from scratch.

# First, close all applications under Gnome.
# Go to "deep console" with CTRL+ALT+F1.
# Then stop the X:
$ sudo /etc/init.d/gdm stop
$ sudo Xorg -configure
# it will create /root/
# backup your current xorg.conf file:
$ sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
# install the new config file:
$ sudo mv /root/ /etc/X11/xorg.conf

Here is the file I got. As can be seen, resolutions are set “0 0” everywhere, so I had to customize it a bit.

I wanted to use my monitor in color depths 16 or 24, so I modified these lines:

   SubSection "Display"
      Viewport   1024 768
      Depth     16
   SubSection "Display"
      Viewport   1024 768
      Depth     24

Here is the new xorg.conf config file.

Now restart X and the resolution should be 1024×768:

$ sudo /etc/init.d/gdm start

How to create xorg.conf in Ubuntu 9.10