ddvk/remarkable2-framebuffer

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

Witos opened this issue · 13 comments

Witos commented

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

it's a problem in koreader, not rm2fb

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

ddvk commented
Witos commented

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
ddvk commented

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

ddvk/koreader@31d1f7b

Witos commented

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

ddvk commented

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

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

#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

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

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

Witos commented

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...