Laptop freezes

Brian Beattie beattie at beattie-home.net
Sun Sep 24 16:18:31 UTC 2006


On Fri, 2006-09-22 at 19:11 +0100, anthony_barker wrote:
> This seems to have solved my problems on ubuntu 6.06 dapper with an IBM
> x24 laptop.

> 
> I had a feeling it was the video - but wasn't sure how to troubleshoot
> it.
> 

> Also fixed some strange issues I was having with wine.
> 

> ATI Technologies, Inc. Radeon Mobility M6 LY [Radeon Mobility 9000]
> 

> I had also changed my default depth to 16 (from here)
> 
> http://web.ics.purdue.edu/~stali/ubuntu_x24.htm
> 
> 
> 
> I had radeon as the driver - I changed it to ati

I have an A30 with the same video hardware and the same problem on
ubuntu dapper.  Ati and radeon seem to be the same driver and nothing in
the options fixed the problem.  Switching to the vesa driver fixed the
locking up problem, but loses much of the functionality.  I finally
found a patch for the driver that seems to have fixed the problem.

I installed the xserver-xorg-driver-ati sources and applied the
following patch on friday,  I have not had a lockup since.  This patch
was derived from one that appears to be for edgy from this discussion
https://launchpad.net/distros/ubuntu/+source/xserver-xorg-video-ati/+bug/16873

------------------
diff -u5 -r orig/xserver-xorg-driver-ati-6.5.7.3/src/radeon_driver.c
xserver-xorg/xserver-xorg-driver-ati-6.5.7.3/src/radeon_driver.c
--- orig/xserver-xorg-driver-ati-6.5.7.3/src/radeon_driver.c
2006-09-24 09:15:06.000000000 -0700
+++ xserver-xorg/xserver-xorg-driver-ati-6.5.7.3/src/radeon_driver.c
2006-09-21 16:28:21.000000000 -0700
@@ -2294,26 +2294,32 @@
 static void RADEONInitMemoryMap(ScrnInfoPtr pScrn)
 {
     RADEONInfoPtr  info   = RADEONPTR(pScrn);
     unsigned char *RADEONMMIO = info->MMIO;
     unsigned long agp_size, agp_base, mem_size;
+    CARD32 aper_size;
 
     /* Default to existing values */
     info->mc_fb_location = INREG(RADEON_MC_FB_LOCATION);
     info->mc_agp_location = INREG(RADEON_MC_AGP_LOCATION);
 
     /* We shouldn't use info->videoRam here which might have been
clipped
      * but the real video RAM instead
      */
     mem_size = INREG(RADEON_CONFIG_MEMSIZE);
+    aper_size = INREG(RADEON_CONFIG_APER_SIZE);
     if (mem_size == 0)
            mem_size = 0x800000;
 
+    /* Fix for RN50, M6, M7 with 8/16/32(??) MBs of VRAM
+     * Novell bug 204882 + along with lots of ubuntu ones */
+    if (aper_size > mem_size)
+           mem_size = aper_size;
+
 #ifdef XF86DRI
     /* Apply memory map limitation if using an old DRI */
     if (info->directRenderingEnabled && !info->newMemoryMap) {
-           CARD32 aper_size = INREG(RADEON_CONFIG_APER_SIZE);
            if (aper_size < mem_size)
                mem_size = aper_size;
     }
 #endif


> 
> -- 
> anthony_barker
> 
-- 
Brian Beattie   LFS12947 | "Honor isn't about making the right choices.
beattie at beattie-home.net | It's about dealing with the consequences."
www.beattie-home.net     | -- Midori Koto






More information about the ubuntu-users mailing list