* [PATCH 2/6] Haptic: Documentation for haptic class
@ 2009-10-07 6:17 Kyungmin Park
2009-10-07 7:05 ` Trilok Soni
2009-10-07 16:49 ` Dmitry Torokhov
0 siblings, 2 replies; 3+ messages in thread
From: Kyungmin Park @ 2009-10-07 6:17 UTC (permalink / raw)
To: linux-kernel, linux-input; +Cc: soni.trilok
Describe the haptic class and how to use
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
Documentation/haptic-class.txt | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
create mode 100644 Documentation/haptic-class.txt
diff --git a/Documentation/haptic-class.txt b/Documentation/haptic-class.txt
new file mode 100644
index 0000000..6bee82a
--- /dev/null
+++ b/Documentation/haptic-class.txt
@@ -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
--
1.5.3.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/6] Haptic: Documentation for haptic class
2009-10-07 6:17 [PATCH 2/6] Haptic: Documentation for haptic class Kyungmin Park
@ 2009-10-07 7:05 ` Trilok Soni
2009-10-07 16:49 ` Dmitry Torokhov
1 sibling, 0 replies; 3+ messages in thread
From: Trilok Soni @ 2009-10-07 7:05 UTC (permalink / raw)
To: Kyungmin Park; +Cc: linux-kernel, linux-input
Hi Kyungmin,
On Wed, Oct 7, 2009 at 11:47 AM, Kyungmin Park
<kyungmin.park@samsung.com> wrote:
> Describe the haptic class and how to use
>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> Documentation/haptic-class.txt | 20 ++++++++++++++++++++
> 1 files changed, 20 insertions(+), 0 deletions(-)
> create mode 100644 Documentation/haptic-class.txt
>
> diff --git a/Documentation/haptic-class.txt b/Documentation/haptic-class.txt
> new file mode 100644
> index 0000000..6bee82a
> --- /dev/null
> +++ b/Documentation/haptic-class.txt
> @@ -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.
> +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
>
>
--
---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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/6] Haptic: Documentation for haptic class
2009-10-07 6:17 [PATCH 2/6] Haptic: Documentation for haptic class Kyungmin Park
2009-10-07 7:05 ` Trilok Soni
@ 2009-10-07 16:49 ` Dmitry Torokhov
1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Torokhov @ 2009-10-07 16:49 UTC (permalink / raw)
To: Kyungmin Park; +Cc: linux-kernel, linux-input, soni.trilok
On Wed, Oct 07, 2009 at 03:17:54PM +0900, Kyungmin Park wrote:
> Describe the haptic class and how to use
>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> Documentation/haptic-class.txt | 20 ++++++++++++++++++++
> 1 files changed, 20 insertions(+), 0 deletions(-)
> create mode 100644 Documentation/haptic-class.txt
>
> diff --git a/Documentation/haptic-class.txt b/Documentation/haptic-class.txt
> new file mode 100644
> index 0000000..6bee82a
> --- /dev/null
> +++ b/Documentation/haptic-class.txt
> @@ -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
"The interface is pretty simple - it provides oneshot mode where user
can specify duration of the effect (in milliseconds) and desired level":
> +
> +# 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:"
> +# echo 1 > /sys/class/haptic/<device>/level -> Enable
^^^^^^ enable
> +# echo 0 > /sys/class/haptic/<device>/level -> Disable
^^^^^^
--
Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-07 16:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-07 6:17 [PATCH 2/6] Haptic: Documentation for haptic class Kyungmin Park
2009-10-07 7:05 ` Trilok Soni
2009-10-07 16:49 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).