<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://beardedmaker.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Power_Saving</id>
		<title>Power Saving - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://beardedmaker.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Power_Saving"/>
		<link rel="alternate" type="text/html" href="https://beardedmaker.com/wiki/index.php?title=Power_Saving&amp;action=history"/>
		<updated>2026-04-22T08:05:01Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.4</generator>

	<entry>
		<id>https://beardedmaker.com/wiki/index.php?title=Power_Saving&amp;diff=1318&amp;oldid=prev</id>
		<title>Beard: /* Laptop Mode Tools */</title>
		<link rel="alternate" type="text/html" href="https://beardedmaker.com/wiki/index.php?title=Power_Saving&amp;diff=1318&amp;oldid=prev"/>
				<updated>2017-08-16T06:58:29Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Laptop Mode Tools&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Spinning Down Hard Drives ==&lt;br /&gt;
&lt;br /&gt;
Spinning down the hard drives when you're not using them saves power and makes the drives last longer. You can't really spin down the root drive, the one with the operating system installed, but your storage drives can be spun down. Obviously, it takes a few seconds for them to spin up the next time you access them, but for me it's well worth it.&lt;br /&gt;
&lt;br /&gt;
=== Set Spindown Time on Startup ===&lt;br /&gt;
&lt;br /&gt;
Simply make sure the following line runs on startup (assuming your storage drives are /dev/sda, /dev/sdb, /dev/sdd, and /dev/sde):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
hdparm -S120 /dev/sd{a,b,d,e} &amp;amp;&amp;gt;/dev/null&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The 120 sets the spindown time to 10 minutes (it 120*5 seconds). Set it to 60 to do 5 minutes. You could also do 0 if you don't want them to spin down at all.&lt;br /&gt;
&lt;br /&gt;
=== Spindown on Command ===&lt;br /&gt;
&lt;br /&gt;
For easy use, I added the following aliases to my &amp;lt;code&amp;gt;~/.bashrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
alias standby='sudo hdparm -y /dev/sd{a,b,d,e}'                                 &lt;br /&gt;
alias state='sudo hdparm -C /dev/sd{a,b,d,e}' &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So now I can type &amp;lt;code&amp;gt;standby&amp;lt;/code&amp;gt; to spin down the drives, and &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; to tell me what state they are in.&lt;br /&gt;
&lt;br /&gt;
== Laptop Mode Tools ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Laptop Mode Tools&amp;lt;/b&amp;gt; provides a suite of programs for managing power on the system. I usually start off with the following (for a low-traffic server). https://wiki.archlinux.org/index.php/Laptop_Mode_Tools&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install laptop-mode-tools&lt;br /&gt;
sudo vim /etc/laptop-mode/conf.d/cpufreq.conf&lt;br /&gt;
	CONTROL_CPU_FREQUENCY=0&lt;br /&gt;
sudo service laptop-mode restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Disable Bluetooth ==&lt;br /&gt;
&lt;br /&gt;
If you don't plan to use it, disable bluetooth.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo systemctl disable bluetooth.service&lt;br /&gt;
sudo service bluetooth stop&lt;br /&gt;
&lt;br /&gt;
#For System V&lt;br /&gt;
sudo update-rc.d bluetooth disable&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Beard</name></author>	</entry>

	</feed>