evilsocket / pwnagotchi

(⌐■_■) - Deep Reinforcement Learning instrumenting bettercap for WiFi pwning.
https://pwnagotchi.ai/
Other
7.55k stars 1.14k forks source link

Config to prevent excessive redrawing #628

Open dipsylala opened 4 years ago

dipsylala commented 4 years ago

Is your feature request related to a problem? Please describe. Some users have described excessive updates of the ePaper screen, even with fps set to 0.0. Partial updates are less intrusive but on full refresh displays it can cause a lot of blinking. Either way, it affects the lifespan of the ePaper display. With more plugins come more updates to 'status' or custom controls.

Describe the solution you'd like A way of limiting the display changes to an ePaper display: "only update every x seconds, but only if changes have occurred"

Setup: Config says "only update once every 10 seconds, max" The update refers to a significant update that would cause the screen to change (by default anything except uptime and name)

Scenario: an update occurs multiple times within the 10 second period

Scenario: Updates outside the 10 second period

Scenario: The setting is set to 0 or is missing:

There is a side issue here - we don't want the web UI to be restricted to this - the PNG should be updated based on the fps setting. Therefore I'd see the config for this setting going in the ui.display area of the config.

Describe alternatives you've considered I've not found a way to prevent this without affecting the web ui too, or the refresh happens every x seconds regardless of updates (ie setting fps>0.0)

copysolo commented 4 years ago

Hi, I'm having this problem right now. My unit in auto mode blinks often. On my config.yml the fps 0.0 how can i fix this problem. Thank you. Capture