Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-11-2021, 12:23 PM   #751
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: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@baskerville: Week was a bit insane, sorry for the delay .

Here goes the log:

Code:
Plato is running on a Kobo Sage.
The framebuffer resolution is 1440 by 1920.
Tap (82, 1329) (1440, 1920)
Tap (123, 94) (1440, 1920)
Tap (1832, 140) (1440, 1920)
Tap (1817, 1363) (1440, 1920)
Tap (1813, 1357) (1920, 1440)
Tap (85, 1336) (1440, 1920)
Tap (93, 108) (1920, 1440)
Tap (1840, 141) (1440, 1920)
Startup rotation: 1.
Mirroring scheme: (0, 1).
Things look okay, except for the fact that it started upside down (actually UD, e.g., how a lefty might hold the device) .
NiLuJe is offline   Reply With Quote
Old 11-11-2021, 01:04 PM   #752
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 446
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Thanks, can you try the attached binary and see if the current view rotates in accordance with the device?
Attached Files
File Type: zip plato-sage-01.zip (2.02 MB, 216 views)
baskerville is offline   Reply With Quote
Advert
Old 11-11-2021, 04:04 PM   #753
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: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@baskerville: Startup is okay, but the gyro is uniformly inverted (UR <-> UD & CW <-> CCW).

As for the manual rotations, UR & UD are okay, but CW & CCW are inverted.
NiLuJe is offline   Reply With Quote
Old 11-12-2021, 03:05 AM   #754
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 446
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by NiLuJe View Post
As for the manual rotations, UR & UD are okay, but CW & CCW are inverted.
When the rotation value goes from x to x + 90, the current view should rotate clockwise: aren't you experiencing this?

You can also rotate the current view using the rotation gesture: one finger still, the other doing quarter circles around it.
Attached Files
File Type: zip plato-sage-02.zip (2.02 MB, 205 views)
baskerville is offline   Reply With Quote
Old 11-12-2021, 06:41 AM   #755
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: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
I'm expecting the *device* to be rotated CW when at 90, which might explain my comment above (although I seem to recall it working that way on the h2o, Forma & Elipsa). I'll double-check tonight .
NiLuJe is offline   Reply With Quote
Advert
Old 11-12-2021, 11:47 AM   #756
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 446
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by NiLuJe View Post
I'm expecting the *device* to be rotated CW when at 90
When the view rotates clockwise, the user rotates its device anticlockwise.
baskerville is offline   Reply With Quote
Old 11-13-2021, 01:06 PM   #757
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: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by baskerville View Post
When the view rotates clockwise, the user rotates its device anticlockwise.
That's because I go by the LinuxFB convention, where the "public" constants in 90° CW increments refer to *screen* rotations, not view/fb rotations .

Anyways, that only leaves the Gyro landscapes inverted, then (and this applies to the Elipsa).

EDIT: It's okay on the Forma.

EDIT²: The "Reboot" button also did something wonky on the Elipsa (e.g., it showed the "Welcome to Kobo" setup message for a few seconds before rebooting a second time for good).

Last edited by NiLuJe; 11-13-2021 at 01:15 PM.
NiLuJe is offline   Reply With Quote
Old 11-13-2021, 02:58 PM   #758
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 446
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by NiLuJe View Post
Anyways, that only leaves the Gyro landscapes inverted, then (and this applies to the Elipsa).
Unfortunately, I made a mistake in the last commit and added a rotation quirk for the Sage instead of adjusting the existing gyro quirk. It shouldn't have affected the Elipsa though. Please try the new binary on both devices.

Quote:
Originally Posted by NiLuJe View Post
The "Reboot" button also did something wonky on the Elipsa (e.g., it showed the "Welcome to Kobo" setup message for a few seconds before rebooting a second time for good).
The reboot action is equivalent to:

