diff options
author | Mario Hros <spam@k3a.me> | 2018-07-23 13:56:09 +0200 |
---|---|---|
committer | hadess <hadess@users.noreply.github.com> | 2018-07-25 20:37:44 +0200 |
commit | 505707490a201c27121dbeb27101fe0c9b5f9664 (patch) | |
tree | a3c6af9eaa457667a0b11ce893d95d93165a17da /hwdb | |
parent | d68c0833eac6d46a3ed83f0ba7a049fe24291226 (diff) | |
download | systemd-505707490a201c27121dbeb27101fe0c9b5f9664.tar.gz |
hwdb: Add information on where to find identifiers
Diffstat (limited to 'hwdb')
-rw-r--r-- | hwdb/60-sensor.hwdb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hwdb/60-sensor.hwdb b/hwdb/60-sensor.hwdb index 4b165537a7..5837cd1864 100644 --- a/hwdb/60-sensor.hwdb +++ b/hwdb/60-sensor.hwdb @@ -11,6 +11,17 @@ # 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): |