MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   KOReader (https://www.mobileread.com/forums/forumdisplay.php?f=276)
-   -   Auto-rotation for KOReader on Android? (https://www.mobileread.com/forums/showthread.php?t=343308)

drawson1 11-28-2021 11:08 AM

Auto-rotation for KOReader on Android?
 
I've been running KOReader on my Kobo device for a while with good success.

I just added it to my Android tablet, and I'm unable to get it to do auto-rotation. This is particularly annoying when I read in landscape mode, since the info lists always come up in portrait mode . . . .

On my Kobo, I saw some "lock" options like "Ignore accelerometer events" that don't show up in the menus when I run on Android.

I scanned the forum, but didn't see any pointers to this.

Am I missing something obvious here?

Thanks!

Dan

pazos 11-28-2021 01:27 PM

This post still applies: https://www.mobileread.com/forums/sh...&postcount=350

drawson1 11-28-2021 05:17 PM

Hmmm, no luck

I did add patch.lua to the koreader directory and re-started . . . I don't know lua; do I need to do something else to force the patch to be included?
  • Info lists like the file manager are still always portrait mode
  • The book I'm reading is always landscape mode
  • The checkboxes (which I've seen on my Kobo) for the various rotation "lock" tools are missing
  • If I go to "Rotation" while reading the book, I don't get the various 90 degree / 180 degree checkboxes, but I can still change it from the bottom menu
  • 90 degree / 180 degree check boxes are there for the info list

Background data: Device is a Samsung Galaxy S6 Lite running Android 11

Thanks in advance!

Dan

pazos 11-28-2021 05:36 PM

The patch worked at the time of the implementation. Will check again soon. Maybe another rota is applied at some time at launch (I'm not very sure about the platform independant code path followed).

The rest of stuff I can answer :)

> Info lists like the file manager are still always portrait mode
> The book I'm reading is always landscape mode

In the FM go to Settings -> Screen -> Rotation and check "Keep current rotation across views".

> The checkboxes (which I've seen on my Kobo) for the various rotation "lock" tools are missing

That's platform dependant code. They don't exist on android (like use volume keys to turn pages doesn't exist on kobos).

> If I go to "Rotation" while reading the book, I don't get the various 90 degree / 180 degree checkboxes, but I can still change it from the bottom menu

That happens on all platforms IIRC. On the reader the rotation options are in the bottom menu. The only option you'll see on the top menu is Keep current rotation across views".

> 90 degree / 180 degree check boxes are there for the info list

There's no such thing as a info list. That's called the file manager (or FM). KO has two different apps (reader and fm). On top of that it has different "views" made by a bunch of widgets. All widgets and views (which are containers of widgets) should follow the current rotation of the app you're currently on (reader/fm).

Apps (again, reader or FM) are what define the options you see on menus. So, technically true: on the FM rotation controls happen on Settings -> Screen -> Rotation

Reading OP again I think you will be fine with "Keep current rotation across views". If you read in landscape and your device defaults to portrait you'll see a little rotation artifact each time you launch the app. It is a bit annoying but the best we can get with "nosensor".

pazos 11-28-2021 08:11 PM

Quote:

Originally Posted by pazos (Post 4176386)
the best we can get with "nosensor".

@NiLuJe

Long term solution is an unified interface for dealing with gyro.

AFAICT the options given in Kobos are:

- always follows the gyro
- follows gyro in landscape
- follows gyro in portrait
- do not follow gyro

We can do the same in android but it is not possible to change current rotation manually without "locking" future rotation changes.

NiLuJe 11-29-2021 05:23 PM

Quote:

Originally Posted by pazos (Post 4176423)
We can do the same in android but it is not possible to change current rotation manually without "locking" future rotation changes.

That seems an acceptable compromise, users who force a specific rotation are *probably* already using a full lock. Although you'll probably see a few using orientation locks for asymmetric devices (e.g., Oasis/Forma design), where relying on the gyro to swap hands is not entirely uncommon.


All times are GMT -4. The time now is 11:21 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.