mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
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)
This commit is contained in:
parent
4b6bc397b4
commit
37923b3d48
@ -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 +
|
||||
|
Loading…
Reference in New Issue
Block a user