]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: quirks for accelerometers in HP laptops 5510/head
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 3 Mar 2017 20:35:57 +0000 (21:35 +0100)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 3 Mar 2017 20:35:57 +0000 (21:35 +0100)
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

index ea057fcc26e70b464387ba3510a38740b7aff5d7..454f4037615dc0926ef87321118f6ee3e2f12c93 100644 (file)
@@ -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
 #########################################