mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
9f366b943d
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 |
||
---|---|---|
.. | ||
20-acpi-vendor.hwdb | ||
20-bluetooth-vendor-product.hwdb | ||
20-dmi-id.hwdb | ||
20-net-ifname.hwdb | ||
20-OUI.hwdb | ||
20-pci-classes.hwdb | ||
20-pci-vendor-model.hwdb | ||
20-sdio-classes.hwdb | ||
20-sdio-vendor-model.hwdb | ||
20-usb-classes.hwdb | ||
20-usb-vendor-model.hwdb | ||
20-vmbus-class.hwdb | ||
60-autosuspend-fingerprint-reader.hwdb | ||
60-autosuspend.hwdb | ||
60-evdev.hwdb | ||
60-input-id.hwdb | ||
60-keyboard.hwdb | ||
60-seat.hwdb | ||
60-sensor.hwdb | ||
70-analyzers.hwdb | ||
70-av-production.hwdb | ||
70-cameras.hwdb | ||
70-joystick.hwdb | ||
70-mouse.hwdb | ||
70-pda.hwdb | ||
70-pointingstick.hwdb | ||
70-touchpad.hwdb | ||
80-ieee1394-unit-function.hwdb | ||
Makefile.am | ||
pci.ids | ||
sdio.ids | ||
usb.ids |