View Single Post
Old 06-21-2016, 07:57 PM   #35
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by pipcat View Post
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
Are you sure about this? When I plug into any of the chargers I have at home, I get prompted to connect to the PC. I assumed this meant the device couldn't tell the difference between the two.
davidfor is offline   Reply With Quote