Quote:
Originally Posted by pazos
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.