systemd/hwdb.d
Hans de Goede f813515542 hwdb: sensors: Fix some modalias matches no longer working with newer kernels
Kernels >= 5.8 have added new fields to the dmi/id/modalias file in the
middle of the modalias (instead of adding them at the end).

Specifically new ":br<value>:" and (optional) ":efr<value>:" fields have
been added between the ":bd<value>:" and ":svn<value>:" fields.

Note the 5.13.0 and 5.14.0 kernels also added a new ":sku<value>:" field
between the ":pvr<value>:" and ":rvn<value>:" fields, this has been fixed
in later 5.13.y and 5.14.y releases, by moving the sku field to the end:
https://lore.kernel.org/lkml/20210831130508.14511-1-hdegoede@redhat.com/

Unfortunately the same cannot be done for the new br and efr fields since
those have been added more then a year ago and hwdb even already has some
newer entries relying on the new br field being there (and thus not working
with older kernels).

Fix the issue with the br and efr fields through the following changes:

1. Replace any matches on ":br<value>" from newer entries with an '*'
2. Replace "bd<value>:svn<value>" matches with: "bd<value>:*svn<value>"
   inserting an '*' where newer kernels will have the new br + efr fields

This makes these matches working with old as well as new kernels.

Link: https://github.com/systemd/systemd/issues/20550
Link: https://github.com/systemd/systemd/pull/20562
2021-09-29 16:03:06 +02: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 hwdb: update 2021-06-25 14:23:15 +02:00
20-acpi-vendor.hwdb.patch hwdb: run ninja -C build update-hwdb update-hwdb-autosuspend 2021-07-07 10:35:53 +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 dmi-id database 2020-12-04 11:22:49 +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: run ninja -C build update-hwdb update-hwdb-autosuspend 2021-07-07 10:35:53 +01:00
20-pci-classes.hwdb hwdb: update for v247 2020-11-26 13:54:37 +01:00
20-pci-vendor-model.hwdb hwdb: run ninja -C build update-hwdb update-hwdb-autosuspend 2021-07-07 10:35:53 +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: run ninja -C build update-hwdb update-hwdb-autosuspend 2021-07-07 10:35:53 +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: update fingerprint autosuspend rules 2021-09-21 20:28:10 +02:00
60-autosuspend.hwdb hwdb: Permit unsetting power/persist for USB devices 2021-09-21 20:28:10 +02:00
60-evdev.hwdb hwdb: add touchpad fuzz for Asus UX362FA (#20770) 2021-09-20 14:00:42 +10:00
60-input-id.hwdb hwdb: Force no "mouse" type on Logitech MX Keys 2021-01-08 10:32:40 +01:00
60-keyboard.hwdb Fix volume control keys for LG Gram (#20644) 2021-09-06 16:55:11 +02: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: sensors: Fix some modalias matches no longer working with newer kernels 2021-09-29 16:03:06 +02:00
70-analyzers.hwdb hwdb: Allow end-users root-less access to USB analyzers 2021-09-02 16:01:28 +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 Add Logitech USB-PS/2 M-BT96A to hwdb 2021-09-22 11:36:43 +01:00
70-pointingstick.hwdb hwdb: add a generic rule for trackpoints (#20543) 2021-08-30 18:30:42 +10: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: correct entries for eAR Master One and Terratec Aureon 7.1 FireWire 2021-08-08 08:37:46 +09:00
acpi-update.py Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
acpi_id_registry.html hwbd: run "ninja -C build update-hwdb" again 2021-06-15 21:59:44 +02:00
ids_parser.py Rename udev's hwdb/ to hwdb.d/ 2019-10-10 00:53:09 +01:00
ma-large.txt hwdb: run ninja -C build update-hwdb update-hwdb-autosuspend 2021-07-07 10:35:53 +01:00
ma-medium.txt hwdb: run ninja -C build update-hwdb update-hwdb-autosuspend 2021-07-07 10:35:53 +01:00
ma-small.txt hwdb: run ninja -C build update-hwdb update-hwdb-autosuspend 2021-07-07 10:35:53 +01:00
meson.build hwdb: Allow end-users root-less access to USB analyzers 2021-09-02 16:01:28 +02:00
parse_hwdb.py hwdb: Permit unsetting power/persist for USB devices 2021-09-21 20:28:10 +02:00
pci.ids hwdb: run ninja -C build update-hwdb update-hwdb-autosuspend 2021-07-07 10:35:53 +01:00
pnp_id_registry.html hwdb: update 2021-06-25 14:23:15 +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: run ninja -C build update-hwdb update-hwdb-autosuspend 2021-07-07 10:35:53 +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.