<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dhruv</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dhruv"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Dhruv"/>
	<updated>2026-04-23T06:36:10Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Laptop-mode&amp;diff=30635</id>
		<title>Laptop-mode</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Laptop-mode&amp;diff=30635"/>
		<updated>2007-06-24T02:53:43Z</updated>

		<summary type="html">&lt;p&gt;Dhruv: Added info on ubuntu laptop-mode&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An often overlooked feature in 2.4.23+ and 2.6.6+ Linux kernels is the laptop-mode. It may be activated by writing a &amp;quot;5&amp;quot; into {{path|/proc/sys/vm/laptop_mode}}. Laptop-mode, when configured correctly, can make the kernel buffer disk activities for quite a long time and keep the harddisk spun down for most of the time to save power.&lt;br /&gt;
&lt;br /&gt;
There is also a set of userland tools made to automatically manage all aspects of laptop-mode configuration according to the actual mode of operation (ac/battery-status). It is called [[laptop-mode-tools]] and you can install it in debian via apt-get or download it from [http://www.xs4all.nl/~bsamwel/laptop_mode/tools here].&lt;br /&gt;
&lt;br /&gt;
Almost anything you need to know about laptop-mode can be read in your Linux kernel documentation at /usr/src/linux/Documentation/laptop-mode.txt&amp;lt;br&amp;gt;&lt;br /&gt;
If you can not find this file on your laptop, then go and get yourself the latest kernel sources.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|The use of Laptop-mode and laptop-mode-tools is not recommended in SuSE Linux. The supplied &amp;lt;tt&amp;gt;powersaved&amp;lt;/tt&amp;gt; already takes care of everything regarding power saving}}&lt;br /&gt;
{{NOTE| Laptop-mode is disabled by default on Ubuntu 6.10 and later. See [http://samwel.tk/laptop_mode/packages/ubuntu here] for more details}}. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Keeping the disk in the stand-by state ===&lt;br /&gt;
&lt;br /&gt;
Laptop-mode is only effective if one avoids spinning up the disk for frivoulous reasons.  What will spin a disk up is dependent on the HD firmware, but unfortunately most will spin up on just about every command.  To add insult to injury, ATA/SATA pass-through commands are not logged through the {{path|/proc/sys/vm/block_dump}} facility, and thus invisible to tools like '''lm-profiler'''.&lt;br /&gt;
&lt;br /&gt;
{{HINT|The '''lm-profiler''' tool from laptop-mode-tools can be used to list all processes doing normal disk access.}}&lt;br /&gt;
&lt;br /&gt;
In systems where the HD spins up too easily, the &amp;quot;'''hddtemp'''&amp;quot; daemon will wake up the disk every minute, and must thus be disabled for power management to be effective.  The &amp;quot;'''smartd'''&amp;quot; daemon is also an offender, but fortunately its default configuration issues commands to the HDs only every 30 minutes.&lt;br /&gt;
&lt;br /&gt;
{{HINT|smartd can be configured to never issue commands to the disk if it is in the sleep or standby states, through the use of option &amp;quot;'''-n standby,q'''&amp;quot;.  The &amp;quot;''',q'''&amp;quot; is needed to supress syslog messages.}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;/div&gt;</summary>
		<author><name>Dhruv</name></author>
		
	</entry>
</feed>