hwdb: Add accel orientation quirk for the Chuwi Hi13 (CWI534) with BMA250 sensor
authorHans de Goede <hdegoede@redhat.com>
Thu, 1 Jul 2021 13:28:25 +0000 (15:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Jul 2021 15:16:41 +0000 (17:16 +0200)
commit37923b3d4824279658d50fb6c7052560ff47674e
tree4a00f14c4fac137a5668f43c6999f07ffe30d89a
parent4b6bc397b454f79006481c1e8507d85c5bfd2e9a
hwdb: Add accel orientation quirk for the Chuwi Hi13 (CWI534) with BMA250 sensor

Recently the kernel has gotten support for reading the mount-matrix for
BMA250 sensors represented by a BOSC0200 ACPI device from the ACPI tables,
so that we don't need to add quirks for these.

At least that was the theory. The Chuwi Hi13 (CWI534) with BMA250 sensor
has the sensor mounted such that it works / needs the normal(ized) matrix,
but the ACPI tables actually contain a wrong matrix inverting the X and Y
axis.

Add a quirk to override /sys/bus/iio/devices/iio:device?/in_mount_matrix
with the norm-matrix, since the ACPI derived matrix is actually wrong on
these devices (sigh)
hwdb.d/60-sensor.hwdb