How to run Google Earth on open source Radeon drivers
Tagged:  •    •    •    •    •  

It's been a real pain to enable graphics hardware acceleration on my 3.5 year old IBM Thinkpad T42, containing an ATI Radeon 9600 (Mobility). The binary drivers by ATI are just plain crap, causing insane instability to the system (kernel panics everywhere). I called it a day and continued working without acceleration. But applications like Google Earth are a real pain to use like this, so something inside me shouted to get this right.

Now, after so many years, I spent some little more time on it and it works now. Not with ATI's drivers but with open source drivers which came along with the kernel. Finally I can use Google Earth smoothly Smile

First, check if the kernel is configured properly. These options should be enabled (2.6.23 and before):

Processor type and features --->
  [*] MTRR (Memory Type Range Register) support
Device Drivers --->
  Character devices --->
    <*> /dev/agpgart (AGP Support)
    <*>   Intel 440LX/BX/GX, I8xx and E7x05 chipset support
    <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
    <*>   ATI Radeon

(or you can make modules of them, I have a higher tendency to build things inside the kernel).

If you had to change any setting in the kernel configuration, you should rebuild the kernel and install it properly, assuming you know how to do that.

It's time to configure Xorg. Make sure to have the line

VIDEO_CARDS="radeon vesa vga"

in /etc/make.conf and re-emerge xorg-server if it wasn't the case.

Then make sure this is in your /etc/X11/xorg.conf:

Section "dri"
Mode 0666
EndSection

[...]

Section "Device"
Identifier "ATI Graphics Adapter"
Driver "radeon"
Option "no_accel" "no"
Option "no_dri" "no"
Option "AGPMode" "4"
[...]
EndSection

Restart X and see if you have Direct rendering working. Do this by invoking the command

glxinfo | grep -i "direct rendering"

If it says Yes then you're cool. With No... no idea, hard to help you from here. I'm just a n00b with this kind of stuff.

There was also the option

Option "AGPFastWrite" "True"

in my xorg.conf but that resulted in complete lockups of my system. lspci, however, shows that my card and motherboard support fast writing. So I have no idea why this doesn't work for me. But without it I get satisfactory results too.

I think it's time to try Google Earth. But hey, it's still dog slow! But running it on the command line reveals some warnings:

File r300_render.c function r300Fallback line 428
Software fallback:ctx->Line.SmoothFlag

It seems it needs some stuff the driver can't provide so it switches back to software rendering. A bit of Googling resulted in setting some DRI configuration options. Just put this file in your home directory (created with the driconf utility) and rename it to .drirc. The warning will be gone and Google Earth is real smooth now.

But there was still another warning spitted out by Google Earth which was bothering me:

Ran out of GART memory (for 1048576)!
Please consider adjusting GARTSize option.

Fortunately not too hard to fix, simply add the following option to the graphics device section in xorg.conf:

Option "GARTSize" "64"

And the error is gone.

Finally, after all those years, I can run Google Earth without any binary unstable crap from ATI! Victory!

So all this did the trick for me, but I wonder if this will help anyone else because it's rather specific. Besides, once I have some more time I'll try to get rid of the kernel implementation of the radeon driver and use the ones provided by Xorg sometime. But that's stuff for later.

YES! IT WORKS!

... For me as well.
System: - OpenSuse 10.3 (up-to-date)
- Radeon Mobility X600
- Comiz-Fusion
- Laptop: HP nx8220

I created two config files to be sure: .dric and .driconf. Might be worth a try if you have OpenSuse (and not Debian) and it would not work with the file named ".dric". So, a well working Compiz-Fusion and Google Earth will keep me away for some time from the fglrx-crap (prop. driver from ATI/AMD)! As well Google Earth works (in my opinion) as good as with fglrx.
Thanks a lot for your how-to!

Regards. Beno

by the way...

I did not have to recompile the kernel or similar things. I just started with editing xorg.conf. So you may try it first this way before you loose time on building already activated kernel support.

Also works on Ubuntu 8,04 Beta

Hi,

Very good work. Your modified 'drirc' and the 'GARTSize' option did it for me on an Ubuntu 8.04 beta system.

No kernel compiling ist needed.

Thank You,

Armin

Thanks ever so much!

The .drirc file was the missing piece on my Gentoo
notebook. I had been struggling with this one
for months - thanks!

just what I needed

Thanks, this is just what I needed for Ubuntu on my Thinkpad T42p. No fglrx means xrandr works and now googleearth flies as it should.

Many thanks! You saved me an

Many thanks!
You saved me an sleepless night and now I can go to bed more happy!!