12-04-2012, 10:22 PM | #781 |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
It looks like touchscreen support can work on Kindle Touch too, but Kindle Touch isn't recognized yet. I can't compile kpv by myself as for now, but just for reference, here are useful bits.
Code:
[root@kindle root]# grep 'MX' /proc/cpuinfo | cut -d':' -f2 | awk {'print $2'} MX50 Code:
[root@kindle root]# ls /sys/devices/platform/whitney-button/ driver input modalias power subsystem uevent [root@kindle root]# ls /sys/devices/platform/zforce.0/ bslreset connected driver input inputgpio modalias mode power subsystem test uevent version Spoiler:
Touchscreen events are available through event3. Example of evtest with touching as close to left upper corner as I could: Spoiler:
fake_events should work as-is. |
12-05-2012, 12:27 AM | #782 | |
Addict
Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
|
Quote:
If not, you can always manually install it. Just unzip the zip tarball and copy all the folders (kindlepdfviewer, kite and launchpad) to your root directory (when kindle mounted as USB drive) If you plan to use launchpad, make sure that : 1) launchpad is installed (which you did) 2) kindlepdfviewer folder presents in root directory 3) there is a kpdf.ini file in launchpad dir If you plan to use kite, make sure that : 1) kite is installed 2) in the kite directory, you see two files, namely "KPDFviewer (last file)" and "KPDFviewer File Manager" |
|
Advert | |
|
12-05-2012, 12:43 AM | #783 | |
Addict
Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
|
Quote:
Thank you for your detailed report! I promise I will incorporate all these into KPV this weekend if no one beats me ;-p So seems that KT has one more button (HOME) than PW? Also will you get events from /dev/event0 and /dev/event1? |
|
12-05-2012, 12:46 AM | #784 |
Addict
Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
|
Another great news is @chrox recently added an awesome launcher for KPV, which makes use of JBPatch. For those who are interested in:
https://github.com/hwhw/kindlepdfviewer/issues/648 So in short, we can open all the supported files in native system with KPV now! |
12-05-2012, 01:08 AM | #785 | |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
event0 and event1 are useless for KPV, I think. They exist, but don't belong to any "visible" input device, as I can see. I didn't dig any further: Code:
[root@kindle root]# ls /dev/input by-path event0 event1 event2 event3 Code:
[root@kindle root]# evtest info /dev/input/event0 Input driver version is 1.0.0 Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0 Input device name: "WM8962 Beep Generator" Supported events: Event type 0 (Sync) Event type 18 (Sound) Event code 1 (Bell) Event code 2 (Tone) Code:
[root@kindle root]# evtest info /dev/input/event1 Input driver version is 1.0.0 Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0 Input device name: "imx-yoshi Headset" Supported events: Event type 0 (Sync) Event type 1 (Key) Event code 256 (Btn0) Event type 5 (?) Event code 4 (?) |
|
Advert | |
|
12-05-2012, 04:17 AM | #786 |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
This is the problem. You have downloaded the archive of the source code instead of the program itself. The program is downloadable from here:
https://github.com/chrox/kindlepdfviewer/downloads Don't click on those stupid buttons "Download as .zip" or anything that looks like them. They are github's (very useless) way of letting users download the source code. Why useless? Because the proper way to get the source code is to clone the repository using git command. So, instead, click on the most recent entry in the list of nightly builds. At the moment it happens to be this one: https://github.com/downloads/chrox/k...3-gbbcc152.zip And then do everything you did before and it will work. And if you have the old kindlepdfviewer directory it is best to remove it (to get rid of old settings etc, though "officially" this is not needed, but it is cleaner to not have any potentially useless old files lying around and confusing things). |
12-05-2012, 02:52 PM | #787 |
Connoisseur
Posts: 52
Karma: 23642
Join Date: Oct 2011
Device: K3 3G
|
Thank you so much tigran! I was going around in circles with this last night for hours!
I will make sure to download the correct package in future use of github.com I started from scratched, using Kite this time and with the correct files, it worked straight away. With the nightly build, the files were already separated in to the correct directories and so just dropped them straight on to Kindle, instead of following installation guide which suggested putting them in 'customupdates' first. This leaves me wondering what's the deal with that directory? Does it make any difference that I didn't use it? |
12-05-2012, 05:13 PM | #788 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
What you put into "customupdates" would be the ZIP itself, not its contents. It just saves you the work of unzipping and copying individual files - launchpad will do this upon Shift-Shift-I. It's just a matter of convenience.
|
12-06-2012, 07:54 AM | #789 |
Connoisseur
Posts: 82
Karma: 5072
Join Date: Nov 2010
Device: KPW
|
page down skips portion of text in fit-to-width mode
Hi,
This is an impressive piece of software. I have just updated from the first version and the reflow is amazing. Yet, it can't solve all problems and with many PDFs I am stuck with a horizontal fit-to-width orientation. Here is what troubles me since the first version. With some PDFs when I SHIFT+S and page down, all works fine - the rest of the current page is displayed. With some however, I jump to the next page directly, missing half of the previous page. I tried to set the box by shift+x to the whole page, toggled the P option, nothing helps. But as I say, only some PDFs behave this way... Any help with that? |
12-06-2012, 10:08 AM | #790 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
I added the code for touchscreen (well enough to actually detect clicks) to the gnuboy source on my side, but I can't figure out how to detect constant "pushes". The push seems to deactivate after a certain amount of time.
I digress. My point is that this shortcoming probably wont matter in this context. Therefore I have enough code (ripped from the mplayer Gui project) to TS enable parts of this I imagine. will have a play at some point possibly. Or someone else can if I don't get there first. my point is the code is out there already |
12-06-2012, 10:14 AM | #791 |
Addict
Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
|
@otichy, it will be more helpful if you can provide the PDF file so the developers can try to reproduce the bug.
It is prefered that you open a new issue for the bug in (requires account signup): https://github.com/hwhw/kindlepdfviewer/issues and attache the link to the pdf file in that issue so we can keep track of the bug |
12-06-2012, 10:21 AM | #792 | |
Addict
Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
|
Quote:
BTW, what do you mean by constant "pushes" gesture? Is it a special event generated by TS? |
|
12-06-2012, 04:27 PM | #793 |
Just a Noob
Posts: 145
Karma: 162610
Join Date: Aug 2011
Device: Kindle 3
|
Hi,
I made my own fork of KPV called Librerator. If anyone's interested, please see https://www.mobileread.com/forums/sho...d.php?t=198742. Thank you. |
12-06-2012, 07:22 PM | #794 |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
As I see, chrox in Github issues is trying various methods for invoking KPV for supported file types. I think, it will be worth to him to know that system Reader booklet supports plugins. Enabled plugins are listed in reader_plugins.xml. In Kindle Touch this file is located in /opt/amazon/ebook/config/, but it looks like in PW it's embedded into /opt/amazon/ebook/lib/ReaderSDK-impl.jar (but still in a form of easily accessible text file).
I believe, that filetype-dependent part of system reader code is located in plugins that are defined in reader_plugins.xml. yifanlu tried to reverse engineer plugin interface for 5.0.0 and implement it's own, invoked for EPUB files: https://github.com/yifanlu/KindleEPU...lu/kindle/epub. It could help, but code is in unfinished state. (I can't post to Github right now, sorry.) |
12-07-2012, 02:28 AM | #795 |
Banned
Posts: 488
Karma: 1080260
Join Date: Sep 2012
Device: sony prs t1 kindle dx ipad
|
I think that nobody asked about possible implementation of white-threshold before.
It would be nice to have possibility to just choose between 0 and 255 for pdf scans with darker background. Kindle DX White has poorer contrast, 7:1 to Graphite's 10:1, so I usually transform such pdfs directly with A-Pdf-to-Black-White application or k2pdfopt or sometimes indirectly by exporting pdf to images and then back to pdf after tone adjustment. Will this pose a problem ? Last edited by markom; 12-07-2012 at 03:29 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Librerator - multi-format e-reader, fork of KPV | Kai771 | Kindle Developer's Corner | 433 | 05-25-2024 03:34 AM |
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) | hawhill | Kindle Developer's Corner | 1268 | 02-27-2024 11:49 AM |
Yet another PDF viewer (muPDF based) | melihron | PocketBook | 66 | 09-02-2014 03:03 AM |
Text-based PDF to Mobi, etc./Kindle 3 | kidblue | Calibre | 41 | 07-20-2012 03:19 PM |
muPDF on Kindle DX!! | DairyKnight | Kindle Developer's Corner | 8 | 03-21-2010 03:39 AM |