08-11-2016, 03:23 PM | #31 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
See also:
https://www.mobileread.com/forums/sho...7&postcount=26 Specifically, the second part of that post and my reply following. I.E: Build 'native' in a Debian/Jessie ARMel environment under emulation. |
08-11-2016, 11:24 PM | #32 |
Guru
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
|
Alright, if anyone asks for a step by step, I'll give one ( or make a new post ), but I got an armel envirunment running under qemu - I havent tried doing it in the qemu-arm-static chroot yet, but I'm just running the whole system.
so: Windows 10 -> Debian 8.5 Desktop in VmWare Player -> Debian 8.5 armel in qemu -> gcc and scp and x11 oh my! I succesfully compile lucidas kindle-evdev.c and linked to x11 on the armel env, and it ran jsut find on my pw3. |
Advert | |
|
08-12-2016, 06:13 AM | #33 |
Evangelist
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
|
08-14-2016, 08:10 PM | #34 |
Enthusiast
Posts: 30
Karma: 118906
Join Date: Jul 2016
Device: PW3
|
@coplate
Sorry for the late reply. good to see you got everything working. My setup is a little different as I use Amazon's official toolchain. There is a HOWTO included in the source so just follow the instruction to install. To compile invoke the gcc like ~/opt/cross-gcc-linaro/bin/arm-linux-gnueabi-gcc xxx.c To link X libs, first make sure the code compile in host, then copy headers from host's /usr/include/X11 to ~/opt/cross-gcc-linaro/arm-linux-gnueabi/usr/include/X11 and kindle's lib files(from a live system or extract from update image) to ~/opt/cross-gcc-linaro/arm-linux-gnueabi/usr/lib A full arm chroot can do much more and my setup is kinda limited though. --------------------- I can't get swipe working with XTest by simulating mouse button pressing, moving and button releasing, however it can be done with input_event and writing to kindle's touchscreen device. To do so, run evtest to get the events then reproduce the sequence. XTest works only in native reader(that's how xdotool works) and input_event works on both native reader and KOReader. Attachment shows few different ways to simulate input. Hope it helps. |
08-14-2016, 08:12 PM | #35 | ||
Guru
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
|
Hey all - I got Keyboard working, and it works in the search boxes too.
I commented out makexconf in /etc/upstart/x.conf I made my filesystem rw then I added this to /etc/x.conf and killed x proccess, so it rereads this ( restart x doeswnt re-read the upstart x file ) Quote:
And bt replacing the "multitouch" section with this: Quote:
I was hoping that was a feature of the multitouch driver, and switching to evdev would make it show up. Last edited by coplate; 08-14-2016 at 11:56 PM. |
||
Advert | |
|
08-14-2016, 11:49 PM | #36 | ||
Guru
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
|
I found the cursor.
Quote:
Then I ran Quote:
Edit: but it doesn't draw when you move it, only when you click, rats. I've got a secod script that can be run with it - that on keypress will refresh the screen, showing the cursor but this requires a keyboard/mouse combo like I have. Last edited by coplate; 08-15-2016 at 12:11 AM. |
||
08-15-2016, 12:19 AM | #37 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
|
|
08-15-2016, 03:40 PM | #38 |
Guru
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
|
I also found that with the keyboard, Up Arrow and Down Arrow turned he page without me needing to do anything ( that's with the xorg.conf changes, but no extra deamon running )
|
08-15-2016, 04:06 PM | #39 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Does tab switch between books?
|
08-15-2016, 04:13 PM | #40 |
Guru
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
|
I didn't try, I think its based on what the hardware keypad on kindle with the keypad does things. Do you know if it moves through things?
|
08-15-2016, 04:20 PM | #41 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
08-15-2016, 04:43 PM | #42 | |||
Guru
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
|
In book and on the home page,
Up -> "Prev Page" Down -> "Next Page" So previous page / Next page - whether there is an overlay ( like menu in book - or book details on home page ) I'm going to plug in a real keyboard, and check page up etc, that my handheld one doesn't have. Scroll lock triggers screenshot with windows info list Quote:
I don't see any other useful keys. If someone withthe kindle with buttons could run evtest on the device, and see what the codes are, we might be able to compare Quote:
/etc/xdg/awesome/rc.lua has this Idont get anyhting for f1-f4 or J and F, but I may not be looking in the right place. Home. ScrollLock, C and X work Quote:
Last edited by coplate; 08-15-2016 at 05:25 PM. |
|||
08-16-2016, 10:52 PM | #43 |
Guru
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
|
|
08-17-2016, 08:14 AM | #44 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Thanks. That should help me get unstuck when doing testing where I need menu access when the touchscreen is acting up.
|
08-17-2016, 08:20 AM | #45 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
As a KUAL extension?
Aren't you creating a catch-22 situation? How does someone use a KUAL extension to install the external mouse handler when the touch screen isn't working? To be honest, I know geekmaster knows how to execute a KUAL extension without a working touch screen but I don't think you can assume that everyone has that skill level. Why not add a u-dev rule that installs the external mouse handler when the external mouse is plugged in? Last edited by knc1; 08-17-2016 at 08:26 AM. |
Tags |
otg, usb |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tools Software Jailbreak for PW2, PW3, PW3W, KT2, KV, KOA and KT3 | knc1 | Kindle Developer's Corner | 3376 | 05-31-2023 09:43 AM |
USB device to turn the page | arnicas | Kindle Developer's Corner | 23 | 02-20-2017 01:20 PM |
CC and USB/OTG support | GEB | Calibre Companion | 2 | 05-30-2015 12:24 PM |
ebook android readers and usb host - otg support | sasimako | Which one should I buy? | 4 | 02-18-2015 06:26 AM |
USB OTG | Mythic | Bookeen | 7 | 11-11-2007 12:39 PM |