Smoothwall Firewall project

Monday, 7 September 2009

Trying out Kernel mode setting Intel acceleration with Ubuntu Jaunty

*** Be Warned this is highly experimental and could cause you hours of wasted lifetime if you don't fully understand what you are doing. You can just wait for the next release of Ubuntu, when this will be built in. ****


I have had one or two minor graphic problems on my Dell XPS1330 with Ubuntu jaunty, which is to do with the transition of the type of graphics driver which is going to be installed with the next release of Ubuntu. One of the key features in the next release of Ubuntu will be the ability to use kernel mode setting which shifts responsibility for selecting and setting up the graphics mode from X.org to the kernel. This speeds this up, which means a better experience for the user.

Here is how I did it on my Dell.

First download these .deb files from here:

http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.31-rc9/

linux-headers-2.6.31-020631rc9_2.6.31-020631rc9_all.deb
linux-headers-2.6.31-020631rc9-generic_2.6.31-020631rc9_i386.deb
linux-image-2.6.31-020631rc9-generic_2.6.31-020631rc9_i386.deb

Install them, but don't reboot just yet.

Next install the latest Intel graphics drivers using these links:

deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main
deb-src http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main

Then in a terminal run this:

sudo apt-get update && sudo apt-get upgrade

Now create this file /etc/modprobe.d/i915-kms.conf and add this line.

options i915 modeset=1

Then finally run this command at a terminal.

sudo update-initramfs -u

Now re-boot your machine with your new kernel and test to see if you get improved graphics performance, I most definitely did. You might also want to check in /etc/X11/xorg.conf that you have a line like this:

Option "AccelMethod" "uxa" in the "Device" section.

Have fun.

No comments: