From 7b04c7af10da5c1eaf66f3306584a43f43402750 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Tue, 20 Aug 2019 22:55:20 +0200 Subject: hwdb: Add accel location quirk for the GPD win The acceleromater in the GPD win is in the base, mark it as such so that iio-sensor-proxy does not try to use it for display rotation. Note as mentioned in the added comment the DMI strings are unfortunately somewhat generic, but the combination of using all DMI strings including the BIOS build data + the sensor modalias should be unique enough. --- hwdb/60-sensor.hwdb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/hwdb/60-sensor.hwdb b/hwdb/60-sensor.hwdb index c2ac8dab24..e03e620671 100644 --- a/hwdb/60-sensor.hwdb +++ b/hwdb/60-sensor.hwdb @@ -258,6 +258,26 @@ sensor:modalias:acpi:KIOX000A*:dmi:*:svnEVE*:pnEveV:* sensor:modalias:acpi:KIOX000A*:dmi:bvnINSYDECorp.:bvrBYT70A.YNCHENG.WIN.007:*:svnInsyde:pnT701:* ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1 +######################################### +# GPD +######################################### + +# GPD win (version 1, with the X5-Z8750 CPU) +# Note we match all dmi fields including the BIOS date checking for all known +# BIOS dates, since the strings are unfortunately very generic. +# Out of a sample set of 15 similar boards only the GPDwin has board_vendor=AMI +# and no other devices have both board_name *and* product_name set to +# "Default string". So combined with the sensor modalias and BIOS date this +# should be unique enough to identify the GPDwin +sensor:modalias:acpi:KIOX000A*:dmi:bvnAmericanMegatrendsInc.:bvr5.11:bd10/25/2016:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnAMICorporation:rnDefaultstring:rvrDefaultstring:cvnDefaultstring:ct3:cvrDefaultstring: +sensor:modalias:acpi:KIOX000A*:dmi:bvnAmericanMegatrendsInc.:bvr5.11:bd11/18/2016:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnAMICorporation:rnDefaultstring:rvrDefaultstring:cvnDefaultstring:ct3:cvrDefaultstring: +sensor:modalias:acpi:KIOX000A*:dmi:bvnAmericanMegatrendsInc.:bvr5.11:bd12/23/2016:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnAMICorporation:rnDefaultstring:rvrDefaultstring:cvnDefaultstring:ct3:cvrDefaultstring: +sensor:modalias:acpi:KIOX000A*:dmi:bvnAmericanMegatrendsInc.:bvr5.11:bd12/26/2016:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnAMICorporation:rnDefaultstring:rvrDefaultstring:cvnDefaultstring:ct3:cvrDefaultstring: +sensor:modalias:acpi:KIOX000A*:dmi:bvnAmericanMegatrendsInc.:bvr5.11:bd02/21/2017:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnAMICorporation:rnDefaultstring:rvrDefaultstring:cvnDefaultstring:ct3:cvrDefaultstring: +sensor:modalias:acpi:KIOX000A*:dmi:bvnAmericanMegatrendsInc.:bvr5.11:bd03/20/2017:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnAMICorporation:rnDefaultstring:rvrDefaultstring:cvnDefaultstring:ct3:cvrDefaultstring: +sensor:modalias:acpi:KIOX000A*:dmi:bvnAmericanMegatrendsInc.:bvr5.11:bd05/25/2017:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnAMICorporation:rnDefaultstring:rvrDefaultstring:cvnDefaultstring:ct3:cvrDefaultstring: + ACCEL_LOCATION=base + ######################################### # HP ######################################### -- cgit v1.2.1 From 38c865648d4357a733cf502e464f6de0679d58ef Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sun, 25 Aug 2019 20:34:34 +0200 Subject: hwdb: Add accel. mount matrix and location for the Trekstor Primebook C11B The Trekstor Primebook C11B 2-in-1 has 2 accelerometers. Add mount-matrix and location info for both to 60-sensor.hwdb. --- hwdb/60-sensor.hwdb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hwdb/60-sensor.hwdb b/hwdb/60-sensor.hwdb index e03e620671..0b440f4044 100644 --- a/hwdb/60-sensor.hwdb +++ b/hwdb/60-sensor.hwdb @@ -552,6 +552,14 @@ sensor:modalias:acpi:KIOX000A*:dmi:*:svnTREKSTOR:pnPrimetabT13B:* sensor:modalias:acpi:BOSC0200*:dmi:*:svnTrekStor*:pnSurfTabtwin11.6:* ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1 +sensor:modalias:acpi:KIOX010A*:dmi:*:svnTREKSTOR:pnPRIMEBOOKC11B:* + ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, -1 + ACCEL_LOCATION=display + +sensor:modalias:acpi:KIOX020A*:dmi:*:svnTREKSTOR:pnPRIMEBOOKC11B:* + ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1 + ACCEL_LOCATION=base + ######################################### # Umax ######################################### -- cgit v1.2.1