<?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>quietmint &#187; Ubuntu</title>
	<atom:link href="http://quietmint.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://quietmint.com</link>
	<description>&#34;Yesterday&#039;s absence of corrections was due to a technical hitch rather than any sudden onset of accuracy.&#34;</description>
	<lastBuildDate>Sun, 15 Nov 2009 19:53:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Make VLC And ATI Graphics Cards Get Along In Ubuntu</title>
		<link>http://quietmint.com/2008/make-vlc-and-ati-graphics-cards-get-along-in-ubuntu/</link>
		<comments>http://quietmint.com/2008/make-vlc-and-ati-graphics-cards-get-along-in-ubuntu/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 03:47:00 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">/2008/06/make-vlc-and-ati-graphics-cards-get-along-in-ubuntu/</guid>
		<description><![CDATA[If you use Ubuntu on a computer with an ATI graphics card, you may be disappointed (to say the least) with the video quality. While the quality can be improved by visiting Settings &#62; Preferences &#62; Video &#62; Output Modules and choosing the XVideo output module, this seems to simply switch one problem (blocky picture) [...]]]></description>
			<content:encoded><![CDATA[<p>If you use <a href="http://www.ubuntu.com/">Ubuntu</a> on a computer with an ATI graphics card, you may be disappointed (to say the least) with the video quality. While the quality can be improved by visiting Settings &gt; Preferences &gt; Video &gt; Output Modules and choosing the XVideo output module, this seems to simply switch one problem (blocky picture) for another (flickering). The problem is that the ATI graphics driver for Linux, fglrx, does not get along with Ububtu&#8217;s 3D desktop effects manager, <a href="http://www.compiz-fusion.org/">Compiz Fusion</a>. Both programs fight for control over the display, resuling in flickering as one redraws overtop the other. The &#8220;solution&#8221; is to use to disable Compiz Fusion while playing videos. You can &#8220;wrap&#8221; the vlc executable around the following shell script which will automatically disable and re-enable Compiz Fusion as necessary. (The same script can also be wrapped around any other problematic application.)<span id="more-76"></span></p>
<p>Run the following code to prepare for the script (one-time only):</p>
<blockquote class="code"><p>sudo apt-get install libnotify-bin compizconfig-settings-manager<br />
sudo touch /usr/local/bin/compizswitcher<br />
sudo chmod 777 /usr/local/bin/compizswitcher</p></blockquote>
<p>Use your favorite text editor to save the following script as <span style="font-weight: bold;">/usr/local/bin/compizswitcher</span>:</p>
<blockquote class="code"><p>#!/bin/bash -u<br />
# quietmint.com Compiz Fusion wrapper script (8/26/08)</p>
<p>if [ $# -lt 1 ]; then<br />
echo &#8220;Usage: $0 &lt;command&gt;&#8221;<br />
exit 1<br />
fi<br />
ICON=&#8221;/usr/share/ccsm/icons/hicolor/scalable/apps/plugin-showdesktop.svg&#8221;<br />
LOCKFILE=&#8221;/tmp/compizswitcher.lock&#8221;</p>
<p># Disable?<br />
if [ ! -e $LOCKFILE ]; then<br />
echo &#8220;[compizswitcher] Disabling Compiz Fusion&#8221;<br />
DISPLAY=$DISPLAY metacity &#8211;replace 2&gt;/dev/null | cat /dev/null &amp;<br />
notify-send &#8211;expire-time=3500 &#8211;icon=$ICON &#8220;Application Compatibility&#8221;<br />
&#8220;Visual effects are temporarily disabled.&#8221;<br />
else<br />
echo &#8220;[compizswitcher] Duplicate instance, Compiz Fusion was already disabled by another process&#8221;<br />
fi</p>
<p>echo &#8220;$$&#8221; &gt;&gt; &#8220;$LOCKFILE&#8221;;<br />
trap unlock INT TERM EXIT</p>
<p># Run the original command<br />
$@</p>
<p>unlock() {<br />
# Enable?<br />
OTHERS=$(grep -v &#8220;^$$$&#8221; &#8220;$LOCKFILE&#8221;)<br />
if [ ! -z "$OTHERS" ]; then<br />
echo &#8220;$OTHERS&#8221; &gt; &#8220;$LOCKFILE&#8221;<br />
echo &#8220;[compizswitcher] Duplicate instance, leaving Compiz Fusion disabled for other processes&#8221;<br />
else<br />
rm -f $LOCKFILE<br />
echo &#8220;[compizswitcher] Enabling Compiz Fusion&#8221;<br />
DISPLAY=$DISPLAY compiz &#8211;replace &gt;/dev/null 2&gt;/dev/null &amp;<br />
sleep 2<br />
notify-send &#8211;expire-time=3500 &#8211;icon=$ICON &#8220;Application Compatibility&#8221;<br />
&#8220;Visual effects have been re-enabled.&#8221;<br />
fi<br />
}</p></blockquote>
<p>After saving the script, run the following commands to create a &#8220;wrapper&#8221; application for VLC (repeat for other applications, switching &#8220;vlc&#8221; with the appropriate application name):</p>
<blockquote class="code"><p>sudo mv /usr/bin/vlc /usr/bin/vlc.real<br />
sudo touch /usr/bin/vlc<br />
sudo chmod 777 /usr/bin/vlc<br />
echo &#8216;compizswitcher vlc.real $@&#8217; &gt; /usr/bin/vlc</p></blockquote>
<p>Now you can enjoy high-quality, flicker-free videos without completely sacrificing the aesthetic 3D effects of Compiz Fusion.</p>
]]></content:encoded>
			<wfw:commentRss>http://quietmint.com/2008/make-vlc-and-ati-graphics-cards-get-along-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->