From 250f600ebb65e6a2d8e9f6e091df653d37ecf905 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 22 Dec 2016 19:20:02 +1000 Subject: hwdb: clarify where to find the modalias and vid/pid information (#4952) Fixes #4938 --- hwdb/60-keyboard.hwdb | 6 ++++-- hwdb/70-pointingstick.hwdb | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hwdb/60-keyboard.hwdb b/hwdb/60-keyboard.hwdb index fff3b9a6ea..114d9c6651 100644 --- a/hwdb/60-keyboard.hwdb +++ b/hwdb/60-keyboard.hwdb @@ -18,17 +18,19 @@ # ZZZZ is the bus-id (see /usr/include/linux/input.h BUS_*), YYYY, XXXX and # WWW are the 4-digit hex uppercase vendor, product and version ID and VVVV # is an arbitrary length input-modalias describing the device capabilities. +# The vendor, product and version ID for a device node "eventX" is listed +# in /sys/class/input/eventX/device/id. # # - AT keyboard DMI data matches: # evdev:atkbd:dmi:bvn*:bvr*:bd*:svn:pn:pvr* # and are the firmware-provided strings -# exported by the kernel DMI modalias. +# exported by the kernel DMI modalias, see /sys/class/dmi/id/modalias # # - Input driver device name and DMI data match: # evdev:name::dmi:bvn*:bvr*:bd*:svn:pn* # is the name device specified by the # driver, is the firmware-provided string exported -# by the kernel DMI modalias. +# by the kernel DMI modalias, see /sys/class/dmi/id/modalias # # Scan codes are specified as: # KEYBOARD_KEY_= diff --git a/hwdb/70-pointingstick.hwdb b/hwdb/70-pointingstick.hwdb index 117f99455c..fa23563192 100644 --- a/hwdb/70-pointingstick.hwdb +++ b/hwdb/70-pointingstick.hwdb @@ -18,11 +18,14 @@ # ZZZZ is the bus-id (see /usr/include/linux/input.h BUS_*), YYYY, XXXX and # WWW are the 4-digit hex uppercase vendor, product and version ID and VVVV # is an arbitrary length input-modalias describing the device capabilities. +# The vendor, product and version ID for a device node "eventX" is listed +# in /sys/class/input/eventX/device/id. # # - Input driver device name and DMI data match: # evdev:name::dmi:bvn*:bvr*:bd*:svn:pn* # is the name device specified by the driver, -# is the firmware-provided string from the kernel DMI modalias. +# is the firmware-provided string from the kernel DMI modalias, +# see /sys/class/dmi/id/modalias # # To add local entries, create a new file # /etc/udev/hwdb.d/71-pointingstick-local.hwdb -- cgit v1.2.3-54-g00ecf