View Single Post
Old 02-25-2020, 10:24 AM   #4
pazos
cosiņeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by datanoise View Post
Hi.

My question is: what would be the easier (and cleanest!) way to launch a command each time koreader is started or (even better) is there already a way to easily have koreader change the system poweroff screensaver?
The easiest is not the cleanest. Both would require a PB to tinker with and some free time.

The cleanest (I dunno if this is possible on Pocketbook): figure out a way to stop the framework (aka inkview) to react to both input events (power key and magnetic cover) and figure out a way to tell inkview to go to sleep. If you find a way to do both you can repurpose all screensaver logic and it will behave as it does on kobos.

The easiest way would be a plugin that generates a cover for each new book opened. You could repurpose part of screensaver logic but need to do a few things yourself, namely:

- add logic to skip books without covers (a fallback image?)
- check if the image was written to disk
- check for FW incompatibilities and do nothing if the FW has other ways to write the screensaver.
- ...
pazos is offline   Reply With Quote