The problem was not really (I guess) the drivers but Ubuntu didn't detected my monitor is supporting any resolution higher then 1024x768.
I first installed the correct driver with:
sudo apt-get install mesa-utils
Then when you go to "details" from the unity launcher, you'll see "Intel® Ivybridge Desktop" as driver for your graphics card. I also tried kernel 3.3.7 as suggested by some others but with no succes and also I am getting system failures with that kernel. Then kernel I currently use is:
uname -a
3.2.0-26-generic
Then I tried to get it working by adding a xorg.conf file in the /etc/X11/ directory but with no succes (it looked like it didn't take any effect). I did that after reading this page.
Finally I tried to add a new mode with the xrandr
tool and that worked. I created a .xprofile
file in my home dir with the contents below and now after booting my Ubuntu the resolution is perfect.
My .xprofile
content:
cvt 1440 900 60
xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --addmode VGA1 "1440x900_60.00"
xrandr --output VGA1 --mode "1440x900_60.00"
Note: Just can't just copy the above content. It depends on what you have connected (DVI, HDMI, VGA0/1, etc and which resolution you want to run.