<?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/"
	>

<channel>
	<title>Shift/Reduce</title>
	<atom:link href="http://blog.shiftreduce.org/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://blog.shiftreduce.org</link>
	<description>"... a dream that became a reality and spread throughout the stars" -- Captain James T. Kirk</description>
	<pubDate>Thu, 29 Apr 2010 13:52:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>My Brute</title>
		<link>http://blog.shiftreduce.org/?p=25</link>
		<comments>http://blog.shiftreduce.org/?p=25#comments</comments>
		<pubDate>Sun, 12 Apr 2009 20:01:46 +0000</pubDate>
		<dc:creator>Ricardo Ferreira</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.shiftreduce.org/?p=25</guid>
		<description><![CDATA[Well, you may have heard about My Brute, it&#8217;s becoming quite popular lately&#8230;and that&#8217;s because it&#8217;s really adictive!
Just give it a try! http://poser123.mybrute.com
]]></description>
			<content:encoded><![CDATA[<p>Well, you may have heard about My Brute, it&#8217;s becoming quite popular lately&#8230;and that&#8217;s because it&#8217;s really adictive!</p>
<p>Just give it a try! <a title="http://poser123.mybrute.com" href="http://poser123.mybrute.com">http://poser123.mybrute.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.shiftreduce.org/?feed=rss2&amp;p=25</wfw:commentRss>
		</item>
		<item>
		<title>Intel and Nvidia on Sony Vaio Z</title>
		<link>http://blog.shiftreduce.org/?p=13</link>
		<comments>http://blog.shiftreduce.org/?p=13#comments</comments>
		<pubDate>Thu, 05 Mar 2009 21:52:41 +0000</pubDate>
		<dc:creator>Ricardo Ferreira</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[intel]]></category>

		<category><![CDATA[nvidia]]></category>

		<category><![CDATA[sony]]></category>

		<category><![CDATA[vaio]]></category>

		<guid isPermaLink="false">http://blog.shiftreduce.org/?p=13</guid>
		<description><![CDATA[I recently bought a new laptop, a Sony Vaio Z.
It&#8217;s a great machine indeed! The only problem with it is the lack of compatibility with Linux, especially regarding it&#8217;s hybrid graphics card system (it has two cards, an Intel and a Nvidia). Basically, it&#8217;s not possible to use Linux with just one of the cards [...]]]></description>
			<content:encoded><![CDATA[<p>I recently bought a new laptop, a <a title="Sony Vaio Z" href="https://www.sonystyle.pt/SonyStyle/VAIO-Laptop-PCs/Z-Series-13-1%22/VGNZ21WN/B.CEP">Sony Vaio Z</a>.</p>
<p>It&#8217;s a great machine indeed! The only problem with it is the lack of compatibility with Linux, especially regarding it&#8217;s hybrid graphics card system (it has two cards, an Intel and a Nvidia). Basically, it&#8217;s not possible to use Linux with just one of the cards enabled without the need to go to XP (yeah, one has to downgrade to XP to be able switch cards, as Vista disables the cards on shutdown/reboot) every time before booting Linux. So after using Linux with just one card enabled, if I shutdown/restart the system both cards are on again :/.</p>
<p>I&#8217;m not going to enter in details on how this happens, I&#8217;ll just post some info on how to solve the problem of having to boot XP everytime. With this, I can reboot/shutdown and the selected card is still the only one avaiable.</p>
<p><strong>Solving the problem</strong></p>
<p>I&#8217;ll describe the process starting from scratch, i.e., with Vista pre-installed.</p>
<p>The first thing to do is downgrade Vista to XP, as it still is the only way to switch between the two cards.</p>
<p>Now, after having Linux installed we just need to get the DSDTs for two situations: Intel only avaible and Nvidia only avaiable.</p>
<blockquote><p>cp /proc/acpi/dsdt DSDT</p></blockquote>
<p class="command">And disassemble it:</p>
<blockquote><p><code>iasl -d DSDT</code></p></blockquote>
<p>In this two DSDTs there is a section like this:</p>
<blockquote><p><code>If (CondRefOf (_OSI, Local0))<br />
{<br />
If (_OSI ("Linux"))<br />
{<br />
Store (0x03E8, OSYS)<br />
}</code></p>
<p>If (_OSI (&#8221;Windows 2001&#8243;))<br />
{<br />
Store (0&#215;07D1, OSYS)<br />
}</p>
<p>If (_OSI (&#8221;Windows 2001 SP1&#8243;))<br />
{<br />
Store (0&#215;07D1, OSYS)<br />
}</p>
<p>If (_OSI (&#8221;Windows 2001 SP2&#8243;))<br />
{<br />
Store (0&#215;07D2, OSYS)<br />
}</p>
<p>If (_OSI (&#8221;Windows 2006&#8243;))<br />
{<br />
Store (0&#215;07D6, OSYS)<br />
}<br />
}</p></blockquote>
<p>So we just change</p>
<blockquote><p><code>If (_OSI ("Linux"))<br />
{<br />
Store (0x03E8, OSYS)<br />
}</code></p></blockquote>
<p>to</p>
<blockquote><p><code>If (_OSI ("Linux"))<br />
{<br />
Store (0x07D6, OSYS)<br />
}</code></p></blockquote>
<p>Do this on both DSDTs. And now we can compile them.</p>
<blockquote><p><code>./iasl -tc DSDT</code></p></blockquote>
<p>This will generate two files. One of them has the extension .aml (which is the one want).</p>
<p>Now here is the thing&#8230;He have to use just one DSDT at a time. Like, if we want to use the Intel we have to use the changed Nvidia DSDT, and if we want to use the Nvidia we have to use the changed Intel DSDT (Yeah that&#8217;s right, Nvidia DSDT for Intel and Intel DSDT for Nvidia).</p>
<p>Copy this changed DSDT to initrd and reconfigure it (<em>This commands are for Ubuntu, so please check your distro documentation for specif instructions on how to do this</em>).</p>
<blockquote><p><code>cp DSDT.aml /etc/initramfs-tools/DSDT.aml</code></p>
<p>sudo dpkg-reconfigure linux-image-$(uname -r)</p></blockquote>
<p>Now reboot/supend/shutdown and if we have the DSDT for the card you want and have the card itself enabled it should work! But you still have to go to XP to switch form one card to another, which is not that bad I think&#8230;I&#8217;ll be using the Intel for like 99% of the time <img src='http://blog.shiftreduce.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you have any doubt just ask, I asure you this is working great! <img src='http://blog.shiftreduce.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Btw, here are my changed DSDTs just in case (just compile them and put them into initrd as above).</p>
<p><a href="http://dl.getdropbox.com/u/563152/DSDT_Intel_changed.dsl">http://dl.getdropbox.com/u/563152/DSDT_Intel_changed.dsl</a><br />
<a href="http://dl.getdropbox.com/u/563152/DSDT_Nvidia_changed.dsl">http://dl.getdropbox.com/u/563152/DSDT_Nvidia_changed.dsl</a></p>
<p><strong>Edit: </strong>Just added the missing command to disassemble the DSDT before changing it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.shiftreduce.org/?feed=rss2&amp;p=13</wfw:commentRss>
		</item>
		<item>
		<title>Reboot</title>
		<link>http://blog.shiftreduce.org/?p=6</link>
		<comments>http://blog.shiftreduce.org/?p=6#comments</comments>
		<pubDate>Mon, 09 Feb 2009 22:49:51 +0000</pubDate>
		<dc:creator>Ricardo Ferreira</dc:creator>
		
		<category><![CDATA[erasmus]]></category>

		<category><![CDATA[madrid]]></category>

		<guid isPermaLink="false">http://blog.shiftreduce.org/?p=6</guid>
		<description><![CDATA[My semester doing Erasmus here in Spain is almost over&#8230;It was really cool to live in a big european capital like Madrid, it&#8217;s really different from what I&#8217;m used to in Coimbra.
I had a great time here and, more than anything, it was a lesson for life. But now it&#8217;s time to get back and [...]]]></description>
			<content:encoded><![CDATA[<p>My semester doing Erasmus here in Spain is almost over&#8230;It was really cool to live in a big european capital like Madrid, it&#8217;s really different from what I&#8217;m used to in Coimbra.</p>
<p>I had a great time here and, more than anything, it was a lesson for life. But now it&#8217;s time to get back and to all the things I miss&#8230;Like good coffee!</p>
<p>Anyway, I still got a week to spend here, and a project to deliver,  so&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.shiftreduce.org/?feed=rss2&amp;p=6</wfw:commentRss>
		</item>
	</channel>
</rss>
