]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Asus TP300LJ accelerometer quirks (#5681)
authorwiertel <wiertel@users.sourceforge.net>
Mon, 3 Apr 2017 07:53:10 +0000 (09:53 +0200)
committerhadess <hadess@users.noreply.github.com>
Mon, 3 Apr 2017 07:53:10 +0000 (09:53 +0200)
iio-sensor-proxy expects the accelerometer oriented as follows:
positive x - to the right, positive y - up (opposite to gravity).
The hardware in the Asus TP300LJ-DW049H is however oriented
differently:
positive x - down, positive y - to the left
This commit adds a ACCEL_MOUNT_MATRIX quirk for this
particular laptop model.

hwdb/60-sensor.hwdb

index 454f4037615dc0926ef87321118f6ee3e2f12c93..2436ca73679c3f8fc3d42cf25a49ea86b549b334 100644 (file)
@@ -47,6 +47,9 @@
 sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP500LB*
  ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 0
 
+sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP300LJ*
+ ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
+
 #########################################
 # Endless
 #########################################