02-24-2020, 04:45 PM | #1 |
Groupie
Posts: 175
Karma: 14110
Join Date: Aug 2016
Device: SuperNote A5X
|
Set system poweroff screensaver on PocketBook ereaders
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! Last edited by datanoise; 02-24-2020 at 04:58 PM. |
02-25-2020, 03:31 AM | #2 |
Wizard
Posts: 1,675
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
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...ment-515538113
|
02-25-2020, 10:31 AM | #3 |
Groupie
Posts: 175
Karma: 14110
Join Date: Aug 2016
Device: SuperNote A5X
|
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... Last edited by datanoise; 02-25-2020 at 10:43 AM. |
02-25-2020, 11:24 AM | #4 | |
cosiñeiro
Posts: 1,331
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
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. - ... |
|
02-25-2020, 06:21 PM | #5 |
Groupie
Posts: 175
Karma: 14110
Join Date: Aug 2016
Device: SuperNote A5X
|
Thanks for your insight...
More complicated than I expected. I'll see if I can find some time to experiment with that... |
01-14-2024, 09:52 AM | #6 | |
Groupie
Posts: 195
Karma: 1074916
Join Date: Jan 2021
Device: Likebook Ares
|
Just in case someone is interested. Configure KOReader to save cover in:
/mnt/ext1/system/resources/Line/taskmgr_lock_background.bmp And make a little modification in KOReader code to kill the process taskmgr.app in the init method in readerview.lua: Quote:
|
|
Tags |
cover, koreader, pocketbook |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PocketBook eReaders wirh 20% discount | Cyfranek | PocketBook | 1 | 12-01-2019 04:15 PM |
Kindle system running on Android ereaders? | heyman | Android Developer's Corner | 1 | 04-20-2019 03:06 PM |
Is there a way to set the position the reader opens at on a dual monitor system | LadyKate | Calibre | 4 | 11-06-2014 12:23 PM |
Class Set of 25 eReaders - What's Recommended? | amybobamy | Which one should I buy? | 30 | 02-19-2011 08:46 PM |
Hacks Original screensaver files in Linux file system ? | meem | Amazon Kindle | 4 | 08-13-2010 08:23 AM |