]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Add accel orientation quirk for the Lenovo Yoga 300-11IBR 2-in-1 19697/head
authorHans de Goede <hdegoede@redhat.com>
Sat, 22 May 2021 14:22:36 +0000 (16:22 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sat, 22 May 2021 14:22:36 +0000 (16:22 +0200)
Add a quirk for the accelerometer orientation and location for the
2 accelerometers inside the Lenovo Yoga 300-11IBR 2-in-1.

hwdb.d/60-sensor.hwdb

index d757555ce626feb6d146525546176a3d3e300b9f..11f331d89a9553a2a72f576fe3706c1c9ab4d9a0 100644 (file)
@@ -537,6 +537,16 @@ sensor:modalias:acpi:*BOSC0200*:dmi:*:svnLENOVO*:pn80XE:*
 sensor:modalias:acpi:*BOSC0200*:dmi:*:svnLENOVO*:pn80U1:*
  ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
 
+# Yoga 300-11IBR, display sensor
+sensor:modalias:acpi:DUAL250E*:dmi:*:svnLENOVO:*:pvrLenovoYoga300-11IBR:*
+ ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
+ ACCEL_LOCATION=display
+
+# Yoga 300-11IBR, base sensor
+sensor:modalias:i2c:bmc150_accel:dmi:*:svnLENOVO:*:pvrLenovoYoga300-11IBR:*
+ ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 1, 0; 0, 0, -1
+ ACCEL_LOCATION=base
+
 #########################################
 # LINX
 #########################################