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] 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-*:*