Read the statement by Michael Teeuw here.
Hide modules when display goes off through PIR (power saving)
-
Maybe I don’t understand your question… but
Hiding modules only with css (i.e hiding them on screen) does nothing for the power saving.
You need the monitor to go in to sleep for any power to be saved.The Pi still runs when you hide the modules, not much power to save there, And I don’t really think the modules reload when hiding/showing them. But I can be wrong haven’t looked in to the code on the Hide/show part.
-
modules do not reload… their content is not shown when hidden
-
But it would save CPU Power if the Modules would be hide or not?
-
@thedk unlikely… or so small as to be unmeasurable
-
@broberg
Indeed you don’t save power but when placing the module “on sleep” you stop them for making them network request with API calls . -
@ejay-ibm yes, a well written module will suspend operations while hidden or suspended.
-
@sdetweil I’d be willing to bet the majority don’t … I don’t have any provisions in mine to stop polling but since you brought it up it is something I will most certainly want to do!! It’s a VERY good idea!
-
@sdetweil said in Hide modules when display goes off through PIR (power saving):
a well written module will suspend operations while hidden or suspended.
That leaves me out. :-)
-
@cowboysdude @Mykle1 just add routines for suspend and resume. Set a variable on suspend, and don’t do anything til the variable is cleared on resume
-
@sdetweil said in Hide modules when display goes off through PIR (power saving):
@thedk unlikely… or so small as to be unmeasurable
Also, if the modules keep running while the display is off, they will all be up to date when you trigger the presence sensor to bring it out of sleep.
I’d recommend not hiding the modules during power save.