From 128e6266adee1f25bd9b6951a992a35557769754 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Fri, 3 Mar 2017 21:35:57 +0100 Subject: hwdb: quirks for accelerometers in HP laptops This patch adds quirks for the two laptops I could test on (8540w and 8560w). The accelerometer is configured in the kernel to report values according to the base of the laptop. We want the values according to the screen instead. It is likely (but untested) to match all HP laptops with the lis3lv02d accelerometer on this list: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/platform/x86/hp_accel.c#n207 --- hwdb/60-sensor.hwdb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hwdb/60-sensor.hwdb b/hwdb/60-sensor.hwdb index ea057fcc26..454f403761 100644 --- a/hwdb/60-sensor.hwdb +++ b/hwdb/60-sensor.hwdb @@ -53,6 +53,13 @@ sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP500LB* sensor:modalias:acpi:ACCE0001*:dmi:*svnEndless*:*pnELT-NL3* ACCEL_MOUNT_MATRIX=0, 1, 0; 0, 0, -1; -1, 0, 0 +######################################### +# HP +######################################### +sensor:modalias:platform:lis3lv02d:dmi:*svn*Hewlett-Packard*:*pn*HPEliteBook8540w* +sensor:modalias:platform:lis3lv02d:dmi:*svn*Hewlett-Packard*:*pn*HPEliteBook8560w* + ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 0, -1; 0, 1, 0 + ######################################### # Winbook ######################################### -- cgit v1.2.3-54-g00ecf