View Single Post
Old 10-20-2023, 06:39 PM   #475
Tialex
Member
Tialex can tame squirrels without the assistance of a chair or a whip.Tialex can tame squirrels without the assistance of a chair or a whip.Tialex can tame squirrels without the assistance of a chair or a whip.Tialex can tame squirrels without the assistance of a chair or a whip.Tialex can tame squirrels without the assistance of a chair or a whip.Tialex can tame squirrels without the assistance of a chair or a whip.Tialex can tame squirrels without the assistance of a chair or a whip.Tialex can tame squirrels without the assistance of a chair or a whip.Tialex can tame squirrels without the assistance of a chair or a whip.Tialex can tame squirrels without the assistance of a chair or a whip.Tialex can tame squirrels without the assistance of a chair or a whip.
 
Posts: 13
Karma: 11102
Join Date: Aug 2023
Device: Nook Glowlight 4e
Quote:
Originally Posted by pazos View Post

In the mean time those with affected devices that rely on hw rotation can use v2023.05 or previous releases.
Thanks, after your information I dug into the sources and found that hasNativeRotation for Android just checks for API version so probably indeed the hardware rotation is used. I tried to apply the following patch (either with 1- or 2- prefix)

Code:
local frBuffer = require("ffi/framebuffer_android")
frBuffer.setRotationMode = function(self, mode)
end
to the mixed results. KoReader successfully felt through to the software rotation for a last opened epub file, but failed to achieve the same for a pdf file (the symptoms are the same as I posted before) and (for example) for the file manager failed for all cases. It felt like this function override didn't live for long and later was again returned to the primary value.

By the way, maybe its reasonable to provide something like "always use software rotation" in the settings? The mode for epub that worked with the above patch seemed to work correctly.
Tialex is offline   Reply With Quote