From c399daf5670cdefe5a33d26dfb18fb373ff15779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Santamar=C3=ADa=20Rogado?= Date: Thu, 5 Feb 2026 16:08:22 +0100 Subject: [PATCH 1/3] hwdb: sensor: correct D330 respecting panel mount The matrix before was setting accel values to follow normal device orientation, but the accel values must match the panel orientation that in these devices is 90 degrees CCW. Indicate how the panel is mounted in the comment. Could be interesting to do it also for other devices because when desktop enviroments do it right the user could be unaware of the panel mounting and could think monitor-sensor output is bogus. --- hwdb.d/60-sensor.hwdb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hwdb.d/60-sensor.hwdb b/hwdb.d/60-sensor.hwdb index d29c08a5f1..6ba23ef2a6 100644 --- a/hwdb.d/60-sensor.hwdb +++ b/hwdb.d/60-sensor.hwdb @@ -763,10 +763,10 @@ 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. +# IdeaPad D330-10IGM (81H3) and (81MD) product names +# Panel mounted at -90º. ACPI in_mount_matrix 0, -1, 0; 1, 0, 0; 0, 0, 1 sensor:modalias:acpi:BOSC0200*:dmi:*:svnLENOVO:*:pvrLenovoideapadD330-10IGM:* - ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 1, 0; 0, 0, 1 + ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1 # IdeaPad Miix 300 sensor:modalias:acpi:SMO8500*:dmi:bvnLENOVO:*:pvrMIIX300-*:* From f952bc5551f209c3cf0c1fa81ff19eb5a2758b2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Santamar=C3=ADa=20Rogado?= Date: Thu, 5 Feb 2026 17:59:54 +0100 Subject: [PATCH 2/3] hwdb: sensor: recover Duet 3 10IGL5 normal and LTE The mount matrix was as intended, normal is when the device is in panel orientation, not in device orientation. --- hwdb.d/60-sensor.hwdb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hwdb.d/60-sensor.hwdb b/hwdb.d/60-sensor.hwdb index 6ba23ef2a6..a7d2e1f662 100644 --- a/hwdb.d/60-sensor.hwdb +++ b/hwdb.d/60-sensor.hwdb @@ -765,7 +765,10 @@ sensor:modalias:acpi:SMO8500*:dmi:bvnLENOVO:*:pvrLenovoMIIX3-830:* # IdeaPad D330-10IGM (81H3) and (81MD) product names # Panel mounted at -90º. ACPI in_mount_matrix 0, -1, 0; 1, 0, 0; 0, 0, 1 +# IdeaPad Duet 3 10IGL5 (82AT) and 10IGL5-LTE (82HK) +# Panel mounted at -90º. ACPI in_mount_matrix unknown, if someone knows please report it sensor:modalias:acpi:BOSC0200*:dmi:*:svnLENOVO:*:pvrLenovoideapadD330-10IGM:* +sensor:modalias:acpi:SMO8B30*:dmi:*:svnLENOVO:*:pvrIdeaPadDuet310IGL5*:* ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1 # IdeaPad Miix 300 From b3786e0296bcab9f1a66ae468187f65edc8b6247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Santamar=C3=ADa=20Rogado?= Date: Thu, 5 Feb 2026 18:06:39 +0100 Subject: [PATCH 3/3] hwdb: sensor: remove Asus T101HA and T101HAF T101HA reports corect values in monitor-sensor when no mount matrix is defined and was added to correct KDE display output. T101HAF original bug report stated that it corrects the display in KDE so indeed this is wrong. --- hwdb.d/60-sensor.hwdb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hwdb.d/60-sensor.hwdb b/hwdb.d/60-sensor.hwdb index a7d2e1f662..45c7c41c1b 100644 --- a/hwdb.d/60-sensor.hwdb +++ b/hwdb.d/60-sensor.hwdb @@ -160,11 +160,6 @@ sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnT100TAS:* sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:pnT200TA:* ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1 -# Asus Transformer Mini T101HA & T103HAF -sensor:modalias:platform:HID-SENSOR-200073*:dmi:*svn*ASUSTeK*:pnT101HA:* -sensor:modalias:platform:HID-SENSOR-200073*:dmi:*svn*ASUSTeK*:pnT103HAF:* - ACCEL_MOUNT_MATRIX=0, -1, 0; 1, 0, 0; 0, 0, -1 - sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnTP201SA:* sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:pn*E205SA:* ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1