From f769f9d095d6fee148e11b012241a3f9db3d0079 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 22 May 2021 16:22:36 +0200 Subject: [PATCH] hwdb: Add accel orientation quirk for the Lenovo Yoga 300-11IBR 2-in-1 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hwdb.d/60-sensor.hwdb b/hwdb.d/60-sensor.hwdb index d757555ce62..11f331d89a9 100644 --- a/hwdb.d/60-sensor.hwdb +++ b/hwdb.d/60-sensor.hwdb @@ -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 ######################################### -- 2.39.5