Re: Help with matching a HID device (udev rules troubles)

2009-07-02 Thread Richard Hughes
2009/7/2 Martin Pitt : > ACTION!="add", GOTO="ups_end" # drop this if you need change events, too > SUBSYSTEM!="usb", GOTO="ups_end" > KERNEL!="hiddev*", GOTO="ups_end" > > ATTRS{idVendor}=="0463", ATTRS{idProduct}=="", [... your action here ... ] > [... similar idVendor/idProduct rules ...] >

Re: Help with matching a HID device (udev rules troubles)

2009-07-02 Thread Martin Pitt
Hello Richard, Richard Hughes [2009-07-02 9:14 +0100]: > I'm trying to fix UPS support in DeviceKit-power. It's basically all > down to incorrect udev rules. The device I'm trying to match is the > last one in the chain, i.e. the one with DEVNAME=/dev/usb/hiddev0 : > It's easy to match all device

Re: Help with matching a HID device (udev rules troubles)

2009-07-02 Thread Kay Sievers
On Thu, Jul 2, 2009 at 10:14, Richard Hughes wrote: > I'm trying to fix UPS support in DeviceKit-power. It's basically all > down to incorrect udev rules. The device I'm trying to match is the > last one in the chain, i.e. the one with DEVNAME=/dev/usb/hiddev0 : > It's easy to match all devices wi

Re: Help with matching a HID device (udev rules troubles)

2009-07-02 Thread Juan Jesús Ojeda Croissier
On Thu, Jul 2, 2009 at 9:14 AM, Richard Hughes wrote: > I'm trying to fix UPS support in DeviceKit-power. It's basically all > down to incorrect udev rules. The device I'm trying to match is the > last one in the chain, i.e. the one with DEVNAME=/dev/usb/hiddev0 : > > P: /devices/pci:00/:00

Help with matching a HID device (udev rules troubles)

2009-07-02 Thread Richard Hughes
I'm trying to fix UPS support in DeviceKit-power. It's basically all down to incorrect udev rules. The device I'm trying to match is the last one in the chain, i.e. the one with DEVNAME=/dev/usb/hiddev0 : P: /devices/pci:00/:00:1a.7/usb1/1-4/1-4.1 N: bus/usb/001/007 S: char/189:6 E: DEVPAT