View Single Post
Old 10-09-2021, 06:30 PM   #5
katadelos
rm -rf /
katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.
 
Posts: 219
Karma: 3333683
Join Date: Nov 2019
Location: United Kingdom
Device: K5, KT, KT2, KT3, KT4, KV, PW2, PW3, PW4, PW5
Quote:
Originally Posted by 0ripkindle View Post
I think I'll hijack this thread instead of making a new one.

How involved would it be to make an extension for logging activity on the kindle? I'd like to log when the kindle was woken up, put to sleep, restarted, and what book was opened / closed and when. And maybe even what page / loc was accessed when.

I guess it could all be written to /mnt/us/?
Depends on how many of those things that you want to monitor and your level of skill with scripting languages/ability to deal with the hell that is writing Upstart jobs.

You'd need to patch the scripts that handle the relevant events to log to a file/sqlite DB or write a daemon that monitors these events directly. KUAL doesn't really come into this apart from offering an easy way to enable/disable this monitoring.

Most of those events are available over LIPC (wake, sleep, possibly reboot?) - book reading info is potentially a lot more involved though.
katadelos is offline   Reply With Quote