summaryrefslogtreecommitdiffstats
path: root/hwdb/60-sensor.hwdb
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2017-03-03 21:35:57 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2017-03-03 21:35:57 +0100
commit128e6266adee1f25bd9b6951a992a35557769754 (patch)
tree6adb4a0653790494daa28aab0f33e259a19e5cd7 /hwdb/60-sensor.hwdb
parentrules: allow quirks for platform input accelerometers (diff)
downloadsystemd-128e6266adee1f25bd9b6951a992a35557769754.tar.xz
systemd-128e6266adee1f25bd9b6951a992a35557769754.zip
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
Diffstat (limited to '')
-rw-r--r--hwdb/60-sensor.hwdb7
1 files changed, 7 insertions, 0 deletions
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
@@ -54,6 +54,13 @@ 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
#########################################
sensor:modalias:acpi:BMA250*:dmi:*svn*WinBook*:*pn*TW100*