]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Add information on where to find identifiers
authorMario Hros <spam@k3a.me>
Mon, 23 Jul 2018 11:56:09 +0000 (13:56 +0200)
committerhadess <hadess@users.noreply.github.com>
Wed, 25 Jul 2018 18:37:44 +0000 (20:37 +0200)
hwdb/60-sensor.hwdb

index 4b165537a7ae14757555adefd6fa27e458ef2d39..5837cd18647273daa1a61e82fb6982f4f39dbd07 100644 (file)
 # Match string formats:
 # sensor:modalias:<parent device modalias>:dmi:<dmi string>
 #
+# The device modalias can be seen in the `modalias` file 
+# of the sensor parent, for example:
+# cat /sys/`udevadm info -q path -n /dev/iio:device0`/../modalias
+#
+# The full DMI string of the running machine can be read from
+#   /sys/class/dmi/id/modalias
+# That requires a kernel built with CONFIG_DMIID set, which is common.
+# The full DMI string is not needed here and the meaning of individual parts
+# can be seen in the source of the DMIID kernel module
+#   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/firmware/dmi-id.c
+#
 # To add local entries, create a new file
 #   /etc/udev/hwdb.d/61-sensor-local.hwdb
 # and add your rules there. To load the new rules execute (as root):