From: wiertel Date: Mon, 3 Apr 2017 07:53:10 +0000 (+0200) Subject: hwdb: Asus TP300LJ accelerometer quirks (#5681) X-Git-Tag: v234~336 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=40591b418327aa1579de9f10fd1c50f3927ecb33;p=thirdparty%2Fsystemd.git hwdb: Asus TP300LJ accelerometer quirks (#5681) 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. --- diff --git a/hwdb/60-sensor.hwdb b/hwdb/60-sensor.hwdb index 454f4037615..2436ca73679 100644 --- a/hwdb/60-sensor.hwdb +++ b/hwdb/60-sensor.hwdb @@ -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 #########################################