]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
quirks: Re-add D330 accel_matrix as identity one (#40226)
authorDavid SantamarĂ­a Rogado <howl.nsp@gmail.com>
Thu, 1 Jan 2026 18:52:56 +0000 (19:52 +0100)
committerGitHub <noreply@github.com>
Thu, 1 Jan 2026 18:52:56 +0000 (03:52 +0900)
When testing to correct accelerometer values I set locally the identity
matrix to override the quirk. The values were fine but removing all the
matrices give incorrect values.

The mistake was thinking that identity matrix is the default one when no
quirks are set. It is, but only when the ACPI doesn't have another one.

Set identity matrix for this device to correct accelerometer values.

Follow-up for a07b184e8ccbecafc1fce5a0cfffe87c6a497134.

hwdb.d/60-sensor.hwdb

index e1ca6af48ed63bbbb25eb7fd6e9d1aa794d9c56f..54182cb504988d5f020f040b0cf8f7cc9465f04b 100644 (file)
@@ -762,6 +762,11 @@ sensor:modalias:acpi:BMA250E*:dmi:bvnLENOVO:*:pvrLenovoMIIX3-1030:*
 sensor:modalias:acpi:SMO8500*:dmi:bvnLENOVO:*:pvrLenovoMIIX3-830:*
  ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
 
+# IdeaPad D330-10IGM (both 81H3 and 81MD product names)
+# ACPI in_mount_matrix is 0, -1, 0; 1, 0, 0; 0, 0, 1, but the correct one is identity matrix.
+sensor:modalias:acpi:BOSC0200*:dmi:*:svnLENOVO:*:pvrLenovoideapadD330-10IGM:*
+ ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 1, 0; 0, 0, 1
+
 # IdeaPad Miix 300
 sensor:modalias:acpi:SMO8500*:dmi:bvnLENOVO:*:pvrMIIX300-*:*
  ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1