Subscribe to Feeds
ubuntu.com
Free PageRank Checker

How To Fix Freezes in Ubuntu on hp 540

Posted by blognusantara | Sunday, May 03, 2009

It's a rewrite of previous post. Now that my hp 540 notebook has been being tested for about  a week without freezing, I'm feeling brave to shout it to the world and maybe offer some help for fellow freezee (=freeze victim, :) ).
On my last post I wrote it in a way that I wouldn't understand when I was my first week with Ubuntu. So here's the easy step by step fix. But I am not sure if this is a universal fix, but at least it works on hp 540 notebook with Ubuntu 9.04 installed.

Victim :
hp 540 notebook (an Intel graphics based system) and Ubuntu,

Symptoms :
  • Ubuntu 9.04 Jaunty Jackalope freezes, with only mouse can be moved around
  • happens randomly, for no apparent trigger(s)
The Culprit :
Intel graphics driver.

The Fix, there are 2 steps :

1. use latest stable Intel Graphics driver, this is how :
  • Go to System -> Administration -> Software Sources, type your password,
  • Click Third-party Software tab, click "Add"
  • add this line (without the quotes) :
    "deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntujaunty main"
    click Add Source
  • go to this page  then save it as key.gpg
  • click Authentication and then Import Key File, choose the file you saved on the previous step
  • after that click reload,
  • open your update manager, now your xserver-xorg-video-intel can be updated
2. edit xorg.conf :
  • after the download and installation succeed, open your file manager as a root from Accessories -> Terminal and type sudo nautilus, open and edit /etc/x11/xorg.conf so it looks like this.
    ...
    Section "Device"
        Identifier    "Configured Video Device"
        Option "AccelMethod"    "UXA"
        Option "AccelMethod"    "XAA"
        Option "AccelMethod"    "EXA"
    EndSection
    ...
  • save and restart your Ubuntu, done (hopefully).

This fix has a drawback however, it breaks suspending function. But I'll choose stable OS over suspending function any day, hope some updates will fix this without side effect.



keyword : ubuntu 9.04, jaunty jackalope, hp 540, freeze fix, mouse only


5 comments
  1. Mackenzie May 3, 2009 at 2:40 PM  

    Er...I'm pretty sure it can only use one AccelMethod at a time. I had this issue on my Asus with Intel 965.

    Since you say it breaks suspend, I'm guessing UXA is the one in use (since that's experimental and somewhat unstable). What I found works better (ie. suspend works and there are no freezes) is using
    Option "MigrationHeuristic" "greedy"
    while still maintaining the default EXA.

  2. Panji Nushantara May 3, 2009 at 5:44 PM  

    i was hoping someone would come and suggest better way, and you come along. thanks Mackenzie :)
    i'm new to this, so your help is very appreciated.
    i'll try it now. and i'll post the result.

  3. TheAxeR May 3, 2009 at 6:46 PM  

    There was an update pushed yesterday with the intent of addressing a freeze issue in the intel driver, in particular:
    https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/359392so it may not be necessary to install any other PPAs.

  4. Panji Nushantara May 4, 2009 at 12:56 PM  

    @ Mackenzie : nope still freezes with EXA and MigrationHeuristic, suspending works though. now back to UXA, so no suspending for me now :(

    @Lucas : is it already available in default repository? I can't find it.

  5. TheAxeR May 4, 2009 at 7:14 PM  

    I had the following update pushed on May 2.

    xserver-xorg-video-intel (2:2.6.3-0ubuntu9) to 2:2.6.3-0ubuntu9.1

    * Add 121_i965_default_to_virtual_2048_2048.patch, to force the default
    Virtual resolution on i965 to 2048x2048 if not otherwise specified in
    xorg.conf. This works around freeze issues seen on this hardware.
    (LP: #359392)

    -- Bryce Harrington < bryce@ubuntu.com> Wed, 29 Apr 2009 14:26:50 -0700