<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Whirliwig's Weblog &#187; Geek</title>
	<atom:link href="http://whirliwig.wordpress.com/category/geek/feed/" rel="self" type="application/rss+xml" />
	<link>http://whirliwig.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 22 Sep 2009 22:49:06 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='whirliwig.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/6c2ef262bd209987d44f8c0cc268ebd0?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Whirliwig's Weblog &#187; Geek</title>
		<link>http://whirliwig.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://whirliwig.wordpress.com/osd.xml" title="Whirliwig&#8217;s Weblog" />
		<item>
		<title>X Server Crashes on Resume from Suspend</title>
		<link>http://whirliwig.wordpress.com/2008/06/08/x-server-crashes-on-resume-from-suspend/</link>
		<comments>http://whirliwig.wordpress.com/2008/06/08/x-server-crashes-on-resume-from-suspend/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 01:13:12 +0000</pubDate>
		<dc:creator>whirliwig</dc:creator>
				<category><![CDATA[MM10]]></category>

		<guid isPermaLink="false">http://whirliwig.wordpress.com/?p=31</guid>
		<description><![CDATA[The MM10 sometimes wakes from suspend to chuck me out to the Gnome logon, losing my session. Then when I try logging on again, Gnome is broken.
I suspected XServer crashes. Yep according to /var/log/Xorg.0.log . Looked at internet. It&#8217;s sort of pear-shaped. Sorry, that was a pear I was looking at then. Googled it. Turns [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=31&subd=whirliwig&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The MM10 sometimes wakes from suspend to chuck me out to the Gnome logon, losing my session. Then when I try logging on again, Gnome is broken.</p>
<p>I suspected XServer crashes. Yep according to /var/log/Xorg.0.log . Looked at internet. It&#8217;s sort of pear-shaped. Sorry, that was a pear I was looking at then. Googled it. Turns out the net is littered with veterans from the war against this one.</p>
<p>Looks like XServer is trying to do its own power management via ACPI, and that seems to get broken when other thingies are trying to suspend/resume at the same time. Still unconvinced. But here are the magical incantations:</p>
<p>In Xorg.conf:</p>
<pre>Section "ServerFlags"
	Option "NoPM" "true"
EndSection</pre>
<p>also, need to pass a flag to X at startup. X is started by the display manager (Gnome/gdm) in my case. On debian, gdm&#8217;s config is <code>/etc/gdm/gdm.conf</code>. It has several clauses for starting different flavours of X session. Change all of the lines of the following kind to add the -noacpi flag:</p>
<pre>command=/usr/bin/X -noacpi -audit 0</pre>
<p>About to try this. Wish me luck.</p>
<p>Credits: too numerous to mention. Try googling &#8216;x server crashes resume suspend&#8217;</p>
<p>UPDATE:</p>
<p>Didn&#8217;t work. Blah. If you want, try it. Others have found success.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/whirliwig.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/whirliwig.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whirliwig.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whirliwig.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whirliwig.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whirliwig.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whirliwig.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whirliwig.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whirliwig.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whirliwig.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whirliwig.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whirliwig.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=31&subd=whirliwig&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://whirliwig.wordpress.com/2008/06/08/x-server-crashes-on-resume-from-suspend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d264195e56020ade73069ec742f2a03?s=96&#38;d=identicon" medium="image">
			<media:title type="html">whirliwig</media:title>
		</media:content>
	</item>
		<item>
		<title>safe-upgrade &#8216;ing lenny on MM10</title>
		<link>http://whirliwig.wordpress.com/2008/05/12/safe-upgrade-ing-lenny-on-mm10/</link>
		<comments>http://whirliwig.wordpress.com/2008/05/12/safe-upgrade-ing-lenny-on-mm10/#comments</comments>
		<pubDate>Mon, 12 May 2008 22:37:16 +0000</pubDate>
		<dc:creator>whirliwig</dc:creator>
				<category><![CDATA[MM10]]></category>

		<guid isPermaLink="false">http://whirliwig.wordpress.com/?p=28</guid>
		<description><![CDATA[After aptitude safe-upgrade , I&#8217;m downgraded to a previous version of NetworkManager, and network-applet-gnome. These don&#8217;t work on the MM10 with madwifi.
Luckily, disconnected as I was, I still had the snapshot sources for the two packages in /var/tmp &#8230;
I re-configured, rebuilt, ran make install
The lenny NetworkManager stuff installs into /usr/local/sbin, but my version went into [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=28&subd=whirliwig&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After <code>aptitude safe-upgrade</code> , I&#8217;m downgraded to a previous version of NetworkManager, and network-applet-gnome. These don&#8217;t work on the MM10 with madwifi.</p>
<p>Luckily, disconnected as I was, I still had the snapshot sources for the two packages in <code>/var/tmp</code> &#8230;</p>
<p>I re-configured, rebuilt, ran <code>make install</code></p>
<p>The lenny NetworkManager stuff installs into <code>/usr/local/sbin</code>, but my version went into <code>/usr/sbin</code>, because I used the following configure line:</p>
<pre>
./configure --enable-maintainer-mode --prefix=/usr --sysconfdir=/etc --localstatedir=/var
</pre>
<p>So, to clean up:</p>
<pre>
cd /usr/local/sbin
mv NetworkManager NetworkManager.dontuse
mv NetworkManagerDispatcher NetworkManagerDispatcher.dontuse
ln -s /usr/sbin/NetworkManager /usr/sbin/NetworkManagerDispatcher .
</pre>
<p>Finally, ran restart:</p>
<pre>
/etc/init.d/NetworkManager restart
</pre>
<p>and off it goes, connecting. And here I am again! Byeeeeee.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/whirliwig.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/whirliwig.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whirliwig.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whirliwig.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whirliwig.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whirliwig.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whirliwig.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whirliwig.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whirliwig.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whirliwig.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whirliwig.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whirliwig.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=28&subd=whirliwig&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://whirliwig.wordpress.com/2008/05/12/safe-upgrade-ing-lenny-on-mm10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d264195e56020ade73069ec742f2a03?s=96&#38;d=identicon" medium="image">
			<media:title type="html">whirliwig</media:title>
		</media:content>
	</item>
		<item>
		<title>SpotlightFS on Leopard</title>
		<link>http://whirliwig.wordpress.com/2008/05/03/spotlightfs-on-leopard/</link>
		<comments>http://whirliwig.wordpress.com/2008/05/03/spotlightfs-on-leopard/#comments</comments>
		<pubDate>Sat, 03 May 2008 15:44:17 +0000</pubDate>
		<dc:creator>whirliwig</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Macintosh]]></category>

		<guid isPermaLink="false">http://whirliwig.wordpress.com/?p=26</guid>
		<description><![CDATA[Luckily, SpotlightFS continues to be developed. I went straight to the MacFuse Google Code page, and it just mentioned an unsupported Tiger version.
To install, I did:
0) Ensured I had MacPorts
1) Install:

port install spotlightfs

Failed for me, because I had the Tiger version hanging around still, so I de-installed it:

/Library/Filesystems/fusefs.fs/Support/uninstall-macfuse-core.sh

Then the next attempt running port install spotlightfs [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=26&subd=whirliwig&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Luckily, <a href="http://code.google.com/p/macfuse/wiki/MACFUSE_FS_SPOTLIGHTFS">SpotlightFS</a> continues to be developed. I went straight to the <a href="http://code.google.com/p/macfuse/">MacFuse Google Code page</a>, and it just mentioned an unsupported Tiger version.</p>
<p>To install, I did:</p>
<p>0) Ensured I had MacPorts</p>
<p>1) Install:</p>
<pre>
port install spotlightfs
</pre>
<p>Failed for me, because I had the Tiger version hanging around still, so I de-installed it:</p>
<pre>
/Library/Filesystems/fusefs.fs/Support/uninstall-macfuse-core.sh
</pre>
<p>Then the next attempt running <code>port install spotlightfs</code> failed because of a &#8216;header not found error&#8217;. I did a <code>port search fuse</code>, and apart form the wonderfully named &#8216;libconfuse&#8217;, there was also a &#8216;libfuse&#8217;&#8230;assuming something wasn&#8217;t working with Darwin Ports&#8217; dependency checking, I installed everything in this order:</p>
<pre>
port install libfuse
port install fusefs
port install libfuse
port install spotlightfs
</pre>
<p>Yes, I did libfuse twice&#8230;but just in case that&#8217;s significant, I offer it up anyway&#8230;didn&#8217;t seem to harm anything.</p>
<p>Can package systems resolve two-way dependencies?</p>
<p>E.g., say Pkg1 depends on the headers of Pkg2 to build, but Pkg2 depends on the libraries of Pkg1 to build&#8230; The correct answer is:</p>
<ol>
<li>Install Pkg1 source
<li>Install Pkg2 source (although at this point, it could happen before Pkg1)
<li>Build Pkg1
<li>Build Pkg2
</ol>
<p>I know sometimes you get the &#8216;devel&#8217; package separate from the &#8216;run&#8217; package, and that would mean it&#8217;s possible to do the above manually, but do package systems like DarwinPorts do it automatically?</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/whirliwig.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/whirliwig.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whirliwig.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whirliwig.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whirliwig.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whirliwig.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whirliwig.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whirliwig.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whirliwig.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whirliwig.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whirliwig.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whirliwig.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=26&subd=whirliwig&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://whirliwig.wordpress.com/2008/05/03/spotlightfs-on-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d264195e56020ade73069ec742f2a03?s=96&#38;d=identicon" medium="image">
			<media:title type="html">whirliwig</media:title>
		</media:content>
	</item>
		<item>
		<title>Nice drop-shadows etc. in Ubuntu</title>
		<link>http://whirliwig.wordpress.com/2008/04/22/nice-drop-shadows-etc-in-ubuntu/</link>
		<comments>http://whirliwig.wordpress.com/2008/04/22/nice-drop-shadows-etc-in-ubuntu/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 20:12:11 +0000</pubDate>
		<dc:creator>whirliwig</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MM10]]></category>

		<guid isPermaLink="false">http://whirliwig.wordpress.com/?p=25</guid>
		<description><![CDATA[I tried turning on &#8216;Nice Effects&#8217; in Ubuntu&#8217;s Appearance preferences, but received an unhelpful &#8216;did not work&#8217; error. I think that the next version of Gnome should have a random witticism generator instead. At least then it may disarm  the urge to shout at the screen, fist clenched.
It turns out that &#8216;Nice Effects&#8217; depends [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=25&subd=whirliwig&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I tried turning on &#8216;Nice Effects&#8217; in Ubuntu&#8217;s Appearance preferences, but received an unhelpful &#8216;did not work&#8217; error. I think that the next version of Gnome should have a random witticism generator instead. At least then it may disarm  the urge to shout at the screen, fist clenched.</p>
<p>It turns out that &#8216;Nice Effects&#8217; depends on Compiz, and my diddly laptop cannot handle that (at least Compiz won&#8217;t build). Bah!</p>
<p>The &#8216;Didn&#8217;t Work&#8217; dialog, and the &#8216;Because of a Problem&#8217; dialogs in Gnome remind me of a recalcitrant teen serving in a shop, who has been forced to do the job by his parents as they refused to continue supplementing his Mobile Phone account unless he got up and squeezed every ounce of oomph from his meagre motivational reservoir, and did something a little more productive than sitting in his darkened room listening to Emo Classics, Vol 3: The Best Depressing Music In the World, Ever&#8230;</p>
<p>Me in shop, to a young person of the above cast: &#8220;Excuse me, have you got this in blue?&#8221;<br />
Teen: &#8220;Dunno&#8230;No.&#8221;, <br />
Me: &#8220;Um, have you looked in the stock room?&#8221;, <br />
Teen: &#8220;No&#8221;&#8230;</p>
<p>Have you noticed no matter how much weariness, sadness, irritation (or combination thereof) which you attempt to convey in your expression or voice at that point really doesn&#8217;t make any impression whatsoever? Then it dawns on you that this fragment of all of our futures truly does not see any issue, or reason to take further action. You&#8217;re an ex-problem.</p>
<p>Back to the Gnome example: the correct error message would be helpful and empathetic. In this case, it (the error message) would tell me&#8212;probably addressing me as &#8216;Sir&#8217;&#8211;how terribly sorry it was, but it could not fulfil my request as it was missing a vital component, and that unfortunately, to it&#8217;s eternal sadness, it cannot use that component on Sir&#8217;s behalf, as Sir&#8217;s hardware is shall we say, not quite the latest model (the error would pause to convey a potentially distressing fact, and to emphasise its regret). On the other hand, the error might continue, if Sir was in need of a lesser, but still most gratifying enhancement of Sir&#8217;s visual and graphical spectacle, then Sir might consider the package just down the road on the left, by the name of &#8216;xcompmgr&#8217;. The error would finish by saying, if Sir was to take possession of suitable hardware in the future, then Sir would of course be most welcome to return to this dialogue, whereupon the manager, Mr Gnome, would personally attend to his needs. Good day.</p>
<p>There you are, teen-boy-in-shop, <i>that&#8217;s</i> customer service!</p>
<h3>xcompmgr</h3>
<p>Some nice settings:</p>
<pre>xcompmgr -cCfF -r4 -o.65 -l2 -t2 -D2
</pre>
<p>The incantations to make it work&#8230;</p>
<p>in <code>/etc/X11/xorg.conf</code>:</p>
<pre>Section "Extensions"
	Option	"Composite"	"Enable"
EndSection
...
Section "Device"
	Identifier	"Silicon Motion, Inc. SM720 Lynx3DM"
	Driver		"siliconmotion"
	Option		"UseBIOS"	"off"
	Option		"pci_burst"	"on"
	Option		"fifo_aggressive"	"on"
	Option		"RenderAccel"	"true"
	Option		"AllowGLXWithComposite"	"true"
	BusID		"PCI:0:9:0"
	VideoRam	16384
EndSection
</pre>
<p>The only thing in the Driver section that is (or may be) necessary is <code>AllowGLXWithComposite</code>. The rest are aggressive acceleration options for SiliconMotion, which do actually seem to speed things up.</p>
<p>I&#8217;m not sure about the VideoRam argument. This is stating that the siliconmotion driver should treat the inbuilt graphics card as though it has 16M of Video RAM, when in fact all of the specs show that the Lynx 3DM chip only has 8M of Video RAM. So what&#8217;s the point?</p>
<p>Like a lot of this, I don&#8217;t have the time to discover the reason, and so it remains a magical incantation that makes me feel better, and is gentler on the skin than repetitive hand-washing.</p>
<p>BTW. I don&#8217;t have anything against teens. I was one once.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/whirliwig.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/whirliwig.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whirliwig.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whirliwig.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whirliwig.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whirliwig.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whirliwig.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whirliwig.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whirliwig.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whirliwig.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whirliwig.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whirliwig.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=25&subd=whirliwig&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://whirliwig.wordpress.com/2008/04/22/nice-drop-shadows-etc-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d264195e56020ade73069ec742f2a03?s=96&#38;d=identicon" medium="image">
			<media:title type="html">whirliwig</media:title>
		</media:content>
	</item>
		<item>
		<title>WordPress XMLRPC</title>
		<link>http://whirliwig.wordpress.com/2008/04/22/wordpress-xmlrpc/</link>
		<comments>http://whirliwig.wordpress.com/2008/04/22/wordpress-xmlrpc/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 19:49:20 +0000</pubDate>
		<dc:creator>whirliwig</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://whirliwig.wordpress.com/?p=24</guid>
		<description><![CDATA[In Drivel, select MovableType, and enter the following URL: &#8216;http://&#60;journalName&#62;.wordpress.com/xmlrpc.php
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=24&subd=whirliwig&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In Drivel, select MovableType, and enter the following URL: &#8216;http://&lt;journalName&gt;.wordpress.com/xmlrpc.php</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/whirliwig.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/whirliwig.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whirliwig.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whirliwig.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whirliwig.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whirliwig.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whirliwig.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whirliwig.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whirliwig.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whirliwig.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whirliwig.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whirliwig.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=24&subd=whirliwig&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://whirliwig.wordpress.com/2008/04/22/wordpress-xmlrpc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d264195e56020ade73069ec742f2a03?s=96&#38;d=identicon" medium="image">
			<media:title type="html">whirliwig</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu Hardy Heron on MM10</title>
		<link>http://whirliwig.wordpress.com/2008/04/21/ubuntu-hardy-heron-on-mm10/</link>
		<comments>http://whirliwig.wordpress.com/2008/04/21/ubuntu-hardy-heron-on-mm10/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 11:16:18 +0000</pubDate>
		<dc:creator>whirliwig</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu mm10 install]]></category>

		<guid isPermaLink="false">http://whirliwig.wordpress.com/?p=23</guid>
		<description><![CDATA[Vanilla install of Ubuntu 8.xx on MM10, with Ubuntu Desktop (gnome) and encrypted LVM&#8230;
1. Didn&#8217;t auto-detect monitor. Need to go in and edit /etc/X11/xorg.conf manually
2. longrun not installed by default
3. Authentication seems flaky. Sometimes I am asked several times for my password.
4. To get to a root prompt:
$ sudo su
Optionally, can use &#8216;passwd&#8217; then to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=23&subd=whirliwig&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Vanilla install of Ubuntu 8.xx on MM10, with Ubuntu Desktop (gnome) and encrypted LVM&#8230;</p>
<p>1. Didn&#8217;t auto-detect monitor. Need to go in and edit /etc/X11/xorg.conf manually</p>
<p>2. longrun not installed by default</p>
<p>3. Authentication seems flaky. Sometimes I am asked several times for my password.</p>
<p>4. To get to a root prompt:</p>
<p>$ sudo su</p>
<p>Optionally, can use &#8216;passwd&#8217; then to set a root password, which is undefined by default on Ubuntu</p>
<p>5. Suspend doesn&#8217;t work.</p>
<p>6. Need to resize fonts a bit &#8212; too large for DiddlySharp</p>
<p>7. Otherwise, looking good!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/whirliwig.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/whirliwig.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whirliwig.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whirliwig.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whirliwig.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whirliwig.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whirliwig.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whirliwig.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whirliwig.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whirliwig.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whirliwig.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whirliwig.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=23&subd=whirliwig&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://whirliwig.wordpress.com/2008/04/21/ubuntu-hardy-heron-on-mm10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d264195e56020ade73069ec742f2a03?s=96&#38;d=identicon" medium="image">
			<media:title type="html">whirliwig</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux and Sado-Masochism</title>
		<link>http://whirliwig.wordpress.com/2008/03/28/linux-and-sado-masochism/</link>
		<comments>http://whirliwig.wordpress.com/2008/03/28/linux-and-sado-masochism/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 15:06:55 +0000</pubDate>
		<dc:creator>whirliwig</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://whirliwig.wordpress.com/?p=21</guid>
		<description><![CDATA[I&#8217;ve been dabbling with Linux now for a couple of months.
When I started, I was sure that I wouldn&#8217;t be doing anything new compared to others who &#8216;went before&#8217; &#8212; I would just be covering ground worn bare by the sneaker tracks of other, more experienced geeks. My task was to avoid the traps, and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=21&subd=whirliwig&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve been dabbling with Linux now for a couple of months.</p>
<p>When I started, I was sure that I wouldn&#8217;t be doing anything new compared to others who &#8216;went before&#8217; &#8212; I would just be covering ground worn bare by the sneaker tracks of other, more experienced geeks. My task was to avoid the traps, and the dead-ends, marked by the forum posts that trail off into nothing, or with a plaintive &#8216;Haven&#8217;t heard anything for two months now. Please help!&#8217; posting.</p>
<p>As everyone knows the Geek&#8217;s last cry is a terrible sound to hear &#8212; somewhere between the call of a dying elephant and that of a distressed hamster. Shiver.</p>
<p>I discovered quickly that Linux is on two tracks:</p>
<ol>
<li>The academic-driven track, where new concepts and technologies are developed and implemented, often in C/C++ with a low-level non-gui interface</li>
<li>Those who believe that, with a bit of effort, and if everyone just &#8216;pulls together&#8217;, Linux will become the desktop-environment-to-end-all-desktop-environments</li>
</ol>
<p>Lurking in the sidelines are the big companies who wait for something worth cherry-picking to turn up, and then they cherry-pick the products of the first of the Linux types, add their own spin, and make lots of money. Cough, cough Asus-tishoo..</p>
<p>The second Linux type is full of missionary zeal, and often youthful energy. They respond almost immediately to people posting questions on the forums they own.</p>
<p>In between all of the honest, wonderfully generous hard-graft, there is also time to have the Linux version of the sneering conviction that no-one else can do anything half as &#8216;cool&#8217; as we can attitude that infects open source.</p>
<p>That is the problem.</p>
<p>They want to make their component the best it can be, and will soon become irritated by the lack of facilities that dependent other components offer up to their component. So what do they do? They ask for patches in the other components to give them the functionality they require.</p>
<p>That is why most forum postings end in: &#8220;You <i>should be </i>using Patch xyz of &lt;dependent component&gt;&#8221;, and the forum poster replies &#8220;That fixed it! Thanks!&#8221; If you are like me, you feel sudden elation, followed by a brooding depression: now I&#8217;ll have to patch, recompile, and try again. And then, I&#8217;ll find the patched component doesn&#8217;t quite work with &lt;other component&gt;, and so on.</p>
<p>From having this occur repeatedly to me, I began to believe that I was simply &#8216;on the bleeding edge&#8217; of Linux, and suddenly I began to become infected by the same revolutionary zeal of the component writers. I thought &#8220;Maybe I can make a difference! Maybe, if I pull all of the right levers, twiddle all of the correct knobs I can create the most perfect installation of Linux ever!&#8221;</p>
<p>And so began the &#8216;tail chasing&#8217; of someone who believed he was only ever an hour away from Linux Nirvana.</p>
<ol>
<li>Install latest &#8216;testing&#8217; version of NetworkManager (say)</li>
<li>Install latest &#8216;testing&#8217; version of WPA Supplicant (say)</li>
<li>It kinda works, but not automatically when I wake the laptop up from sleep.</li>
<li>Install cutting edge version of NetworkManager, compile from code if necessary</li>
<li>Try again. Now all of my network APs look like gibberish.</li>
<li>Forum search</li>
<li>Install cutting edge version of WPA Supplicant</li>
<li>My networks are fixed!</li>
<li>Buy new network card</li>
<li>My networks are broken!</li>
<li>Install patches for NetworkManager</li>
<li>Grow several grey hairs</li>
<li>etc.</li>
</ol>
<p>In fact, it really is best to get off the bleeding edge, or you&#8217;ll get hurt. Not to realise this is to indulge in masochistic fantasy.</p>
<p>I also believe that the very enthusiasm which makes Linux so dynamic is also its weakness.</p>
<p>I want to develop the theory here that the GUI component writers are closet sadists, releasing patches to dependent components in an uncontrolled way, thereby potentially breaking everything, and requiring the masochistic masses to follow the path of pain.</p>
<p>In other words, I want to propose the theory of Sado-Masochistic Software Development which will always stay one-step behind capitalist companies paying non-masochistic employees to develop to a vision&#8230;because if it ever led the world, it wouldn&#8217;t have anything to beat itself up about, and then it would be as bad as &#8216;The Man&#8217;. In the end, being a leader is too scary.</p>
<p>Most people will look at what I have written in the previous paragraph, and snort, laugh, or just get angry. Or ignore it.</p>
<p>I am suggesting no less than a massive collusion between developers to believe in &#8216;them and us&#8217; so that they can always define themselves as &#8216;us&#8217;: the Honest Geek Syndrome.</p>
<p>The very &#8216;freedom&#8217;  that allows anyone to release a component which claims to work well with the rest of the environment, and which is &#8216;a lot better than the old &lt;component&gt;&#8217; is what creates the world of pain we inhabit; one in which the dependencies between patch-levels can grow exponentially.</p>
<p>The only answer is more control, and a reigning in of creative impulses without responsibility.</p>
<p>Yes, our betters have said it for years: without discipline, we&#8217;ll never amount to much.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/whirliwig.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/whirliwig.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whirliwig.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whirliwig.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whirliwig.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whirliwig.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whirliwig.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whirliwig.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whirliwig.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whirliwig.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whirliwig.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whirliwig.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=21&subd=whirliwig&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://whirliwig.wordpress.com/2008/03/28/linux-and-sado-masochism/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d264195e56020ade73069ec742f2a03?s=96&#38;d=identicon" medium="image">
			<media:title type="html">whirliwig</media:title>
		</media:content>
	</item>
		<item>
		<title>Longrun on MM10</title>
		<link>http://whirliwig.wordpress.com/2008/03/17/longrun-on-mm10/</link>
		<comments>http://whirliwig.wordpress.com/2008/03/17/longrun-on-mm10/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 09:06:04 +0000</pubDate>
		<dc:creator>whirliwig</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://whirliwig.wordpress.com/2008/03/17/longrun-on-mm10/</guid>
		<description><![CDATA[Installed &#8216;longrun&#8217; package to control Centrino power saving,

longrun -p

cack&#8217;d out with &#8216;cannot read blah blah&#8217;. A bit of Googling said sometimes (whether using udev or not), the correct query nodes are not created automatically.

This needs to be done on each boot.

An answer is to add the following to your /etc/rc.local:


# Create nodes for querying CPU [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=15&subd=whirliwig&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Installed &#8216;longrun&#8217; package to control Centrino power saving,</p>
<p><code><br />
longrun -p</code>
<p>
cack&#8217;d out with &#8216;cannot read blah blah&#8217;. A bit of Googling said sometimes (whether using udev or not), the correct query nodes are not created automatically.</p>
<p>
This needs to be done on each boot.</p>
<p>
An answer is to add the following to your /etc/rc.local:</p>
<pre>

# Create nodes for querying CPU performance (longrun)
for i in 0 1 2 3; do
	mkdir -p /dev/cpu/$i
	mknod -m 444 /dev/cpu/$i/msr c 202 $i
	mknod -m 444 /dev/cpu/$i/cpuid c 203 $i
done

# Default to highest performance
longrun -f performance
</pre>
</p>
<p>
Note, the final line. I found out that by default, my MM10 was running in &#8216;economy&#8217;. Now I have a massive battery attached, I think I can afford a little careless power.</p>
<p>
Excuse me, I have a man with an axe from the Green Party at the door. I&#8217;ll be back in a mo&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/whirliwig.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/whirliwig.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whirliwig.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whirliwig.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whirliwig.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whirliwig.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whirliwig.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whirliwig.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whirliwig.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whirliwig.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whirliwig.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whirliwig.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=15&subd=whirliwig&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://whirliwig.wordpress.com/2008/03/17/longrun-on-mm10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d264195e56020ade73069ec742f2a03?s=96&#38;d=identicon" medium="image">
			<media:title type="html">whirliwig</media:title>
		</media:content>
	</item>
		<item>
		<title>Great Suspend / Hibernate Overview</title>
		<link>http://whirliwig.wordpress.com/2008/03/16/great-suspend-hibernate-overview/</link>
		<comments>http://whirliwig.wordpress.com/2008/03/16/great-suspend-hibernate-overview/#comments</comments>
		<pubDate>Sun, 16 Mar 2008 20:21:45 +0000</pubDate>
		<dc:creator>whirliwig</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://whirliwig.wordpress.com/2008/03/16/great-suspend-hibernate-overview/</guid>
		<description><![CDATA[Here
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=14&subd=whirliwig&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="https://wiki.ubuntu.com/FeistySuspendOverview">Here</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/whirliwig.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/whirliwig.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whirliwig.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whirliwig.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whirliwig.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whirliwig.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whirliwig.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whirliwig.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whirliwig.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whirliwig.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whirliwig.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whirliwig.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=14&subd=whirliwig&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://whirliwig.wordpress.com/2008/03/16/great-suspend-hibernate-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d264195e56020ade73069ec742f2a03?s=96&#38;d=identicon" medium="image">
			<media:title type="html">whirliwig</media:title>
		</media:content>
	</item>
		<item>
		<title>MM10 Debian Power Management Continued</title>
		<link>http://whirliwig.wordpress.com/2008/03/16/mm10-debian-power-management-continued/</link>
		<comments>http://whirliwig.wordpress.com/2008/03/16/mm10-debian-power-management-continued/#comments</comments>
		<pubDate>Sun, 16 Mar 2008 19:28:45 +0000</pubDate>
		<dc:creator>whirliwig</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://whirliwig.wordpress.com/2008/03/16/mm10-debian-power-management-continued/</guid>
		<description><![CDATA[After getting suspend2 and hibernate working from the command line, the way to integrate these sleep/hibernate methods into gnome-power-manager world is to change the underlying HAL query scripts that gnome-power-manager uses.HAL abstracts hardware details from upper layers. That means:

It allows querying of a &#8216;virtual hardware&#8217; machine so that upper-layers don&#8217;t need to worry so much [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=13&subd=whirliwig&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After getting suspend2 and hibernate working from the command line, the way to integrate these sleep/hibernate methods into gnome-power-manager world is to change the underlying HAL query scripts that gnome-power-manager uses.HAL abstracts hardware details from upper layers. That means:
<ol>
<li>It allows querying of a &#8216;virtual hardware&#8217; machine so that upper-layers don&#8217;t need to worry so much about adapting to each and every hardware variation</li>
<li>it provides &#8216;actions&#8217; on the &#8216;virtual hardware&#8217; via scripts in /usr/lib/hal/scripts</li>
</ol>
<p>gnome-power-manager uses these HAL scripts to poke your machine into doing the right thing.HAL is SOOOOOO concerned with abstraction, that it also seems designed to abstract away the fact we&#8217;re using linux&#8230;so it has sub-directories in /usr/lib/hal/scripts for each OS.Here, we&#8217;re interested in /usr/lib/hal/scripts/linux.And, we&#8217;re particularly interested in the HAL actions for power management:hal-system-power-hibernate-linuxhal-system-power-suspend-linuxetc&#8230;For whatever reason, my default scripts only support actually doing the power management (in a concrete sense) via pm-tools&#8230;an alternative to hibernate. So, I added a few bits to support hibernate as well.Note, the scripts as they are are mostly about setting up params to pass to pm-tools to handle &#8216;quirks&#8217; of hardware. Hibernate handles quirks itself, so we don&#8217;t need to use all of the quirk code here. Just call hibernate-ram or hibernate-disk or whatever&#8230;E.g., hal-system-power-suspend-linux will end up with a section as so:
<pre>...  <span style="font-family:Georgia;font-size:14px;line-height:18px;white-space:normal;" class="Apple-style-span">#</span> We support hibernate-ram and pm-utils</pre>
<pre>if [ -x "/usr/local/sbin/hibernate-ram" ] ; then</pre>
<pre># All Quirk handling delegated to hibernate script</pre>
<pre>/usr/local/sbin/hibernate-ram</pre>
<pre>RET=$?</pre>
<pre>elif [ -x "/usr/sbin/pm-suspend" ] ; then</pre>
<pre>/usr/sbin/pm-suspend $QUIRKS</pre>
<pre>RET=$?</pre>
<pre>else</pre>
<pre># TODO: add support</pre>
<pre>unsupported</pre>
<pre>fi ... </pre>
<p> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/whirliwig.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/whirliwig.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whirliwig.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whirliwig.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whirliwig.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whirliwig.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whirliwig.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whirliwig.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whirliwig.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whirliwig.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whirliwig.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whirliwig.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whirliwig.wordpress.com&blog=2864336&post=13&subd=whirliwig&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://whirliwig.wordpress.com/2008/03/16/mm10-debian-power-management-continued/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5d264195e56020ade73069ec742f2a03?s=96&#38;d=identicon" medium="image">
			<media:title type="html">whirliwig</media:title>
		</media:content>
	</item>
	</channel>
</rss>