[PATCH 09/11] xfree86: Match devices based on PnP ID

Dan Nicholson dbn.lists at gmail.com
Thu May 20 10:00:55 PDT 2010


On Thu, May 20, 2010 at 7:09 AM, Dan Nicholson <dbn.lists at gmail.com> wrote:
> Serial input devices lack properties such as product or vendor name. This
> makes matching InputClass sections difficult. Add a MatchPnPID entry to
> test against the PnP ID of the device. The entry supports a shell pattern
> match on platforms that support fnmatch(3). For example:
>
>        MatchPnPID "WACf*"
>
> Signed-off-by: Dan Nicholson <dbn.lists at gmail.com>

I should mention that I didn't actually test this fully because I
don't have any PnP input devices. However, I did write some small udev
and hal programs to make sure I was grabbing the PnP ID correctly from
devices. Also, I did test the subsequent MatchUSBID patch, which uses
the same code except for the gathering of the IDs in the backend.

Thomas, I think you had a serial wacom tablet. Maybe you could take a
look at this patch or test it if you get a chance?

--
Dan


More information about the xorg-devel mailing list