]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Fix accel orientation quirk Z-axis for Lenovo ThinkPad Yoga 11e 3th gen
authorHans de Goede <hdegoede@redhat.com>
Sat, 14 Nov 2020 16:10:51 +0000 (17:10 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 18 Nov 2020 20:23:35 +0000 (21:23 +0100)
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.

hwdb.d/60-sensor.hwdb

index 4a5aeb0c96ccca45c838b210d75eb6fe717b8654..202fada5f9a578f9b9467ecdb9d6e3aa38ac262c 100644 (file)
@@ -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:*