aesuli / Kindle-Photo-Frame

A Kindle-based photo frame that periodically shows a random image.
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

Delay time doesn't work as expected #2

Closed pera1998 closed 5 days ago

pera1998 commented 3 weeks ago

Hi Andrea,

I changed the delay time from 97200 to 15, expecting the picture to change every 15 seconds. The changing but takes longer. I stopped the time and it was 3min 20sec.

These are my logs:

[2924] Thu Nov 7 18:46:38 UTC 2024: changescreensaver /mnt/us/documents/pictures/3.png [2924] Thu Nov 7 18:47:38 UTC 2024: setwakeup 15 [2924] Thu Nov 7 18:47:43 UTC 2024: setwakeup 15 [2924] Thu Nov 7 18:48:03 UTC 2024: setwakeup 15 [2924] Thu Nov 7 18:48:08 UTC 2024: setwakeup 15 [2924] Thu Nov 7 18:48:13 UTC 2024: setwakeup 15 [2924] Thu Nov 7 18:48:18 UTC 2024: setwakeup 15 [2924] Thu Nov 7 18:49:58 UTC 2024: wakeup: screenSaver [2924] Thu Nov 7 18:49:58 UTC 2024: changescreensaver /mnt/us/documents/pictures/1.png [2924] Thu Nov 7 18:50:58 UTC 2024: setwakeup 15 [2924] Thu Nov 7 18:51:04 UTC 2024: setwakeup 15 [2924] Thu Nov 7 18:51:24 UTC 2024: setwakeup 15 [2924] Thu Nov 7 18:51:29 UTC 2024: setwakeup 15 [2924] Thu Nov 7 18:51:34 UTC 2024: setwakeup 15 [2924] Thu Nov 7 18:51:39 UTC 2024: setwakeup 15 [2924] Thu Nov 7 18:52:01 UTC 2024: wakeup: active

Edit: I tried with more than 200 seconds delay because I thought it's maybe an internal lower limit, which ignores everything smaller than 200 and yes, with 300 seconds it worked. But it took 60 sec longer

kind regards

aesuli commented 3 weeks ago

I never tried short update times, as I planned to use it with day or multi-day refresh intervals. I'm looking into this and I confirm what you have found. The refresh procedure is bound to some internal timeouts and shorter times are not working. Also, the offset is determined by the fact that the actual sleep happens a bit later than the change of screensaver. Having wifi off or on may affect this delay.

pera1998 commented 3 weeks ago

Thanks for the explanation. I will stick to a mult-day refresh rate