mkorenkov/ipad_charge — Issue #5: udev config for newer versions
Author: garaged
Created: 2012-03-09 18:09:15+00:00
State: open

I have udev 175, and this diff makes ipad_charge work automatically again:

--- 95-ipad_charge.rules 2012-03-09 09:57:10.108620624 -0800
+++ /etc/udev/rules.d/95-ipad_charge.rules 2012-03-09 09:50:51.000000000 -0800
@@ -1,3 +1,2 @@
-ENV{DEVTYPE}=="usb_device", ACTION=="add", BUS=="usb", SYSFS{idVendor}=="05ac", SYSFS{idProduct}=="129f", RUN+="/usr/bin/ipad_charge"
-ENV{DEVTYPE}=="usb_device", ACTION=="add", BUS=="usb", SYSFS{idVendor}=="05ac", SYSFS{idProduct}=="129a", RUN+="/usr/bin/ipad_charge"
-ENV{DEVTYPE}=="usb_device", ACTION=="add", BUS=="usb", SYSFS{idVendor}=="05ac", SYSFS{idProduct}=="12a2", RUN+="/usr/bin/ipad_charge"
+ENV{DEVTYPE}=="usb_device", ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129f", RUN+="/usr/bin/ipad_charge"
+ENV{DEVTYPE}=="usb_device", ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129a", RUN+="/usr/bin/ipad_charge"