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

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-23-2021, 01:28 PM   #16
undecimo
Junior Member
undecimo began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2021
Device: Kobo Aura & Libra 2
Photo attached.

Another random observation - when connected via USB, the Libra 2 identifies itself as product 0x4234 running Nickel and 0xdead running KOReader. I assume unknown devices are 0xdead to KOReader and the Libra 2 ID can be added to a mapping table somewhere.
Attached Thumbnails
Click image for larger version

Name:	devcap.jpg
Views:	110
Size:	165.2 KB
ID:	189782  
undecimo is offline   Reply With Quote
Old 10-23-2021, 03:15 PM   #17
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 12,129
Karma: 21225489
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O, Forma, Elipsa & Sage
@undecimo: Ah, that looks okay, thanks .

Does this behave in KOReader? (e.g., this latest fbdepth binary, and *NOT* disabling the x invert?).

As for the USB ids, that's to be expected, given that the USBMS tool hasn't been updated yet. It'll automagically behave once everything is merged .
NiLuJe is offline   Reply With Quote
Old 10-23-2021, 03:41 PM   #18
undecimo
Junior Member
undecimo began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2021
Device: Kobo Aura & Libra 2
Hmm, it looks like touch_mirrored_x = false is still needed with the most recent fbdepth. I double checked the timestamp of the binary. The file size is exactly the same as the fbdepth I tested last night, but I'm sure I haven't mixed them up.

@7hir7een, can you confirm?
undecimo is offline   Reply With Quote
Old 10-23-2021, 04:08 PM   #19
xor_
Connoisseur
xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.
 
Posts: 99
Karma: 470830
Join Date: Nov 2012
Location: Berlin
Device: Nook Simple Touch, Kobo Aura H2O, Kobo Libra 2
Quote:
Originally Posted by NiLuJe View Post
If you're willing to dig into it over shell (i.e., ssh/telnet), I have a test script that'll spit out all the gory details I need that I can send you?
If there's still something you need, i have ssh running on the libra 2.
xor_ is offline   Reply With Quote
Old 10-23-2021, 06:27 PM   #20
xor_
Connoisseur
xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.
 
Posts: 99
Karma: 470830
Join Date: Nov 2012
Location: Berlin
Device: Nook Simple Touch, Kobo Aura H2O, Kobo Libra 2
see new post.

Last edited by xor_; 10-24-2021 at 09:04 AM. Reason: was getting confused, sorry
xor_ is offline   Reply With Quote
Old 10-23-2021, 07:03 PM   #21
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 12,129
Karma: 21225489
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O, Forma, Elipsa & Sage
Okay then, that possibly makes sense...

Just to double check, could you run the finger_trace tool, and see if it actually draws stuff in the right place (say, a short swipe in the top left corner).
Keep in mind that it'll fight to the death with whatever's attempting to redraw stuff below it ;p. (Hit Ctrl+C to quit).

Ideally, it would be amazing if someone could test this in all four rotations:

./fbdepth -R UR
./fbdepth -R CW
./fbdepth -R UD
./fbdepth -R CCW

But admittedly, just UR would be a good start .

I also wouldn't mind having a look at the full terminal output of these runs .

----

On another matter completely, if someone could poke in /sys/class/backlight to see where the frontlight & LED controls are hidden, that would be neat (It *looks* like it's the exact same thing as on the Libra, but I don't recall if anyone actually confirmed that ^^).
Attached Files
File Type: gz Kobo-DevCap-Test.tar.gz (650.6 KB, 31 views)
File Type: gz ftrace.tar.gz (28.5 KB, 28 views)

Last edited by NiLuJe; 10-23-2021 at 08:53 PM. Reason: Forgot the binaries :x
NiLuJe is offline   Reply With Quote
Old 10-23-2021, 07:38 PM   #22
undecimo
Junior Member
undecimo began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2021
Device: Kobo Aura & Libra 2
I assume @xor_ is correct and the latest fbdepth solves the x-axis flip. I may have forgotten to roll back other edits in my KOReader install. I'll do a fresh install tonight and run the additional tests.

