Bookmark and Share

June 3, 2009 by Ivan  

[HowTo] Fix Ubuntu Jaunty (9.04) Intel Graphics Problem

Ads by Google

Ubuntu LogoFrom my last post about the disapointing performance from Ubuntu 9.04 jaunty Jackalope, now it’s fixed. But not really fix, but much better in performance especially in graphics. Now my firefox is not slow anymore, my CPU resource consumption is much lower and Compiz working much better. And flash player in firefox now can fullscreen.

For you who have the same problem, i think you will if you have Ubuntu 9.04 with Intel Graphic card, you can follow this steps and and enjoy the performance:

1. Edit Xorg Configuration with this command:

gksudo vim /etc/X11/xorg.conf

Find “Device” section and make like this:

Section "Device"
Identifier    "Configured Video Device"
Option        "AccelMethod"            "uxa"
Option        "EXAOptimizeMigration"        "true"
Option        "MigrationHeuristic"        "greedy"
Option        "Tiling"            "true" # i8xx users: set to false
EndSection

Save xorg.conf file.

2.  Download Bartec’s fixmtrr.sh script and make it executable:

sudo wget http://launchpadlibrarian.net/26193373/fixmtrr.sh -O /usr/local/bin/fixmtrr.sh
sudo chmod +x /usr/local/bin/fixmtrr.sh

3. Create a symbolic link to ensure the fixmtrr.sh script is executed upon each login via GDM:

sudo ln -s /usr/local/bin/fixmtrr.sh /etc/gdm/PostLogin/Default

4. Add the X Updates PPA to your sources.list:

gksudo vim /etc/apt/sources.list

then add this:

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

5. Import the X Updates PPA key, update your apt sources, and perform an upgrade:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com AF1CDFA9
sudo apt-get update
sudo apt-get dist-upgrade

6. Download & install the 2.6.29.4 kernel, based on your architecture:
for i386 user:

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.29.4/linux-headers-2.6.29-02062904-generic_2.6.29-02062904_i386.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.29.4/linux-headers-2.6.29-02062904_2.6.29-02062904_all.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.29.4/linux-image-2.6.29-02062904-generic_2.6.29-02062904_i386.deb
sudo dpkg -i linux-headers-2.6.29-02062904-generic_2.6.29-02062904_i386.deb linux-headers-2.6.29-02062904_2.6.29-02062904_all.deb linux-image-2.6.29-02062904-generic_2.6.29-02062904_i386.deb

for amd64 user:

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.29.4/linux-headers-2.6.29-02062904-generic_2.6.29-02062904_amd64.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.29.4/linux-headers-2.6.29-02062904_2.6.29-02062904_all.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.29.4/linux-image-2.6.29-02062904-generic_2.6.29-02062904_amd64.deb
sudo dpkg -i linux-headers-2.6.29-02062904-generic_2.6.29-02062904_amd64.deb linux-headers-2.6.29-02062904_2.6.29-02062904_all.deb linux-image-2.6.29-02062904-generic_2.6.29-02062904_amd64.deb

7. You’re finished. Now you need to reboot your computer.

That’s it, i tried those steps and now my Ubuntu 9.04 run smoothly.

Source from Ubuntu Forum here.

Disclaimer: Use these instructions at your own risk. I am not an expert on Ubuntu: this set of instructions just gave me what I needed to do fix my Ubuntu on my local machine. If you set it up and breaks your hardware or even lose any data, I assume no responsibility.

What people search:

