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

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 01-26-2015, 12:18 AM   #46
chrox
Zealot
chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.
 
Posts: 144
Karma: 405567
Join Date: Nov 2012
Device: K3 KPW PB840
Quote:
Originally Posted by sadowski View Post
Here comes a shot with yres/2 and line_lenght+8. The screen is smaller and rotated but otherwise undistorted.

As for the basic framebuffer information: Where does the output from the print() statements end up? It is not in crash.log.
It will show up on the terminal screen when you run koreader in SSH session.

In order to write the print output to log file you need to change line 30 in the "applications/koreader.app"
Code:
./reader.lua "$args" 2> crash.log
to

Code:
./reader.lua "$args" 1> koreader.log 2> crash.log
This will redirect standard output like the "print" to local file koreader.log. After you exit koreader you can find the framebuffer info in the "applications/koreader/koreader.log" file.
chrox is offline   Reply With Quote
Old 01-26-2015, 12:23 AM   #47
chrox
Zealot
chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.
 
Posts: 144
Karma: 405567
Join Date: Nov 2012
Device: K3 KPW PB840
Quote:
Originally Posted by sadowski View Post
Here comes a shot with yres/2 and line_lenght+8. The screen is smaller and rotated but otherwise undistorted.

As for the basic framebuffer information: Where does the output from the print() statements end up? It is not in crash.log.
The result is interesting and proves my hypothesis. Then you can try decrease yres one by one with line_length + 8 until koreader not crashes this way:

Code:
elseif vinfo.bits_per_pixel == 8 then
            self.bb = BB.new(vinfo.xres, vinfo.yres - 1, BB.TYPE_BB8, self.data, finfo.line_length + 8)
else
to

Code:
elseif vinfo.bits_per_pixel == 8 then
            self.bb = BB.new(vinfo.xres, vinfo.yres - 10, BB.TYPE_BB8, self.data, finfo.line_length + 8)
else
.
chrox is offline   Reply With Quote
Advert
Old 01-26-2015, 12:25 AM   #48
chrox
Zealot
chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.
 
Posts: 144
Karma: 405567
Join Date: Nov 2012
Device: K3 KPW PB840
Quote:
Originally Posted by WS64 View Post
Great!

For Lux 2
Code:
self.bb = BB.new(vinfo.xres, vinfo.yres/2, BB.TYPE_BB8, self.data, finfo.line_length + 10)
works. (/2 and + 10)
Upper half screen is used, no distortions, not rotated:

But I can't work with it, I guess the touch still uses the full screen or something like that.
I also can't take screen shots, well, I can, but they are empty...
You can also try with the approach described in https://www.mobileread.com/forums/sho...6&postcount=47 but with finfo.line_length + 10 and see the result.
chrox is offline   Reply With Quote
Old 01-26-2015, 12:27 AM   #49
chrox
Zealot
chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.
 
Posts: 144
Karma: 405567
Join Date: Nov 2012
Device: K3 KPW PB840
Quote:
Originally Posted by wirtold View Post
I think i've found a bug. Koreader does not save last reading position when reader is turned off during reading. Generally it is not a problem: if you want to turn reader off, you can just quit koreader and then position is stored. But, if i put reader into sleep, and then, after some time, it turns off, position will not be stored.
By design, koreader should flush reader settings and reading progress into storage file when device goes to asleep. I will try to reproduce this bug on my PB840.
chrox is offline   Reply With Quote
Old 01-26-2015, 12:37 AM   #50
chrox
Zealot
chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.chrox ought to be getting tired of karma fortunes by now.
 
Posts: 144
Karma: 405567
Join Date: Nov 2012
Device: K3 KPW PB840
Quote:
Originally Posted by rkomar View Post
I tried v2014.11-39-g917f45a on my Touch Lux (623), and it seems to be working. The display is fine, although it is a bit faint and hard to read in places. It seems that little horizontal white lines appear inside black areas. Perhaps those pixels are getting missed when flood-filling an area?
It's great to hear that some device other than PB840 could also run koreader. It will be great if you could also post a screenshot of koreader on Touch Lux so that we may figure out what's wrong. I guess the framebuffer on PB623 may be not a continuous block of memory.

