<?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=Chinasaur</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=Chinasaur"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Chinasaur"/>
	<updated>2026-04-19T23:06:43Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Active_Protection_System&amp;diff=26651</id>
		<title>Active Protection System</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Active_Protection_System&amp;diff=26651"/>
		<updated>2006-11-29T07:50:32Z</updated>

		<summary type="html">&lt;p&gt;Chinasaur: some details on actual usage for tilt detection&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top;padding-right:20px;width:10px;&amp;quot; | [[Image:APS.jpg|IBM Active Protection System]] __NOTOC__&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 0; margin-right:10px; border: 1px solid #dfdfdf; padding: 0em 1em 1em 1em; background-color:#F8F8FF; align:right;&amp;quot;&amp;gt;&lt;br /&gt;
=== The Active Protection System ===&lt;br /&gt;
With the new series of ThinkPads IBM introduced the Active Protection System (APS) in 2003. The APS is a protection system for the ThinkPads internal harddrive. A sensor inside the ThinkPad recognizes when the notebook is accelerated. A software applet then is triggered to park the harddisk. This way the risk of data loss in case of when the notebook is dropped is significantly reduced since the read/write head of the harddrive is parked and hence can't crash onto the platter when the notebook drops onto the floor.&lt;br /&gt;
&lt;br /&gt;
The hardware sensor is capable of not only recognizing acceleration of the notebook, but also (to a certain degree) of its whole orientation in space, relative to gravity's axis. Furthermore, having the actual control put into software, its functionality is extendable and it gives chance to implement features like the &amp;quot;ignore minor shocks&amp;quot; feature which is present in the Windows based control applet. (This feature prevents the harddrive from parking in case of minor regular shocks such as occur when in a train or car.)&lt;br /&gt;
&lt;br /&gt;
The measurements are physically performed by an [[Analog Devices ADXL320 accelerometer]] chip, managed by the [[Embedded Controller Chips|embedded controller]].&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* [ftp://ftp.software.ibm.com/pc/pccbbs/mobiles_pdf/aps2mst.pdf IBM Active Protection System Whitepaper]&lt;br /&gt;
&lt;br /&gt;
==Linux Support==&lt;br /&gt;
Linux support is in development.&lt;br /&gt;
&lt;br /&gt;
This feature definitely depends on software and there is no hardware or BIOS only way of making it work.&lt;br /&gt;
IBM made contradictory statements about their willingness to release the specifications of the hardware sensor and its API to the linux community or some developers. Although a lot of developers and other interested people from the OpenSource community actively contacted IBM to get the specs, in fact they never got them.&lt;br /&gt;
&lt;br /&gt;
However, after first efforts of [http://www.kernelthread.com/software/ams/ Amit Singh on a PowerBook] and [http://www.almaden.ibm.com/cs/people/marksmith/tpaps.html Mark Smith on a ThinkPad], the [[HDAPS]] project was founded to produce a linux kernel driver for the acceleration sensor and a user space application to monitor it. Later, a kernel patch to enable harddisk parking followed.&lt;br /&gt;
&lt;br /&gt;
See [[How to protect the harddisk through APS]] for instructions and [[Problem with APS harddisk parking]] for Troubleshooting.&lt;br /&gt;
&lt;br /&gt;
Furthermore, a list of alternative applications like theft alarm and others can be found on the [[HDAPS]] driver page.&lt;br /&gt;
&lt;br /&gt;
==Tilt detection field tests==&lt;br /&gt;
Using Perl code for WinXP:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
use Win32API::File qw(:ALL);&lt;br /&gt;
sub get_tilt {&lt;br /&gt;
      my $file = createFile(&amp;quot;//./ShockMgr&amp;quot;, &amp;quot;r ke&amp;quot;) or die &amp;quot;Can't get ShockMgr device&amp;quot;;&lt;br /&gt;
      DeviceIoControl($file, 0x733fc, [], 0, my($buf), 0x24, my($bytes), []);&lt;br /&gt;
      my @data = unpack &amp;quot;x4s*&amp;quot;, $buf;&lt;br /&gt;
      return @data[1, 0];&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
my T42 gives values of roughly 490 when at rest in normal upright position with base parallel to the ground.  As I gently tilt the T42 through all possible x or y angles, the values range from about 335-645, meaning a resolution of about 155 units per Earth gravity.  This seems to suggest that the operating range of the APS is actually about +-3 gs, although the ADXL320 is supposed to allow +-5 gs.&lt;br /&gt;
&lt;br /&gt;
As the tilt angle is the arcsine of the normalized APS reading, the Thinkpad is most tilt sensitive when in a normal upright position with base parallel to the ground.  In this position, the tilt resolution is about 0.35 - 0.4 degrees.  At maximum tilt, the resolution is much worse, about 6.5 degrees.&lt;br /&gt;
&lt;br /&gt;
Shouldn't matter much, but my tests are at an elevation of about 60 meters above sea level.&lt;br /&gt;
&lt;br /&gt;
==Related Links==&lt;br /&gt;
*[http://www.pc.ibm.com/presentations/us/thinkvantage/56/index.html?shortcut=aps&amp;amp; IBMs ThinkVantage&amp;amp;trade; Technologies Flash presentation - Active Protection System]&lt;br /&gt;
*[http://www-128.ibm.com/developerworks/linux/library/l-knockage.html?ca=dgr-lnxw01Knock-Knock IBM HDAPS/Linux HDAPS information page]&lt;br /&gt;
*[http://hdaps.sourceforge.net HDAPS project page]&lt;br /&gt;
*[http://sourceforge.net/mailarchive/forum.php?forum=hdaps-devel HDAPS-devel list archive]&lt;br /&gt;
&lt;br /&gt;
==Models featuring this Technology==&lt;br /&gt;
*ThinkPad {{R50}}, {{R50p}}, {{R51}}, {{R52}}, {{R60}}&lt;br /&gt;
*ThinkPad {{T41}}, {{T41p}}, {{T42}}, {{T42p}}, {{T43}}, {{T43p}}, {{T60}}, {{T60p}}&lt;br /&gt;
*ThinkPad {{X40}}, {{X41}}, {{X41T}}, {{X60}}, {{X60s}}&lt;br /&gt;
*ThinkPad {{Z60m}}, {{Z60t}}, {{Z61m}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;/div&gt;</summary>
		<author><name>Chinasaur</name></author>
		
	</entry>
</feed>