Re: [PATCH] lis3lv02d: add axes knowledge of HP Pavilion dv5 models

Pavel Machek
2009-02-09T09:47:58Z

> On Sat, Feb 7, 2009 at 3:47 PM, Éric Piel <eric.piel@tremplin-utc.net> wrote:
> > Giuseppe Bilotta schreef:
> >> Add support for HP Pavlion dv5 models, whose sensor has an inverted x
> >> axis.
> >>
> >> Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
> > Acked-by: Eric Piel <Eric.Piel@tremplin-utc.net>
> >
> > Looks good.
> > Andrew, would you mind queuing it?
> >> ---
> >> My HP Pavilion dv5 has an inverted x axis of the accelerometer, so this
> >> patch marks the inversion for all the dv5. I can include the full
> >> dmidecode output if this is deemed necessary.
> >>
> >> With the laptop standing still on my desk jstest reports X and Y values
> >> fluctuating from -8k to +8k (more or less). I assume this is normal?
> > What does "k" stands for? If that's the unit of the joystick output:
> > yes, that's perfectly normal, just some noise/vibration. If that's 1000,
> > it's far too much to be normal.
>
> k is for thousands. I thought it could have been normal because
> someone (Pavel?) mentioned the disk park script trigged even if he was
> just walking around, so I just assumed the sensor to be extremely

I believe that it is designed to trigger at walking.

> sensible. OTOH the maximum range of the sensor, as reported by jstest,
> seems to be -32k to +32k, and 8k is about one forth of it. Considering
> sometimes the fluctuations even peak to 12k, there might be something
> else at play here. Any suggestions on helping debug the issue are
> welcome.

Ok, at my machine it fluctuates around 1K when sitting on the desk,
and maximum range is about 13-15K. So your values seem little too noisy.

Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html