Monitor udev for hidraw devices instead of hid devices.
Watching for new hid devices is racy because the hidraw device rules are still running. Fix the race by explicitly waiting for the hidraw device add event. The properties needed from the hid device can be gotten by fetching the parent of the hidraw device from the sysfs tree. BUG=394200 Review URL: https://codereview.chromium.org/396993010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283810 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment