Comment 12 for bug 273708

Revision history for this message
Martin Olsson (mnemo) wrote : Re: xorg hangs on startup (intel G45, compiz turned off)

To apply the patch I was talking about you need to rebuild one of your kernel module which is not a trivial task but if you're feeling lucky try this:

0. install tools needed for building the linux kernel by running this command "sudo apt-get build-dep linux-image-2.6.27-7-generic"
1. create some empty directory for your linux kernel code
2. "cd" into that directory
3. run "apt-get source linux-image-2.6.27-7-generic"
4. cd into "linux-2.6.27/drivers/char/agp"
5. run this command to build all kernel modules in that directory "make -C /lib/modules/`uname -r`/build M=$PWD modules" (note also that the quotes should be shell backtick quotes)
6. if everything went fine you should have a newly created file called intel-agp.ko (still in the same dir as the source file called intel-agp.c)
7. copy the generated intel-agp.ko into "/lib/modules/2.6.27-7-generic/kernel/drivers/char/agp/intel-agp.ko.fixed_version" (remember to use "sudo" when you copy stuff into /lib )
8. now cd to the directory "/lib/modules/2.6.27-7-generic/kernel/drivers/char/agp"
9. make a backup of you existing intel-agp.ko file by typing "sudo cp intel-agp.ko intel-agp.ko.original" (be prepared to restore this old version using some boot cd or whatever if this screws up your machine royally!)
10. copy the generated ko file from intel-agp.ko.fixed_version to intel-agp.ko (overwriting the existing one, but this is okay because you got the backup)
11. reboot

Note: I also think it's possible to reinstall the originally (buggy version) using "sudo apt-get install --reinstall linux-image-2.6.27-7-generic" but I still think you should backup the original .ko file just to be sure