View Single Post
Old 12-06-2022, 02:35 AM   #509
rjd22
Junior Member
rjd22 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2022
Device: Pocketbook
Quote:
Originally Posted by rkomar View Post
You do not need root privileges to get notification of events. Do you see any events at all? There should be plenty of other events coming through. If you see other events but not EVT_ORIENTATION events, then you probably have the g-sensor disabled in the system configuration. If you don't see any events of any kind, then you have other problems. Maybe you didn't enable the code in your build, or you are in the wrong process (it looks like the events are handled in the forked child), or inkview events are not enabled from LUA,... Add some debug code to make sure that InkViewMain(pb_event_handler) is being called in your version.
You can follow my work on the gsensor here: https://github.com/koreader/koreader/pull/9873

For now it's poll based but I hope to make it event based.

I've been quite stumped on the event implementation. The gsensor is enabled and I see the system responding to the gsensor (I can see the device waking up). I do receive all button and touch events in my debug code but for some reason no orientation events. But I might be doing something wrong. I have a PocketBook InkPad Color where I'm testing on.

Would you be willing to check on your device if you can see the events in the debug logs of KoReader? To rule out device error.
rjd22 is offline   Reply With Quote