All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Éric Piel" <eric.piel@tremplin-utc.net>
To: Pavel Machek <pavel@suse.cz>
Cc: kernel list <linux-kernel@vger.kernel.org>,
	trenn@suse.de, hmh@hmh.eng.br
Subject: Re: HP accelerometer: free fall detection working, testers wanted
Date: Fri, 28 Nov 2008 11:02:56 +0100	[thread overview]
Message-ID: <492FC1D0.2040408@tremplin-utc.net> (raw)
In-Reply-To: <20081128082215.GA2013@elf.ucw.cz>

Pavel Machek schreef:
> Hi!
> 
> I got free fall detection to work -- apparently BIOS does all the
> important stuff itself. 
> 
> Now... I'd like some testers. (Don't comment on code... yet. Yes, it
> has some issues).
>
Hi Pavel,
I'll try to test this weekend.

Out of curiosity, what did you change compared to the original version
of the driver? Did you just disable the set up code?

Also, how do you try free fall? Did you try also with the lid opened?
> hp3dg script should do all the important things.
:
> --- /dev/null
> +++ b/Documentation/hwmon/hp3dg
:
> +while true; do
> +	./readaccel foo
> +	unload 2
> +	if cat /proc/acpi/button/lid/LID/state | grep open && cat /proc/acpi/ac_adapter/AC0/state | grep off-line; then
> +		unload 20
> +	fi
> +done
Why a special case if the lid is opened and the laptop unplugged? Is it
a special behaviour of the hardware, or simply some kind of basic user
behaviour guess?

See you,
Eric

  reply	other threads:[~2008-11-28 10:03 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-21 21:21 HP accelerometer: split chip handling from HP ACPI interface Pavel Machek
2008-11-22  0:00 ` Andrew Morton
2008-11-22  0:25   ` Éric Piel
2008-11-22  0:51     ` Éric Piel
2008-11-22  0:55       ` [PATCH 1/2] LIS3LV02D: separate the core from HP ACPI API Éric Piel
2008-11-22 12:35         ` Pavel Machek
2008-11-22 14:28           ` Éric Piel
2008-11-22  0:55       ` [PATCH 2/2] LIS3LV02D: Merge with leds-hp-disk Éric Piel
2008-11-22 12:21       ` HP accelerometer: split chip handling from HP ACPI interface Pavel Machek
2008-11-22  0:58 ` Andrew Morton
2008-11-28  8:22 ` HP accelerometer: free fall detection working, testers wanted Pavel Machek
2008-11-28 10:02   ` Éric Piel [this message]
2008-11-28 10:44     ` Pavel Machek
2008-11-30 22:16       ` Éric Piel
2008-12-01 11:55         ` Thomas Renninger
2008-12-01 12:03           ` Éric Piel
2009-01-09 10:13         ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=492FC1D0.2040408@tremplin-utc.net \
    --to=eric.piel@tremplin-utc.net \
    --cc=hmh@hmh.eng.br \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    --cc=trenn@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.