]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: sensor: add accel mount matrix for GPD WIN 5
authorfecet <xiezej@gmail.com>
Sat, 25 Apr 2026 06:48:19 +0000 (14:48 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 25 Apr 2026 09:29:15 +0000 (10:29 +0100)
The WIN 5 (DMI product G1618-05) ships the same BMI0160
accelerometer with the same physical mounting as the Win Max 2
(G1619-04), so reuse its mount matrix. Verified on hardware:
without the matrix iio-sensor-proxy reports
AccelerometerOrientation=normal regardless of physical pose,
and applying the G1619-04 matrix makes orientation transitions
(normal / left-up / right-up / bottom-up) track the device
correctly.

hwdb.d/60-sensor.hwdb

index 76f727573dadf061fbd72079bd2dd0b61298c3ad..a3f243a660861694ff9670257bcd017c4d19d599 100644 (file)
@@ -515,6 +515,7 @@ sensor:modalias:acpi:KIOX000A:*:dmi:bvnAmericanMegatrendsInc.:bvr5.11:bd03/20/20
 sensor:modalias:acpi:KIOX000A:*:dmi:bvnAmericanMegatrendsInc.:bvr5.11:bd05/25/2017:*:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnAMICorporation:rnDefaultstring:rvrDefaultstring:cvnDefaultstring:ct3:cvrDefaultstring:*
  ACCEL_LOCATION=base
 
+sensor:modalias:acpi:BMI0160:*:dmi:*:svnGPD:pnG1618-05:*    # WIN 5
 sensor:modalias:acpi:BMI0160:*:dmi:*:svnGPD:pnG1619-04:*    # Win Max 2
  ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1