fenollp / reMarkable-tools

Tools for the reMarkable paper tablet
Other
186 stars 7 forks source link

Handle resume correctly (with Oxide and other launchers) #118

Open fenollp opened 10 months ago

fenollp commented 10 months ago

cc https://github.com/fenollp/reMarkable-tools/issues/6 and https://oxide.eeems.codes/documentation.html

Eeems commented 10 months ago

The simplest way would be to just handle SIGCONT, as that signal is sent when a process is resumed after being paused. You won't be able to handle the signal sent to pause the application, which means you can't do any sort of clean up before pausing.

Oxide has an alternative application mode that will use SIGUSR1 and SIGUSR2 signals that need to be acked back to tarnish for suspend/resume.