Probably I need to ping @hawhill on this topic.
chrox is offline   Reply With Quote
Advert
Old 01-26-2015, 02:36 AM   #51
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
vinfo.yres - 1 does already crash, -10 also (have not tested other steps.)
vinfo.yres/2 uses only the upper half, /4 only the upper 4th.
vinfo.yres/1.01 looks perfect, although I am not sure if really all pixels are used.
vinfo.yres/1.001 crashes again.
On vinfo.yres/1.01 I had a problem at first, the msg "opening book 'filename.epub'." appeared, but nothing else happened. After I pressed a button it the msg disappeared and the book opened, I have to watch this to see if it happens agains.
Right now it works on the Lux 2, does not look thin or anything, on a first sight it looks perfect!
But I think "vinfo.yres/1.01" can't be the final solution, but at least it shows that it is working on Lux 2!
WS64 is offline   Reply With Quote
Old 01-26-2015, 02:44 AM   #52
wirtold
Member
wirtold began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jan 2015
Device: InkPad 840, InkPad 740
Quote:
Originally Posted by WS64 View Post
On vinfo.yres/1.01 I had a problem at first, the msg "opening book 'filename.epub'." appeared, but nothing else happened. After I pressed a button it the msg disappeared and the book opened, I have to watch this to see if it happens agains.
I can confirm that - even on InkPad koreader is very often stuck at this message and i have to tap screen to go further. At least on PDFs.
wirtold is offline   Reply With Quote
Old 01-26-2015, 02:45 AM   #53
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
More info:
Sending the device to sleep seems to clear the screen which is not necessary since the PB firmware takes care of these things, but it wakes up fine and on the right position. (UPDATE: Like the second point below this depends on how you open the book. With Koreader as application it behaves as it should => screensaver shows the book cover from Koreader), with "open with" the screen gets blanked and then the zzzz appears (no zzzz on application sleep).

There is a difference between opening a book through the PB library ("open with", not sure this exists on PB840 with firmware 5.4, it does NOT exist on PB Lux 2 with firmware 5.2, but it exists on 4.4) and opening Koreader itself and then opening a book.
Through PB the position of the book is not remembered, books start from the beginning.
Through Koreader itself (Filemanager) I need to press a button after "opening book" message (else the msg does not go away), but then the position is fine. Through PB I don't need to press the button, the book opens fine by itself.

Last edited by WS64; 01-26-2015 at 03:04 AM.
WS64 is offline   Reply With Quote
Old 01-26-2015, 03:45 AM   #54
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 3,009
Karma: 18765431
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Quote:
Originally Posted by chrox View Post
It's great to hear that some device other than PB840 could also run koreader. It will be great if you could also post a screenshot of koreader on Touch Lux so that we may figure out what's wrong. I guess the framebuffer on PB623 may be not a continuous block of memory.

Probably I need to ping @hawhill on this topic.
No, the white lines are quite short, only about a centimeter long. It is hard to capture in a photo, because it's most obvious when a black bar comes up, but that only lasts for about 1 second. So, I tried taking a movie with my camera, and cropping out part of a frame that showed the problem. It's blurry, but hopefully you can see what's going on in the black region. I'm wondering if the same thing isn't happening in the text, as well, making it faint in places. You can see where it says "Page 1 of 1" that the text is missing some "ink".

By the way, I also have to press a button the first time something is opened before it appears on the screen.
Attached Thumbnails
Click image for larger version

Name:	shot0001.jpg
Views:	999
Size:	8.2 KB
ID:	134210  
rkomar is online now   Reply With Quote
Old 01-26-2015, 05:47 AM   #55
sadowski
Connoisseur
sadowski ought to be getting tired of karma fortunes by now.sadowski ought to be getting tired of karma fortunes by now.sadowski ought to be getting tired of karma fortunes by now.sadowski ought to be getting tired of karma fortunes by now.sadowski ought to be getting tired of karma fortunes by now.sadowski ought to be getting tired of karma fortunes by now.sadowski ought to be getting tired of karma fortunes by now.sadowski ought to be getting tired of karma fortunes by now.sadowski ought to be getting tired of karma fortunes by now.sadowski ought to be getting tired of karma fortunes by now.sadowski ought to be getting tired of karma fortunes by now.
 
