Comments (5)
Handle SIGUSR1
for full refresh and SIGUSR2
for a short deep sleep?
from papertty.
My 6" display doesn't seem to have that problem. Might be a common feature of IT8951 displays, thanks to the additional controller.
@math85360 @jeLee6gi @C-Rothnie, what is your experience?
from papertty.
Handle
SIGUSR1
for full refresh andSIGUSR2
for a short deep sleep?
I think I would put the display to sleep automatically after N updates with no image changes, if only it's feasible to do so (ie. no unreasonable overhead or other issues). N could even be quite low, or a particular elapsed time. The signals can be left for manual overrides, but I'm not yet decided on what those should be.
I'm thinking that perhaps there should be a --powersave
option (on by default) that does at least two things:
- Puts the display to sleep when nothing is happening
- Automatically adjusts the sleep interval to something larger (up to a certain maximum for example)
This would keep the display mostly asleep if the updates happen irregularly and also keep the CPU usage down in those cases by making PaperTTY itself slow its pace. When the image updates again, it would go back to regular refresh rates (or perhaps there could be a slowly adaptive method for this).
To do this nicely we might need to have some configurable values such as the minimum and maximum update intervals.
So, maybe in the future we could have --powersave
with perhaps settings like:
off
- no powersaving, static and minimum update interval (basically the way it works currently).on
- enable panel sleep after a while (N frames or reasonable wall clock time of nothing happening?) and increase the interval a reasonable amount (say, from 0.1 seconds to at least 1 second). When something happens, panel is woken up and the interval is immediately set back to minimum.adaptive
- enable panel sleeping and adjust update interval automatically, this could start from the fastest update we want to have and then gradually adjust it slower depending how often actual updates occur (ie. change in the image). For example a calendar application doesn't need to update but once an hour perhaps in some cases, but since the loop isn't too costly maybe the max interval can be set to some minutes. If suddenly there's a flurry of activity, the interval could be shortened gradually. The algorithm to do this should probably be kept pretty simple to understand.- something else?
I've been meaning to tackle the config file issue at some point, perhaps as "profiles" in YAML format (so one can do ./papertty.py -f cottage_vnc.yaml
etc.), and with all these new configuration options it's going to be needed soon...
Dunno, how does this sound?
from papertty.
Can you post a tutorial video
from papertty.
Can you post a tutorial video
Please create a new issue about this if you feel it's needed (requesting it in an unrelated issue is confusing) - the documentation has mostly been rewritten already, but as usual, I've been too busy with other things to finish it.
from papertty.
Related Issues (20)
- Screen has strange looking streaks HOT 3
- 7in5_V2 unusable slow? HOT 3
- No read access to /dev/vcsa1 - maybe run with sudo HOT 3
- PaperTTY on mac/osx HOT 1
- Updates are received in VNC mode only if other VNC client is connected to server HOT 1
- Optimizing refresh rate on 7.8'' Waveshare e-ink HOT 24
- What's the optimal settings for 6"HD? HOT 7
- Starting Up at Boot HOT 15
- Last known 'good' version of Raspbian OS for PaperTTY - and help in updating the install guide? HOT 24
- PaperTTY on Laptops with an IT8951 controller HOT 9
- Getting error init() got an unexpected keyword argument 'vcom' when trying to run PaperTTY HOT 1
- EPD2in13v4 and moving in line with waveshare reccommendations HOT 6
- Adjusting PaperTTY to work with weAct 2.9 HOT 6
- Is it possible to use it with a 13.3" monochrom e-Paper Display
- 3.7” display support
- Support for EPD7in5v_v2 HOT 2
- Issue with framebuffer display HOT 1
- ModuleNotFoundError when following poetry install HOT 1
- Completely non functional with 2in13V2 and Pi Zero W HOT 5
- Display doesn't update properly unless --invert HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from papertty.