Code:
sync
reboot
Attached Files
File Type: zip plato-sage-03.zip (2.02 MB, 208 views)
baskerville is offline   Reply With Quote
Old 11-13-2021, 04:31 PM   #759
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: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by baskerville View Post
Unfortunately, I made a mistake in the last commit and added a rotation quirk for the Sage instead of adjusting the existing gyro quirk. It shouldn't have affected the Elipsa though. Please try the new binary on both devices.
Sorry, that was unclear, I was still running the latest release on the Elipsa .
NiLuJe is offline   Reply With Quote
Old 11-13-2021, 04:32 PM   #760
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: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by baskerville View Post
Code:
sync
reboot
Isn't it also doing something like calling on-animator in some way? Because it did that (as in, show the spinner, live, before the reboot, as soon as possible), first, too.
NiLuJe is offline   Reply With Quote
Old 11-14-2021, 04:01 AM   #761
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 446
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by NiLuJe View Post
Isn't it also doing something like calling on-animator in some way?
You found a bug in plato.sh: I thought reboot didn't return. But it does, hence Plato exits normally and nickel.sh is called at the end of the script!
baskerville is offline   Reply With Quote
Old 11-14-2021, 11:09 AM   #762
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: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Ah, yeah, that would definitely explain the behavior I saw .

----

And the gyro now behaves as expected with the latest binary (-03) .
NiLuJe is offline   Reply With Quote
Old 11-14-2021, 11:45 AM   #763
Almamida
Guru
Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.
 
Almamida's Avatar
 
Posts: 685
Karma: 11431990
Join Date: Jul 2015
Location: Toronto, Canada
Device: Kobo Sage - Kindle PW5 & Voyage - iPad Pro M1 12.9
I have a Libra2 and a Sage, if I can help testing anything.
Almamida is offline   Reply With Quote
Old 11-14-2021, 12:30 PM   #764
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 446
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by Almamida View Post
I have a Libra2 and a Sage, if I can help testing anything.
Could you try the attached binary (replace Plato's binary with it and launch Plato as you normally would) on your Libra 2 and post the relevant lines from info.log (the eight lines that start with Tap, the following two lines and all the lines that start with Framebuffer rotation)?
Attached Files
File Type: zip plato-rotation_values-libra2-01.zip (1.86 MB, 219 views)

Last edited by baskerville; 11-14-2021 at 12:34 PM.
baskerville is offline   Reply With Quote
Old 11-14-2021, 02:44 PM   #765
Almamida
Guru
Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.Almamida ought to be getting tired of karma fortunes by now.
 
Almamida's Avatar
 
Posts: 685
Karma: 11431990
Join Date: Jul 2015
Location: Toronto, Canada
Device: Kobo Sage - Kindle PW5 & Voyage - iPad Pro M1 12.9
Code:
Plato is running on a Kobo Libra 2.
The framebuffer resolution is 1264 by 1680.
Tap (93, 99) (1264, 1680)
Tap (67, 1187) (1264, 1680)
Tap (1627, 1181) (1264, 1680)
Tap (1611, 66) (1264, 1680)
Framebuffer rotation: 0 -> 0.
Tap (1595, 75) (1680, 1264)
Framebuffer rotation: 1 -> 1.
Tap (87, 85) (1264, 1680)
Framebuffer rotation: 2 -> 2.
Tap (80, 1162) (1680, 1264)
Framebuffer rotation: 3 -> 3.
Tap (1596, 1150) (1264, 1680)
Framebuffer rotation: 1 -> 1.
Startup rotation: 1.
Mirroring scheme: (3, -1).
I kept the Kobo in portrait the entire time
Almamida is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle -- KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) hawhill KOReader 1237 07-07-2025 02:25 PM
PocketBook-KOReader: a document reader for PDF, DJVU, EPUB, FB2, CBZ, ... (AGPLv3) chrox KOReader 584 07-01-2025 07:34 AM
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) hawhill Kindle Developer's Corner 1289 04-07-2025 10:18 AM
v3 vs. v3+ as a pdf/DjVu reader hedonism_bot HanLin eBook 7 11-02-2010 08:16 PM


All times are GMT -4. The time now is 07:06 AM.


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