View Single Post
Old 06-03-2015, 03:20 AM   #2192
Murky
Junior Member
Murky began at the beginning.
 
Murky's Avatar
 
Posts: 4
Karma: 10
Join Date: May 2015
Device: Kobo touch
rotated touch

Quote:
Originally Posted by tshering View Post
I installed the latest koreader today and I really like it. I would even more like it, if one could exit it without rebouting. One problem is, that after koreader the screen is turned by 270 degree. Therefore, I thought a first step to a solution might be restoring the original frame buffer settings after running koreader.

Before running koreader, fbset -s gives
Code:
mode "800x600-0"
	# D: 0.033 MHz, H: 0.034 kHz, V: 0.055 Hz
	geometry 800 600 800 1280 16
	timings 30000000 8 164 4 18 4 1
	accel false
	rgba 5/11,6/5,5/0,0/0
endmode
After running koreader, fbset -s givers
Code:
mode "600x800-0"
	# D: 0.033 MHz, H: 0.043 kHz, V: 0.052 Hz
	geometry 600 800 608 1792 8
	timings 30000000 8 164 4 18 4 1
	accel false
	rgba 8/0,8/0,8/0,0/0
endmode
I try to set
Code:
fbset -g 800 600 800 1280 16 -rgba 5/11,6/5,5/0,0/0 -t 30000000 8 164 4 18 4 1
and fbset -s shows

Code:
mode "600x800-0"
	# D: 0.033 MHz, H: 0.043 kHz, V: 0.052 Hz
	geometry 600 800 608 1792 16
	timings 30000000 8 164 4 18 4 1
	accel false
	rgba 5/11,6/5,5/0,0/0
endmode
As you see, of the geometry set only the -depth value (8 to 16 bits per pixel) has changed, the resolution is unchanged. Was this to be expected? I also tried setting each of the 5 geometry values individually, but with the same result. Is it an error in busybox? Is my approach totaly hopeless? Any ideas?
Excuse me I have a simillar problem. Koreader's display looks fine but touch turned by 270 degree. I read your post but I didn't understand which file needs change?

Fix problem in accordance with:
Quote:
Originally Posted by tshering View Post
In the file E:\.kobo\koreader\frontend\ui\input.lua, you find

Code:
-- For single-touch events (ABS.code).
local ABS_X = 01
local ABS_Y = 00
change it to

Code:
-- For single-touch events (ABS.code).
local ABS_X = 00
local ABS_Y = 01
You will probably need an editor that writes only line feed at the end of lines, rather than carriage return and line feed; cf. this.
But the way to input.lua was: i:\.adds\koreader\frontend\device\input.lua

Last edited by Murky; 06-03-2015 at 03:57 AM.
Murky is offline   Reply With Quote