<?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>ph-lee &#187; media centre</title>
	<atom:link href="http://www.ph-lee.com/tag/media-centre/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ph-lee.com</link>
	<description>aspire to inspire before you expire</description>
	<lastBuildDate>Sat, 29 May 2010 19:11:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ubuntu shutdown and wakeup timer</title>
		<link>http://www.ph-lee.com/2010/01/03/ubuntu-shutdown-and-wakeup-timer/</link>
		<comments>http://www.ph-lee.com/2010/01/03/ubuntu-shutdown-and-wakeup-timer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 14:59:35 +0000</pubDate>
		<dc:creator>ph-lee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[acpi]]></category>
		<category><![CDATA[energy]]></category>
		<category><![CDATA[green]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[media centre]]></category>
		<category><![CDATA[mythtv]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[rtcwake]]></category>
		<category><![CDATA[sleep]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ph-lee.com/?p=266</guid>
		<description><![CDATA[Going green
My all-in-one kubuntu media centre and general server sits unused most of the time. So why not set it to switch on and off in sync with when I need it based on the time of day. Should save on some bills.
Requirements

ACPI
Linux

Method
Setup a cron job as root to shutdown at the specified time. To [...]]]></description>
			<content:encoded><![CDATA[<h3>Going green</h3>
<p>My all-in-one <a href="http://www.kubuntu.org/">kubuntu</a> <a href="http://www.mythtv.org">media centre</a> and general server sits unused most of the time. So why not set it to switch on and off in sync with when I need it based on the time of day. Should save on some bills.</p>
<h3>Requirements</h3>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Advanced_Configuration_and_Power_Interface">ACPI</a></li>
<li>Linux</li>
</ul>
<h3>Method</h3>
<p>Setup a cron job as root to shutdown at the specified time. To edit crons as root enter the following.</p>
<p><code>sudo crontab -u root -e</code></p>
<p>Add the following line to the list. This will shut down the box everyday at 0400. Of course you can modify as needed to suit your needs. And if you want to hibernate I&#8217;m sure theres a hibernate command.</p>
<p><code>0 4 * * * /sbin/shutdown -h now</code></p>
<p>While we&#8217;re at it we&#8217;ll also set up the wakeup time using rtcwake. So also add the following to the cron list.</p>
<p><code>45 3 * * * /usr/sbin/rtcwake -m no -s 29700</code></p>
<p>15 minutes before the shutdown we set the box to wake up in 29700 seconds which equates to 8 hours and 15 minutes. So the machine is scheduled to wake up at 12 noon.</p>
<h3>Setup</h3>
<p>This solution might be setup dependent so here are some specs that may help&#8230;</p>
<ul>
<li>Linux kubuntu 9.10 Karmic Koala</li>
<li>2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009 i686 GNU/Linux</li>
<li>Motherboard: ASUS A7V-133 ACPI BIOS Revision 1007 (10/03/2001)</li>
</ul>
<p>Making media centres&#8217; greener.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ph-lee.com/2010/01/03/ubuntu-shutdown-and-wakeup-timer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>S-Video TV out on kubuntu</title>
		<link>http://www.ph-lee.com/2009/12/22/s-video-tv-out-on-kubuntu/</link>
		<comments>http://www.ph-lee.com/2009/12/22/s-video-tv-out-on-kubuntu/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 00:52:02 +0000</pubDate>
		<dc:creator>ph-lee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[media centre]]></category>
		<category><![CDATA[s-video]]></category>
		<category><![CDATA[tv]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://www.ph-lee.com/?p=251</guid>
		<description><![CDATA[The problem: ubuntu media centre that hooks up to an old TV which takes S-video. Graphics card or ubuntu isn&#8217;t capable of automatically detecting the TV.
The solution: [Bernades] has an article on how to get ubuntu to detect the tv and output it using XRandR.
xrandr --output S-video --set load_detection 1
xrandr --output S-video --auto 
The problem [...]]]></description>
			<content:encoded><![CDATA[<p>The problem: ubuntu media centre that hooks up to an old TV which takes S-video. Graphics card or ubuntu isn&#8217;t capable of automatically detecting the TV.</p>
<p>The solution: <a href="http://mfbernardes.com/drupal/content/finally-i-got-tv-out-s-video-working-my-thinkpad-t42">[Bernades]</a> has an article on how to get ubuntu to detect the tv and output it using <a href="http://www.x.org/wiki/Projects/XRandR">XRandR</a>.</p>
<p><code>xrandr --output S-video --set load_detection 1</code></p>
<p><code>xrandr --output S-video --auto </code></p>
<p>The problem is that this isn&#8217;t persistent and as soon as you reboot you&#8217;ll be back to square one.</p>
<p><a href="https://wiki.ubuntu.com/X/Config/Resolution#Setting%20xrandr%20changes%20persistently">[Ubuntu wiki]</a> shows a script can be setup to run the above lines of code on startup. So in my case of using kde add the above lines of code to the following file.</p>
<p><code>/etc/kde4/kdm/Xsetup</code></p>
<p>Give your a box a reboot and your linux media centre should be configured to use your TV.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ph-lee.com/2009/12/22/s-video-tv-out-on-kubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
