Skip to contentSkip to conversation

Haptic: Documentation for haptic class

PATCH In review Kyungmin Park 3 participants 3 messages Oct 7, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/6 Haptic: Documentation for haptic class

Describe the haptic class and how to use

---
 Documentation/haptic-class.txt |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/haptic-class.txt
Documentation/haptic-class.txt new file +20 -0
new file mode 100644
index 0000000..6bee82a
@@ -0,0 +1,20 @@
+
+Haptic handling under Linux
+========================
+
+In its simplest form, the haptic class just allows control of Haptics from
+userspace. Haptic appears in /sys/class/haptic/. The maximum level of the
+haptic is defined in max_level file.
+
+To use simple. it provides the oneshot mode. Give millisecond time to this
+property. It working at given time with pre-defined level.
+Of course, you can adjust the level by setting level property
+
+# echo ${millisecond} > /sys/class/haptic/<device>/oneshot
+
+# echo ${level} > /sys/class/haptic/<device>/level
+
+Also you can enable/disable by setting enable property
+
+# echo 1 > /sys/class/haptic/<device>/level	-> Enable
+# echo 0 > /sys/class/haptic/<device>/level	-> Disable
Signature · 1 line
1.5.3.3
#1 lore raw

Hi Kyungmin,

Quoted 14 lines · Kyungmin Park

Describe the haptic class and how to use

---
 Documentation/haptic-class.txt |   20 ++++++++++++++++++++

 1 files changed, 20 insertions(+), 0 deletions(-)

 create mode 100644 Documentation/haptic-class.txt

Documentation/haptic-class.txt new file +0 -0
new file mode 100644
index 0000000..6bee82a

Documentation/haptic-class.txt line 10

Quoted 10 lines
Documentation/haptic-class.txt new file +10 -0
@@ -0,0 +1,20 @@
+
+Haptic handling under Linux
+========================
+
+In its simplest form, the haptic class just allows control of Haptics from
+userspace. Haptic appears in /sys/class/haptic/. The maximum level of the
+haptic is defined in max_level file.
+
+To use simple. it provides the oneshot mode. Give millisecond time to this
+property. It working at given time with pre-defined level.

nit-pick: "To make it simple, it provides the one shot mode. Provide milliseconds time to
this property, and it will be working for the given time with the pre-defined level."

Please check if my above statement looks better.

Quoted 14 lines
Documentation/haptic-class.txt new file +10 -1
+Of course, you can adjust the level by setting level property
+
+# echo ${millisecond} > /sys/class/haptic/<device>/oneshot
+
+# echo ${level} > /sys/class/haptic/<device>/level
+
+Also you can enable/disable by setting enable property
+
+# echo 1 > /sys/class/haptic/<device>/level    -> Enable
+# echo 0 > /sys/class/haptic/<device>/level    -> Disable
--

1.5.3.3

Signature · 7 lines
---Trilok Soni
http://triloksoni.wordpress.com
http://www.linkedin.com/in/triloksoni
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to Kyungmin Park
Quoted 15 lines · Kyungmin Park

Describe the haptic class and how to use

---
 Documentation/haptic-class.txt |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/haptic-class.txt
Documentation/haptic-class.txt new file +1 -0
new file mode 100644
index 0000000..6bee82a
@@ -0,0 +1,20 @@
+

Documentation/haptic-class.txt line 11

Quoted 10 lines
Documentation/haptic-class.txt new file +10 -0
+Haptic handling under Linux
+========================
+
+In its simplest form, the haptic class just allows control of Haptics from
+userspace. Haptic appears in /sys/class/haptic/. The maximum level of the
+haptic is defined in max_level file.
+
+To use simple. it provides the oneshot mode. Give millisecond time to this
+property. It working at given time with pre-defined level.
+Of course, you can adjust the level by setting level property

"The interface is pretty simple - it provides oneshot mode where user can specify duration of the effect (in milliseconds) and desired level":

Documentation/haptic-class.txt line 18

Quoted 7 lines
Documentation/haptic-class.txt new file +7 -0
+
+# echo ${millisecond} > /sys/class/haptic/<device>/oneshot
+
+# echo ${level} > /sys/class/haptic/<device>/level
+
+Also you can enable/disable by setting enable property
+

"You can also enable or disable haptics devices by manipulating 'enable' attribute:"

Documentation/haptic-class.txt line 19

Quoted 1 line
Documentation/haptic-class.txt new file +1 -0
+# echo 1 > /sys/class/haptic/<device>/level	-> Enable
					^^^^^^ enable

Documentation/haptic-class.txt line 20

Quoted 1 line
Documentation/haptic-class.txt new file +1 -0
+# echo 0 > /sys/class/haptic/<device>/level	-> Disable
					^^^^^^
Signature · 1 line
Dmitry