Mobileread
Set system poweroff screensaver on PocketBook ereaders
#1  datanoise 02-24-2020, 03:45 PM
Hi.

I'm looking for a way to change the poweroff screensaver on my PocketBook ereader so that when I use Koreader the screensaver is the cover of the book I'm currently reading with koreader, rather than the last one opened by pocketbook's reader.

I found a .lnk (microsoft link) in system/logo/ called "bookcover.lnk" that indicates the path to the last cover image to use.

It would be rather easy to change this link to the image created by koreader: there are bash scrips to create .lnk files that could be easily run on the PB.

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?

Found this github issue, seems like the way PB handles the screensaver changed in last firmwares (an image in /mnt/ext1/system/logo/bookcover won't necessarily be used as the cover once the device is shut down, but the img linked by bookcover.lnk will).

Thanks!
Reply 

#2  Frenzie 02-25-2020, 02:31 AM
Depending a little on the format it wants it'd be easy enough to write an image but if anything had changed the issue probably would've too. Especially note https://github.com/koreader/koreader/issues/2095#issuecomment-515538113
Reply 

#3  datanoise 02-25-2020, 09:31 AM
I noticed, thanks for your answer.

That's why a more generic way to launch a command when opening a file would make it easy to hack something (it's pretty easy to modify the .lnk file to point it to koreader's latest cover). Modifying the launcher could be a solution but I'd have preferred something cleaner...
Reply 

#4  pazos 02-25-2020, 10:24 AM
Quote datanoise
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.
- ...
Reply 

#5  datanoise 02-25-2020, 05:21 PM
Thanks for your insight...

More complicated than I expected. I'll see if I can find some time to experiment with that...
Reply 

Today's Posts | Search this Thread | Login | Register