]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Add accelerometer matrix for OneXPlayer Super X
authorAlexander Egorov <begeebe@gmail.com>
Mon, 27 Jul 2026 19:47:03 +0000 (22:47 +0300)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 28 Jul 2026 01:14:57 +0000 (10:14 +0900)
The BMI260 accelerometer in the OneXPlayer Super X is exposed through
the ACPI BMI0160 ID. Its X and Y axes do not match the built-in display
axes, and no firmware mount matrix is provided.

Add an exact vendor and product DMI match with the matrix verified on
the hardware. The matrix keeps the native landscape position normal and
maps both portrait rotations to the corresponding display orientation.

Tested with iio-sensor-proxy 3.8 and Mutter 49.7 in all display
orientations. The compiled hwdb entry also matches the complete modalias
reported by the device.

Development of this patch used assistance from ChatGPT 5.6 sol.

hwdb.d/60-sensor.hwdb

index 7b57c18748efa21f400caba152af8b3127dd2b80..8d6e5213ebae7d92f66aaae030f7c1df50b7465c 100644 (file)
@@ -876,6 +876,10 @@ sensor:modalias:acpi:BOSC0200:*:dmi:bvnAmericanMegatrendsInc.:bvr5.12:bd07/17/20
 sensor:modalias:acpi:BMI0160:*:dmi:*:rnONEXPLAYER:rvrV01:*
  ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, -1
 
+# One-Netbook OneXPlayer Super X
+sensor:modalias:acpi:BMI0160:*:dmi:*:svnONE-NETBOOK:pnONEXPLAYERSUPERX:*
+ ACCEL_MOUNT_MATRIX=0, -1, 0; 1, 0, 0; 0, 0, 1
+
 #########################################
 # OrangePi
 #########################################