Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934318AbZJGQuf (ORCPT ); Wed, 7 Oct 2009 12:50:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934095AbZJGQue (ORCPT ); Wed, 7 Oct 2009 12:50:34 -0400 Received: from mail-fx0-f227.google.com ([209.85.220.227]:43174 "EHLO mail-fx0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933571AbZJGQud (ORCPT ); Wed, 7 Oct 2009 12:50:33 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=r9DlMHbIQ2AGZ9BTwW1PUgxWK/y+N2AGNcYrVa4BxDYmFXO+7YmNSDsFfkmK8CwFkL LzfWaZ7iBqBh6v0xh2SedSs7x05NCiV6x7Nlblug+ZwCjh2PpCLxJmB975vvOzWbDDFI UNbgx96mU9ADMWYY9vyfI5e7Nl+KsOudKlfz8= Date: Wed, 7 Oct 2009 09:49:44 -0700 From: Dmitry Torokhov To: Kyungmin Park Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, soni.trilok@gmail.com Subject: Re: [PATCH 2/6] Haptic: Documentation for haptic class Message-ID: <20091007164944.GC12053@core.coreip.homeip.net> References: <20091007061754.GA7588@july> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091007061754.GA7588@july> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1842 Lines: 53 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 > --- > 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//oneshot > + > +# echo ${level} > /sys/class/haptic//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//level -> Enable ^^^^^^ enable > +# echo 0 > /sys/class/haptic//level -> Disable ^^^^^^ -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/