systemd/hwdb.d
Alper Nebi Yasak fea267f8c7 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.
2022-08-18 21:17:19 +03:00
..
.gitattributes Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
.gitignore Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
20-acpi-vendor.hwdb hwbd: run "update-hwdb" for v251-rc2 2022-04-28 17:42:25 +02:00
20-acpi-vendor.hwdb.patch hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
20-bluetooth-vendor-product.hwdb hwdb: Update database of Bluetooth company identifiers 2020-04-05 10:01:14 +02:00
20-dmi-id.hwdb hwdb: Add Microsoft Surface Pro 1 chassis quirk 2022-01-21 21:59:09 +01:00
20-net-ifname.hwdb Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
20-OUI.hwdb hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
20-pci-classes.hwdb hwdb: update for v251 2022-03-29 18:15:06 +02:00
20-pci-vendor-model.hwdb hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
20-sdio-classes.hwdb Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
20-sdio-vendor-model.hwdb Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
20-usb-classes.hwdb Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
20-usb-vendor-model.hwdb hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
20-vmbus-class.hwdb Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
60-autosuspend-fingerprint-reader.hwdb hwdb: run "ninja update-hwdb-autosuspend" for v251-rc2 2022-04-28 17:43:27 +02:00
60-autosuspend.hwdb tree-wide: link to docs.kernel.org for kernel documentation 2022-07-04 19:56:53 +02:00
60-evdev.hwdb hwdb: add touchpad parameters for Lenovo T15g Gen1 (#23373) 2022-05-15 06:39:02 +09:00
60-input-id.hwdb hwdb: drop boilerplate about match patterns being unstable 2022-04-06 23:16:39 +09:00
60-keyboard.hwdb hwdb: Add Acer Aspire A317-33 (#24050) 2022-07-18 15:03:44 +09:00
60-seat.hwdb login: use a hwdb entry for tagging Parallels' fb devices with 'master-of-seat' tag 2021-07-05 11:56:10 +02:00
60-sensor.hwdb hwdb: Add Chromebook accel orientation quirks based on sysfs label 2022-08-18 21:17:19 +03:00
70-analyzers.hwdb hwdb: Add Greaseweazle "drives" to the list of analyzers 2022-08-09 18:12:19 +02:00
70-av-production.hwdb hwdb: Add AV production access to Elgado Stream Deck devices 2022-03-14 14:49:04 -03:00
70-cameras.hwdb hwdb: Tag IR cameras as such 2021-10-27 00:14:41 +02:00
70-joystick.hwdb Partially revert "hwdb: reindent commments and say that "*" should always be trailing" 2020-11-03 15:02:52 +01:00
70-mouse.hwdb hwdb: drop boilerplate about match patterns being unstable 2022-04-06 23:16:39 +09:00
70-pda.hwdb hwdb: add HP calculators 2022-02-04 11:01:20 +09:00
70-pointingstick.hwdb hwdb: drop boilerplate about match patterns being unstable 2022-04-06 23:16:39 +09:00
70-touchpad.hwdb Partially revert "hwdb: reindent commments and say that "*" should always be trailing" 2020-11-03 15:02:52 +01:00
80-ieee1394-unit-function.hwdb hwdb: ieee1394-unit-function: add entry for MOTU Track 16 2021-11-16 16:54:33 +01:00
acpi-update.py licensing: add two missing spdx headers 2021-10-18 09:04:45 +02:00
acpi_id_registry.html hwbd: run "update-hwdb" for v251-rc2 2022-04-28 17:42:25 +02:00
ids_parser.py hwdb: make sure "ninja update-hwdb" works on f35 2022-04-28 17:42:25 +02:00
ma-large.txt hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
ma-medium.txt hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
ma-small.txt hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
meson.build meson: Use meson test suite feature 2022-05-04 16:11:34 +02:00
parse_hwdb.py udev: hwdb: Match iio sensors based on their label 2022-08-18 21:17:19 +03:00
pci.ids hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00
pnp_id_registry.html hwbd: run "update-hwdb" for v251-rc2 2022-04-28 17:42:25 +02:00
README Add READMEs in all .d directories 2021-03-26 09:35:07 +01:00
sdio.ids Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
usb.ids hwdb: update via ninja -C build update-hwdb 2022-05-21 12:44:36 +01:00

Files in this directory specify a description of hardware devices, in the form
of mappings from modalias-like keys (which identify specific hardware devices)
to udev properties.

Files in this directory are not read by udev directly. Instead,
man:systemd-hwdb(8) compiles them into a binary database.

See man:hwdb(7) for an overview of the configuration file format, and
man:systemd-udevd.service(8) for a description of the udev daemon.

Use 'systemd-analyze cat-config udev/hwdb.d' to display the effective config.