Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 12-05-2015, 09:50 PM   #2536
Alan_S
Evangelist
Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.
 
Alan_S's Avatar
 
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:
if keycode == "Power_SleepCover" then
if ev.value == EVENT_VALUE_KEY_PRESS then
return "Suspend"
else
return "Resume"
end
end
Does this can mean that if device is suspended with power button (so, it is already in suspend) and after that comes signal from magnetic cover, device can think that it was resumed? In a way, code could be interpreted this way.

Last edited by Alan_S; 12-05-2015 at 10:04 PM.
Alan_S is online now   Reply With Quote
Old 12-06-2015, 08:49 AM   #2537
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: 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.
NiLuJe is offline   Reply With Quote
Old 12-07-2015, 01:13 AM   #2538
Alan_S
Evangelist
Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.
 
Alan_S's Avatar
 
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.
Alan_S is online now   Reply With Quote
Old 12-09-2015, 04:47 AM   #2539
Alan_S
Evangelist
Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.
 
Alan_S's Avatar
 
Posts: 446
Karma: 1084584
Join Date: Aug 2007
Location: Sisak, Croatia
Device: Kobo Aura H2O, Kobo Aura ONE
Quote:
Originally Posted by Alan_S View Post
Now I'm testing suspending with CoolReader suspend script and see what happens.
I know this isn't "final verdict" on CoolReader's suspend script, but from time of writing this post (5.12 till today) battery stays at 100%. Reading habit is as described (about one to two hours of reading in one block, other time reader is suspended till next day).

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.
Alan_S is online now   Reply With Quote
Old 12-14-2015, 05:02 PM   #2540
Khiron
Junior Member
Khiron began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2015
Device: Kobo Touch N905C
hi, how i can change font?
Khiron is offline   Reply With Quote
Old 12-14-2015, 05:06 PM   #2541
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
Quote:
Originally Posted by Khiron View Post
hi, how i can change font?
1. Poke the top of the screen.

2. Poke the second tab/icon.

3. Poke "Change font.

Luck;
Ken
Ken Maltby is offline   Reply With Quote
Old 12-21-2015, 05:15 AM   #2542
anton79ru
Enthusiast
anton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enough
 
anton79ru's Avatar
 
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.
anton79ru is offline   Reply With Quote
Old 12-21-2015, 08:50 AM   #2543
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
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
Ken Maltby is offline   Reply With Quote
Old 12-21-2015, 10:49 AM   #2544
anton79ru
Enthusiast
anton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enough
 
anton79ru's Avatar
 
Posts: 31
Karma: 548
Join Date: Apr 2014
Location: Moscow, Russia
Device: Kobo Aura H2O
Quote:
Originally Posted by Ken Maltby View Post
I am surprised to hear that multitouch might be working on your Glo HD.
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.
anton79ru is offline   Reply With Quote
Old 12-21-2015, 04:17 PM   #2545
anton79ru
Enthusiast
anton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enough
 
anton79ru's Avatar
 
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.
anton79ru is offline   Reply With Quote
Old 12-21-2015, 07:55 PM   #2546
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
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.
Ken Maltby is offline   Reply With Quote
Old 12-22-2015, 06:55 AM   #2547
anton79ru
Enthusiast
anton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enough
 
anton79ru's Avatar
 
Posts: 31
Karma: 548
Join Date: Apr 2014
Location: Moscow, Russia
Device: Kobo Aura H2O
Quote:
Originally Posted by Ken Maltby View Post
I don't see how it could be selective about it.
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.
anton79ru is offline   Reply With Quote
Old 12-22-2015, 08:18 AM   #2548
anton79ru
Enthusiast
anton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enough
 
anton79ru's Avatar
 
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.
or
Code:
<h1 id="calibre_toc_2" class="calibre10"><a id="TOC_idp29967616"></a><a id="TOC_idp29967760"></a>RACHEL
Once I removed the <a> tag in the first case and moved RACHEL before the <a> tag in the second case, the text alignment rule was respected. The <a> tag before the text breaks some style rules for some reason.
anton79ru is offline   Reply With Quote
Old 12-22-2015, 09:33 AM   #2549
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
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
Ken Maltby is offline   Reply With Quote
Old 12-22-2015, 04:16 PM   #2550
anton79ru
Enthusiast
anton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enoughanton79ru will become famous soon enough
 
anton79ru's Avatar
 
Posts: 31
Karma: 548
Join Date: Apr 2014
Location: Moscow, Russia
Device: Kobo Aura H2O
Quote:
Originally Posted by Ken Maltby View Post
The <a> Something ...</a> is supposed to be for links
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.
anton79ru is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 05:45 PM.


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