diff options
author | Hans de Goede <hdegoede@redhat.com> | 2021-07-01 15:28:25 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-07-01 17:16:41 +0200 |
commit | 37923b3d4824279658d50fb6c7052560ff47674e (patch) | |
tree | 4a00f14c4fac137a5668f43c6999f07ffe30d89a | |
parent | 4b6bc397b454f79006481c1e8507d85c5bfd2e9a (diff) | |
download | systemd-37923b3d4824279658d50fb6c7052560ff47674e.tar.gz |
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)
-rw-r--r-- | hwdb.d/60-sensor.hwdb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hwdb.d/60-sensor.hwdb b/hwdb.d/60-sensor.hwdb index bde00499d4..f1744b8d78 100644 --- a/hwdb.d/60-sensor.hwdb +++ b/hwdb.d/60-sensor.hwdb @@ -216,6 +216,12 @@ sensor:modalias:acpi:BOSC0200*:dmi:*:svnHampoo:pnE4D6_HI-122LP:* sensor:modalias:acpi:KIOX000A*:dmi:*:svnChuwi*:pnHi13:* ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1 +# Chuwi Hi13 (CWI534) with BMA250 sensor +# Note this sets the norm matrix, since the matrix which the kernel reads +# from the ACPI tables is actually wrong on these models +sensor:modalias:acpi:BOSC0200*:dmi:*:svnChuwi*:pnHi13:* + ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 1, 0; 0, 0, 1 + # Chuwi HiBook # Chuwi HiBook does not have its product name filled, so we # match the entire dmi-alias, assuming that the use of a BOSC0200 + |