• Luca Cappa's avatar
    hp_accel: axis conversion for hp compaq 8710w · 12a324b6
    Luca Cappa authored
    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
    axis 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
    -1000.
    
    So in few words the Y axis is inverted.
    
    Cc: Eric Piel <eric.piel@tremplin-utc.net>
    Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    12a324b6
hp_accel.c 11.9 KB