Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

epd_fuse CPU usage #195

Open
AndyMo905 opened this issue Aug 10, 2018 · 2 comments
Open

epd_fuse CPU usage #195

AndyMo905 opened this issue Aug 10, 2018 · 2 comments

Comments

@AndyMo905
Copy link

Hi there,

Running a really simple python script (display elapsed seconds) on a PiZero with the PaPiRus Zero. I have it updating the screen using partial updates, and have it looped so that every 5 minutes or so it does a full refresh.

The CPU usage of epd_fuse is pretty high, but after a couple of days things get really bogged down and the Pi CPU is at 100%. At that point updates and mouse control slow right down. At day 3-4 I get maybe 3-5 screen updates a day because the PiZero is slammed.

Is there a clean-up routine that should be done to help ?

Thanks !

Andy

@tvoverbeek
Copy link
Contributor

Are you sending partial updates continuously?
Since you want to display elapsed seconds, you can sleep for about a second between updates.
If you do not sleep epd-fuse will be running behind since executing the previous update request is not finished before the next one comes in. This might explain the high CPU usage and running out of memory (slow Pi).
For example look at the code in papirus-clock (https://github.com/PiSupply/PaPiRus/blob/master/bin/papirus-clock) where a partial update is only sent when the second changes.

@AndyMo905
Copy link
Author

tvoverbeek - that example code was perfect ! In addition to getting things working more smoothly, it helped me avoid additional apis like positional text, which i think were also slowing things down.

Thank you very much for your help.

Andy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants