<?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>Open Minded Brain</title>
	<atom:link href="http://openmindedbrain.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://openmindedbrain.info</link>
	<description>Open source, open mind, open future</description>
	<lastBuildDate>Tue, 22 Nov 2011 23:01:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Smart Roadster</title>
		<link>http://openmindedbrain.info/22/11/2011/smart-roadster/</link>
		<comments>http://openmindedbrain.info/22/11/2011/smart-roadster/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 22:53:39 +0000</pubDate>
		<dc:creator>mihai007</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://openmindedbrain.info/?p=184</guid>
		<description><![CDATA[Smart Roadster 0.7cc]]></description>
			<content:encoded><![CDATA[<p align="center">
<a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6826-m.jpg" rel="lightbox[184]"><img  src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6826-m.jpg" alt="" width="466" /></a>
</p>
<p align="center">
<strong>Smart Roadster 0.7cc</strong></p>
<p align="center"><a href="http://www.spritmonitor.de/en/detail/409492.html" target="_blank"> <img src="http://images.spritmonitor.de/409492.png" alt="Spritmonitor.de" border="0"> </a></p>
</p>
<p align="center">
<a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6781-m.jpg" rel="lightbox[184]"><img src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6781-s.jpg" alt="" width="90" height="60" /></a><a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6786-m.jpg" rel="lightbox[184]"></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6786-m.jpg" rel="lightbox[184]"><img src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6786-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6798-m.jpg" rel="lightbox[184]"><img src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6798-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6800-m.jpg" rel="lightbox[184]"><img src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6800-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6804-m.jpg" rel="lightbox[184]"><img src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6804-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6811-m.jpg" rel="lightbox[184]"><img src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6811-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6819-m.jpg" rel="lightbox[184]"><img src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6819-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6821-m.jpg" rel="lightbox[184]"><img src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6821-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6824-m.jpg" rel="lightbox[184]"><img  src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6824-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6825-m.jpg" rel="lightbox[184]"><img  src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6825-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6826-m.jpg" rel="lightbox[184]"><img src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6826-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6829-m.jpg" rel="lightbox[184]"><img  src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6829-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6831-m.jpg" rel="lightbox[184]"><img src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6831-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6852-m.jpg" rel="lightbox[184]"><img  src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6852-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6855-m.jpg" rel="lightbox[184]"><img  src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6855-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6856-m.jpg" rel="lightbox[184]"><img  src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6856-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6876-m.jpg" rel="lightbox[184]"><img  src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6876-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6883-m.jpg" rel="lightbox[184]"><img src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6883-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6884-m.jpg" rel="lightbox[184]"><img src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6884-s.jpg" alt="" width="90" height="60" /></a> <a href="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6893-m.jpg" rel="lightbox[184]"><img src="http://openmindedbrain.info/wp-content/uploads/2011/11/DSC_6893-s.jpg" alt="" width="90" height="60" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://openmindedbrain.info/22/11/2011/smart-roadster/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Undervolting in Ubuntu 10.10 (Maverick)</title>
		<link>http://openmindedbrain.info/26/10/2010/undervolting-in-ubuntu-10-10-maverick/</link>
		<comments>http://openmindedbrain.info/26/10/2010/undervolting-in-ubuntu-10-10-maverick/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 09:06:00 +0000</pubDate>
		<dc:creator>mihai007</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://openmindedbrain.info/?p=177</guid>
		<description><![CDATA[This is a guide to Undervolting your Intel CPU under Ubuntu 10.10. For the ones that do not know, Undervolting means taking some of the voltage from the CPU which in return gives a longer battery life and lower temperature during intensive use of the CPU. Note: this is an copy/update of my old post [...]]]></description>
			<content:encoded><![CDATA[<p>This is a guide to Undervolting your Intel CPU under Ubuntu 10.10. For the ones that do not know, Undervolting means taking some of the voltage from the CPU which in return gives a longer battery life and lower temperature during intensive use of the CPU.</p>
<p>Note: this is an copy/update of my old post about undervolting in Ubuntu 10.04 found over <a href="http://openmindedbrain.info/09/05/2010/undervolting-in-ubuntu-10-04-lucid-lts/">here</a>. Be sure to check it out, especially because of the comments, some could be helpful and address possible questions/difficulties you may have.</p>
<p><a href="http://openmindedbrain.info/wp-content/uploads/2010/05/undervolt-part.jpg" rel="lightbox[177]"><img class="aligncenter size-medium wp-image-73" title="Intel CPU Undervolting" src="http://openmindedbrain.info/wp-content/uploads/2010/05/undervolt-part-sm.jpg" alt="" width="500" height="402" /></a></p>
<p>And what are the negative aspects of Undervolting? Well actually<span id="more-177"></span> taking some voltage from the CPU could bring in computational problems, basically when taking too much of it the CPU could start mixing 1's and 0's which can crash the entire system (reset needed) or bring in data loss/corruption. Not so good eh? So how is that people manage to do it without causing those side effects?</p>
<p>It depends on every CPU. Because it is not possible to create two CPU's 100% alike in the factory, tests are made to ensure all CPU's sold can work with the voltages specified under all circumstances. The fact is that some of the CPU's can work with voltages many times inferior than others that came from same factory/same box. The trick is to discover the limits of your CPU and set the voltage just a little above this limit and you are good to go.</p>
<p><img class="alignright size-full wp-image-85" title="xps_m1330_sm" src="http://openmindedbrain.info/wp-content/uploads/2010/05/xps_m1330_sm1.png" alt="" width="192" height="143" /><strong>WARNING</strong> because of the negative aspects shown above, by following the steps given below, I am not under any circumstances responsible for any data loss or corruption, damage to the CPU/PC. Those next steps were proven to work for many people around the world, but no guarantee is given that it would work for you without possible side effects. Just make sure that at least you have an updated backup of the data before continuing.</p>
<p><span><br />
Ok, so now that you accept full responsibilities for the steps below, let's get going. I actually did this several years ago under other version of Ubuntu (using a single core Pentium M CPU back then) and it worked alright, but many things changed since then, we've got multi core CPU's everywhere and the way the undervolting issue is handled in Linux is very different also.</span></p>
<p>So what do we need? A single or multi core Intel Mobile/Laptop CPU and Ubuntu 10.10 installed on it and some time because it will take a little before having everything configured. Here are the complete steps that worked for me:</p>
<ol>
<li><span>As we are going to use a custom kernel, we need to add the linux-phc PPA repository, so just open a terminal and execute:
<pre class="brush:shell">
$ sudo add-apt-repository ppa:linux-phc/ppa
$ sudo apt-get update
</pre>
Basically they provide the same kernel as the Ubuntu one but with the patch that is capable for Undervolting.</span></li>
<li style="margin-top:10px"><span>Next we need to install the phc kernel, with headers:
<pre class="brush:shell">
$ sudo apt-get install linux-generic-phc linux-headers-generic-phc
</pre>
Ok, now we need to restart and use the installed phc kernel when booting. After restarting, you can check if you are using the phc kernel by using
<pre class="brush:shell">
$ uname -r
2.6.35-22-generic-phc
</pre>
If no "phc" appears, then you have to configure grub2 to allow you to chose boot options and select the phc kernel at boot time. This can be done many ways one would be:
<pre class="brush:shell">
sudo update-grub
</pre>
and count the number of lines that says "Found linux image" (first one is 0) and, when you found the phc one, do:
<pre class="brush:shell">
sudo gedit /etc/default/grub
</pre>
then just change the "GRUB_DEFAULT=0" to the number of the entry you found that has phc. Save the file and do a update-grub command again like in the first step. Now you can reboot into the phc kernel.
</span></li>
<li style="margin-top:10px"><span>Great, we are using a phc kernel, now we need to add the actual undervolt module, as the kernel comes only with support for it, not the actual module. First we need to download phc-intel offtree module from <a href="http://www.linux-phc.org/forum/viewtopic.php?f=13&t=2" target="_blank">here</a>. Right now they do not have a compatible version for the 2.6.35 kernel, but give the link a try, maybe by the time you read this post there is already a module that can be used in 2.6.35 kernels. Meanwhile there was a kind user on linux-phc forum that managed to create a module for the 2.6.35 and 2.6.36 kernels. Topic about it <a href="http://www.linux-phc.org/forum/viewtopic.php?p=1224#p1224">here</a>. Direct link to the tar.gz file he kindly shared to the rest of us <a href="http://www.linux-phc.org/forum/download/file.php?id=105" target="_blank">here</a>. So download and unpack the files anywhere and point the terminal to the directory where you extracted the files and do:
<pre class="brush:shell">
$ make prepare
$ make
$ sudo make install
</pre>
Right now you should have the module installed, check if everything worked by typing:
<pre class="brush:shell">
$ cat /sys/devices/system/cpu/cpu0/cpufreq/phc_default_vids 
40 34 31 27 23 15
</pre>
If everything worked, you should see some numbers (the ones above are the default ones for my CPU). If not, you may try to restart and check back to see if it works.
</span></li>
<li style="margin-top:10px"><span>So right now we are set, the only thing we have to do is... undervolt the CPU.<br/>Now we have to discover the limits of the CPU by lowering it's current voltage one step at a time and set the voltage 4 steps above the critical limit (where the cpu starts to give wrong calculations or the PC simply crashes).<br/><br/>Why four? Well the recommendation was 2 steps above, but with this limit the PC crashed in the same day hours later, so I made it 3 steps, then some days after it crashed again. So I think 4 steps should actually do it. If not, you may increase this value until it suits you.<br/><br/>Ok great now how to find the actual critical limit? There exists a script, created by the community, but it's old and it does not work for multi core CPU's and also in my particular case it sets the voltage directly below this critical limit so the PC crashes instantly.<br/><br/>I updated this script and made it work on multi core CPU's (hopefully it will work for you too), so you just have to download <a href='http://openmindedbrain.info/wp-content/uploads/2010/05/intel-phc-undervolt.bash' target="_blank">the script</a>, then give it execution permissions and execute it and follow on-screen indications:
<pre class="brush:shell">
$ chmod +x intel-phc-undervolt.bash
$ ./intel-phc-undervolt.bash
</pre>
Oh and make sure you close as many applications  as possible when executing the script as the system may actually turn instable (it is intended actually) just to prevent any data loss. The script treats all CPU's cores with the same voltages, so if one of them is weaker than the other (does not support such a aggressive undervolting) is this the critical value that the script uses for all of the others, even if they could possibly use a even lower value.
</span></li>
<li style="margin-top:10px"><span>After you finished with the script, now you should have a "phc_tweaked_vids" file, containing the acceptable steps for your CPU. Now you only have to make changes permanent (load them at every boot of the pc) by editing <code>/etc/rc.local</code> file:
<pre class="brush:shell">
$ sudo gedit /etc/rc.local
</pre>
and adding one entry for every core you have, something like:
<pre class="brush:shell">
echo "23 20 4 4 4 4" > /sys/devices/system/cpu/cpu0/cpufreq/phc_vids
echo "23 20 4 4 4 4" > /sys/devices/system/cpu/cpu1/cpufreq/phc_vids
  .
  .
  .
echo "23 20 4 4 4 4" > /sys/devices/system/cpu/cpu8/cpufreq/phc_vids
</pre>
just before the "exit 0". Note that "23 20 4 4 4 4" are my values, you have to replace the above with your values, that came from the "phc_tweaked_vids" file. So that's about it. Not too easy, not too complicated.
</span></li>
</ol>
<p>So... is it worth it? I have done some tests to see if the above actually works as said, so first I tested to see if on battery using powertop application and the CPU temperature I could see any differences. None actually, if the CPU is in idle state, there is no actual gain using undervolting, be it battery or temperature.</p>
<p>But when I've done the test under full load (using 2 burnMMX instances, one for every core) and with the CPU set at it's maximum 2.4Ghz I could see a very very noticeable difference.</p>
<p>First let's see the power drain of the battery in Watts, as indicated by powertop application (with the PC disconnected from the charger, of course):</p>
<p><img src="http://openmindedbrain.info/wp-content/uploads/2010/05/chart-power.png" alt="" title="Power drain of the battery" width="450" height="240" class="aligncenter size-full wp-image-146" /></p>
<p>It seems that Undervolting can spare you 10 Watt of power under full CPU load (Actual values from 38.4Watt to 28.7Watt). Now let's see how this translates actually to CPU temperature:</p>
<p><img src="http://openmindedbrain.info/wp-content/uploads/2010/05/chart-temperature.png" alt="" title="CPU Temperature" width="450" height="240" class="aligncenter size-full wp-image-150" /></p>
<p>So those 10 Watt of power actually translates into having the CPU 7°C cooler (from 59°C to 52°C) while doing the same tasks under full load.</p>
<p>Just to clarify a little about the results of the CPU undervolt script. If the result of the script goes down to 0, that means is a fake value and that the CPU is locked and actually can't go below the lowest value (in my example the last values that have "4" value are faked by the CPU because he is actually running at it's lowest hardware allowed value, that would be 15). What this means is that at idle for example (when on 800Mhz in my case) I don't benefit anything by undervolting, but at higer frequencies (especially the 2.4Ghz one) I benefit a lot from it (see the charts abobe).</p>
<p>So that's about it. Hope you enjoyed the reading and that the steps were easy and clear to follow. Any questions/suggestions you can add them below, in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://openmindedbrain.info/26/10/2010/undervolting-in-ubuntu-10-10-maverick/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.10 unlock default keyring</title>
		<link>http://openmindedbrain.info/11/10/2010/ubuntu-10-10-unlock-default-keyring/</link>
		<comments>http://openmindedbrain.info/11/10/2010/ubuntu-10-10-unlock-default-keyring/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 21:24:53 +0000</pubDate>
		<dc:creator>mihai007</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://openmindedbrain.info/?p=172</guid>
		<description><![CDATA[It seems that many (including me) have problems with the annoying keyring that shows up every time I do a login. To solve the issue I just had to go to System->Preferences->Password and EncriptionKeys and in there you can found 2 keyrings: a default one and a login one which is unlocked at login time. [...]]]></description>
			<content:encoded><![CDATA[<p>It seems that many (including me) have problems with the annoying keyring that shows up every time I do a login. To solve the issue I just had to go to System->Preferences->Password and EncriptionKeys and in there you can found 2 keyrings: a default one and a login one which is unlocked at login time. What you have to do is delete the default keyring (Warning you will loose all passwords entered before in applications, like wifi, chat, etc.) which still appears in the list after that... a bug maybe. The select the login keyring and make it default (right click menu).<br />
Now enter all passwords again as needed in applications and I hope everything goes back to normal.</p>
<p>Good Luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://openmindedbrain.info/11/10/2010/ubuntu-10-10-unlock-default-keyring/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Undervolting in Ubuntu 10.04 (Lucid) LTS</title>
		<link>http://openmindedbrain.info/09/05/2010/undervolting-in-ubuntu-10-04-lucid-lts/</link>
		<comments>http://openmindedbrain.info/09/05/2010/undervolting-in-ubuntu-10-04-lucid-lts/#comments</comments>
		<pubDate>Sat, 08 May 2010 23:36:46 +0000</pubDate>
		<dc:creator>mihai007</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://openmindedbrain.info/?p=58</guid>
		<description><![CDATA[This is a guide to Undervolting your Intel CPU under Ubuntu 10.04 LTS. For the ones that do not know, Undervolting means taking some of the voltage from the CPU which in return gives a longer battery life and lower temperature during intensive use of the CPU. And what are the negative aspects of Undervolting? [...]]]></description>
			<content:encoded><![CDATA[<p>This is a guide to Undervolting your Intel CPU under Ubuntu 10.04 LTS. For the ones that do not know, Undervolting means taking some of the voltage from the CPU which in return gives a longer battery life and lower temperature during intensive use of the CPU.</p>
<p><a href="http://openmindedbrain.info/wp-content/uploads/2010/05/undervolt-part.jpg" rel="lightbox[58]"><img class="aligncenter size-medium wp-image-73" title="Intel CPU Undervolting" src="http://openmindedbrain.info/wp-content/uploads/2010/05/undervolt-part-sm.jpg" alt="" width="500" height="402" /></a></p>
<p>And what are the negative aspects of Undervolting? Well actually<span id="more-58"></span> taking some voltage from the CPU could bring in computational problems, basically when taking too much of it the CPU could start mixing 1's and 0's which can crash the entire system (reset needed) or bring in data loss/corruption. Not so good eh? So how is that people manage to do it without causing those side effects?</p>
<p>It depends on every CPU. Because it is not possible to create two CPU's 100% alike in the factory, tests are made to ensure all CPU's sold can work with the voltages specified under all circumstances. The fact is that some of the CPU's can work with voltages many times inferior than others that came from same factory/same box. The trick is to discover the limits of your CPU and set the voltage just a little above this limit and you are good to go.</p>
<p><img class="alignright size-full wp-image-85" title="xps_m1330_sm" src="http://openmindedbrain.info/wp-content/uploads/2010/05/xps_m1330_sm1.png" alt="" width="192" height="143" /><strong>WARNING</strong> because of the negative aspects shown above, by following the steps given below, I am not under any circumstances responsible for any data loss or corruption, damage to the CPU/PC. Those next steps were proven to work for many people around the world, but no guarantee is given that it would work for you without possible side effects. Just make sure that at least you have an updated backup of the data before continuing.</p>
<p><span><br />
Ok, so now that you accept full responsibilities for the steps below, let's get going. I actually did this several years ago under other version of Ubuntu (using a single core Pentium M CPU back then) and it worked alright, but many things changed since then, we've got multi core CPU's everywhere and the way the undervolting issue is handled in Linux is very different also.</span></p>
<p>So what do we need? A single or multi core Intel Mobile/Laptop CPU and Ubuntu 10.04 LTS installed on it and some time because it will take a little before having everything configured. Here are the complete steps that worked for me:</p>
<ol>
<li><span>As we are going to use a custom kernel, we need to add the linux-phc PPA repository, so just open a terminal and execute:
<pre class="brush:shell">
$ sudo add-apt-repository ppa:linux-phc/ppa
$ sudo apt-get update
</pre>
Basically they provide the same kernel as the Ubuntu one but with the patch that is capable for Undervolting.</span></li>
<li style="margin-top:10px"><span>Next we need to install the phc kernel, with headers:
<pre class="brush:shell">
$ sudo apt-get install linux-generic-phc linux-headers-generic-phc
</pre>
Ok, now we need to restart and use the installed phc kernel when booting. After restarting, you can check if you are using the phc kernel by using
<pre class="brush:shell">
$ uname -r
2.6.32-21-generic-phc
</pre>
If no "phc" appears, then you have to configure grub2 to allow you to chose boot options and select the phc kernel at boot time. This can be done many ways one would be:
<pre class="brush:shell">
sudo update-grub
</pre>
and count the number of lines that says "Found linux image" (first one is 0) and, when you found the phc one, do:
<pre class="brush:shell">
sudo gedit /etc/default/grub
</pre>
then just change the "GRUB_DEFAULT=0" to the number of the entry you found that has phc. Save the file and do a update-grub command again like in the first step. Now you can reboot into the phc kernel.
</span></li>
<li style="margin-top:10px"><span>Great, we are using a phc kernel, now we need to add the actual undervolt module, as the kernel comes only with support for it, not the actual module. First download phc-intel offtree module from <a href="http://www.linux-phc.org/forum/viewtopic.php?f=13&t=2" target="_blank">here</a>. Right now they have "phc-intel-0.3.2-10 offtree" version. Direct link to the tar.bz2 file <a href="http://www.linux-phc.org/forum/download/file.php?id=87&sid=b05ae625e9678a0efa00fa1d72631d68" target="_blank">here</a>. Unpack the files anywhere and point the terminal to the directory where you extracted the files and do:
<pre class="brush:shell">
$ make prepare
$ make
$ sudo make install
</pre>
Right now you should have the module installed, check if everything worked by typing:
<pre class="brush:shell">
$ cat /sys/devices/system/cpu/cpu0/cpufreq/phc_default_vids 
40 34 31 27 23 15
</pre>
If everything worked, you should see some numbers (the ones above are the default ones for my CPU). If not, you may try to restart and check back to see if it works.
</span></li>
<li style="margin-top:10px"><span>So right now we are set, the only thing we have to do is... undervolt the CPU.<br/>Now we have to discover the limits of the CPU by lowering it's current voltage one step at a time and set the voltage 4 steps above the critical limit (where the cpu starts to give wrong calculations or the PC simply crashes).<br/><br/>Why four? Well the recommendation was 2 steps above, but with this limit the PC crashed in the same day hours later, so I made it 3 steps, then some days after it crashed again. So I think 4 steps should actually do it. If not, you may increase this value until it suits you.<br/><br/>Ok great now how to find the actual critical limit? There exists a script, created by the community, but it's old and it does not work for multi core CPU's and also in my particular case it sets the voltage directly below this critical limit so the PC crashes instantly.<br/><br/>I updated this script and made it work on multi core CPU's (hopefully it will work for you too), so you just have to download <a href='http://openmindedbrain.info/wp-content/uploads/2010/05/intel-phc-undervolt.bash' target="_blank">the script</a>, then give it execution permissions and execute it and follow on-screen indications:
<pre class="brush:shell">
$ chmod +x intel-phc-undervolt.bash
$ ./intel-phc-undervolt.bash
</pre>
Oh and make sure you close as many applications  as possible when executing the script as the system may actually turn instable (it is intended actually) just to prevent any data loss. The script treats all CPU's cores with the same voltages, so if one of them is weaker than the other (does not support such a aggressive undervolting) is this the critical value that the script uses for all of the others, even if they could possibly use a even lower value.
</span></li>
<li style="margin-top:10px"><span>After you finished with the script, now you should have a "phc_tweaked_vids" file, containing the acceptable steps for your CPU. Now you only have to make changes permanent (load them at every boot of the pc) by editing <code>/etc/rc.local</code> file:
<pre class="brush:shell">
$ sudo gedit /etc/rc.local
</pre>
and adding one entry for every core you have, something like:
<pre class="brush:shell">
echo "23 20 4 4 4 4" > /sys/devices/system/cpu/cpu0/cpufreq/phc_vids
echo "23 20 4 4 4 4" > /sys/devices/system/cpu/cpu1/cpufreq/phc_vids
  .
  .
  .
echo "23 20 4 4 4 4" > /sys/devices/system/cpu/cpu8/cpufreq/phc_vids
</pre>
just before the "exit 0". Note that "23 20 4 4 4 4" are my values, you have to replace the above with your values, that came from the "phc_tweaked_vids" file. So that's about it. Not too easy, not too complicated.
</span></li>
</ol>
<p>So... is it worth it? I have done some tests to see if the above actually works as said, so first I tested to see if on battery using powertop application and the CPU temperature I could see any differences. None actually, if the CPU is in idle state, there is no actual gain using undervolting, be it battery or temperature.</p>
<p>But when I've done the test under full load (using 2 burnMMX instances, one for every core) and with the CPU set at it's maximum 2.4Ghz I could see a very very noticeable difference.</p>
<p>First let's see the power drain of the battery in Watts, as indicated by powertop application (with the PC disconnected from the charger, of course):</p>
<p><img src="http://openmindedbrain.info/wp-content/uploads/2010/05/chart-power.png" alt="" title="Power drain of the battery" width="450" height="240" class="aligncenter size-full wp-image-146" /></p>
<p>It seems that Undervolting can spare you 10 Watt of power under full CPU load (Actual values from 38.4Watt to 28.7Watt). Now let's see how this translates actually to CPU temperature:</p>
<p><img src="http://openmindedbrain.info/wp-content/uploads/2010/05/chart-temperature.png" alt="" title="CPU Temperature" width="450" height="240" class="aligncenter size-full wp-image-150" /></p>
<p>So those 10 Watt of power actually translates into having the CPU 7°C cooler (from 59°C to 52°C) while doing the same tasks under full load.</p>
<p>UPDATE: Thanks to aldeby in comments, just to clarify a little about the results of the CPU undervolt script. If the result of the script goes down to 0, that means is a fake value and that the CPU is locked and actually can't go below the lowest value (in my example the last values that have "4" value are faked by the CPU because he is actually running at it's lowest hardware allowed value, that would be 15). What this means is that at idle for example (when on 800Mhz in my case) I don't benefit anything by undervolting, but at higer frequencies (especially the 2.4Ghz one) I benefit a lot from it (see the charts abobe).</p>
<p>So that's about it. Hope you enjoyed the reading and that the steps were easy and clear to follow. Any questions/suggestions you can add them below, in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://openmindedbrain.info/09/05/2010/undervolting-in-ubuntu-10-04-lucid-lts/feed/</wfw:commentRss>
		<slash:comments>81</slash:comments>
		</item>
		<item>
		<title>Baton Rouge R14CE-Black</title>
		<link>http://openmindedbrain.info/24/04/2010/baton-rouge-r14ce-black/</link>
		<comments>http://openmindedbrain.info/24/04/2010/baton-rouge-r14ce-black/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 22:53:44 +0000</pubDate>
		<dc:creator>mihai007</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://openmindedbrain.info/?p=33</guid>
		<description><![CDATA[Well this is my review of the Baton Rouge R14CE-BK (Black) Guitar that my girlfriend gave it to me as a birthday present. I wanted to learn guitar so I brought one with around 20€ (with shipping and case included in price) and she just would not let me learn guitar with "such a thing" [...]]]></description>
			<content:encoded><![CDATA[<p>Well this is my review of the Baton Rouge R14CE-BK (Black) Guitar that my girlfriend gave it to me as a birthday present. I wanted to learn guitar so I brought one with around 20€ (with shipping and case included in price) and she just would not let me learn guitar with "such a thing" <img src='http://openmindedbrain.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img class="aligncenter" title="Baton Rouge R14CE-Black" src="http://farm5.static.flickr.com/4071/4548577701_2f5930e90b.jpg" alt="" width="334" height="500" /></p>
<p>So for the ones that did not heard before about Baton Rouge, it's a German brand of guitars (relatively new, only 10 years)<span id="more-33"></span>, I leave a quote from their <a href="http://www.batonrougeguitars.com" target="_blank">website</a>:</p>
<blockquote><p>In november 1999 the first Baton Rouge BR30 guitars  appeared on a market that already offered a large choice in acoustic  guitars. So why would the market need another brand? What would make  Baton Rouge different to the rest (even though it looked like a ...)?</p>
<p>The answer to these questions is  simple. It was always the intention to provide a quality guitar with a  fabulous sound for the best possible price. The guitar was developed by  people with many years of experience, not only in guitar building but in  wholesale, retail and guitar tuition. These many factors all contribute  in the design and manufacture of an excellent but inexpensive  instrument.</p>
<p>Production in China made this  venture possible. The Baton Rouge team travelled to the Middle Kingdom  to search for the best equipped factory for development to take place.  They finally elected a utility that matched the working environment and  practices that could equal western expectations. This included a  progressive production line which met all demands of modern standards, a  factory canteen where all the employees receive breakfast, lunch and  dinner. The production takes place in a fully air-conditioned and bright  working enviroment and there is even a basket ball field for relaxation  during the breaks.</p></blockquote>
<p>Ok so now let's see what we actually got here:</p>
<p><strong>Baton Rouge R14CE-Black </strong>is an Acoustic-Electric guitar <strong></strong>(you can find it in stores on the Internet and it sells at around 300€)</p>
<ul>
<li>Body Shape: Grand Auditorium with cutaway</li>
<li>Top: spruce, solid</li>
<li>Sides: mahogany</li>
<li>Back: mahogany</li>
<li>Neck: mahogany</li>
<li>Fingerboard: rosewood</li>
<li>Bridge: rosewood</li>
<li>Electronic: Shadow/ BR Pro Tuner Nanoflex</li>
<li>Frets: 20</li>
<li>Scale length (in mm): 646</li>
<li>Nut width (in mm): 44</li>
<li>Finish: semi gloss</li>
</ul>
<p>So that's about it from a specification point of view, but as we are talking about a musical instrument, we can't just stop here. Questions soon rises, like  how does it feel, how does it sound?</p>
<p>Unfortunately I do not have other known brand of guitar so that I could make a direct comparison (apart from the 20€ one which came out of the box with the bridge a little separated from the body already), but I can say that it feels really good playing it and the sound it produces is very nice. The guitar also feels solid and well made and finished.</p>
<p>With time I will post some sound samples, until then I really need to learn playing it, as I said I'm still a novice with guitars. Now I leave you with some more photos I took to show some of it's details:</p>
<p><a title="Baton Rouge Electro Acoustic Guitar (Front)" href="http://farm5.static.flickr.com/4002/4549205648_dddca613e9.jpg" rel="lightbox[33]"><img class="slickr-post" src="http://farm5.static.flickr.com/4002/4549205648_dddca613e9_t.jpg" alt="Baton Rouge Electro Acoustic Guitar (Front)" width="67" height="100" /></a> <a title="Baton Rouge Electro Acoustic Guitar (Side)" href="http://farm5.static.flickr.com/4063/4549205654_9a805746e9.jpg" rel="lightbox[33]"><img class="slickr-post" src="http://farm5.static.flickr.com/4063/4549205654_9a805746e9_t.jpg" alt="Baton Rouge Electro Acoustic Guitar (Side)" width="67" height="100" /></a> <a title="Baton Rouge Electro Acoustic Guitar (Strings)" href="http://farm1.static.flickr.com/132/4549205664_a31e6911d0.jpg" rel="lightbox[33]"><img class="slickr-post" src="http://farm1.static.flickr.com/132/4549205664_a31e6911d0_t.jpg" alt="Baton Rouge Electro Acoustic Guitar (Strings)" width="67" height="100" /></a> <a title="Baton Rouge Electro Acoustic Guitar (Headstock)" href="http://farm5.static.flickr.com/4008/4549205668_87fd981c42.jpg" rel="lightbox[33]"><img class="slickr-post" src="http://farm5.static.flickr.com/4008/4549205668_87fd981c42_t.jpg" alt="Baton Rouge Electro Acoustic Guitar (Headstock)" width="67" height="100" /></a><br />
<a title="Baton Rouge Electro Acoustic Guitar (Shadow Tuner Nanoflex)" href="http://farm5.static.flickr.com/4053/4549205670_09c7ddbed4.jpg" rel="lightbox[33]"><img class="slickr-post" src="http://farm5.static.flickr.com/4053/4549205670_09c7ddbed4_t.jpg" alt="Baton Rouge Electro Acoustic Guitar (Shadow Tuner Nanoflex)" width="67" height="100" /></a> <a title="Baton Rouge Electro Acoustic Guitar (Bridge)" href="http://farm5.static.flickr.com/4027/4549205672_169dac35db.jpg" rel="lightbox[33]"><img class="slickr-post" src="http://farm5.static.flickr.com/4027/4549205672_169dac35db_t.jpg" alt="Baton Rouge Electro Acoustic Guitar (Bridge)" width="67" height="100" /></a> <a title="Baton Rouge Electro Acoustic Guitar (R14CE-Black)" href="http://farm3.static.flickr.com/2670/4548577539_c8c304e1e6.jpg" rel="lightbox[33]"><img class="slickr-post" src="http://farm3.static.flickr.com/2670/4548577539_c8c304e1e6_t.jpg" alt="Baton Rouge Electro Acoustic Guitar (R14CE-Black)" width="67" height="100" /></a> <a title="Baton Rouge Electro Acoustic Guitar (Up)" href="http://farm5.static.flickr.com/4071/4548577701_2f5930e90b.jpg" rel="lightbox[33]"><img class="slickr-post" src="http://farm5.static.flickr.com/4071/4548577701_2f5930e90b_t.jpg" alt="Baton Rouge Electro Acoustic Guitar (Up)" width="67" height="100" /></a></p>
<p>And that's about it, my first review, thank you for reading.</p>
<p>For any question/suggestion about this post you can use the comment box below.</p>
]]></content:encoded>
			<wfw:commentRss>http://openmindedbrain.info/24/04/2010/baton-rouge-r14ce-black/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enable Ubuntu 9.10 touchpad top-right corner</title>
		<link>http://openmindedbrain.info/23/11/2009/enable-ubuntu-9-10-touchpad-top-right-corner/</link>
		<comments>http://openmindedbrain.info/23/11/2009/enable-ubuntu-9-10-touchpad-top-right-corner/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 20:27:47 +0000</pubDate>
		<dc:creator>mihai007</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://openmindedbrain.info/?p=11</guid>
		<description><![CDATA[It seems that in some cases Ubuntu 9.10 Karmic does not enable the touchpad top-right corner (used for mouse middle click), so this is a simple tutorial to get the functionality back (this is one of the many ways to do it)]]></description>
			<content:encoded><![CDATA[<p>It seems that in some cases Ubuntu 9.10 Karmic does not enable the touchpad top-right corner (used for mouse middle click), so this is a simple tutorial to get the functionality back (this is one of the many ways to do it)<span id="more-11"></span></p>
<p>First edit the .profile file in your home folder</p>
<pre class="brush:shell">
$ gedit ~/.profile
</pre>
<p>and add</p>
<pre class="brush:shell">
synclient RTCornerButton=2
</pre>
<p>to the end of it.</p>
<p>This is how mine looks:</p>
<pre class="brush:shell">
mihai007@mihai007-dell:~$ cat ~/.profile
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
synclient RTCornerButton=2
mihai007@mihai007-dell:~$
</pre>
<p>Then use the visudo command</p>
<pre class="brush:shell">
$ sudo visudo
</pre>
<p>and append a new line at the end of it, containing:</p>
<pre class="brush:shell">
MY_USERNAME_OVER_HERE ALL = NOPASSWD: /usr/bin/synclient
</pre>
<p>Just make sure you put your username instead of MY_USERNAME_OVER_HERE. Then just hit "CTRL+X" then press "Y" to save the file as sudoers.tmp as suggested.<br />
After a restart the middle mouse on corner continued to work perfectly</p>
]]></content:encoded>
			<wfw:commentRss>http://openmindedbrain.info/23/11/2009/enable-ubuntu-9-10-touchpad-top-right-corner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gedit LaTeX Plugin with live preview in split window</title>
		<link>http://openmindedbrain.info/01/06/2009/gedit-latex-plugin-with-live-preview-in-split-window/</link>
		<comments>http://openmindedbrain.info/01/06/2009/gedit-latex-plugin-with-live-preview-in-split-window/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 00:38:49 +0000</pubDate>
		<dc:creator>mihai007</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://openmindedbrain.info/?p=5</guid>
		<description><![CDATA[For the ones that don't know LaTeX, it's a great alternative tool to write documents in a programable way. I am using it mostly for my Faculty documents, thesis and other documents as an alternative to Open Office, not to even mention Microsoft Office which I almost never used.

So if you happen to also use LaTeX, and also happen to use an Linux Operating System such as Ubuntu Debian, Fedora, etc. this short tutorial could be addressed to you.]]></description>
			<content:encoded><![CDATA[<p>I am going to show you a little tool that helps a lot in discovering commands available in LaTeX and helps creating the final PDF document using Gnome's simple gEdit text editor. It's called Gedit LaTeX Plugin (<a href="http://live.gnome.org/Gedit/LaTeXPlugin">http://live.gnome.org/Gedit/LaTeXPlugin</a>), download and sources available from the website, but may already come packaged in many Linux Distributions, such as repositories of Debian, Ubuntu, etc. The plugin provides menu entries for generating the PDF file and opens a preview (by default uses evince) it in a new window.<span id="more-5"></span></p>
<p>So if you find this little tool useful, could be that the next thing you will think is how unproductive is to use the ALT-TAB every time you want to preview the document and again to switch to the editor again.</p>
<p>One day I just had enough and decided to create a patch for the plugin that would display the PDF file preview inside the editor window in a split view. If you find the idea useful, I created a package with the latest version from the Gedit LaTeX Plugin repository and applied the Split View Patch.</p>
<p>UPDATE: By the time of this writing the patch was not available on the main gedit-latex-plugin, now it was accepted and I recommend using the version 0.2rc2 of gedit-latex-plugin or if not available yet, use a version directly from the svn source repository (revision 339 or above).<br />
Instead if you want to try it without any more fuss, just download the attached archive and extract under ~/.gnome2/gedit/plugins/<br />
If you are using Ubuntu, make sure you install the gedit-latex-plugin from synaptic first to get all dependencies.<br />
Oh and a my patch has a new dependency beside the ones above ("python-poppler") that can also be found on Ubuntu Jaunty in synaptic or Debian (<a href="http://packages.debian.org/unstable/main/python-poppler">http://packages.debian.org/unstable/main/python-poppler</a>)</p>
<p>After that in a .tex document From Latex menu use the last menu entry to enable the split view. Every time the PDF file is generated, the PDF preview is updated. (I usually use the CTRL-ALT-7 shortcut for compiling to PDF)</p>
<p><img src="http://openmindedbrain.info/wp-content/uploads/2009/06/latex-preview.preview.png" alt="latex-preview.preview" title="latex-preview.preview" width="520" height="344" class="alignnone size-full wp-image-9" /></p>
]]></content:encoded>
			<wfw:commentRss>http://openmindedbrain.info/01/06/2009/gedit-latex-plugin-with-live-preview-in-split-window/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Open source, open mind, open future</title>
		<link>http://openmindedbrain.info/31/05/2009/hello-world/</link>
		<comments>http://openmindedbrain.info/31/05/2009/hello-world/#comments</comments>
		<pubDate>Sun, 31 May 2009 23:04:28 +0000</pubDate>
		<dc:creator>mihai007</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://openmindedbrain.info/?p=1</guid>
		<description><![CDATA[The intent of this blog is to host information about things I find useful. No matter how insignificant, there will always be someone somewhere who share the same values and finds it useful. So this is my contribution to help spreading the knowledge keeping an open mind and also hoping for an open future.]]></description>
			<content:encoded><![CDATA[<p>The intent of this blog is to host information about things I find useful.<br />
No matter how insignificant, there will always be someone somewhere<br />
who share the same values and finds it useful.</p>
<p>So this is my contribution to help spreading the knowledge keeping<br />
an open mind and also hoping for an open future.</p>
]]></content:encoded>
			<wfw:commentRss>http://openmindedbrain.info/31/05/2009/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

