View Single Post
Old 09-21-2019, 10:02 AM   #3
Michal Jancik
Sorry for my English
Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.
 
Michal Jancik's Avatar
 
Posts: 466
Karma: 3009898
Join Date: Aug 2018
Location: France.Besancon
Device: KOBO.PocketBook.ONYX
Quote:
Originally Posted by Michal Jancik View Post
- But I have a problem with "screen orientation". The touch is the other way around. When I press down on the right, the screen will show up on the left.
(lower right corner= left top corner )

- Is it possible to solve the problem with the orientation / set the touch screen correctly?
- If you have the same problem as me with "Invert - Orientation" and "Invert - Touch Screen" in Koreader, I edited the file "framebuffer.lua". This file can be found under: adds/koreader/ffi

FIX : Rotated touch screen : :
ORIENTATION_LADSCAPE
ORIENTATION_PORTRAIT


Code:
fb.ORIENTATION_PORTRAIT = 0
fb.ORIENTATION_LANDSCAPE = 3
-- And now for Inverted orientations...
fb.ORIENTATION_PORTRAIT_ROTATED = 2
fb.ORIENTATION_LANDSCAPE_ROTATED = 1
FIX : OppositeTouch screen location :
TOUCH SCREEN ORIENTATION L/P


- If you have the same problem, you can download the edited file here:
Download edited file : framebuffer.lua
https://www.mobileread.com/forums/at...1&d=1569074125

- Download (extract zip) the file framebuffer.lua to the folder: adds/koreader/ffi

-The touch screen and auto orientation are now correct.
[Tested only with Kobo Libra H2O -- Firmware 4.17.13694 ]
Attached Files
File Type: zip framebuffer.zip (3.6 KB, 435 views)

Last edited by Michal Jancik; 09-22-2019 at 05:25 AM.
Michal Jancik is offline   Reply With Quote