06-25-2018, 01:52 PM | #16 |
Reader of Books
Posts: 231
Karma: 178096
Join Date: Oct 2012
Device: Kobo Libra Colour, Libra 2, Elipsa, Kindle Basic (11th gen)
|
I copied the example text in the fbink thread since I don't know what I'm doing . That did indeed work just fine
Spoiler:
Where should that strace file be placed on the kindle, because /mnt/us/ directory did not appear to be the answer. Should it be replacing the one in the usbnet directory? |
06-25-2018, 01:58 PM | #17 |
BLAM!
Posts: 13,482
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@7hir7een: You can basically put it anywhere, as long as you call that one, and not USBNet's.
I usually put those kind of testing things in root's $HOME, since it's a tmpfs, but in this specific case, replacing USBNet's binary is a good idea, since that one is mostly broken on the KOA2 anyway . And then you can just call "strace" since USBNet's one is in your PATH . EDIT: Just to be perfectly clear: you did get to see that string printed on your screen, right? ^^. That'd be a good news, since KOReader should mostly do the same thing... EDIT²: Err, of course, you have to unpack the tarball, first . tar xvzf strace-koa2.tar.gz . Last edited by NiLuJe; 06-25-2018 at 02:01 PM. |
Advert | |
|
06-25-2018, 02:25 PM | #18 |
Reader of Books
Posts: 231
Karma: 178096
Join Date: Oct 2012
Device: Kobo Libra Colour, Libra 2, Elipsa, Kindle Basic (11th gen)
|
ssh output attached
Actions taken: (roughly, some button presses had to be repeated because this slowed down the device a lot and it appeared not to be responding) Spoiler:
And yes, the text did print on the screen (screenshot attached) ETA: If you would like me to take less actions in a specific order, just let me know. I was trying to do a bit of everything haha |
06-25-2018, 05:17 PM | #19 |
BLAM!
Posts: 13,482
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@7hir7een: Thanks! That'll give me something to check against, I'll keep you all posted .
|
06-25-2018, 06:15 PM | #20 |
Wizard
Posts: 1,229
Karma: 2957301
Join Date: Apr 2014
Location: Rochester, NY
Device: iPad mini 6, Onyx Leaf 2, Onyx Tab Mini C, Nook Glowlight 4 Plus
|
Thanks @NiLuJe & 7hir7een! I haven't had a chance to get started on USBNet yet.
|
Advert | |
|
06-30-2018, 05:14 PM | #21 |
BLAM!
Posts: 13,482
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Okay, I'll be merging the KOReader changes soon, in the meantime, just to check that I did not break anything, could one of you check if the newly released FBInk 0.9.12 still works?
|
06-30-2018, 09:36 PM | #22 |
Reader of Books
Posts: 231
Karma: 178096
Join Date: Oct 2012
Device: Kobo Libra Colour, Libra 2, Elipsa, Kindle Basic (11th gen)
|
It does indeed
|
06-30-2018, 09:43 PM | #23 |
BLAM!
Posts: 13,482
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Yay, thanks!
I'll give you a shout once an OTA w/ the latest changes pops up . |
07-01-2018, 07:42 AM | #24 |
BLAM!
Posts: 13,482
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@7hir7een: In the meantime, I guess I can ask you a few more things to try...
Does Code:
hexdump /dev/input/by-path/platform-gpiokey.0-event If it works, tap a few times on each physical buttons and send me the output (again, in a specific order so I can figure out which is which ^^). ---- And the final thing: does it still rotate automatically based on its physical orientation? If yes, does Code:
lipc-get-prop -s com.lab126.winmgr accelerometer And if it does, what about Code:
cat /proc/bus/input/devices | grep -e 'Handlers\\|EV=' | grep -B1 'EV=d'| grep -o 'event[0-9]' With that answered, I should be able to match the KOA1 feature-set . Last edited by NiLuJe; 07-01-2018 at 07:46 AM. |
07-01-2018, 08:43 AM | #25 |
Reader of Books
Posts: 231
Karma: 178096
Join Date: Oct 2012
Device: Kobo Libra Colour, Libra 2, Elipsa, Kindle Basic (11th gen)
|
Sure thing
The first bit of code returns a file not found Code:
[root@kindle root]# hexdump /dev/input/by-path/platform-gpiokey.0-event hexdump: /dev/input/by-path/platform-gpiokey.0-event: No such file or directory Spoiler:
That's top, bottom, top, bottom (spaces inserted for legibility) -- with the device upright (buttons on right side) --- Here are the other things you asked for if you still need them: by-path Spoiler:
devices Spoiler:
--- Yes, the KOA2 retains the accelerometer. Switching between upright (buttons on right side) and reversed (buttons on left side): Spoiler:
But that second bit Spoiler:
Last edited by 7hir7een; 07-01-2018 at 09:07 AM. Reason: added platform-gpio-keys-event results; fixed typo; answer question in order |
07-01-2018, 11:05 AM | #26 |
BLAM!
Posts: 13,482
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@7hir7een: Thanks, that was massively helpful . I should be able to get the physical buttons working, as well as the orientaiton support with all this .
And the final command failing can be explained by the fact that there's >9 input devices, but I should be able to figure it out thanks to the manual cat I asked you for, so all's good . EDIT: Also, Lua escaping, ooops. Last edited by NiLuJe; 07-01-2018 at 11:15 AM. |
07-01-2018, 11:22 AM | #27 |
BLAM!
Posts: 13,482
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@7hir7een: Hmm, quick question, what's the default mapping for the top button? Backward or Forward?
(I'm looking at a K4 and it was Backward, but looking at the KOA code and what you've logged, it looks like Forward, unless they inverted the keycode between the KOA and the KOA2...) EDIT: Looked at the KOA2 user's guide, it's indeed in the reverse order than on a K2/K3/K4, so, all's good . (i.e., top is forward). Last edited by NiLuJe; 07-01-2018 at 11:28 AM. |
07-01-2018, 12:37 PM | #28 |
BLAM!
Posts: 13,482
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
OTA 1753 is out and features the result of this latest batch of changes .
|
07-01-2018, 01:23 PM | #29 |
Reader of Books
Posts: 231
Karma: 178096
Join Date: Oct 2012
Device: Kobo Libra Colour, Libra 2, Elipsa, Kindle Basic (11th gen)
|
No go, unfortunately. I can't really see anything different in the crash log, but it's freezing on a blank screen as before when attempting to start the filemanager.
Is there some way to get more in-depth feedback from terminal, maybe? |
07-01-2018, 01:41 PM | #30 |
BLAM!
Posts: 13,482
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@7hir7een:
Hmm. You can try debug mode, see if something better pops up in the logs that way... In koreader/koreader.sh, switch ./reader.lua to ./reader.lua -d (c.f., https://github.com/koreader/koreader...reader.sh#L236) (with a decent text/code editor that won't mangle *nix line endings). And on the off-chance I messed that up, does the path /sys/class/backlight/max77796-bl/brightness actually point to something? EDIT: As for terminal output, I guess our best friend strace might be of help again... Code:
strace -fitv -p $(pidof reader.lua | sed -e 's/ / -p /g') Last edited by NiLuJe; 07-01-2018 at 01:51 PM. |
Tags |
koa2, koreader |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
KOA2 KOA2 jail break | knc1 | Kindle Developer's Corner | 470 | 07-03-2020 01:28 AM |
KOA2 getting hot in the sun | Lady Stardust | Amazon Kindle | 17 | 08-20-2018 06:58 PM |
Accessories unofficial accessory of my KOA2 | N31welt | Amazon Kindle | 0 | 01-01-2018 04:55 AM |
KOA2 question about KOA2 storage | fllc | Kindle Developer's Corner | 2 | 11-25-2017 03:18 AM |
KOA2 KOA2 USB mount | j.p.s | Kindle Developer's Corner | 8 | 11-02-2017 11:36 AM |