Reader Comments

  1. Steve says:

    Excellent post.

    Followed the tips and Ubuntu 9.04 on IBM X31 with 2 Gig RAM now runs sweetly (even with 1 Gig allocated to VirtualBox to run a WinXP environment).

  2. Eremeeff says:

    Hello,
    Thanks for article. Everytime like to read you.

  3. ditymnextet says:

    Hi, Congratulations to the site owner for this marvelous work you’ve done. It has lots of useful and interesting data.

  4. user888 says:

    Thanks for the info, when I follow your steps it improves. Great 3D performance, acceptable 2D performance. But gnome DO performance is still very bad.

    If I use the drivers from http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu jaunty then gnome DO performance is acceptable, but 3D performance is bad…

    I’m running openSUSE 11.1 on the same laptop with good 2D/3D performance (and a good working gnome DO), but was thinking of switching to Ubuntu because of upstart…

  5. Karthik says:

    Hi,
    I am stuck at 3rd step.. it returns error msg..

    ln: creating symbolic link `/etc/gdm/PostLogin/Default’: File exists

    plz help…

  6. To(Karthik) says:

    “ln: creating symbolic link `/etc/gdm/PostLogin/Default’: File exists

    plz help…”

    sudo mv /etc/gdm/PostLogin/Default /etc/gdmPostLogin/Default.bak

    This will move existing file “Default” to “Default.bak” so you have backup third step should work now
    sudo ln -s /usr/local/bin/fixmtrr.sh /etc/gdm/PostLogin/Default

  7. Paul says:

    I followed the instructions. All steps completed OK but on re-boot I just get a blank display. I had to use the recovery boot and fix video problem to remove the xorg.conf entries in order to restore my display.

    Any ideas?

  8. Paul says:

    Fixed my own problem. Changed acceleration method to exa instead of uxa. Video plays properly and enabled Compiz as well now and all works fine :)

  9. Kuz says:

    Thank you!
    I’m happy again :)

  10. Tim T says:

    Hi, great set of instructions!

    however, my wireless USB from D-Link now no longer works…anyone have suggestions?

  11. neutron says:

    Wow! Thanks…finally a fix which worked!! You are a genius, sir!

  12. Ivan says:

    You are very welcome :)

  13. ToCaDo157 says:

    ETERNAL THANKS work 100% good in lg lw40 express

  14. Paolo Ramella says:

    genius… I had almost gave up , thank you very much!

  15. enli says:

    Tim,

    This is Third party kernel you have upgraded to. It doesnt provide the support for restricted drivers like broadcom wireless cards, nvidia drivers etc.

    Before you upgraded, did you see the entry for your D-link in Syste > Administration > Hardware drivers ?

    If that is the case you need to downgrade to kernel from Ubuntu. Post in ubuntuforums.com and they will help you.

  16. elassas says:

    Hi, I’ll try this topic today.

  17. elalcahuetepr says:

    Fantastic Post! Works great on Optiplex 280! Thanks again!

  18. Victor says:

    I did follow all the steps (step by step) and I have 2 coments.

    - the comands: “gksudo vim /etc/X11..” never works, I did it with “sudo gedit ….”

    - after all the solution didn’t work, the system still working slow.

    :P

  19. Ivan says:

    Hi Victor,
    Thanks for the comment,
    1. Actually this command “gksudo vim /etc/X11/xorg.conf ” means edit the xorg.conf file with vim editor. You can replace with any editor you prefer.
    2. This only work with Intel graphic card, so please refer to Ubuntu forum for other graphic card.

  20. Giuliano says:

    I hve a sony vaio vgn-ns20e with intel graphic accelator and I was experience slow graphics and high cpu utilization without any apparent reason. I tried to apply the suggestions of this post and now everything works smoothly, many thanks!

  21. Benjamin says:

    I am having the same problems with slow performance. I’m new to Ubuntu but for the life of me I can’t get the command “gksudo vim /etc/X11/xorg.conf ” to work… what program do I use to type that command in?

    If it’s the program called Terminal then it’s not working for me. ><;

  22. Ivan says:

    yes you should use terminal.
    What do you mean is not working?

  23. reza says:

    Thank ivan for the tips.
    It really work, the performance is now faster, and i’m glad with fast response of my firefox now :D

    Just a simple question, if i upgrade the kernel into newest version, will the performance the same or improve?

    My webcam is not work properly with this version of kernel.

    Thanks

  24. Ivan says:

    I’m using the newest kernel now. And i still feel the same. It’s still good and i hope it would be better for ubuntu next release.

  25. Megha says:

    On Sony Vaio VGN-NW13GH, Mesa DRI Mobile Intel® GM45 Express Chipset, Ubuntu 9.04
    Tried the Safe option. After restart, X crashed. So I had to revert changes to xorg.conf. But the performance was greatly improved.

  26. [...] Heute nun, 3 Monate spaeter habe ich endlich eine Loesung gefunden, die das Problem behebt. Ivano Kristianto hat eine genaue Anleitung geschrieben, die er aus verschiendene Foren zusammengesucht hatte. Nun denn, ich habe mir eine 2. Ubuntu version aufgespielt um das dort zu testen und voila, es funzt. Link: http://www.ivankristianto.com/2009/0…phics-problem/ [...]

  27. Thomasc says:

    I am getting the hard time in step 2. I input the right code. However, the output is that
    /usr/local/bin/fixmtrr.sh : no such file or directory

  28. Thomasc says:

    http://launchpadlibrarian.net/26193373/ doesn’t exist anymore. Where can I download the package

  29. Thomasc says:

    I got it all figure out. Thank you very much. My ubuntu 9.04 is much better right now

  30. Matt says:

    Hello Ivan – Many thanks. My Dell desktop with Celeron processor now works a hundred times better under Ubuntu 9.04 and SeaMonkey browser. You have solved my only major migration problems from Windows to Ubuntu: slow Internet page loading and crappy graphics performance. All solved now. You are a star! :-)

  31. Jonathan says:

    You rule brother, Thanks you!

  32. Dinesh Dharme says:

    Thanks for the post….now my computer is working quite fast….noticeable enough fast

  33. Rodnox says:

    Hi there.

    I’ve just done exactly what is described here. Now since Kernel 2.6.29 … should be loaded (it actually does that on my system without an error), i was wondering if i was actually now runing on 2.6.29.

    With “uname -r” i wanted to see, but for some reason it’s 2.6.27..

    Why?

    I have repeated step 6 now twice, but no change. Install works fine, no problems, but the kernel stays 2.6.27 …

  34. Sam says:

    I have updated my intel drivers by the ubuntu default update whien i entered this code [code]gksudo vim /etc/X11/xorg.conf[/code] it asked for password and then nothing happened umm whts the deal??

  35. Philipp says:

    thanks for this post. had the very same problem like paul. changed the acceleration method to exa instead of uxa. now it works just fine ;-)

  36. siafu says:

    The very last command:

    sudo dpkg -i linux-headers-2.6.29-02062904-generic_2.6.29-02062904_i386.deb linux-headers-2.6.29-02062904_2.6.29-02062904_all.deb linux-image-2.6.29-02062904-generic_2.6.29-02062904_i386.deb

    Throws up an error with the first one: no such file or directory.

  37. aim says:

    Hi,
    this howto worked for me on a thinkpad x31. The performance is alright now. BUT my keyboard is messed up. There is an option to navigate your cursor with the numpad. and somehow that was turned on. I turned t off in the ubuntu keyboard options. my numpad are the keys 7,8,9,u,i,o,j… Now that I turned it off the keys functioned as a numpad instead of the letters. so I hit numlock which on my thinkpad keyboard is shift+roll. unfortunately it tunred out the combination to toggle the “move your mouse with your numpad” feature is shift numlock. shift+numlock = shift+roll in my case… That’s not it – my capslock key acts all weird too. it switches numlock or the “move your mouse with the numpad” option on…
    I tried some stuff with the ubuntu keyboad preerences and shortcut settings, did a “sudo dpkg-reconfigure xserver-xorg” but nothing worked 8[.
    Help Me PLEASE!

  38. Karim says:

    How do I save Save xorg.conf file after editing it? Please help.

  39. Ivan says:

    press “esc” button.
    then type “:wq” (without quote) then enter.

  40. philipp says:

    hi again,
    due to your article my intel 82865g finally worked. but after updating (no dist-upgrade!!) my jaunty the system freezes when logging in. anyone else experiencing difficulties since the lastest updates?
    anyone tried the tarball-package from intellinuxgraphics.com?
    any ideas how i can figure out whats freezing my system? i just formatted my hdd, reinstalled the whole os and then i immediately set up the graphics just like you described above before installing anything else. froze anyway!
    any ideas?

  41. Ivan says:

    Hi Phillip,
    What is the version of kernel you are using now?
    I suggest you to wait 3 more days from now Ubuntu will release v9.10 karmic koala or use karmic koala RC it is already available now.
    Hope it will better than Jaunty.

  42. Philipp says:

    hey ivan and everyone else,

    after installing ubuntu 9.10 there’s no trouble no more with the playback of videos. youtube fullscreen isn’t working that fluently, but honestly i don’t need this that much.

    greets, philipp

  43. Ivan says:

    Hi Philipp,
    i haven’t upgrade yet since i still have a project on deadline, soon i will upgrade and i will keep posted on my blog.
    Thanks for your share. Great information for all of us.
    Ivan

  44. suresh says:

    Hi
    with the 2.6.29 kernel my wireless connection is not working!

  45. Ivan says:

    Hi Suresh,
    please upgrade your ubuntu to Karmic,
    it is using kernel 2.6.31-16 now.
    Hope this can help you.

  46. amr says:

    grrr, i lost my wireless driver .. , but thanks to ubuntu recovery boot options

    plz, put a caution before the optional step 6 of 2.6.29.4 kernel

  47. Ivan says:

    Hi amr,
    That's for Ubuntu Jaunty.
    If you already have Ubuntu Karmic or more, don't do the step 6.
    But yes i will update and put the caution there.
    Thanks.

Please do not add HTML tags in your comments. All comments are moderated.

Add a comment

(required, use real name)
(required, will not be published)
(optional, will not be published)
blog comments powered by Disqus