Haptic: Documentation for haptic class (v2)
Subsystems (2)
PATCH 2/6 Haptic: Documentation for haptic class (v2)
Describe the haptic class and how to use
Changelog v1:
Apply comments and feedbacks
Signed-off-by Kyungmin Park <[email protected]>
--- 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
@@ -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. + +The interface is pretty simple - it provides oneshot mode where user +can specify duration of the effect (in milliseconds) and desired 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 + +You can also enable or disable haptics devices by manipulating 'enable' attribute: + +# echo 1 > /sys/class/haptic/<device>/enable -> Enable +# echo 0 > /sys/class/haptic/<device>/enable -> Disable
Signature · 1 line
1.5.3.3
Hi Kyungmin,
Quoted 38 lines · Kyungmin Park
Describe the haptic class and how to use
Changelog v1:
Apply comments and feedbacksSigned-off-by Kyungmin Park <[email protected]>---
Documentation/haptic-class.txt | 20 ++++++++++++++++++++1 files changed, 20 insertions(+), 0 deletions(-)create mode 100644
Documentation/haptic-class.txtDocumentation/haptic-class.txt new file +20
-1@@ -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. + +The interface is pretty simple - it provides oneshot mode where user +can specify duration of the effect (in milliseconds) and desired 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 + +You can also enable or disable haptics devices by manipulating 'enable' attribute: + +# echo 1 > /sys/class/haptic/<device>/enable -> Enable +# echo 0 > /sys/class/haptic/<device>/enable -> Disable --
Quoted 3 lines
1.5.3.3
Reviewed-by Trilok Soni <[email protected]>
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