Linux Intel i855 graphic card locking up

Discussion in 'Linux' started by dragonbite, May 19, 2010.

  1. dragonbite

    dragonbite Well-Known Member

    Joined:
    Aug 30, 2008
    Messages:
    477
    Likes Received:
    3
    This issue may have come to light with Ubuntu 10.04 LTS, but that is only because Ubuntu came out with their latest one before Fedora and openSUSE! The issue is actually an Intel vs. Kernel issue so it is going to effect every Linux distribution that upgrades to the newer kernel, and it is not realistic to think any distribution is going to stop updating.

    [Bug 541511] MASTER: [i855] GPU lockup (apport-crash)

    Computers with the Intel 85x graphics cards, which is common in Pentium M Centrino Laptops. The problem manifests itself as a complete lock up when the x server has started or shortly after the xserver has started. I know because this is what is happening to my laptop.

    Thankfully they are working on some sort of patch. It doesn't look complete but it may help.

    Possible "Patch" steps

    This is according to what I have received regarding this bug. I am hoping to perform this during the next Linux SIG (May 19, 2010) and will post an update if I find out anything. That's part of why I am putting it here, to reference as I go through the steps (and pray) to see if it works.

    summarized from http://glasen-hardt.de/

    1. install the 855gm-patched kernel-modules
      1. include the 855gm-patched kernel-modules
        Code:
        sudo add-apt-repository ppa:glasen/libdrm
        sudo add-apt-reposority ppa:glasen/855gm-fix
      2. update, upgrade repo
        Code:
        sudo apt-get update
        sudo apt-get upgrade
      3. install the 855gm-patched kernel-modules
        Code:
        sudo apt-get install dkms linux-headers-generic 855gm-fix-dkms
      4. (OPTIONAL) Plymouth to Initial-Ramdisk, repare colour
        Code:
        echo "FRAMEBUFFER=yes" | sudo tee /etc/initramfs-tools/conf.d/splash
        sudo update-initramfs -u -k all
    2. purge the 855gm-patched kernel-modules
      1. Code:
        wget https://launchpad.net/~xorg-edgers/+archive/ppa/+files/ppa-purge_0.2.6_all.deb
      2. Code:
        sudo dpkg -i ppa-purge_0.2.6_all.deb
      3. Code:
        sudo ppa-purge ppa:glasen/intel-driver
      4. Code:
        sudo ppa-purge ppa:glasen/libdrm
      5. Code:
        sudo ppa-purge ppa:glasen/855gm-fix

    He has also provided a Live-CD of Ubuntu 10.04 with updated Intel-drivers and 855gm-patched kernel-modules. Just be aware that the Live-CD was modified as described:


    • Some Other Possible Workarounds:

      There is an Ubuntu Wiki page that goes over some work-a-rounds labeled X/Bugs/Lucidi8xxFreezes where any one of these may help but none of them actually fixed the issue, or fully worked. If the above patch doesn't work then you may want to try one of these.

      The first one worked for me, and the page includes a means to make it so you don't have to manually put that in each and every time. Unfortunately it still crashes when playing any video. That work-around involved adding to the bootup command
      Code:
      i915.modeset=1
      Request for feedback

      Let me know what experiences you have had, or patches/work-a-rounds you've tried and their success or non-success! Given time this should be worked out, but until then it is a pain in the patooie and looks to not be fixed in the coming Fedora 13 (due out this month) or openSUSE 11.3 (due out in July I think)!
     
  2. dragonbite

    dragonbite Well-Known Member

    Joined:
    Aug 30, 2008
    Messages:
    477
    Likes Received:
    3
    An Update, from the Ubuntu Forums where the developer for the patch corrected me.



    Thank you for all of your work. Those of us with this issue, I'm sure, are VERY grateful to not be left out!

    My above steps were included in a mailing from 541511@bugs.launchpad.net which I received yesterday, from Thoer, so I am not going to be the only one trying this out I assume.

    Just to make sure I have this right, I'll want to

    Code:
    ## Add repositories
    sudo add-apt-reposority ppa:glasen/855gm-fix
    sudo add-apt-repository ppa:glasen/intel-driver #(optional)
    
    ## Update 
    sudo apt-get update
    sudo apt-get upgrade
    
    ## Install 
    sudo apt-get install dkms linux-headers-generic 855gm-fix-dkms 
    
    ## use only if using KMS (i915.modeset=1) and is optional
    sudo add-apt-repository ppa:glasen/libdrm #(Needed for intel-driver)
    sudo apt-get install intel-drivers
    And then to get around the black-screen issue, have to use KMS (i915.modeset=1) or if using UMS you have to modify the xorg.conf file with
    Code:
    Section "Monitor"
        Identifier "VGA"
        Option "Ignore" "true"
    EndSection
    And while this works, there is still some slow-down with things like scrolling in Firefox, which may be remedied by the experimental "855gm-fix-exp". This is part of the glasen/855gm-fix PPA.

    And then, there is the Live-CD with changes here : Live-CD of Ubuntu 10.04 with updated Intel-drivers and 855gm-patched kernel-modules

    Thank you again for your work, and willingness to correct me here!
     
  3. dragonbite

    dragonbite Well-Known Member

    Joined:
    Aug 30, 2008
    Messages:
    477
    Likes Received:
    3
    Ok, while doing step 1, adding the repositories:
    Code:
    Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 60F8DC87DD22304528F5AB6F0F2D1009066ADE1D
    gpg: requesting key 066ADE1D from hkp server keyserver.ubuntu.com
    gpg: keyserver timed out
    gpg: keyserver receive failed: keyserver error
    
    So it means it isn't "trusted" but it still updated and sudo apt-get upgrade pulled in a few things automatically
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be upgraded:
      libdrm-intel1 libdrm-nouveau1 libdrm-radeon1 libdrm2
    4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 64.5kB of archives.
    After this operation, 1,573kB disk space will be freed.
    Do you want to continue [Y/n]? y
    WARNING: The following packages cannot be authenticated!
      libdrm2 libdrm-intel1 libdrm-nouveau1 libdrm-radeon1
    Install these packages without verification [y/N]? y
    Get:1 http://ppa.launchpad.net/glasen/libdrm/ubuntu/ lucid/main libdrm2 2.4.20~glasen~ppa3 [21.2kB]
    Get:2 http://ppa.launchpad.net/glasen/libdrm/ubuntu/ lucid/main libdrm-intel1 2.4.20~glasen~ppa3 [21.4kB]
    Get:3 http://ppa.launchpad.net/glasen/libdrm/ubuntu/ lucid/main libdrm-nouveau1 2.4.20~glasen~ppa3 [11.9kB]
    Get:4 http://ppa.launch
    and doing the suggested sudo apt-get install has the following output
    Code:
    drew@pixie:~$ sudo apt-get install dkms linux-headers-generic 855gm-fix-dkms
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    linux-headers-generic is already the newest version.
    The following extra packages will be installed:
      fakeroot patch
    Suggested packages:
      diffutils-doc
    The following NEW packages will be installed:
      855gm-fix-dkms dkms fakeroot patch
    0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
    Need to get 571kB of archives.
    After this operation, 2,535kB of additional disk space will be used.
    Do you want to continue [Y/n]? Y
    WARNING: The following packages cannot be authenticated!
      855gm-fix-dkms
    Install these packages without verification [y/N]? Y
    Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/main dkms 2.1.1.2-2fakesync1 [70.1kB]
    Get:2 http://ppa.launchpad.net/glasen/855gm-fix/ubuntu/ lucid/main 855gm-fix-dkms 0.6.2~glasen~ppa1 [261kB]
    Get:3 http://us.archive.ubuntu.com/ubuntu/ lucid/main fakeroot 1.14.4-1ubuntu1 [118kB]
    Get:4 http://us.archive.ubuntu.com/ubuntu/ lucid/main patch 2.6-2ubuntu1 [123kB]
    Fetched 571kB in 3s (148kB/s)                                       
    Selecting previously deselected package dkms.
    (Reading database ... 192383 files and directories currently installed.)
    Unpacking dkms (from .../dkms_2.1.1.2-2fakesync1_all.deb) ...
    Selecting previously deselected package fakeroot.
    Unpacking fakeroot (from .../fakeroot_1.14.4-1ubuntu1_i386.deb) ...
    Selecting previously deselected package patch.
    Unpacking patch (from .../patch_2.6-2ubuntu1_i386.deb) ...
    Selecting previously deselected package 855gm-fix-dkms.
    Unpacking 855gm-fix-dkms (from .../855gm-fix-dkms_0.6.2~glasen~ppa1_all.deb) ...
    Processing triggers for man-db ...
    Setting up dkms (2.1.1.2-2fakesync1) ...
    
    Setting up fakeroot (1.14.4-1ubuntu1) ...
    update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode.
    
    Setting up patch (2.6-2ubuntu1) ...
    Setting up 855gm-fix-dkms (0.6.2~glasen~ppa1) ...
    Loading new 855gm-fix-0.6.2 DKMS files...
    First Installation: checking all kernels...
    Building for 2.6.32-21-generic and 2.6.32-22-generic
    Building initial module for 2.6.32-21-generic
    Done.
    
    intel-agp.ko:
    Running module version sanity check.
     - Original module
     - Installation
       - Installing to /lib/modules/2.6.32-21-generic/updates/dkms/
    
    i915.ko:
    Running module version sanity check.
     - Original module
     - Installation
       - Installing to /lib/modules/2.6.32-21-generic/updates/dkms/
    
    depmod......
    
    DKMS: install Completed.
    Building initial module for 2.6.32-22-generic
    Done.
    
    intel-agp.ko:
    Running module version sanity check.
     - Original module
     - Installation
       - Installing to /lib/modules/2.6.32-22-generic/updates/dkms/
    
    i915.ko:
    Running module version sanity check.
     - Original module
     - Installation
       - Installing to /lib/modules/2.6.32-22-generic/updates/dkms/
    
    depmod......
    
    DKMS: install Completed.
    update-initramfs: Generating /boot/initrd.img-2.6.32-22-generic
    update-initramfs: Generating /boot/initrd.img-2.6.32-21-generic
     
  4. dragonbite

    dragonbite Well-Known Member

    Joined:
    Aug 30, 2008
    Messages:
    477
    Likes Received:
    3
    Quick Update:

    One month on, and I have been updating the system routinely and things have improved significantly.

    After applying the patch listed here, I had GUI, and I had Video but I did not have external monitor (projector) support, nor webcam (Cheese) or desktop effects. Now, after applying updates whenever available, I have ...
    • external monitor support ( :yippee ),
    • my webcam and Cheese works ( :yippee ) I'll have to try Skype sometime
    • I managed to set my Desktop effects to something and not have the system freeze on me ( :yippee ). [/list:u]

      (I haven't seen any changes since turning on the Desktop effects, but at least it didn't crash which is a good start.)

      Meanwhile, Fedora 13 worked well from the Live CD without applying any patches myself. I had video, webcam and external monitor support out of the box. Somebody said that Fedora included the "big hammer patch" which is why it works, but now it seems to have degraded some, as my webcam no longer works.

      Ironically, I found this out when I tried using it with my webcam in Fedora (because it worked) and it didn't. Later I booted into Ubuntu and figured what the heck (and it worked).

      Hopefully they will apply some patch to the kernel or drivers for the point release (10.04.1) due out sometime in July(?) so other people won't have this same issue.
     

Share This Page