public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lis3lv02d: add axes knowledge of HP Pavilion dv5 models
@ 2009-02-07  0:48 Giuseppe Bilotta
  2009-02-07 14:47 ` Éric Piel
                   ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Giuseppe Bilotta @ 2009-02-07  0:48 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-kernel, Giuseppe Bilotta

Add support for HP Pavlion dv5 models, whose sensor has an inverted x
axis.

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
---
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?

 drivers/hwmon/hp_accel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/hwmon/hp_accel.c b/drivers/hwmon/hp_accel.c
index abf4dfc..5a379bd 100644
--- a/drivers/hwmon/hp_accel.c
+++ b/drivers/hwmon/hp_accel.c
@@ -179,6 +179,7 @@ static struct dmi_system_id lis3lv02d_dmi_ids[] = {
 	AXIS_DMI_MATCH("NC673x", "HP Compaq 673", xy_rotated_left_usd),
 	AXIS_DMI_MATCH("NC651xx", "HP Compaq 651", xy_rotated_right),
 	AXIS_DMI_MATCH("NC671xx", "HP Compaq 671", xy_swap_yz_inverted),
+	AXIS_DMI_MATCH("HPDV5", "HP Pavilion dv5", x_inverted),
 	{ NULL, }
 /* Laptop models without axis info (yet):
  * "NC6910" "HP Compaq 6910"
-- 
1.6.1.399.g0d272


^ permalink raw reply related	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2009-02-10 23:34 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-07  0:48 [PATCH] lis3lv02d: add axes knowledge of HP Pavilion dv5 models Giuseppe Bilotta
2009-02-07 14:47 ` Éric Piel
2009-02-07 23:59   ` Giuseppe Bilotta
2009-02-09  9:47     ` Pavel Machek
2009-02-09  9:53       ` Giuseppe Bilotta
2009-02-09  9:58         ` Pavel Machek
2009-02-09 11:45           ` Giuseppe Bilotta
2009-02-09 13:33             ` Giuseppe Bilotta
2009-02-10 10:10               ` Pavel Machek
2009-02-10 21:39                 ` Giuseppe Bilotta
2009-02-10 22:47                   ` Éric Piel
2009-02-10 22:48                   ` Giuseppe Bilotta
2009-02-10 23:17                     ` Andrew Morton
2009-02-10 23:22                       ` Éric Piel
2009-02-10 23:17                     ` Éric Piel
2009-02-10 23:34                     ` Éric Piel
     [not found]   ` <498E46F2.1020401@gmail.com>
2009-02-09 23:37     ` Éric Piel
     [not found]       ` <4990DEFD.4010700@gmail.com>
2009-02-10 10:34         ` Éric Piel
2009-02-10 11:07           ` Giuseppe Bilotta
2009-02-10 12:42             ` Éric Piel
2009-02-10 20:29               ` Giuseppe Bilotta
2009-02-10 20:31                 ` Giuseppe Bilotta
2009-02-10 21:28               ` Giuseppe Bilotta
2009-02-10 21:33                 ` Giuseppe Bilotta
2009-02-09  9:44 ` Pavel Machek
2009-02-09  9:50   ` Giuseppe Bilotta
     [not found] ` <1234191743.3156.2.camel@localhost.localdomain>
2009-02-09 16:50   ` Giuseppe Bilotta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox