![]() |
#2536 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 446
Karma: 1084584
Join Date: Aug 2007
Location: Sisak, Croatia
Device: Kobo Aura H2O, Kobo Aura ONE
|
Yes, magnetic cover could be culprit here, or at least one of the culprits.
But, I also noticed that using magnetic cover doesn't always lead to higher battery drain. And, also, if device exits suspend, it doesn't do it in regular way as light stays off. In normal exit light should be on after waking device. Magnetic senzor should be always on, even in suspend, but maybe code that monitors it, or the way koreader communicates with it is culprit? Just guessing... EDIT: And I asked about having option to use or not magnetic cover in github: https://github.com/koreader/koreader/issues/1733 EDIT2: I'm looking at this code for operating magnetic cover: Quote:
Last edited by Alan_S; 12-05-2015 at 10:04 PM. |
|
![]() |
![]() |
![]() |
#2537 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@Alan_S:
If the sensor hasn't changed behavior since whomever wrote that piece of code tested it, the intended behavior is: Sleep Cover is closed -> PRESS event -> SUSPEND Sleep Cover is opened -> RELEASE event -> RESUME The general power handling code has guards against double-suspend/double-wakeup attempts, so closing the cover after flicking the power button shouldn't have any impact. Opening the cover should, however, wake the device up, no matter how it was put to sleep. TL;DR: Unless you see spurious RELEASE events coming from the sensor, the device shouldn't wake-up from the sleep cover. EDIT: On the other hand, doing it the other way around, i.e., closing the sleep cover and *THEN* flicking the power switch, that *WILL* cancel the suspend, if you do that in the ~10s window before the device is actually put to sleep. EDIT²: With debug logging enabled, any of these events will be logged ("Suspending..." or "Resuming..."). Last edited by NiLuJe; 12-06-2015 at 08:54 AM. |
![]() |
![]() |
![]() |
#2538 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 446
Karma: 1084584
Join Date: Aug 2007
Location: Sisak, Croatia
Device: Kobo Aura H2O, Kobo Aura ONE
|
It's a good news that reader differentiate between closing and opening magnetic cover. Probably by changing strength of magnetic field.
|
![]() |
![]() |
![]() |
#2539 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 446
Karma: 1084584
Join Date: Aug 2007
Location: Sisak, Croatia
Device: Kobo Aura H2O, Kobo Aura ONE
|
Quote:
It certainly looks like CR's suspend script really suspends reader and that there's no battery leak at all. I'll continue testing it and report. |
|
![]() |
![]() |
![]() |
#2540 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Oct 2015
Device: Kobo Touch N905C
|
hi, how i can change font?
|
![]() |
![]() |
![]() |
#2541 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
|
![]() |
![]() |
![]() |
#2542 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 548
Join Date: Apr 2014
Location: Moscow, Russia
Device: Kobo Aura H2O
|
Two-finger swipe for brightness
Okay, I think I have read through the related posts here but it really lead me nowhere. I installed Koreader on two devices recently:
- Glo HD; - Aura H2O. The two-finger swipe gesture works on the Glo HD, but not on the Aura H2O. When I try it on the Aura H2O, all it does is select text and/or turn the page, just as if the multitouch were not supported in the first place. I'm not aware of the hardware differences or the stock software functioning of the two devices but since I decided to stick with the H2O, is there any way I can circumvent or simulate multitouch? Otherwise I have to go to menu and input a number value for brightness, which feels pretty much like stone age. Last edited by anton79ru; 12-21-2015 at 07:49 AM. |
![]() |
![]() |
![]() |
#2543 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Actually, I am surprised to hear that multitouch might be working on your Glo HD.
I though that only the 6" Aura, with its capacitance touchscreen, had it working. Luck; Ken |
![]() |
![]() |
![]() |
#2544 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 548
Join Date: Apr 2014
Location: Moscow, Russia
Device: Kobo Aura H2O
|
I forgot it hadn't worked on my Aura HD, that's why I wasn't surprised. But now what you're saying makes me think the Glo HD might well be the first device on which they implemented IR multitouch.
|
![]() |
![]() |
![]() |
#2545 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 548
Join Date: Apr 2014
Location: Moscow, Russia
Device: Kobo Aura H2O
|
One more please, if you don't mind me drinking from the pool of your wisdom again. Why might Koreader suddenly ignore a CSS rule for one paragraph of a Calibre-edited epub, but not others? Like, there's a bunch of paragraphs of the same class, and there's that "text-align: justify;" rule for that style, but in one of the paragraph the text is left-aligned and in the next one it's good again although they're labeled with identical styles.
|
![]() |
![]() |
![]() |
#2546 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
While you can tell KOReader to ignore embedded CSS and can even remove the embedded styles' I don't see how it could be selective about it. To be that selective it would have to be defined at the paragraph itself. One other consideration would be if there were any tags to make a formatting statement !important or default, and give it overriding capability, over the normal CSS statements.
Luck; Ken Last edited by Ken Maltby; 12-21-2015 at 08:02 PM. |
![]() |
![]() |
![]() |
#2547 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 548
Join Date: Apr 2014
Location: Moscow, Russia
Device: Kobo Aura H2O
|
Thanks for trying to help, Ken, I don't get it either. It's two similar paragraphs, one after another, both refer to the same style, which contains a rule for the text to be justified. In one of the paragraph, this rule is ignored, and the text is left-aligned. What's interesting, another rule of the same style that says "text-indent: 1em;" is respected in both paragraphs. I changed the alignment rule to "text-align=justify !important;" but nothing happened.
|
![]() |
![]() |
![]() |
#2548 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 548
Join Date: Apr 2014
Location: Moscow, Russia
Device: Kobo Aura H2O
|
I think I located that one. Compared to good paragraphs, problematic paragraphs contain more than a class/style indication. They go like:
Code:
<p class="txt"><dfn class="calibre3"><a id="pg_55"></a>La première fois que je suis entré au dépôt remonte à deux ans. Code:
<h1 id="calibre_toc_2" class="calibre10"><a id="TOC_idp29967616"></a><a id="TOC_idp29967760"></a>RACHEL |
![]() |
![]() |
![]() |
#2549 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
The <a> Something ...</a> is supposed to be for links. Scroll down to the Bookmark section.
In your first example a link to page 55. In the second a TOC link of some kind. Luck, Ken |
![]() |
![]() |
![]() |
#2550 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 548
Join Date: Apr 2014
Location: Moscow, Russia
Device: Kobo Aura H2O
|
In my examples, those were not links, but anchored locations where links brought you. Destinations. But that doesn't matter much.
Here's what happens: if in a paragraph of a *.epub file, there is an <a>nchor after the indication of style and class, but before the main text starts, Koreader screws up text alignment in that paragraph. A centered, justified or right-aligned paragraph becomes left-aligned. I reproduced that by opening a book that had no problem of that kind and I inserted an empty anchor <a></a> right in front of the main text, after the paragraph indicator — and text alignment crashed. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) | hawhill | Kindle Developer's Corner | 1289 | 04-07-2025 10:18 AM |
Touch Using two Kobos | tkavan | Kobo Reader | 4 | 06-23-2017 02:47 AM |
2 kobos at once | tsarinaerika | Kobo Reader | 14 | 06-03-2013 04:13 AM |
Syncing between two Kobos | fx3000se | Kobo Reader | 4 | 01-24-2013 02:10 PM |
2 kobos 1 account | retired05 | Kobo Reader | 9 | 05-05-2012 08:25 AM |