eudev/hwdb
Boian Bonev 9f366b943d
hwdb: Add Chromebook accel orientation quirks based on sysfs label
The base-mounted accelerometer on Chromebooks return values same as the
display when the lid angle is 180 degrees, instead of when the lid is
closed. To match userspace expectations we must further rotate the
existing accelerometer mounting matrix by 180 degrees around the X axis:

    [[-1,  0,  0],    [[ 1,  0,  0],    [[-1,  0,  0],
     [ 0, -1,  0],  X  [ 0, -1,  0],  =  [ 0,  1,  0],
     [ 0,  0, -1]]     [ 0,  0, -1]]     [ 0,  0,  1]]

A previous commit lets us distinguish between the two cros-ec-accel
devices on these boards by their 'label' sysfs file. Add hwdb entries
that make base-mounted accelerometers use this correct matrix, and
display-mounted ones use the existing one.

Note that the cros-ec-accel drivers use 'label' only since Linux v6.0.
The old match strings are not removed to support older kernels, even
though they are only correct for the display-mounted sensor.

systemd-commit fea267f8c71d0edffee5ccbb806755fb626c5e29
Author: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Date:   Thu Aug 18 18:24:05 2022 +0300
2022-09-22 01:28:34 +03:00
..
20-acpi-vendor.hwdb Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
20-bluetooth-vendor-product.hwdb hwdb: sync with systemd/main 2021-12-01 21:21:46 +01:00
20-dmi-id.hwdb Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
20-net-ifname.hwdb rules: import 20-net-ifname.hwdb from upstream. 2015-07-20 08:20:16 -04:00
20-OUI.hwdb Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
20-pci-classes.hwdb Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
20-pci-vendor-model.hwdb Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
20-sdio-classes.hwdb hwdb: sync with systemd/hwdb.d 2019-10-26 16:10:55 -04:00
20-sdio-vendor-model.hwdb hwdb: sync with systemd/hwdb.d 2019-10-26 16:10:55 -04:00
20-usb-classes.hwdb hwdb: update 2014-07-05 07:44:53 -04:00
20-usb-vendor-model.hwdb Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
20-vmbus-class.hwdb hwdb: sync with systemd/hwdb 2018-09-17 19:06:57 -04:00
60-autosuspend-fingerprint-reader.hwdb Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
60-autosuspend.hwdb hwdb: sync with systemd/main 2021-12-01 21:21:46 +01:00
60-evdev.hwdb Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
60-input-id.hwdb Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
60-keyboard.hwdb Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
60-seat.hwdb hwdb: sync with systemd/main 2021-12-01 21:21:46 +01:00
60-sensor.hwdb hwdb: Add Chromebook accel orientation quirks based on sysfs label 2022-09-22 01:28:34 +03:00
70-analyzers.hwdb Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
70-av-production.hwdb Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
70-cameras.hwdb hwdb: sync with systemd/main 2021-12-01 21:21:46 +01:00
70-joystick.hwdb hwdb: update 2018-02-20 07:36:26 -05:00
70-mouse.hwdb Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
70-pda.hwdb Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
70-pointingstick.hwdb hwdb: sync with systemd/main 2021-12-01 21:21:46 +01:00
70-touchpad.hwdb hwdb: sync with systemd/hwdb.d 2019-10-26 16:10:55 -04:00
80-ieee1394-unit-function.hwdb hwdb: sync with systemd/main 2021-12-01 21:21:46 +01:00
Makefile.am Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
pci.ids Merge hwdb from systemd 2022-05-26 11:18:11 +03:00
sdio.ids hwdb: sync with systemd/main 2021-12-01 21:21:46 +01:00
usb.ids Merge hwdb from systemd 2022-05-26 11:18:11 +03:00