View Single Post
Old 07-03-2023, 06:53 AM   #162
toty88
Junior Member
toty88 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2023
Device: Boox Leaf 2
Quote:
Originally Posted by denisuu View Post
I also use KoReader, you'll notice that if you hold the device upside down the buttons don't change. You'll need a patch for that, it's very simple though.

Patch thread: https://github.com/koreader/koreader/issues/9223

Save the content below in a textfile, rename it to 2-disable-hw-button-rotation.lua and place it under /koreader/patches/

Code:
local logger = require("logger")
local Device = require("device")
Device.input:disableRotationMap()
logger.info("Hardware button rotation disabled by user patch")

Do I need to create /koreader/patches/ path? Cause I dont have it in my Leaf2!
toty88 is offline   Reply With Quote