<?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>LiangXu Wang &#187; xgl</title>
	<atom:link href="http://wlx.westgis.ac.cn/tag/xgl/feed/" rel="self" type="application/rss+xml" />
	<link>http://wlx.westgis.ac.cn</link>
	<description>technology backup/share</description>
	<lastBuildDate>Sat, 14 Jan 2012 03:56:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>envi 4.3在ubuntu edgy下启动错误的解决</title>
		<link>http://wlx.westgis.ac.cn/293/</link>
		<comments>http://wlx.westgis.ac.cn/293/#comments</comments>
		<pubDate>Thu, 07 Dec 2006 13:05:26 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[edgy]]></category>
		<category><![CDATA[envi]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xgl]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/293/</guid>
		<description><![CDATA[在我的笔记本上安装了ENVI 4.3后一直无法执行，但IDL没有问题。经检查，应该是I915的驱动所导致的问题，不过可以在XGL环境下执行，非常奇怪。 不过现在终于找到了解决办法： LIBGL_ALWAYS_INDIRECT=1 /usr/local/bin/envi 最终是在ITT的forum上找到了答案： Hi there. We came across Tech Tip “OpenGL Direct Hardware Rendering on Linux. Article ID: 3524&#8243; that showed a workaround. Disabling (OpenGL) direct rendering made the trick (at the expense of speed): debian10$ export &#8230; <a href="http://wlx.westgis.ac.cn/293/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>在我的笔记本上<a href="http://wlxblog.westgis.ac.cn/255/">安装了ENVI 4.3</a>后一直无法执行，但IDL没有问题。经检查，应该是I915的驱动所导致的问题，不过可以在XGL环境下执行，非常奇怪。</p>
<p>不过现在终于找到了解决办法：</p>
<blockquote><p>LIBGL_ALWAYS_INDIRECT=1 /usr/local/bin/envi</p></blockquote>
<p>最终是在ITT的forum上找到了<a href="http://www.ittvis.com/forum/message.asp?fmid=2322">答案</a>：</p>
<blockquote><p>Hi there. We came across Tech Tip “OpenGL Direct Hardware Rendering on Linux. Article ID: 3524&#8243; that showed a workaround.<br />
Disabling (OpenGL) direct rendering made the trick (at the expense of speed):<br />
debian10$ export LIBGL_ALWAYS_INDIRECT=1<br />
I still wonder why other software work fine.</p>
<p>Cheers,<br />
Juan P.</p></blockquote>
<p>同时，他还给出了一种解释：</p>
<blockquote><p>Hi there,</p>
<p>After talking to Xorg/DRI/Debian developers, it seems that direct rendering is working ok on my system but a conflict exists between system libGL and IDL&#8217;s own copy of Mesa.<br />
They suggest that the system libGL and IDL&#8217;s own copy of Mesa shouldn&#8217;t be used at the same time, or that IDL should at least make sure their symbols don&#8217;t interfere with each other. They suggested a possible workaround (to start the program with LD_PRELAD=/usr/local/rsi/idl_6.3/bin/bin.linux.x86/libMesaGL6_2.so.1 or some variation thereof), which unfortunately didn&#8217;t work for me.</p>
<p>Cheers,<br />
J.P. Rigol</p></blockquote>
<p>不过这种hack方法在我的机器也不能工作。<br />
在<a href="http://www.ittvis.com/services/techtip.asp?ttid=3524">这个地方</a>给出了更多的说明：</p>
<blockquote><p><strong>Troubleshooting</strong><br />
RSI cannot control driver quality, so you may have trouble with some drivers that might be buggy. Besides obtaining a driver update from the vendor, there are several things you can do to make IDL usable again in the presence of a buggy driver:</p>
<p>    * Read the documentation that came along with your driver software carefully. There may be a number of diagnostic tools or environment variables that you can set to provide some relief.<br />
    * When using an X server based on XFree86, modifying the XFree86 configuration file may solve any problems. Consult the XFree86 documentation for details. Also, the XFree86 server startup log, usually found in /var/log, can provide many clues about the problem.<br />
    * Set the LIBGL_ALWAYS_INDIRECT environment variable. This causes OpenGL to ignore IDL&#8217;s request to use direct rendering and would then avoid any bugs that may exist in the direct path.<br />
    * Configure your IDL session to use software rendering when required or code your IDL application to use software rendering. These details are covered in IDL documentation.<br />
    * As a last resort, remove/rename the gl_driver shared library from your IDL installation (in the binary directory). This will keep IDL from attempting to use direct or indirect hardware rendering. IDL will instead perform all rendering itself and send the results to the X server with “2D” commands.<br />
    * One expert IDL programmer reported in March 2004 on the IDL Newsgroup this promising workaround on a host running Fedora Linux:<br />
      “If you&#8217;re a user of a recent Linux (like Fedora), and you&#8217;ve experienced IDL crashes that post the following fatal error:</p>
<p>            Floating exception</p>
<p>      when attempting to use any of IDL&#8217;s OpenGL 3D stuff (like the Demo->Itools, for example), you might try the following:<br />
            setenv MESA_NO_ASM 1</p>
<p>      This disables some specific ASM code in the Mesa library which was causing these types of crashes for me. I use an ATI Radeon 7500 plus XFree86 4.3.0&#8242;s Radeon drivers. With this environment variable set, IDL&#8217;s 3D hardware rendering seems stable, and definitely executes much faster than the alternative software rendering option.”</p>
</blockquote>
<p>现在就能解释为何在XGL环境下可以使用ENVI了：现在的XGL环境不支持OPENGL直接调用！</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/293/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在XGL环境下使用google earth</title>
		<link>http://wlx.westgis.ac.cn/292/</link>
		<comments>http://wlx.westgis.ac.cn/292/#comments</comments>
		<pubDate>Thu, 07 Dec 2006 08:06:22 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[edgy]]></category>
		<category><![CDATA[google-earth]]></category>
		<category><![CDATA[i915]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xgl]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/292/</guid>
		<description><![CDATA[ubuntu edgy, i915gm 我记得原来不能在xgl环境下使用google earth，随着google earth 4的几次升级，现在可以在xgl环境下使用google earth了，不过还是有问题，速度比正常情况下要慢！ 在beryl-project.org的FAQ上发现了这个问题的解决办法： DISPLAY=:0 ./googleearth My favourite hardware-accelerated application (google earth for example) doesn&#8217;t play well with Beryl. What can I do? Try adding DISPLAY=:0 in front of the command: $ DISPLAY=:0 googleearth 还是有一点小问题，不过总算不影响使用了。（menubar会丢失）]]></description>
			<content:encoded><![CDATA[<p>ubuntu edgy, i915gm<br />
我记得原来不能在xgl环境下使用google earth，随着google earth 4的几次升级，现在可以在xgl环境下使用google earth了，不过还是有问题，速度比正常情况下要慢！<br />
在<a href="http://wiki.beryl-project.org/wiki/Install/Ubuntu/Edgy/XGL">beryl-project.org的FAQ</a>上发现了这个问题的解决办法：</p>
<blockquote><p>DISPLAY=:0 ./googleearth</p></blockquote>
<blockquote><p>My favourite hardware-accelerated application (google earth for example) doesn&#8217;t play well with Beryl. What can I do?</p>
<p>Try adding DISPLAY=:0 in front of the command:</p>
<p>$ DISPLAY=:0 googleearth</p></blockquote>
<p>还是有一点小问题，不过总算不影响使用了。（menubar会丢失）</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/292/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XGL：非常酷</title>
		<link>http://wlx.westgis.ac.cn/230/</link>
		<comments>http://wlx.westgis.ac.cn/230/#comments</comments>
		<pubDate>Wed, 30 Aug 2006 07:57:56 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xgl]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/230/</guid>
		<description><![CDATA[安装好显卡驱动后，现在就来体验一下酷酷的XGL： 首先添加源： deb http://www.beerorkid.com/compiz edgy main-edgy deb http://media.blutkind.org/xgl/ edgy main-edgy deb http://ubuntu.compiz.net/ edgy main-edgy 获取签名： wget http://www.beerorkid.com/compiz/quinn.key.asc -O &#8211; &#124; sudo apt-key add - wget http://media.blutkind.org/xgl/quinn.key.asc -O &#8211; &#124; sudo apt-key add - wget http://ubuntu.compiz.net/quinn.key.asc -O &#8211; &#124; sudo apt-key &#8230; <a href="http://wlx.westgis.ac.cn/230/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>安装好显卡驱动后，现在就来体验一下酷酷的XGL：<br />
首先添加源：</p>
<blockquote><p>deb http://www.beerorkid.com/compiz edgy main-edgy<br />
deb http://media.blutkind.org/xgl/ edgy main-edgy<br />
deb http://ubuntu.compiz.net/ edgy main-edgy</p></blockquote>
<p>获取签名：</p>
<blockquote><p>wget http://www.beerorkid.com/compiz/quinn.key.asc -O &#8211; | sudo apt-key add -<br />
wget http://media.blutkind.org/xgl/quinn.key.asc -O &#8211; | sudo apt-key add -<br />
wget http://ubuntu.compiz.net/quinn.key.asc -O &#8211; | sudo apt-key add -</p></blockquote>
<p>更新源，安装XGL</p>
<blockquote><p>sudo aptitude update<br />
sudo aptitude install xserver-xgl compiz-gnome cgwd cgwd-themes cgwd-themes-extra gnome-compiz-manager
</p></blockquote>
<p>创建/usr/bin/startxgl:</p>
<blockquote><p>sudo nano /usr/bin/startxgl</p></blockquote>
<p>ATI显卡</p>
<blockquote cite="ATI card"><p>
#!/bin/sh<br />
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &#038;<br />
DISPLAY=:1<br />
exec gnome-session
</p></blockquote>
<p>NVIDA显卡</p>
<blockquote cite="Nvida card"><p>#!/bin/sh<br />
Xgl :1 -fullscreen -ac -accel xv:fbo -accel glx:pbuffer &#038;<br />
DISPLAY=:1<br />
exec gnome-session</p></blockquote>
<p>修改权限，创建会话文件</p>
<blockquote><p>
sudo chmod +x /usr/bin/startxgl<br />
sudo nano  /usr/share/xsessions/xgl.desktop
</p></blockquote>
<p>会话文件：</p>
<blockquote cite="xgl.desktop"><p>
[Desktop Entry]<br />
Encoding=UTF-8<br />
Name=Xgl<br />
Comment=Start an Xgl Session<br />
Exec=/usr/bin/startxgl<br />
Icon=<br />
Type=Application</p></blockquote>
<p>注销，选择XGL会话。<br />
登录进来后运行，这一步好像以后可以忽略。</p>
<blockquote><p>cgwd &#8211;replace &#038;&#038; compiz &#8211;replace gconf</p></blockquote>
<p>然后其他的设置都可以通过工具栏上的小立方体来进行操作。</p>
<p>参考：<br />
1 http://xgl.compiz.info/<br />
2 http://www.ubuntuforums.org/showthread.php?t=232662&#038;highlight=xgl</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/230/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

