View Single Post
Old 09-30-2016, 11:18 AM   #49
jscris
Addict
jscris is an accomplished Snipe hunter.jscris is an accomplished Snipe hunter.jscris is an accomplished Snipe hunter.jscris is an accomplished Snipe hunter.jscris is an accomplished Snipe hunter.jscris is an accomplished Snipe hunter.jscris is an accomplished Snipe hunter.jscris is an accomplished Snipe hunter.jscris is an accomplished Snipe hunter.jscris is an accomplished Snipe hunter.jscris is an accomplished Snipe hunter.
 
Posts: 399
Karma: 123456
Join Date: Feb 2009
Location: Central US
Device: k1 - KAO2, IPads
Quote:
Originally Posted by zxczxc View Post
Huh well that took a while of debugging.
I was injecting/writing to the touchscreen events, but sometimes previous page/next page would still be incorrect.

In landscape view, X returns the current landscape res. Ok.
But it turns out that we always need the portrait res when writing to the input device, since the touch device uses portrait coordinates, regardless of X.
When simply using the XTestFakeMotionEvent() to fake a mouse/touch, I didn't have to worry about it.
So, switching to the 'better' fake touch that will work with KOReader wasn't as easy as I thought! (It would have been no work if I pretended landscape mode didn't exist)


Anyway, I didn't do anything about the brightness not working in voyage (oasis I assume too) - but I plan to fix. Thankfully it's something minor and brightness isn't needed to be changed very often!


KindleLazy 0.9 is better:
It supports waking up the kindle if it is in screensaver mode (on 'my' remote, it is set to the first/top button of the controller)
It works in KOReader

But it doesn't work properly in upside down mode... and at the moment I can't think of a nice way to fix this.
(The input is reversed)
And still sometimes the input is not corrected when we enter upside down mode...

(Still no brightness for voyage if using my remote I think!)

https://github.com/llakssz/KindleLaz...leLazy-0.9.zip
Quick report as I have to leave for a while:
0.9 doesn't seem to work with koreader, BUT the reverse screen does work, although not in a helpful way. It causes a reboot and the screen remains turned 180, but KL will not start in that configuration. A restart puts the screen back to normal and KL will start again. And you're right, light slider doesn't work, but screensaver waking does.

Thanks so much for the time you're spending on this!
jscris is offline   Reply With Quote