11-07-2017, 09:14 AM | #1 |
Connoisseur
Posts: 74
Karma: 28960
Join Date: Oct 2017
Location: Paris
Device: KOBO Libra + H2Ov2 + Aura2
|
Koreader works on H2O Edition 2 (H2O2) [SOLVED]
Hello,
Is there a thread to follow Koreader developpement for this specific device ? I can not open a bugtracking because it's not really a bug. It's only a device NOT supported yet... My way is to install the latest nightly update, every 2-3 days, and try to run the app since are working KSM08 and pbchess. But after few iterations it's boring... I am OK to test new updates on my device if someone need, as a beta tester. Thank you all EDIT : KOREADER IS NOW SUPPORTED ON H2O2 You need to apply this And for Natural Light, apply this Last edited by gilali; 03-06-2018 at 12:49 PM. Reason: thread solved (koreader is now supported on h2o2) |
11-07-2017, 10:53 AM | #2 |
Wizard
Posts: 1,613
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Other than https://github.com/koreader/koreader/pull/3372 which I added just so it would hopefully display something, there isn't any development without people like you who have the device.
A big one to try might be this one. Code:
touch_alyssum_protocol = true, |
Advert | |
|
11-07-2017, 02:54 PM | #3 |
Connoisseur
Posts: 74
Karma: 28960
Join Date: Oct 2017
Location: Paris
Device: KOBO Libra + H2Ov2 + Aura2
|
Thank you
Here my test on v2015.11-1401-g5faddfd/ 07-Nov-2017 06:40 added "touch_alyssum_protocol = true," like this : Code:
-- Kobo Aura H2O2: local KoboSnow = Kobo:new{ model = "Kobo_snow", hasFrontlight = yes, touch_phoenix_protocol = true, touch_alyssum_protocol = true, display_dpi = 265, -- the bezel covers the top 11 pixels: viewport = Geom:new{x=0, y=11, w=1080, h=1429}, }
Same results either on KSM or Nickel but on KSM :
Next ? |
11-07-2017, 03:31 PM | #4 |
Wizard
Posts: 1,613
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Ideally you should check if the program outputs any useful debugging info. The easiest but more labor-intensive way would be to add -d to the KSM KOReader command. Either in the KSM script or here:
https://github.com/koreader/koreader...reader.sh#L124 Code:
./reader.lua -d "${args}" >>crash.log 2>&1 The ultimately easier way is to use something like USBNet or SSH so you can easily change configurations and tail the debug output in your console, and of course kill KOReader so you don't have to reboot. Regarding the screen orientation, I should've mentioned that it's very important not to assume that the touch orientation and display orientation are the same. It could even be mirrored. So basically just try some taps all around the screen, probably starting with top center and bottom center. As far as what next, I can't really help you there. From what I've seen I don't think it should be necessary to write any new implementation, but some combination of already existing stuff should do: https://github.com/Frenzie/koreader/...e.lua#L20-L134 We know the DPI, we know it has a frontlight and the viewport is probably the same as on the H2O (not terribly important just for getting it to work) but other than that all bets are off. :P Note that on most Kobos you can play around with the visual rotation like this (in koreader.sh prior to ./reader.lua): Code:
CUR_ROTATE="$(cat "/sys/class/graphics/fb0/rotate")" # this suffices on normal devices, but H2O is stupid and sets the opposite echo "${CUR_ROTATE}" >"/sys/class/graphics/fb0/rotate" # this therefore turns it around on H2O (and other potential idiots) and merely # innocently repeats on sane devices # shellcheck disable=SC2094 cat "/sys/class/graphics/fb0/rotate" >"/sys/class/graphics/fb0/rotate" Code:
/usr/sbin/fbset -depth 32 |
11-07-2017, 03:39 PM | #5 |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2017
Device: Kobo Aura H2O2
|
I've been trying to get Koreader on my H2O2 too.
I'll briefly explain what I've done so far. 1. - Installed KSM08 - KSM was upside down and touch did not work - a patch fixed the problems with KSM (https://www.mobileread.com/forums/sh...&postcount=805) 2. - Installed most recent Koreader (nightly 20171023) using the recommended method - Loaded Koreader using KSM, but Koreader was upside down and no touch response. - Koreader versions before nightly 20171023 do not work (no response/reboots) 3. - Uninstalled everything from 1 and 2 - Installed Koreader using the alternative method (through Kobo File Manager) - Koreader starts in the correct orientation, but no touch. 4. - I found the current thread and added the code to the KoboSnow definition. - Koreader loads but still no touch. - After removing the other touch_(...)_protocol, Koreader does not start (device reboots). 5. - Removed Kobo FileManager - Installed KSM08 with H2O2 patch and Koreader again. - Added the code to the KoboSnow definition, but still no touch. Orientation notes: Koreader orientation is fine when starting through FileManager. KSM08 is upside down at first. After the H2O2 patch KSM08 is OK, but then Koreader is upside down. I did not test Koreader's orientation without the H2O2 patch. (I could not start it without touch) Touch notes: The H2O2 patch fixed touch in KSM08, maybe that's something to check out for Koreader coders? If there is anything else I could check, please let me know |
Advert | |
|
11-07-2017, 04:05 PM | #6 |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2017
Device: Kobo Aura H2O2
|
I made a debug log.
-Started Koreader. -Touched the screen a lot. - Put it to sleep - Woke it up - Touched the screen - Switched it off Upon first inspection it seems the touches are registered. |
11-07-2017, 05:30 PM | #7 | |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
Code:
# somewhere at the beginning, does not matter where exactly echo 0 > /sys/class/graphics/fb0/rotate cat /sys/class/graphics/fb0/rotate > /sys/class/graphics/fb0/rotate Code:
#before "exit $RETURN_VALUE" echo 2 > /sys/class/graphics/fb0/rotate cat /sys/class/graphics/fb0/rotate > /sys/class/graphics/fb0/rotate Last edited by tshering; 11-07-2017 at 05:39 PM. |
|
11-08-2017, 07:02 AM | #8 | |
Wizard
Posts: 1,613
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Quote:
Code:
11/08/17-12:37:43 DEBUG input event => type: 3, code: 57(nil), value: 0, time: 1510141063.446016 11/08/17-12:37:43 DEBUG input event => type: 3, code: 53(nil), value: 202, time: 1510141063.446022 11/08/17-12:37:43 DEBUG input event => type: 3, code: 54(nil), value: 403, time: 1510141063.446024 11/08/17-12:37:43 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1510141063.446025 11/08/17-12:37:43 DEBUG in tap state... 11/08/17-12:37:43 DEBUG set up hold timer 11/08/17-12:37:43 DEBUG AutoSuspend: onInputEvent 11/08/17-12:37:43 DEBUG input event => type: 3, code: 57(nil), value: -1, time: 1510141063.539426 11/08/17-12:37:43 DEBUG input event => type: 0, code: 0(nil), value: 0, time: 1510141063.539428 11/08/17-12:37:43 DEBUG in tap state... 11/08/17-12:37:43 DEBUG set up tap timer 11/08/17-12:37:43 DEBUG in tap timer true 11/08/17-12:37:43 DEBUG single tap detected in slot 0 { ["y"] = 403, ["x"] = 202, ["h"] = 0, ["w"] = 0 } There are three primary things I'd try first if I had the device myself (besides evtest). Nothing: Code:
local KoboSnow = Kobo:new{ model = "Kobo_snow", hasFrontlight = yes, display_dpi = 265, -- the bezel covers the top 11 pixels: viewport = Geom:new{x=0, y=11, w=1080, h=1429}, } Code:
local KoboSnow = Kobo:new{ model = "Kobo_snow", hasFrontlight = yes, touch_phoenix_protocol = true, display_dpi = 265, -- the bezel covers the top 11 pixels: viewport = Geom:new{x=0, y=11, w=1080, h=1429}, } Code:
local KoboSnow = Kobo:new{ model = "Kobo_snow", hasFrontlight = yes, touch_alyssum_protocol = true, display_dpi = 265, -- the bezel covers the top 11 pixels: viewport = Geom:new{x=0, y=11, w=1080, h=1429}, } |
|
11-08-2017, 05:01 PM | #9 | |
Connoisseur
Posts: 74
Karma: 28960
Join Date: Oct 2017
Location: Paris
Device: KOBO Libra + H2Ov2 + Aura2
|
Context:
Koreader from KSM Result: alyssum selected : KO phoenix selected : KO nothing selected: OK, i can put only a single touch with a response. And after, no any response. little good news My 3 logs in attach. Quote:
Code:
useDropbear=true So, I had to use the classic method to obtain logs. |
|
11-09-2017, 03:00 AM | #10 |
Connoisseur
Posts: 74
Karma: 28960
Join Date: Oct 2017
Location: Paris
Device: KOBO Libra + H2Ov2 + Aura2
|
Pbchess that works perfectly displays 305 dpi on the same device, as the screenshot :
Is there a way to make a mistake on the screen resolution, as big as the official Kobo website that displays 265 dpi ??? |
11-09-2017, 03:16 AM | #11 |
Connoisseur
Posts: 74
Karma: 28960
Join Date: Oct 2017
Location: Paris
Device: KOBO Libra + H2Ov2 + Aura2
|
https://www.sven.de/dpi/ count 265 dpi too.
It seems to be the right value Last edited by gilali; 11-09-2017 at 03:46 AM. |
11-09-2017, 03:45 AM | #12 |
Connoisseur
Posts: 74
Karma: 28960
Join Date: Oct 2017
Location: Paris
Device: KOBO Libra + H2Ov2 + Aura2
|
Starting through KSM, KOReader screen stays upside down despite the patch
Code:
# somewhere at the beginning, does not matter where exactly echo 0 > /sys/class/graphics/fb0/rotate cat /sys/class/graphics/fb0/rotate > /sys/class/graphics/fb0/rotate #before "exit $RETURN_VALUE" echo 2 > /sys/class/graphics/fb0/rotate cat /sys/class/graphics/fb0/rotate > /sys/class/graphics/fb0/rotate |
11-09-2017, 09:21 AM | #13 | |
Wizard
Posts: 1,613
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Quote:
(I have no idea why they don't just use the standard. Hopefully they didn't update it in some way.) |
|
11-09-2017, 09:22 AM | #14 | |
Wizard
Posts: 1,613
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Quote:
|
|
11-09-2017, 09:31 AM | #15 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
H2O2 Edition 2 Release Date? (Australia) | meeera | Kobo Reader | 12 | 09-21-2017 05:23 AM |
Kobo Aura H2O 2nd Edition vs old Kobo Aura H2O screen dimentions. | iXPert12 | Kobo Reader | 1 | 09-18-2017 09:35 AM |
Errors with EPUB rendering on Kobo Aura H2O running koreader-stable-v2015.11 | algernonramone | KOReader | 8 | 03-16-2016 12:55 AM |
[Aura H2O 3.18.0] Koreader/Coolreader Font Problems for a specific .epub | Gnorr | Kobo Reader | 3 | 10-09-2015 04:11 AM |
Koreader (latest install instructions) on H2O | JSWolf | KOReader | 15 | 12-04-2014 09:32 PM |