<?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>handyfloss &#187; Xfce</title>
	<atom:link href="http://handyfloss.net/tag/xfce/feed/" rel="self" type="application/rss+xml" />
	<link>http://handyfloss.net</link>
	<description>Because FLOSS is handy, isn&#039;t it?</description>
	<lastBuildDate>Tue, 17 Jan 2012 09:04:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Hibernating my MacBook under Ubuntu Intrepid Ibex</title>
		<link>http://handyfloss.net/2008.11/hibernating-my-macbook-under-ubuntu-intrepid-ibex/</link>
		<comments>http://handyfloss.net/2008.11/hibernating-my-macbook-under-ubuntu-intrepid-ibex/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 21:25:39 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[Free software and related beasts]]></category>
		<category><![CDATA[about me]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Xfce]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=539</guid>
		<description><![CDATA[No matter what they say, hibernating Linux laptops has always been a problem. I managed to get my MacBook to suspend to RAM quite reliably without much of a hassle. It suspends when I close the lid, and it resumes when I open the lid back. I even configured it to suspend when battery is [...]]]></description>
			<content:encoded><![CDATA[<p>No matter what they say, <a href="http://en.wikipedia.org/wiki/Hibernate (OS feature)">hibernating</a> Linux laptops has always been a problem. I managed to get my MacBook to <a href="http://en.wikipedia.org/wiki/sleep mode">suspend</a> to RAM quite reliably without much of a hassle. It suspends when I close the lid, and it resumes when I open the lid back. I even configured it to suspend when battery is critically low. This way, and due to the really low power consumption while suspended, I can safely forget my laptop on and unplugged for extended periods of time, and the worst that can happen is that I will have to resume it. A huge difference from the nasty surprise of finding it off and losing all the information not saved to disk.</p>
<p>However hibernating to disk is a whole different business. I never managed it to work, and that was an itch I wanted to scratch. Finally I managed, with the following recipe.</p>
<p><b>HowTo</b></p>
<p>First, make sure that you have enough <a href="http://en.wikipedia.org/wiki/paging">swap space</a> available in disk. In Linux you generally create a swap <a href="http://en.wikipedia.org/wiki/disk partitioning">partition</a> when installing the OS. The old adage states that one should make the swap partition <i>twice</i> as big as the RAM memory of the computer. With modern computers this is both unnecessary (because the big RAM makes sure you&#8217;ll never run out of it, and if you do, you are screwed anyway) and wasteful (if you have a 4GB RAM, it means that you dump 8GB of disk space). However, if you intend to hibernate your computer, all the information in the RAM memory has to be copied to the hard disk, so you sure need at least as much swap as RAM (but not twice).</p>
<p>Second, you need to use the correct tool. I use <a href="http://en.wikipedia.org/wiki/Xfce">Xfce</a> as desktop environment under Ubuntu, and the Exit menu presents me with six options: &#8220;Switch user&#8221;, &#8220;Log out&#8221;, &#8220;Restart&#8221;, &#8220;Shut down&#8221;, &#8220;Suspend&#8221; and &#8220;Hibernate&#8221;. I think that the latter two make use of the tools in the <tt>acpi-support</tt> package. The suspend action seems to work OK, but the hibernate one doesn&#8217;t (for me). It runs the command <tt>/etc/acpi/hibernate.sh</tt>, and it gives me problems. Thankfully I found some utilities that work reliably, namely <a href="http://pm-utils.freedesktop.org/wiki/">pm-utils</a>.</p>
<p>The <tt>pm-suspend</tt> command seems to work as correctly as the &#8220;Suspend&#8221; button in the Exit menu of Xfce. The <tt>pm-hibernate</tt>, on the other hand, works perfectly, unlike the &#8220;Hibernate&#8221; button. The drawback is that only root can run it. My solution is to put a launcher button in the Xfce task bar, that will run &#8220;gksudo pm-hibernate&#8221;. This way I am asked for my password and, if sudo is correctly set up, <tt>pm-hibernate</tt> will run.</p>
<p><b>More info</b></p>
<p>Sometimes it is very interesting to run some commands at suspension/hibernation moment, or at resuming/thawing. One such command is <a href="http://en.wikipedia.org/wiki/hdparm">hdparm</a>, with which you can fix the long known <a href="https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695">load/unload cycle problem</a> (you can <a href="http://www.google.com/search?q=ubuntu+load%2Funload+hdparm">google about it</a>). Another one is one to fix a problem that apparently appears on MacBooks: the <a href="http://en.wikipedia.org/wiki/touchpad">touchpad</a> is lost when the computer wakes up back. The keyboard works, and USB mice work, but the touchpad doesn&#8217;t. This problem can be fixed by reloading the <tt>appletouch</tt> <a href="http://en.wikipedia.org/wiki/Loadable kernel module">kernel module</a>:</p>
<div class="codeblock">
# modprobe -r appletouch &#038;&#038; modprobe appletouch
</div>
<p>You can fix both issues above by creating a file named, e.g., <tt>99-macbook_fix</tt>, in <tt>/etc/pm/sleep.d/</tt>, and making it executable. Then write in it the following:</p>
<div class="codeblock">
#!/bin/sh</p>
<p>if [ $1 = 'thaw' ]; then<br />
  # The appletouch module has to be reloaded after hibernating<br />
  # (not after suspending, though), because otherwise the touchpad<br />
  # remains frozen upon awakening.<br />
  modprobe -r appletouch<br />
  modprobe appletouch</p>
<p>  # Correct the load/unload cycles problem<br />
  /sbin/hdparm -B 254 /dev/sda<br />
fi</p>
<p>if [ $i = 'resume' ]; then<br />
  # Correct the load/unload cycles problem<br />
  /sbin/hdparm -B 254 /dev/sda<br />
fi
</p></div>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://handyfloss.net/2008.07/making-isight-camera-work-in-ubuntu/" title="Making iSight camera work in Ubuntu (July 4, 2008)">Making iSight camera work in Ubuntu</a> (20)</li>
	<li><a href="http://handyfloss.net/2009.04/poor-intel-graphics-performance-in-ubuntu-jaunty-jackalope-and-a-fix-for-it/" title="Poor Intel graphics performance in Ubuntu Jaunty Jackalope, and a fix for it (April 29, 2009)">Poor Intel graphics performance in Ubuntu Jaunty Jackalope, and a fix for it</a> (8)</li>
	<li><a href="http://handyfloss.net/2008.06/installing-ubuntu-hardy-heron-on-a-macbook/" title="Installing Ubuntu Hardy Heron on a MacBook (June 25, 2008)">Installing Ubuntu Hardy Heron on a MacBook</a> (6)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2008.11/hibernating-my-macbook-under-ubuntu-intrepid-ibex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiz Fusion under Debian Lenny on my home desktop</title>
		<link>http://handyfloss.net/2007.08/compiz-fusion-under-debian-lenny-on-my-home-desktop/</link>
		<comments>http://handyfloss.net/2007.08/compiz-fusion-under-debian-lenny-on-my-home-desktop/#comments</comments>
		<pubDate>Sun, 26 Aug 2007 18:14:00 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[Free software and related beasts]]></category>
		<category><![CDATA[about me]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Xfce]]></category>
		<category><![CDATA[Xgl]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=215</guid>
		<description><![CDATA[I recently wrote (actually, my last post, 12 days ago), a howto of sorts with my experience installing Compiz Fusion on my laptop. Yesterday I came back from my vacations, and repeated the feat with my destop computer at home. The setup is quite different: CPU: AMD Athlon 2800+ Graphics: nVidia FX 5700 (256MB) And [...]]]></description>
			<content:encoded><![CDATA[<p>I recently wrote (actually, my last post, 12 days ago), <a href="/2007.08/compiz-fusion-under-debian-lenny-on-my-laptop/">a howto of sorts</a> with my experience installing <a href="http://en.wikipedia.org/wiki/Compiz_Fusion">Compiz Fusion</a> on my laptop. Yesterday I came back from my vacations, and repeated the feat with my destop computer at home.</p>
<p>The setup is quite different:</p>
<p>CPU: AMD Athlon 2800+<br />
Graphics: nVidia FX 5700 (256MB)</p>
<p>And the effort is also quite different: it took me much less! Partially, this was because of my previous exprerience, but mainly the reason is that the graphics card here is nVidia. Yes, let the world know that <strong>ATI cards suck on Linux</strong>.</p>
<p>The problem is that ATI cards need <a href="http://en.wikipedia.org/wiki/XGL">XGL</a> to have Compiz running, but nVidia cards make use of <a href="http://en.wikipedia.org/wiki/AIGLX">AIGLX</a> natively, so the installation has only two steps: (1) installing the nVidia driver, and (2) installing the Compiz Fusion packages.</p>
<p><strong>Installing the latest nVidia driver</strong></p>
<p>As with the ATI card in my laptop, I decided to use the proprietary drivers from <a href="http://www.nvidia.com/content/drivers/drivers.asp">the nVidia site</a>. The choice-making interface is so similar, actually, to that of ATI. I had to go <em>Graphics Driver-&gt;GeForce FX series-&gt;Linux x86-&gt;Go!</em>, and download <a href="http://us.download.nvidia.com/XFree86/Linux-x86/100.14.11/NVIDIA-Linux-x86-100.14.11-pkg1.run">this installer</a>.</p>
<p><em><strong>BIG WARNING</strong></em>: before actually installing anything, remove a previous installation of the nVidia drivers, if you installed them &#8220;the Debian way&#8221;. For that, do:</p>
<p><code>% aptitude purge nvidia-glx</code></p>
<p>I have a friend who did not do so and&#8230; Ok, ok, it happened to me. If you do not do the above, everything seems to work fine, but everytime you reboot the X server will crash, and you <em>might</em> get incredibly annoyed by that.</p>
<p>To perform the installation, simply run, as root:</p>
<p><code>% sh <em>path-to-file</em>/NVIDIA-Linux-x86-100.14.11-pkg1.run</code></p>
<p>Then, just modify your <tt>xorg.conf</tt> file to contain the following:</p>
<pre>Section "ServerLayout"
  Identifier     "Default Layout"
  Screen       "Default Screen" 0 0
  InputDevice    "Generic Keyboard"
  InputDevice    "Configured Mouse"
  Option         "AIGLX" "true"
EndSection

...

Section "Extensions"
  Option         "RENDER" "true"
  Option         "Composite" "Enable"
  Option         "DAMAGE" "true"
EndSection</pre>
<p><strong>Installing Compiz Fusion packages</strong></p>
<p>The procedure is exactly the same covered in my previous post. In short:</p>
<p>1) Add the Shame repository to your <tt>/etc/apt/sources.list</tt>:</p>
<p><code>deb http://download.tuxfamily.org/shames/debian-sid/desktopfx/unstable/ ./</code></p>
<p>2) Get the signature for the repo:</p>
<p><code>% gpg --keyserver pgpkeys.mit.edu --recv-key 11F6E468</code><br />
<code>% gpg -a --export 11F6E468</code></p>
<p>3) Update and install:</p>
<p><code>% aptitude update</code><br />
<code>% aptitude install compiz-fusion-all --a</code></p>
<p>Any time you want to run Compiz, just execute:</p>
<p><code>% compiz --replace -c emerald</code></p>
<p>Shorter than the ATI thing, uh?</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://handyfloss.net/2007.08/compiz-fusion-under-debian-lenny-on-my-laptop/" title="Compiz Fusion under Debian Lenny on my laptop (August 14, 2007)">Compiz Fusion under Debian Lenny on my laptop</a> (6)</li>
	<li><a href="http://handyfloss.net/2006.10/xgl-with-xfce-under-debian-etch/" title="Xgl with Xfce under Debian Etch (October 1, 2006)">Xgl with Xfce under Debian Etch</a> (0)</li>
	<li><a href="http://handyfloss.net/2006.10/what-ive-done-to-my-laptop/" title="What I&#8217;ve done to my laptop (October 3, 2006)">What I&#8217;ve done to my laptop</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2007.08/compiz-fusion-under-debian-lenny-on-my-home-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiz Fusion under Debian Lenny on my laptop</title>
		<link>http://handyfloss.net/2007.08/compiz-fusion-under-debian-lenny-on-my-laptop/</link>
		<comments>http://handyfloss.net/2007.08/compiz-fusion-under-debian-lenny-on-my-laptop/#comments</comments>
		<pubDate>Tue, 14 Aug 2007 07:46:00 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[Free software and related beasts]]></category>
		<category><![CDATA[64-bits]]></category>
		<category><![CDATA[about me]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Xfce]]></category>
		<category><![CDATA[Xgl]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=214</guid>
		<description><![CDATA[I have a previous post with what I&#8217;ve done to my laptop, and in that post it&#8217;s not mentioned, but I managed (quite a while ago) to make Beryl work under Ubuntu Dapper Drake. Dapper is getting older, but I am not having good experiences installing Edgy and Feisty on the laptop. I have managed [...]]]></description>
			<content:encoded><![CDATA[<p>I have <a href="/2006.10/what-ive-done-to-my-laptop/">a previous post</a> with what I&#8217;ve done to my laptop, and in that post it&#8217;s not mentioned, but I managed (quite a while ago) to make <a href="http://en.wikipedia.org/wiki/Beryl_%28window_manager%29">Beryl</a> work under Ubuntu Dapper Drake. Dapper is getting older, but I am not having good experiences installing Edgy and Feisty on the laptop. I have managed to install Debian Etch with no problem, but the wireless driver was not working properly (for me, a showstopper) until Lenny.</p>
<p>So now I have a Debian Lenny partition, plus three other: the original WinXP, the Ubuntu Dapper I am still using as &#8220;main&#8221; OS, and a Fedora 7 I installed just because it came in a DVD with a magazine I bought for a train trip I had not brought any reading material with me :^)</p>
<p>Since I am on vacation, and I have plenty of time (although I don&#8217;t want to spend all of it on my comp), I decided to give <a href="http://en.wikipedia.org/wiki/Compiz_Fusion">Compiz Fusion</a> a try, mostly after <a href="/2007.07/compiz-fusion-effects/">seeing what it its capable of</a>.</p>
<p>First things first, the specs of my laptop are:</p>
<p>Fujitsu-Siemes Amilo PI1536<br />
CPU: Intel Core 2 Duo T7200 2&#215;2.0GHz<br />
RAM: 2x1Gb<br />
HD: 120Gb SATA<br />
Display: 15.4 WXGA<br />
Graphics: ATI Mobility Radeon X1400 (128Mb dedicated/512Mb shared)</p>
<p>The only relevant parts above are that it has an ATI graphics card (which, under Linux, sucks), and that it has Core 2 CPUs, which are <a href="http://en.wikipedia.org/wiki/X86-64">amd64</a>-capable (which is both great, for performance, and sucks, for drivers and software compatibilities). So, my second step was:</p>
<p><strong>Installation of ATI drivers</strong></p>
<p>If you want to take the best out of your ATI card, you have to tell your <a href="http://en.wikipedia.org/wiki/X.Org_Server">X.org graphics server</a> to use the <tt>fglrx</tt> driver, and not the default <tt>vesa</tt> one. You can install this driver from the <a href="http://en.wikipedia.org/wiki/Advanced_Packaging_Tool">official Debian repositories</a>, but for me those packages (<tt>fglrx-driver</tt> and related ones) didn&#8217;t do it.</p>
<p>So, I googled a bit, and followed the most widespread recommendation: to install the latest non-free (sigh) driver from the <a href="http://ati.amd.com/support/driver.html">ATI site</a>. For that, I chose the options: <em>Linux x86_64 -&gt; Mobility Radeon -&gt; Mobility Radeon X1400 -&gt; Go</em>, reaching <a href="http://ati.amd.com/support/drivers/linux64/linux64-radeon.html">this page</a>, and downloading <a href="https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/64bit/ati-driver-installer-8.40.4-x86.x86_64.run">this 38MB binary</a> (for the record, the 32bit version of the drivers is <em>exactly</em> the same .run file).</p>
<p>Next, I followed the remaining information in <a href="http://www.linuxquestions.org/questions/showthread.php?t=512356">this excelent thread</a> in <em>linuxquestions.org</em>. Namely, I downloaded the needed packages (the code is copy-paste-able):</p>
<p><code>% aptitude install module-assistant build-essential dh-make debhelper debconf libstdc++5 linux-headers-$(uname -r)  ia32-libs</code></code></p>
<p>Beware that the <tt>ia32-libs</tt> packages is not mentioned in the <em>linuxquestions.org</em> thread (assuming that you already have it installed), but it is required.</p>
<p>Next, run the ATI binary inside a dedicated directory (I did it as root, but it is not compulsory):</p>
<p><code>% mkdir /root/fglrx<br />
% cd /root/fglrx<br />
% mv <em>wherever-I-downloaded-it</em>/ati-driver-installer-8.32.5-x86.x86_64.run .<br />
% chmod +x ati-driver-installer-8.32.5-x86.x86_64.run<br />
% ./ati-driver-installer-8.32.5-x86.x86_64.run --buildpkg Debian/lenny<br />
% <em>rm or mv the .run file wherever you want</em></code></p>
<p>This generates a bunch of .debs in the <tt>/root/fglrx</tt> dir. Next, install them, and compile the driver (for this, you do need to be root):</p>
<p><code>% dpkg -i fglrx-*.deb<br />
% cd /usr/src<br />
% m-a prepare<br />
% m-a a-i fglrx</code></p>
<p>The <em>linuxquestion.org</em> thread mentions modifying the <tt>/etc/X11/xorg.conf</tt> file in two ways. First, disable compositing, adding:</p>
<p><code>Section "Extensions"<br />
  Option  "Composite" "Disable"<br />
EndSection</code></p>
<p>to it, and then running:</p>
<p><code>% aticonfig --initial<br />
% aticonfig --overlay-type=Xv</code></p>
<p>For me, both were superfluous, because I made a copy of my Ubuntu <tt>xorg.conf</tt>, and them made minimal changes (if at all). However, the first change (disabling compositing) was straightforward <strong>wrong</strong>. If I want to use Compiz Fusion, I need to have it. Relevant excerpts from my <tt>xorg.conf</tt>:</p>
<pre>
<code>Section "Module"
  Load  "i2c"
  Load  "bitmap"
  Load  "ddc"
  Load  "dri"
  Load  "extmod"
  Load  "freetype"
  Load  "glx"
  Load  "int10"
  Load  "type1"
  Load  "vbe"
EndSection

...

Section "Device"
  Identifier  "aticonfig-Device[0]"
  Driver      "fglrx"
  Option      "VideoOverlay" "on"
  Option      "OpenGLOverlay" "off"
EndSection

...

Section "Screen"
  Identifier "aticonfig-Screen[0]"
  Device     "aticonfig-Device[0]"
  Monitor    "aticonfig-Monitor[0]"
  DefaultDepth     24
  SubSection "Display"
    Viewport   0 0
    Depth     24
    Modes    "1280x800" "800x600" "640x480"
  EndSubSection
EndSection

...

Section "DRI"
  Mode         0666
EndSection

Section "Extensions"
  Option "Composite" "1"
EndSection</code>
</pre>
<p>After all this fuss, and to ensure you have it all running OK, try to insert the module as root:</p>
<p><code>% modprobe fglrx</code></p>
<p>Then, make sure it loads everytime you reboot (include it in <tt>/etc/modules</tt> if necessary, but it shouldn't be).</p>
<p>Next, reload the <a href="http://en.wikipedia.org/wiki/X_Window_System">X server</a>, and check that now it is running the <tt>fglrx</tt> driver, by doing the following (as user is fine):</p>
<p><code>% fglrxinfo</code></p>
<p>It should display something like the following:</p>
<p><code>display: :0.0  screen: 0<br />
OpenGL vendor string: ATI Technologies Inc.<br />
OpenGL renderer string: ATI Mobility Radeon X1400<br />
OpenGL version string: 2.0.6650 (8.39.4)</code></p>
<p>If, instead, it says something about mesa3d, it didn't work.</p>
<p>Now, the second step is...</p>
<p><strong>Installing Xgl</strong></p>
<p>With the standard X.org server we have a problem. We can load the <tt>fglrx</tt> driver, but we can not activate <a href="http://en.wikipedia.org/wiki/Compositing_window_manager">compositing</a> (see last three lines of my <tt>xorg.conf</tt> file above). If we activate compositing in the <tt>xorg.conf</tt> file, the ATI driver will not be loaded (don't ask me why, it just seems to happen). If we deactivate compositing, the ATI driver gets loaded, but without compositing, we can not use Compiz.</p>
<p>The solution is to install <a href="http://en.wikipedia.org/wiki/Xgl">Xgl</a> which is an X server (or, I think, a kind of layer that runs <em>on top</em> of the X.org server) that allows for the above trick. There seem to be two "ways" of getting proper compositing: Xgl and <a href="http://en.wikipedia.org/wiki/AIGLX">AIGLX</a>. The general agreement on the net seems to be that the latter is "better", but only the former seems to work with ATI cards (read the <em>"AIGLX with AMD (ex-ATI) Proprietary Drivers"</em> section in the AIGLX Wikipedia article, because it hits the problem <a href="http://www.answers.com/main/ntquery?s=dead-on&amp;gwp=13">dead-on</a>). With Xgl I can make use of the <tt>fglrx</tt> driver and have compositing at the same time.</p>
<p>We are lucky here, because there <strong>are</strong> Debian repositories for Xgl. I found out about them in <a href="http://www.tuxmachines.org/node/10425">this howto in tuxmachines.org</a>. Most of the info there is mostly... ehem... useless (for me), but reading it I found a repo for Xgl. I just have to add the following line to my <tt>/etc/apt/sources.list</tt> (beware that the original mention in the <em>tuxmachines.org</em> page says "binary-i386", and I had to change it to "binary-amd64"):</p>
<p><code>deb http://www5.autistici.org/debian-xgl/debian/ binary-amd64/</code></p>
<p>I then had to do <tt>aptitude update</tt>, and I (of course) got an error telling me that some signatures couldn't be verified (read <a href="/2006.04/debian-secure-apt/">my own article about secure APT</a> and/or the wonderful <a href="http://wiki.debian.org/SecureApt">Debian wiki</a> to know more). I think the key is 11F6E468, and it corresponds to Francesco Cecconi (mantainer of the repo). It is downloadable from <tt>pgpkeys.mit.edu</tt> (follow instructions on my previous post, or the ones in the Debian wiki). If you want, do not skip reading the <a href="http://www5.autistici.org/debian-xgl/">parent page of the repository</a>.</p>
<p>After the keys are OK, it's just a matter of doing (as root):</p>
<p><code>% aptitude update<br />
% aptitude install xgl</code></p>
<p>Now you are done installing, but will have to actually <strong>use</strong> Xgl. This gave me some headaches, not because I didn't know where to put things, but because I didn't know exactly <em>what</em> to put. I read, and followed, the instructions in <a href="http://www.freedesktop.org/wiki/Software/Xgl">freedesktop.org</a>, and (after all, the blog seems to be useful for someone: myself) <a href="/2006.10/xgl-with-xfce/">a previous post of my own</a>.</p>
<p>I am using <a href="http://en.wikipedia.org/wiki/GNOME_Display_Manager">GDM</a>, so my final setup was the following: first generate a suitable entry in the GDM menu, by creating a file named <tt>/usr/share/xsessions/xfce4-xgl.desktop</tt> (or whatever, but in the same dir, and ending in ".desktop"), and putting the following inside:</p>
<p><code>[Desktop Entry]<br />
Encoding=UTF-8<br />
Name=Xfce-Xgl<br />
Exec=/usr/local/bin/startxgl_xfce<br />
Icon=Type=Application</code></p>
<p>The string after "Name=" is the one that will appear in the GDM menu, and the one after "Exec=" what will be executed when selecting that entry.</p>
<p>Next, we have to create the string we promise above (<tt>/usr/local/bin/startxgl_xfce</tt>), and put the following inside:</p>
<p><code># Start the Xgl server:<br />
Xgl -fullscreen :0 -ac -accel glx:pbuffer -accel xv:pbuffer -fp /usr/share/X11/fonts/misc &amp;amp; sleep 5 &amp;amp;&amp;amp; DISPLAY=:0<br />
# Start Xfce:<br />
exec xfce4-session</code></p>
<p>As you can see, I am telling Xgl to load a font (with <tt>-fp</tt>) that was giving me headaches, because the server would die saying that the font was missing when I didn't include that option. Your mileage may vary.</p>
<p>Now, everytime we select the entry labeled "Xfce-Xgl" in the GDM menu, we will have the Xgl server  running.</p>
<p><strong>Installing Compiz Fusion packages</strong></p>
<p>I think the aforementioned <em>autistici.org</em> repo has compiz packages, as well as the default Debian Lenny repos. But net consensus seems to be that they are not the way to go. Everyone praises two repositories: Treviño's and Shame's. I chose the latter, adding the following line to my <tt>/etc/apt/sources.list</tt>:</p>
<pre>deb http://download.tuxfamily.org/shames/debian-sid/desktopfx/unstable/ ./</pre>
<p>I think I went through the same chores as above for key verification, Shame's key being A42A6CF5.</p>
<p>After that, I installed the following package (it installs all of the needed packages):</p>
<p><code>% aptitude install compiz-fusion-all</code></p>
<p>After that, and inside my "Xfce-Xgl" session, I just did the following, as some googling revealed:</p>
<p><code>% compiz --replace</code></p>
<p>But... it didn't work :^( It complained in the following manner:</p>
<p><code>Fatal: Failed test: texture_from_pixmap support<br />
Checks indicate that it's impossible to start compiz on your  system.</code></p>
<p>I found <strong>a lot</strong> of pages, threads and howtos in the net stumbling upon this same problem (for example, <a href="http://ubuntuforums.org/showthread.php?t=504619">this one</a> at <em>ubuntuforums.org</em>), but none with the answer. Really. None. The most enlightening tips where the use of the <tt>-v</tt>, <tt>-h</tt> and <tt>--help</tt> switches for <tt>compiz</tt>. The first one requests verbose output, the second one help about "short" options, and the third one help about the "long" options. With the latter I discovered the <tt>--force-fglrx</tt> switch, which saved the day! Yes, I now use the following command to start Compiz:</p>
<p><code>% compiz --replace -c emerald --force-fglrx</code></p>
<p>I have two things to say at that point. First: this Compiz Fusion is visually astonishing! It is full of great ideas, and has a lot of settings to play with. The second thing is not so nice: some glitches are present. For example, my <a href="http://en.wikipedia.org/wiki/Konsole">Konsole</a> windows get transparent background for no reason, and the refresh is horrible (when text reaches the bottom on the terminal, it starts to overwrite itself. One must hide and un-hide the window for proper refreshing, which is unacceptable). The latter also affects other windows, which, all in all, makes it unsuitable for much comfort.</p>
<p>However, Compiz Fusion is new, hot and experimental. I love playing with it, but right now it can not be relied upon. On the bright side, in the three days from my installation, the packages have been updated <strong>three times</strong>! I suppose some <tt>aptitude upgrade</tt> cycles will fix the issues eventually.</p>
<p>And that's it, dear reader.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://handyfloss.net/2007.08/compiz-fusion-under-debian-lenny-on-my-home-desktop/" title="Compiz Fusion under Debian Lenny on my home desktop (August 26, 2007)">Compiz Fusion under Debian Lenny on my home desktop</a> (0)</li>
	<li><a href="http://handyfloss.net/2006.10/what-ive-done-to-my-laptop/" title="What I&#8217;ve done to my laptop (October 3, 2006)">What I&#8217;ve done to my laptop</a> (2)</li>
	<li><a href="http://handyfloss.net/2006.10/xgl-with-xfce-under-debian-etch/" title="Xgl with Xfce under Debian Etch (October 1, 2006)">Xgl with Xfce under Debian Etch</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2007.08/compiz-fusion-under-debian-lenny-on-my-laptop/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Comentario en enriquedans.com</title>
		<link>http://handyfloss.net/2007.07/comentario-en-enriquedanscom/</link>
		<comments>http://handyfloss.net/2007.07/comentario-en-enriquedanscom/#comments</comments>
		<pubDate>Sat, 21 Jul 2007 15:26:00 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[Free software and related beasts]]></category>
		<category><![CDATA[es]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[opinion]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Xfce]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=209</guid>
		<description><![CDATA[Transcribo el texto de un comentario que he mandado al blog de Enrique Dans, y que por algún motivo no ha salido correctamente (lo voy a enlazar desde allí, para ver si sale así): ¡Cuánta ignorancia junta, Dios mío! Dice #15: &#8220;Para alabar a Beryl tiene uno que probarlo, no poner un video del youtube… [...]]]></description>
			<content:encoded><![CDATA[<p>Transcribo el texto de un comentario que he mandado al <a href="http://www.enriquedans.com/2007/07/vista-seis-tristes-meses-despues.html">blog de Enrique Dans</a>, y que por algún motivo no ha salido correctamente (lo voy a enlazar desde allí, para ver si sale así):</p>
<p>¡Cuánta ignorancia junta, Dios mío!</p>
<p>Dice #15:</p>
<p><em>&#8220;Para alabar a Beryl tiene uno que probarlo, no poner un video del youtube… Beryl esta verde, verde, verdisimo… &#8220;</em></p>
<p>Mentira. Yo llevo tiempo usando Beryl, y ha madurado mucho en muy poco tiempo. En mis ordenadores &#8220;de trabajo&#8221; no lo uso, porque soy más bien de los que tienen escritorios espartanos: <a href="http://en.wikipedia.org/wiki/Xfce">Xfce</a> con un solo panel abajo y un fondo de escritorio sin iconos. Y sin efectos 3D ni transparencias.</p>
<p>Ahora bien, <a href="http://isilanes.blogspot.com/2006/10/xgl-with-gnome-under-ubuntu-dapper.html">cuando puse Beryl por primera vez</a>, me funcionó de maravilla, y podía hacer un montón de cosas que no sé si Aero puede hacer (igual sí). Por ejemplo: Alt+Rueda del ratón sobre una ventana y cambio su transparencia de 0% hasta casi 100% (y puedo ver lo de debajo). Puedo ver dos o tres vídeos diferentes a la vez, con diferente nivel de transparencia, y ver los de abajo <strong>a través</strong> de los de arriba. Y eso mientras pongo un efecto de lluvia sobre todo el escritorio. Y eso mientras roto el cubo, o pongo las ventanas con los vídeos en una arista del cubo&#8230;</p>
<p>Y todo esto antes de que Vista saliera al mercado, y con ordenadores en los que Vista no funcionaría, porque &#8220;su alta tecnología requiere mejor hardware&#8221;.</p>
<p>¿Para qué sirve esto? Para nada. Igual que Aero. Simplemente mola, y si lo quiero usar, puedo hacerlo. Yo, la verdad, no lo uso, pero para gustos los colores.</p>
<p>Pero el escritorio Linux no se acaba en Beryl. Hace años que en <strong>funcionalidad</strong> el escritorio Linux (<a href="http://en.wikipedia.org/wiki/GNOME">GNOME</a>, <a href="http://en.wikipedia.org/wiki/KDE">KDE</a>, <a href="http://en.wikipedia.org/wiki/Xfce">Xfce</a>&#8230; incluso <a href="http://en.wikipedia.org/wiki/GNOME">Fluxbox</a> y similares) ha sobrepasado ampliamente a cualquier Windows, incluido el Vista. Desde escritorios múltiples, hasta <em>shortcuts</em> de teclado ultrapersonalizables, colocación de ventanas automática más inteligente (al abrirse una aplicación), lista de tareas más eficiente, paneles configurables, &#8220;gadgets&#8221; (como los han rebautizado los sinvergüenzas de Redmond) como relojes y monitores gráficos de uso de CPU, red o I/O de disco etc. <a href="http://isilanes.blogspot.com/2006/05/heracles-screenshot.html">sobre el escritorio</a>.</p>
<p>Por no mencionar la brutal capacidad de personalización de la interfaz, cambiando la decoración de las ventanas, el estilo de los botones, menús, listas, etc, la fuente de letra para los títulos de las ventanas, los menús, los iconos&#8230;</p>
<p>Leo en #37:</p>
<p><em>&#8220;Luego tengo que hacerles una aplicación cliente, sin que tenga que tirar más lineas de código que un tonto, y los dos únicos lenguages que tengo disponibles (no hay Visual Basic) son C y Java.&#8221;</em></p>
<p>Pero bueno, chaval, ¿estás diciendo que no usas Linux porque no hay lenguajes de programación? Si quieres aplicaciones para cálculo masivo tienes <a href="http://en.wikipedia.org/wiki/Fortran">Fortran</a> y <a href="http://en.wikipedia.org/wiki/C%20%28programming%20language%29">C</a>. Si quieres scripts rápidos, eficientes, y fáciles de coj*nes de hacer, tienes <a href="http://en.wikipedia.org/wiki/Unix_shell">shell</a>, <a href="http://en.wikipedia.org/wiki/Perl">Perl</a>, <a href="http://en.wikipedia.org/wiki/Python%20%28programming%20language%29">Python</a>, <a href="http://en.wikipedia.org/wiki/Ruby%20%28programming%20language%29">Ruby</a> y otros. Si quieres aplicaciones gráficas fáciles hace tiempo que tienes <a href="http://en.wikipedia.org/wiki/Tcl">Tcl</a>/<a href="http://en.wikipedia.org/wiki/Tk%20%28programming%20language%29">Tk</a>, y más moderno <a href="http://en.wikipedia.org/wiki/GTK%2B">GTK+</a> y <a href="http://en.wikipedia.org/wiki/Qt%20%28toolkit%29">Qt</a>. Tanto Tk como GTK (Qt no sé) tienen una integración con Perl , Python y C que asombra por su simplicidad.</p>
<p>Me gustaría ver que programa &#8220;simple&#8221; de VB u otra basura similar es capaz de hacer lo que dos líneas de Perl o shell, con sed y awk. Para que te hagas una idea, Google usa Perl para pattern matching cuando te da los resultados de una búsqueda. Sobre máquinas Linux, claro.</p>
<p>Date una vuelta por la Wikipedia, y su <a href="http://en.wikipedia.org/wiki/Categorical_list_of_programming_languages">lista de lenguajes de programación por categorías</a>, y verás la de lenguajes diferentes que hay, y haz la cuenta de cuantos se pueden usar en Windows y cuantos en Linux.</p>
<p>Luego dice #44:</p>
<p><em>&#8220;Eso de que quien usa Windows es porque quiere no es verdad. Yo llevo años intentando emplear Linux y no hay manera. Hace siete años lo probé por primera vez con una distro de Mandrake y me volví tonto.&#8221;</em></p>
<p>Quizá no sea justo culpar a Mandrake de esto último&#8230;</p>
<p>Es laudable tu intención de usar Linux, y lamentable que no lo hayas conseguido, pero creo que tu negativa experiencia no es necesariamente generalizable.</p>
<p>Yo llevo 9 años usando Linux. Empecé con Slackware, donde uno se hacía todo &#8220;a mano&#8221;. ¡Qué tiempos! Era complicado a veces, pero aprendí muchísimo. Luego, cuando probé Mandrake, me gusto mucho, porque era tan fácil que hasta daba un poco de vergüenza.</p>
<p>Con el tiempo, volví a distros más &#8220;técnicas&#8221;, y ahora uso Debian (que es como el &#8220;Ubuntu para frikis&#8221;), porque me permite más flexibilidad que las distros &#8220;para tontos&#8221; (con todos los respetos), y me es mucho más <strong>fácil</strong> controlar lo que hace el ordenador, que con distros que se creen más listas que yo, y me &#8220;facilitan&#8221; el hacer las cosas como <em>creen</em> que quiero hacerlas, y no como <em>quiero</em> hacerlas.</p>
<p><em>&#8220;Desde entonces lo he vuelto a intentar varias veces y siempre me he topado con un muro de piedra: la conexión a internet.</em></p>
<p><em>JAMÁS he logrado conseguir conectarme a internet con una distribución de Linux. Ni cuando usaba un módem RTB, ni usando un módem ADSL, ni ahora con un router wifi.</em></p>
<p>Pues debes de ser el único, macho. Yo tuve problemas con el v.90/92, cuando intente conectarme con un winmódem interno. Pensé que Linux era una castaña, hasta que me compré un módem externo, y vi que era IGUAL de fácil de configurar que en Windows (y más fiable).</p>
<p>Cuando me pasé al ADSL (en realidad tengo cable, con Euskaltel), no tuve NINGÚN problema con Linux. Lo configuré en un tris. Y cuando me puse WiFi, me compré yo mismo el router (con lo cual me ahorré unos eurillos, respecto a pedirlo a Euskaltel), y me lo instalé sin problema en el de sobremesa (con cable). El portátil que conecto por WiFi no me ha dado ningún problema para conectar en modo abierto, y tampoco con encriptación WEP. Cierto es que para WPA tuve que hacer <a href="http://isilanes.blogspot.com/2007/01/wifi-with-wpa-under-ubuntudebian.html">alguna cosilla</a>, y que en Windows es más sencillo, pero solo marginalmente más sencillo.</p>
<p>Como comentario final, añadir que Vista no hace más que <a href="http://isilanes.blogspot.com/2006/06/window-vista-reinventing-wheel.html">reinventar la rueda</a>, reimplementando mil cosas que ya existían en Mac y en Linux (y generalmente, mucho mejor hechas), y cambiándoles el nombre, para que parezca que las han inventado ellos (como muestra un botón: los infames &#8220;gadgets&#8221;, que son el <strong>último</strong> S.O. del mercado, libre o no, que los implementa, y lo venden como que fueran los inventores).</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://handyfloss.net/2008.10/soy-un-pc-y-quiero-ser-libre/" title="Soy un PC y quiero ser libre (October 29, 2008)">Soy un PC y quiero ser libre</a> (3)</li>
	<li><a href="http://handyfloss.net/2008.05/microsoft-se-pasa-al-humor/" title="Microsoft se pasa al humor (May 31, 2008)">Microsoft se pasa al humor</a> (3)</li>
	<li><a href="http://handyfloss.net/2006.10/xgl-with-xfce/" title="Xgl with Xfce (October 5, 2006)">Xgl with Xfce</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2007.07/comentario-en-enriquedanscom/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Xgl with Xfce</title>
		<link>http://handyfloss.net/2006.10/xgl-with-xfce/</link>
		<comments>http://handyfloss.net/2006.10/xgl-with-xfce/#comments</comments>
		<pubDate>Thu, 05 Oct 2006 16:36:00 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[Free software and related beasts]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Xfce]]></category>
		<category><![CDATA[Xgl]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=123</guid>
		<description><![CDATA[I previously posted about running Xgl under GNOME. Well, it seems that the Xgl/Beryl duo can be run smoothly under any other desktop environment, e.g. Xfce. To attain that (after you have GNOME/Xgl running), just create two files: /usr/local/bin/startxgl_xfce Xgl -fullscreen :1 -ac -accel glx:pbuffer -accel xv:pbuffer &#38; sleep 2 &#38;&#38; DISPLAY=:1 # Start Xfce [...]]]></description>
			<content:encoded><![CDATA[<p>I previously posted about running <a href="http://handyfloss.wordpress.com/2006/10/01/xgl-with-gnome-under-ubuntu-dapper-drake/">Xgl under GNOME</a>. Well, it seems that the Xgl/Beryl duo can be run smoothly under any other desktop environment, e.g. <a href="http://www.xfce.org/">Xfce</a>.</p>
<p>To attain that (after you have GNOME/Xgl running), just create two files:</p>
<p><code><strong>/usr/local/bin/startxgl_xfce</strong></code></p>
<p>Xgl -fullscreen :1 -ac -accel glx:pbuffer -accel xv:pbuffer &amp; sleep 2 &amp;&amp; DISPLAY=:1<br />
# Start Xfce<br />
exec xfce4-session</p>
<p>and</p>
<p><code><strong>/usr/share/xsessions/xfce4-xgl.desktop</strong></code></p>
<p>[Desktop Entry]<br />
Encoding=UTF-8<br />
Name=Xfce-Xgl<br />
Exec=/usr/local/bin/startxgl_xfce<br />
Icon=<br />
Type=Application</p>
<p>The latter inserts a &#8220;Xfce-Xgl&#8221; entry in the GDM xsession list, which will call the former. That one actually startx Xgl and opens Xfce. Nice, uh?</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://handyfloss.net/2007.08/compiz-fusion-under-debian-lenny-on-my-laptop/" title="Compiz Fusion under Debian Lenny on my laptop (August 14, 2007)">Compiz Fusion under Debian Lenny on my laptop</a> (6)</li>
	<li><a href="http://handyfloss.net/2007.08/compiz-fusion-under-debian-lenny-on-my-home-desktop/" title="Compiz Fusion under Debian Lenny on my home desktop (August 26, 2007)">Compiz Fusion under Debian Lenny on my home desktop</a> (0)</li>
	<li><a href="http://handyfloss.net/2006.10/xgl-with-xfce-under-debian-etch/" title="Xgl with Xfce under Debian Etch (October 1, 2006)">Xgl with Xfce under Debian Etch</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2006.10/xgl-with-xfce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

