lkml.org 
[lkml]   [2008]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: HP accelerometer: free fall detection working, testers wanted
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


\
 
 \ /
  Last update: 2008-11-28 11:07    [W:1.433 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site