Posts: 84
Karma: 1142796
Join Date: Jul 2009
Device: Sony PRS 350, Kobo mini, PB mini
yres-8 and line_length+8 generate a perfect, full-screen, non-rotated page image in the PB mini.

Now with this solved I realize, that with a non-touch reader, there are no buttons other than page forward/backward available which limits the usability of koreader to paging through a book. No menus, not even closing the book is possible ... Are there more key codes hidden in the code or is it simply a touch-only implementation?
sadowski is offline   Reply With Quote
Old 01-26-2015, 06:05 AM   #56
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
@sadowski, I am very sure this can be configured within Koreader.
I can't tell for sure since I only used koreader so far on Kobo devices without any buttons, so I never even cared for those.
I wonder where to configure this though too, since the up and down keys page into the wrong direction in my beloved upside down landscape view. i know I could reassign the buttons within PB itself, but then they would work the wrong way in the other readers too. So I hope I can swap them somewhere within Koreader...
To close Koreader, on the Lux you can at least use a long tap on both "up"+"down" to close the actual application (in this case Koreader)...
WS64 is offline   Reply With Quote
Old 01-26-2015, 05:07 PM   #57
mikmak
Junior Member
mikmak began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Dec 2009
Device: Pocketbook 360, 622, 630
Does someone know when/if Pocketbook will release an SDK for the Pocketbook Sense (630)?
I've built koreader with their current SDK (481), but the reader crashes with a segmentation fault, so I assume the SDK needs to be updated for that particular reader.
mikmak is offline   Reply With Quote
Old 01-26-2015, 06:26 PM   #58
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 3,009
Karma: 18765431
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Quote:
Originally Posted by mikmak View Post
Does someone know when/if Pocketbook will release an SDK for the Pocketbook Sense (630)?
I've built koreader with their current SDK (481), but the reader crashes with a segmentation fault, so I assume the SDK needs to be updated for that particular reader.
Maybe it's not a problem with the SDK. @chrox mentioned that they use very little functionality from libinkview. Anyway, the SDK is not something PocketBook have spent much effort on recently, so I wouldn't hold my breath waiting for an update. I'm just grateful they released what they did.
rkomar is online now   Reply With Quote
Old 01-27-2015, 02:38 AM   #59
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
Did someone else notice that Koreader is really really slow on PB? Things that needs CPU like opening a book for the very first time or searching for books takes WAY longer than I am used to it on Kobo devices. I am talking about things that take 30 seconds on Kobo and something like 20 minutes(!) on PB.
I know the hardware is slower, and especially just 256MB computer memory (not storage!), not sure how much the Kobo devices have here.
It also might be that the multitasking of PB slows things down, I really hope there is a way to speed things up a little!
WS64 is offline   Reply With Quote
Old 01-27-2015, 04:43 AM   #60
mikmak
Junior Member
mikmak began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Dec 2009
Device: Pocketbook 360, 622, 630
Quote:
Originally Posted by rkomar View Post
Maybe it's not a problem with the SDK. @chrox mentioned that they use very little functionality from libinkview. Anyway, the SDK is not something PocketBook have spent much effort on recently, so I wouldn't hold my breath waiting for an update. I'm just grateful they released what they did.
Hm, ok. Is there any way I can further debug this on the PB 630? In the crash log only "segmentation fault" is reported, so not really helpful.
mikmak is offline   Reply With Quote
Reply

Tags
calibre, epub, koreader, pb742, pdf, pocketbook

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 1268 02-27-2024 11:49 AM
CBZ plugin interaction with FB2/DjVu plugins - First try at pinpointing MrWarper iRex 2 12-11-2011 05:46 AM
Raccoon Reader - reads ePub, fb2, fb2.zip, txt on WP7 for free Andrei_Shvydryk Reading and Management 0 10-31-2011 03:17 PM
v3 vs. v3+ as a pdf/DjVu reader hedonism_bot HanLin eBook 7 11-02-2010 08:16 PM
New PDF to LRF Tool (for DJVU and CBZ files too) RWood Sony Reader 0 08-29-2007 02:13 PM


All times are GMT -4. The time now is 04:48 PM.


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