[lkml]   [2009]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subjectaxes conversion for hp compaq 8710w for HP_ACCEL linux kernel module (fwd)

It seems like Luca has one more whitelist entry...

Subject: axes conversion for hp compaq 8710w for HP_ACCEL linux kernel module
From: Luca Cappa <>


I have a laptop HP Compaq 8710W, I compiled into my kernel the
LIS3LV02DL and HP_ACCEL module drivers. While loading it cannot
recognize the laptop
model, so i am sending the necessary information to update the
database of Axes Orientations.

>When the laptop is horizontal the position reported is about 0 for X and Y
>and a positive value for Z
Yes, it is about 0,0,1000, the actual reading says: (-17,-26,1018);

> If the left side is elevated, X increases (becomes positive)
Yes, X goes toward to positive 1000.

>If the front side (where the touchpad is) is elevated, Y decreases (becomes negative)
No, Y goes toward to positive 1000.

>If the laptop is put upside-down, Z becomes negative
Yes, the laptop on a table Z gives 1000, and if upsidedown the Z reads

So in few words the Y axis is inverted, I paste here below the very
simple patch to configure properly the axis conversion. The patch is
against the file hp_accel.c of 2.6.29-rc8, i.e. the one shown here:;a=blob;f=drivers/hwmon/hp_accel.c;h=29c83b5b96974bb88cbeb67d896ba46ee71469f2;hb=HEAD


--- /home/luca/Desktop/hp_accel.c 2009-03-21 19:28:54.000000000 +0100
+++ hp_accel.c 2009-03-21 19:31:05.000000000 +010
@@ -201,6 +201,7 @@
PRODUCT_NAME, "HP Pavilion dv5",
BOARD_NAME, "3600",
+ AXIS_DMI_MATCH("HP8710", "HP Compaq 8710", y_inverted),
{ NULL, }
/* Laptop models witho

----- End forwarded message -----
(cesky, pictures)

 \ /
  Last update: 2009-03-22 00:07    [W:0.091 / U:1.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site