<?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>Mithro rants about stuff &#187; Ubuntu</title>
	<atom:link href="http://blog.mithis.net/archives/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mithis.net</link>
	<description></description>
	<lastBuildDate>Fri, 16 Dec 2011 06:02:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>WTF power scripts went in Intrepid&#8230;.</title>
		<link>http://blog.mithis.net/archives/uncategorized/92-power-scripts-in-intrepid</link>
		<comments>http://blog.mithis.net/archives/uncategorized/92-power-scripts-in-intrepid#comments</comments>
		<pubDate>Mon, 19 Jan 2009 05:42:19 +0000</pubDate>
		<dc:creator>mithro</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[acpi]]></category>
		<category><![CDATA[hal]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[resume]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[suspend]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.mithis.net/?p=92</guid>
		<description><![CDATA[On previous versions of Ubuntu, the scripts which are called after a resume from suspend have been found in /etc/acpi/resume.d directory. I used this functionality to turn off some of the hardware in my Vaio which I don&#8217;t use (such as the bluetooth and the cdrom drive). This stopped working when I upgraded to Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p>On previous versions of <a href="http://www.ubuntu.com/">Ubuntu</a>, the scripts which are called after a resume from suspend have been found in <i>/etc/acpi/resume.d</i> directory. I used this functionality to turn off some of the hardware in my Vaio which I don&#8217;t use (such as the bluetooth and the cdrom drive). </p>
<p>This stopped working when I upgraded to Ubuntu Intrepid. Even more strangely while the scripts are still installed, even they are never called.</p>
<p>It appears that thanks to moving towards <a href="http://www.freedesktop.org/wiki/Software/hal">HAL</a> (which is probably a &#8220;Good Thing&#8221;) these scripts are no longer used. The scripts which are used can be found in <i>/etc/pm/</i>. Not only has the location changed, but the script format has too.</p>
<p>Previously, my script was found in <i>/etc/acpi/resume.d/99-custom.sh</i> looked like the following,</p>
<blockquote>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#! /bin/sh</span>
<span style="color: #666666; font-style: italic;"># Turn off the CD drive and the bluetooth device</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>platform<span style="color: #000000; font-weight: bold;">/</span>sony-laptop<span style="color: #000000; font-weight: bold;">/</span>cdpower
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>platform<span style="color: #000000; font-weight: bold;">/</span>sony-laptop<span style="color: #000000; font-weight: bold;">/</span>cdpower
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>platform<span style="color: #000000; font-weight: bold;">/</span>sony-laptop<span style="color: #000000; font-weight: bold;">/</span>bluetoothpower
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>platform<span style="color: #000000; font-weight: bold;">/</span>sony-laptop<span style="color: #000000; font-weight: bold;">/</span>bluetoothpower</pre></div></div>

</blockquote>
<p>Now my script script must be found in <i>/etc/pm/sleep.d/10-custom</i> and looks like the following,</p>
<blockquote>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh -e</span>
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
	resume<span style="color: #7a0874; font-weight: bold;">&#41;</span>
		<span style="color: #666666; font-style: italic;"># Turn off the CD drive and the bluetooth device</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>platform<span style="color: #000000; font-weight: bold;">/</span>sony-laptop<span style="color: #000000; font-weight: bold;">/</span>cdpower
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>platform<span style="color: #000000; font-weight: bold;">/</span>sony-laptop<span style="color: #000000; font-weight: bold;">/</span>cdpower
&nbsp;
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>platform<span style="color: #000000; font-weight: bold;">/</span>sony-laptop<span style="color: #000000; font-weight: bold;">/</span>bluetoothpower
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>platform<span style="color: #000000; font-weight: bold;">/</span>sony-laptop<span style="color: #000000; font-weight: bold;">/</span>bluetoothpower
	<span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">esac</span></pre></div></div>

</blockquote>
<p>The main reason I&#8217;m posting this on my blog is that this change does <b>not seem to be documented anywhere</b>. Searching on Google for things like &#8220;resume script intrepid&#8221; or &#8220;/etc/acpi/resume.d intrepid&#8221; does not come up with anything useful. Hopefully some people will find this helpful.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mithis.net/archives/uncategorized/92-power-scripts-in-intrepid/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>My three weeks on a Mac</title>
		<link>http://blog.mithis.net/archives/ubuntu/84-my-three-weeks-on-a-mac</link>
		<comments>http://blog.mithis.net/archives/ubuntu/84-my-three-weeks-on-a-mac#comments</comments>
		<pubDate>Tue, 08 Jul 2008 04:30:38 +0000</pubDate>
		<dc:creator>mithro</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[problems]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://blog.mithis.net/?p=84</guid>
		<description><![CDATA[As everyone knows, I recently started at Google. When I started I was given a MacBook Pro to use as the company laptop before I had a chance to change it, I had to head off to Mountain View for training. This meant I ended up using a Mac for 3 and half weeks. Now [...]]]></description>
			<content:encoded><![CDATA[<p>As everyone knows, I recently started at Google. When I started I was given a MacBook Pro to use as the company laptop before I had a chance to change it, I had to head off to Mountain View for training. This meant I ended up using a Mac for 3 and half weeks.</p>
<p>Now I am back in Australia I have decided to trade in my Mac for a nice PC running Linux. People have continually told me that Macs are the epitome for polished UI and once you get use to them, there is no going back. When I suggested that this might not be the case, I was told &#8220;but you have never used Mac&#8221; &#8211; well now I have and I have specific examples of why Apple&#8217;s are less usable then Linux.</p>
<p><span style="font-weight: bold">My first bone to pick is with the unlock screen.</span> As I work at Google and might have the codes for the orbital space laser on my laptop, I need to lock my screen anytime I walk away from my desk. In gnome on Linux I can just walk back to my computer and start typing my password, it makes sure that all the keys end up in the password box &#8211; no so on a Mac. When I get back, I first have to move the mouse or hit a key, I then have to wait for the twirling multi-color ball and then I get to type my password. If I just start typing I loose the first 3 or more characters of the password.</p>
<p><span style="font-weight: bold">Next is the useless wireless indicator that Mac has.</span> On Linux I can clearly see if I am connected, trying to connect or waiting, I can also see if I am on wireless or wired network. This is all thanks to Network Manager which is very, very cool. On Mac, you can&#8217;t tell if you are connected or the Mac is having a shit and still trying to connect. Often, I had to bring up a ping program to see if the wireless bars meant I was actually connected or not. If I plug in the ethernet, without specifically disabling the Airport how do I know where my packets are going?</p>
<p><span style="font-weight: bold">The twirling ball of doom.</span> Normally programs either lock hard or work. Not on Mac, instead you get a ball which twirls forever. After waiting for 15 minutes I just hard reset my computer. At least if I knew the computer was locked up I wouldn&#8217;t have to wait that 15 minutes.</p>
<p>I have often gotten this error <span style="font-weight: bold">&#8220;You cannot move any item to the Trash because it is being emptied&#8221;</span> when doing a secure empty of my trash bin. How hard is it to put things in the trash while emptying it?</p>
<p><span style="font-weight: bold">Alt Tab doesn&#8217;t work.</span> It doesn&#8217;t change between windows, only applications. Often I have multiple windows open in one application. I first have to &#8220;alt tab&#8221; to the correct application, then I have to &#8220;command tab&#8221; to the correct window. How annoying!</p>
<p>So that was just a few issues I have had. Overall, I am much happier with Ubuntu and it keeps getting even better.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mithis.net/archives/ubuntu/84-my-three-weeks-on-a-mac/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

