ddvk / remarkable2-framebuffer

remarkable2 framebuffer reversing
MIT License
279 stars 22 forks source link

koreader touch input doesn't work (stylus input is fine) #20

Closed Witos closed 3 years ago

Witos commented 3 years ago

After setting up koreader on remarkable2, I have a problem with a touch input. It doesn't work. Operating using stylus works without any problems, but the touching using fingers does not. Is it a issue of the current remarkable2-framebuffer set-up or the koreader itself?

ddvk commented 3 years ago

get the latest master of koreader

On Thu, 12 Nov 2020 at 12:20 Witos notifications@github.com wrote:

After setting up koreader on remarkable2, I have a problem with a touch input. It doesn't work. Operating using stylus works without any problems, but the touching using fingers does not. Is it a issue of the current remarkable2-framebuffer set-up or the koreader itself?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ddvk/remarkable2-framebuffer/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIYZFLQQ6CV5MUYEGMQAP2TSPPAIDANCNFSM4TTE575Q .

raisjn commented 3 years ago

it's a problem in koreader, not rm2fb

isn't the x axis also inverted? or is that fix in master?

ddvk commented 3 years ago

no, there are a couple of fixes that need to be added to koreader (x y adjustment and the inverted x)

On 12 Nov 2020, at 14:19, raisjn notifications@github.com wrote:

 isn't the x axis also inverted? or is that fix in master?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Witos commented 3 years ago

I built latest koreader master and tested. The problem remains. Maybe my set-up is wrong: LD_PRELOAD=/home/root/fb/librm2fb_server.so /usr/bin/remarkable-shutdown & LD_PRELOAD=/home/root/fb/librm2fb_client.so ./koreader.sh ? Maybe this xochitl is still taking over a touch events in the background?

ddvk commented 3 years ago

koreader needs some minor changes, i ll push them when i have time

On Thu, 12 Nov 2020 at 21:32 Witos notifications@github.com wrote:

I built latest koreader master and tested. The problem remains. Maybe my set-up is wrong: LD_PRELOAD=/home/root/fb/librm2fb_server.so /usr/bin/remarkable-shutdown & LD_PRELOAD=/home/root/fb/librm2fb_client.so ./koreader.sh ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ddvk/remarkable2-framebuffer/issues/20#issuecomment-726326146, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIYZFLWGQV63S2N62CDCZWLSPRA6PANCNFSM4TTE575Q .

ddvk commented 3 years ago

@Witos here are the changes that needed for koreader: (and the latest frontend/device/gesturerecognizer.lua)

https://github.com/ddvk/koreader/commit/31d1f7b25150b32a1de60514e365e71990219b2d

Witos commented 3 years ago

I compiled the repo, patch didn't help with touch input, but maybe I do sth wrong...

ddvk commented 3 years ago

i added a minor fix, you can get the latest version, same repo. i am ashamed to admit, but i can't compile koreader at the moment.

Witos commented 3 years ago

Damn it, I missed that you didn't commit your patch on master but on rm2, will try again. Maybe I can help with compilation somehow?

Generally, I'm interested in koreader / remarkable development,I know some stuff, I've been Linux embedded dev for few years..

Witos commented 3 years ago

Good news: touch works, at least at basic level.

Bad news: the screen is not refreshed properly. I had some minor issues in the previous koreader version but I fixed it turning "night mode" on and off. This time it doesn't help.I suspect it might be regression in koreader, I'll check vanilla version over the weekend. I'm using rm2-fb today checkout, and rm2 branch of koreader. image

Witos commented 3 years ago

Good news: I rebooted the devices, set-up everything once again. It works like a charm. Will test it for the few days.

ddvk commented 3 years ago

you can try the latest: lib2rmfb_server, should have refresh etc

Witos commented 3 years ago

Thanks @ddvk , I think it's worth to make Pull Request to koreader with this patch. It works fine so far for me. Now I need to make wifi in Koreader work...