From: Hans de Goede Date: Sat, 14 Nov 2020 16:10:51 +0000 (+0100) Subject: hwdb: Fix accel orientation quirk Z-axis for Lenovo ThinkPad Yoga 11e 3th gen X-Git-Tag: v247~44^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21b58655f3bd029fa8fe04e02e1c3546f110c524;p=thirdparty%2Fsystemd.git hwdb: Fix accel orientation quirk Z-axis for Lenovo ThinkPad Yoga 11e 3th gen The Lenovo ThinkPad Yoga 11e 360 degree hinges style 2-in-1s use 2 accelerometers, 1 in the display and 1 in the base. Kernel work is under way to also export the second accelerometer in the base as an iio-device; and userspace work is underway to use both accelerometers on 360 degree hinges style 2-in-1s (with 2 accels) to figure out the angle between the 2 halves. So far most orientation-matrix quirks have not cared much about the Z-axis being correct, but in these 2 accelerometer setups getting the Z-axis correct is important too. --- diff --git a/hwdb.d/60-sensor.hwdb b/hwdb.d/60-sensor.hwdb index 4a5aeb0c96c..202fada5f9a 100644 --- a/hwdb.d/60-sensor.hwdb +++ b/hwdb.d/60-sensor.hwdb @@ -468,7 +468,7 @@ sensor:modalias:acpi:NCPE0388*:dmi:*:rnLenovoYOGA510-14IKB:* ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, 1 sensor:modalias:acpi:BOSC0200*:dmi:*ThinkPadYoga11e3rdGen:* - ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1 + ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, -1 # Miix3-1030 sensor:modalias:acpi:BMA250E*:dmi:bvnLENOVO:*:pvrLenovoMIIX3-1030:*