mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
hwdb: Apply existing accel orientation quirk to all Chromebooks
The cros-ec-accel and cros-ec-accel-legacy kernel modules internally correct for the board-specific accelerometer mounting orientations. Their sensor outputs are in a standard reference frame consistent across different boards, so the orientation matrix already added for a number of devices should apply to every device using cros-ec accelerometers. The different matrix for the 'Nocturne' board seems to be an error. Replace the existing hwdb rules for select Chromebooks with generic rules that apply to all Chromebooks.
This commit is contained in:
parent
d277530616
commit
1800f7098a
|
@ -406,27 +406,13 @@ sensor:modalias:acpi:KXCJ9000*:dmi:*:bvrZY-8-BI-PX4S70VTR400-X423B-005-D:*:rvnAM
|
||||||
#########################################
|
#########################################
|
||||||
# Google Chromebooks
|
# Google Chromebooks
|
||||||
#########################################
|
#########################################
|
||||||
sensor:modalias:platform:cros-ec-accel:dmi:*:svnGOOGLE:*
|
|
||||||
|
# CrOS EC & kernel drivers internally correct for per-board sensor orientations,
|
||||||
|
# but they return values in the inverse direction (Android & W3C specs vs HID).
|
||||||
|
sensor:modalias:platform:cros-ec-accel:*
|
||||||
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, -1
|
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, -1
|
||||||
|
|
||||||
# caroline board (Samsung Chromebook Pro) reports itself as svnGoogle
|
sensor:modalias:platform:cros-ec-accel-legacy:*
|
||||||
sensor:modalias:platform:cros-ec-accel:dmi:*:svnGoogle:pnCaroline*:*
|
|
||||||
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, -1
|
|
||||||
|
|
||||||
# Dell Inspiron Chromebook 14 2-in-1
|
|
||||||
sensor:modalias:platform:cros-ec-accel:dmi:*svnGoogle:pnVayne*:*
|
|
||||||
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, -1
|
|
||||||
|
|
||||||
# nocturne board (Google Pixel Slate)
|
|
||||||
sensor:modalias:platform:cros-ec-accel:dmi:*Google_Nocturne*:*
|
|
||||||
ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
|
|
||||||
|
|
||||||
# rammus board (Asus Chromebook Flip C433)
|
|
||||||
sensor:modalias:platform:cros-ec-accel:dmi:*svnGoogle:pnRammus*:*
|
|
||||||
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, -1
|
|
||||||
|
|
||||||
# Lenovo ThinkPad C13 Yoga
|
|
||||||
sensor:modalias:platform:cros-ec-accel:dmi:*svnGoogle:pnMorphius*:*
|
|
||||||
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, -1
|
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, -1
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
|
|
Loading…
Reference in a new issue