[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Udev rule help



On Sat, Apr 29, 2006 at 10:32:39PM -0600, Jeremy Nickurak wrote:
> Roberto C. Sanchez wrote:
> > Have you check this out?
> >
> > http://www.reactivated.net/writing_udev_rules.html
> >
> I have. The problem is that the set of information required to
> uniquely identify these devices spans two SYSFS levels, and according
> to that document, I can only match on one level per rule. I have tried
> it this way anyways, and failed.

KERNEL=="event*" SYSFS{bInterfaceProtocol}=="01" SYSFS{bInterfaceSubClass}=="01" SYSFS{bInterfaceClass}=="03" SYSFS{bNumEndpoints}=="01" SYSFS{bAlternateSetting}==" 0" SYSFS{bInterfaceNumber}=="00" SYMLINK+="input/event_kbd"
KERNEL=="event*" SYSFS{bInterfaceProtocol}=="02" SYSFS{bInterfaceSubClass}=="01" SYSFS{bInterfaceClass}=="03" SYSFS{bNumEndpoints}=="01" SYSFS{bAlternateSetting}==" 0" SYSFS{bInterfaceNumber}=="01" SYMLINK+="input/event_mouse"

Probably overspecified, but it works for me.
-- 
Rob

Attachment: signature.asc
Description: Digital signature


Reply to: