<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/index.php?action=history&amp;feed=atom&amp;title=OMAP_vibration_device</id>
	<title>OMAP vibration device - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/index.php?action=history&amp;feed=atom&amp;title=OMAP_vibration_device"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=OMAP_vibration_device&amp;action=history"/>
	<updated>2026-05-06T19:30:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=OMAP_vibration_device&amp;diff=1460&amp;oldid=prev</id>
		<title>Hopspitfire: New page: The device which vibrates when the phone gets a call is able to be controlled on a rooted Pre via sysfs. This can be done manually or through shell scripts.  &lt;pre&gt;&lt;nowiki&gt; root@castle:/# c...</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=OMAP_vibration_device&amp;diff=1460&amp;oldid=prev"/>
		<updated>2009-07-21T23:30:20Z</updated>

		<summary type="html">&lt;p&gt;New page: The device which vibrates when the phone gets a call is able to be controlled on a rooted Pre via sysfs. This can be done manually or through shell scripts.  &amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt; root@castle:/# c...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The device which vibrates when the phone gets a call is able to be controlled on a rooted Pre via sysfs.&lt;br /&gt;
This can be done manually or through shell scripts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
root@castle:/# cd /sys/bus/platform/devices/omap_vibe/&lt;br /&gt;
root@castle:/sys/devices/platform/omap_vibe# ls -F&lt;br /&gt;
bus@         direction   driver@      duty_cycle  modalias    power/       subsystem@   uevent&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The file direction indicates if the vibration is currently on or off&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
root@castle:/sys/devices/platform/omap_vibe# cat direction&lt;br /&gt;
0&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When it is 0, the device is off, at any other value the device is on.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
root@castle:/sys/devices/platform/omap_vibe# echo -n 1 &amp;gt; direction&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The intensity of the vibration can be changed by modifying the duty_cycle file, but the results of this seem to be affected by the charging state of the phone.  On the charger (touchstone or USB) the lowest accepted value seems to be 20 which produces a very SLOW vibration, but when on battery power no values below 50 produce vibration.  The highest accepted value is 100.  The default value is 50.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
root@castle:/sys/devices/platform/omap_vibe# echo 100 &amp;gt; duty_cycle&lt;br /&gt;
root@castle:/sys/devices/platform/omap_vibe# echo 20 &amp;gt; duty_cycle&lt;br /&gt;
root@castle:/sys/devices/platform/omap_vibe# echo 50 &amp;gt; duty_cycle&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hopspitfire</name></author>
	</entry>
</feed>