Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-21-2016, 01:29 PM   #31
pipcat
Connoisseur
pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
Ok, thx for info!
The png method is cool and useful to start some programs. But for "autopatch from web" tests I prefer not have a tile for that nor a png-book. Probably I will force the running of my .sh with an udev rule. I put some debug echo on scripts in usr/local/Kobo/udev, and my candidate is 'ac add'. When plug the device to charge, run script to check if there is a zip trigger file.
pipcat is offline   Reply With Quote
Advert
Old 06-21-2016, 01:33 PM   #32
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 7,040
Karma: 6678009
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O
That might be tricky if the user mistakenly switches to USBMS (i.e., via the "plugged in" popup) right away: onboard would get unmounted.
NiLuJe is offline   Reply With Quote
Old 06-21-2016, 01:55 PM   #33
pipcat
Connoisseur
pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
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
pipcat is offline   Reply With Quote
Old 06-21-2016, 03:38 PM   #34
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 7,040
Karma: 6678009
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O
Huh, good to know .
NiLuJe is offline   Reply With Quote
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: 14,363
Karma: 24568144
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
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
Advert
Old 06-21-2016, 08:14 PM   #36
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 1,827
Karma: 4548067
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: Kobo H2O, iriver StoryHD
Quote:
Originally Posted by davidfor View Post
When I plug into any of the chargers I have at home, I get prompted to connect to the PC.
I don't get prompted when using my Samsung smartphone charger. This is also what I used for this https://vid.me/bVla
frostschutz is offline   Reply With Quote
Old 06-22-2016, 02:20 AM   #37
pipcat
Connoisseur
pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
With a Glo Hd, if I plug to the phone charger or a to a powercube usb I don't get any prompt (usb_plug). If I plug to the computer I get prompt (usb_host) and even if I respond cancel to only charge, usb_plug is not fired.
pipcat is offline   Reply With Quote
Old 06-22-2016, 02:54 AM   #38
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: 14,363
Karma: 24568144
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
I'm just reported what I am seeing and others have commented on here. Every time I plug any of my Touch, Glo, Aura H2O or Glo HD into a USB charger, I get the prompt. I know this hasn't always been the case. I'm pretty sure it changed with some firmware version, but it has been this way for at least a year.

If you are going to rely on plugged-into-charger to trigger an action, there will be people here whose devices will never see it. And of course there will be people here who never plug into a charger and always use the computer. Personally, I did that for at least the first two years of my Kobo ownership. I didn't have another device,that needed a charger, so there wasn't one plugged in where it was handy for me to use.
davidfor is offline   Reply With Quote
Old 06-22-2016, 03:07 AM   #39
pipcat
Connoisseur
pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
I forget to say my firmware is 3.19.5761, and it's the only that I tried. If you also have a this fw and a Glo Hd we should get the same results, otherwise maybe there are some country differences in chargers !? I'm from Catalonia (Europe), and frostschutz reported the same from Germany.
pipcat is offline   Reply With Quote
Old 06-22-2016, 03:44 AM   #40
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: 14,363
Karma: 24568144
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
At the moment, I'm not running 3.19.5761, I'm running beta firmware on the Glo HD (don't ask). The Touch is still on 3.19.5761 and I saw the behaviour last night. This behaviour hasn't changed in at least the last nine months. It might be local power differences. Australia is 240V, 50Hz. It might be the particular chargers. I'm pretty sure the one I normally use came with my iPad, so it is a 2Amp charger. But, it has definitely happened with other chargers. I'll try and check a couple of others in the house tonight and see if I can find something common to them.
davidfor is offline   Reply With Quote
Old 06-22-2016, 05:40 AM   #41
cramoisi
Librarian
cramoisi can shake the floor when laughingcramoisi can shake the floor when laughingcramoisi can shake the floor when laughingcramoisi can shake the floor when laughingcramoisi can shake the floor when laughingcramoisi can shake the floor when laughingcramoisi can shake the floor when laughingcramoisi can shake the floor when laughingcramoisi can shake the floor when laughingcramoisi can shake the floor when laughingcramoisi can shake the floor when laughing
 
Posts: 275
Karma: 63193
Join Date: Apr 2015
Location: Liège - Belgium
Device: Kobo Aura - kobo gloHD - KA1
Charged my gloHD this night with a AC/USB 1A 5V and wasn’t prompted (didn’t really noticed it until now that i’m reading this thread) - form Belgium 220V 50Hz
cramoisi is offline   Reply With Quote
Old 06-22-2016, 10:00 AM   #42
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: 14,363
Karma: 24568144
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
Well, I've tested three different chargers tonight, and exactly half of them trigger the prompt. My usual charger is an iPad charger and triggers the prompt. The Samsung phone charger my son uses doesn't. The third one was a no-brand charger with two ports. One port triggered the prompt, the other didn't! So, 50% of my three chargers trigger the prompt.
davidfor is offline   Reply With Quote
Old 06-22-2016, 02:09 PM   #43
pipcat
Connoisseur
pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
It seems that some chargers starts supplying 500mA and are recognized as computers, and other chargers supply more mA and are detected as chargers.
https://en.wikipedia.org/wiki/USB#USB_Battery_Charging
pipcat is offline   Reply With Quote
Old 10-06-2016, 04:06 AM   #44
sahbi
Enthusiast
sahbi is on a distinguished road
 
Posts: 42
Karma: 50
Join Date: Oct 2011
Device: Sony:psr 650 , KOBO:aura h2O, KOBO:Aura One
Can anybody confirm that it's working on the aura One without any issue? and can I build it from git?
sahbi is offline   Reply With Quote
Old 10-30-2016, 12:56 PM   #45
baskerville
Zealot
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 116
Karma: 262428
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by sahbi View Post
Can anybody confirm that it's working on the aura One without any issue?
It does, but koreader only has preliminary support for the Aura ONE through unofficial builds.
baskerville is offline   Reply With Quote
Reply

Tags
fmon, kfmon, kobo, launcher

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help converting file from HTML>EPub. File is divided in several pages I want to merge leito360 Conversion 6 02-19-2016 12:31 PM
table of content file link not add in toc.ncx file bhambhu Conversion 0 01-14-2016 01:40 AM
FILE. Program to identify a file's format by scanning binary data for known patterns. twobob Kindle Developer's Corner 3 05-13-2013 12:59 PM
AZW2 based launcher for K3 jmseight Kindle Developer's Corner 4 04-02-2012 07:53 AM
Opus Updating EPUB file won't change publisher data on file listing spaze Bookeen 1 03-08-2011 01:34 AM


All times are GMT -4. The time now is 12:30 AM.


MobileRead.com is a privately owned, operated and funded community.