From: David Santamaría Rogado Date: Thu, 5 Feb 2026 15:08:22 +0000 (+0100) Subject: hwdb: sensor: correct D330 respecting panel mount X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c399daf5670cdefe5a33d26dfb18fb373ff15779;p=thirdparty%2Fsystemd.git 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. --- diff --git a/hwdb.d/60-sensor.hwdb b/hwdb.d/60-sensor.hwdb index d29c08a5f10..6ba23ef2a65 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-*:*