Anecdotally I can say that the Libra H2O frontlight code seems to work very well with the Libra 2. Manual controls are perfect and auto warmth (which I'm running in expert mode) behaves as configured.
undecimo is offline   Reply With Quote
Old 10-23-2021, 08:00 PM   #23
xor_
Connoisseur
xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.
 
Posts: 99
Karma: 470830
Join Date: Nov 2012
Location: Berlin
Device: Nook Simple Touch, Kobo Aura H2O, Kobo Libra 2
Quote:
Originally Posted by NiLuJe View Post
Just to double check, could you run the finger_trace tool, and see if it actually draws stuff in the right place (say, a short swipe in the top left corner).
Keep in mind that it'll fight to the death with whatever's attempting to redraw stuff below it ;p. (Hit Ctrl+C to quit).
Looks all plausible to me.

Quote:
Ideally, it would be amazing if someone could test this in all four rotations:

fbdepth -R UR
fbdepth -R CW
fbdepth -R UD
fbdepth -R CCW
See attachment.



Quote:
On another matter completely, if someone could poke in /sys/class/backlight to see where the frontlight & LED controls are hidden, that would be neat
ls -lA /sys/class/backlight/

Code:
lrwxrwxrwx    1 admin    root             0 Oct 24 00:39 lm3630a_led -> ../../devices/platform/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-0036/backlight/lm3630a_led
lrwxrwxrwx    1 admin    root             0 Oct 24 00:39 lm3630a_leda -> ../../devices/platform/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-0036/backlight/lm3630a_leda
lrwxrwxrwx    1 admin    root             0 Oct 24 00:39 lm3630a_ledb -> ../../devices/platform/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-0036/backlight/lm3630a_ledb
lrwxrwxrwx    1 admin    root             0 Oct 24 00:39 mxc_msp430.0 -> ../../devices/platform/ntx_bl/backlight/mxc_msp430.0
Attached Files
File Type: txt fbdepth-testing.txt (2.1 KB, 28 views)

Last edited by xor_; 10-23-2021 at 08:08 PM.
xor_ is offline   Reply With Quote
Old 10-23-2021, 08:53 PM   #24
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 12,129
Karma: 21225489
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O, Forma, Elipsa & Sage
Oh, I, err, realize I might have worded this a bit poorly .

The interesting bit would actually have been running ./finger_trace *between* every fbdepth invocation, that wasn't clear, my bad ;p.
NiLuJe is offline   Reply With Quote
Old 10-24-2021, 06:40 AM   #25
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 12,129
Karma: 21225489
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O, Forma, Elipsa & Sage
And I possibly misread half of everything last night, because sleep is good for your brain, do it!

So, another key point I might have forgotten to mention:

I'm assuming the device is physically set up right-handed (i.e., buttons on the right).

So, if I revert last night's fever dream, *this* finger_trace binary should behave .
Attached Files
File Type: gz ftrace.tar.gz (28.5 KB, 26 views)
NiLuJe is offline   Reply With Quote
Old 10-24-2021, 08:39 AM   #26
xor_
Connoisseur
xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.
 
Posts: 99
Karma: 470830
Join Date: Nov 2012
Location: Berlin
Device: Nook Simple Touch, Kobo Aura H2O, Kobo Libra 2
Quote:
Originally Posted by NiLuJe View Post
So, another key point I might have forgotten to mention:

I'm assuming the device is physically set up right-handed (i.e., buttons on the right).

So, if I revert last night's fever dream, *this* finger_trace binary should behave .
Ok, next try. It's always reversed.
Attached Files
File Type: txt ftrace-test2.txt (177.0 KB, 28 views)
xor_ is offline   Reply With Quote
Old 10-24-2021, 09:11 AM   #27
xor_
Connoisseur
xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.
 
Posts: 99
Karma: 470830
Join Date: Nov 2012
Location: Berlin
Device: Nook Simple Touch, Kobo Aura H2O, Kobo Libra 2
Okay, sorry about the confusion last night.

Today I could reproduce, using this latest fbdepth, that with mirrored = true, the tap zones are rerversed.

With mirrored = false, everything pretty much works as expected.

I did see occasional crashes after fiddling with some of the menus. Will look into that by actually using the reader for a bit.
xor_ is offline   Reply With Quote
Old 10-24-2021, 10:05 AM   #28
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 12,129
Karma: 21225489
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O, Forma, Elipsa & Sage
Okay, so the finger_trace binary from last night https://www.mobileread.com/forums/sh...9&postcount=21 *should* behave properly, right?

Last edited by NiLuJe; 10-24-2021 at 12:11 PM.
NiLuJe is offline   Reply With Quote
Old 10-24-2021, 01:45 PM   #29
xor_
Connoisseur
xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.xor_ ought to be getting tired of karma fortunes by now.
 
Posts: 99
Karma: 470830
Join Date: Nov 2012
Location: Berlin
Device: Nook Simple Touch, Kobo Aura H2O, Kobo Libra 2
Quote:
Originally Posted by NiLuJe View Post
Okay, so the finger_trace binary from last night https://www.mobileread.com/forums/sh...9&postcount=21 *should* behave properly, right?
I'm afraid it's not so easy. I get a lot of errors like the following, and afterwards weirdness happens.

Quote:
libevdev error in sanitize_event: BUG: Device "Elan Touchscreen" received a double tracking ID 247 in slot 0.
As far as I an tell, with fbdepth -R UR, the movement tracking is always correct. With UD, it's always reversed.

With CW and CCW, it's mostly screen corruption and no easily decipherable correlation to my finger movements.
Attached Files
File Type: zip ftrace-test.zip (162.3 KB, 28 views)

Last edited by xor_; 10-24-2021 at 01:51 PM.
xor_ is offline   Reply With Quote
Old 10-24-2021, 01:59 PM   #30
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 12,129
Karma: 21225489
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O, Forma, Elipsa & Sage
The errors are perfectly "normal": it's just the Elan driver being the worst, but it's harmless in practice.

I'm going to need an idea of *where* you were actually touching the screen to make sense of what's happening, though ;o).
NiLuJe is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Libra Libra H2O vs Libra 2 (from reddit) Deobulakenyo Kobo Reader 19 10-20-2021 10:21 PM
Advice on modding for highlighting? 303 Kobo Reader 0 08-07-2020 02:25 PM
modding the EE? summatusmentis enTourage Archive 28 07-08-2010 04:53 PM
Modding My Kindle DiggerG Amazon Kindle 15 11-01-2009 01:01 PM
case modding alexxxm Sony Reader 6 01-01-2008 03:44 PM


All times are GMT -4. The time now is 04:43 AM.


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