From: David SantamarĂ­a Rogado Date: Thu, 1 Jan 2026 18:52:56 +0000 (+0100) Subject: quirks: Re-add D330 accel_matrix as identity one (#40226) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11adc8bad52b8860efe2c26b69f080707a69a748;p=thirdparty%2Fsystemd.git quirks: Re-add D330 accel_matrix as identity one (#40226) 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. --- diff --git a/hwdb.d/60-sensor.hwdb b/hwdb.d/60-sensor.hwdb index e1ca6af48ed..54182cb5049 100644 --- a/hwdb.d/60-sensor.hwdb +++ b/hwdb.d/60-sensor.hwdb @@ -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