Good advice. But I think udev/ac is only called when I plug the device to charge, but not when I plug to the computer. kobo.rules are:
KERNEL=="usb_host", RUN+="/usr/local/Kobo/udev/plug"
KERNEL=="fsl-usb2-udc", ACTION=="offline", RUN+="/usr/local/Kobo/udev/plug"
KERNEL=="usb_plug", RUN+="/usr/local/Kobo/udev/ac"
When I plug to the usb-charger:
Tue Jun 21 19:10:13 2016 udev/ac move
Tue Jun 21 19:10:13 2016 udev/ac add
Tue Jun 21 19:11:35 2016 udev/ac remove
And When I plug to computer:
Tue Jun 21 19:11:45 2016 udev/plug move
Tue Jun 21 19:11:45 2016 udev/plug add
Tue Jun 21 19:11:59 2016 udev/plug remove
|