nickel grabs the /dev/input/event0 exclusively by default so events can't be read from the outside. (event0 is the "keyboard" that includes power button and magnet sensor keys). It's possible to patch nickel to drop the exclusive access though (change grab=1 to grab=0 - lucky this isn't hardcoded). At that point an external process can read the magnet event and effect a page flip by sending a touch event.
So the pieces are all there, not sure if/when I'll get around to make a useable remote control mod out of it.
|