Jump to content


Photo

OpenPLI 8.1 deep standby on HDMI-CEC


  • Please log in to reply
19 replies to this topic

#1 JamesBond

  • Senior Member
  • 27 posts

0
Neutral

Posted 5 February 2022 - 16:24

Hi, I can't see or didn't find a solution to deep standby the receiver on TV power off.

It only show normal standby and is working, I mean receiver goes standby on TV power off.

 

Other images have this option, can this be done on OpenPLI as well? Any help? Solutions?

 

Thanks.



Re: OpenPLI 8.1 deep standby on HDMI-CEC #2 ims

  • PLi® Core member
  • 13,932 posts

+215
Excellent

Posted 6 February 2022 - 07:57

Easy, but not good option - when box is recording/streaming/prepare recording, how will user confirm question about cancel recording/streaming, when TV is in standby yet ?


Kdo nic nedělá, nic nezkazí!

Re: OpenPLI 8.1 deep standby on HDMI-CEC #3 JamesBond

  • Senior Member
  • 27 posts

0
Neutral

Posted 6 February 2022 - 11:50

Hi, never used recording so don't know the behavior on the other images that this works and I have an option for deep standby.

The thing is I have one of those smart power plugs that when I turn off TV after a few seconds cuts the power in all plugs so every thing connected does not stay in standby consuming current even its the minimal possible amount but that in the end of the month raises my electrical bill. Also because of this power cut the receiver never shuts down properly since is in normal standby while it happens and could corrupt the image so next boot will fail.

 

Most of the times in bed I leave TV with a timer so later If I fall a sleep TV doesn't stay on until morning for nothing so this auto shut off is a good option if all works.

 

Anyway this should be a user option and decision so if the user wants to use time schedule recordings leaves this option off and there is no problem, in my case and probably other users too, I don't care for recordings and I care more for electricity saving. Another possibility is any deep standby operation forces stop whatever is going on so it really goes into deep standby without manual intervention.

 

I will test a scenario with recording on the other image and tell you later what it happens.

 

I'm just really enjoying this OpenPLI 8.1 image that I installed lately and I'm testing since for some reason (probably the team exceptional work developing it) I get better sharp image quality and also increase tuner sensitivity as I have more signal power in all channels on my Gigablue UHD UE 4K.



Re: OpenPLI 8.1 deep standby on HDMI-CEC #4 JamesBond

  • Senior Member
  • 27 posts

0
Neutral

Posted 6 February 2022 - 14:52

Ok I just checked and other images handle the deepstandby like this on HdmiCec.py:

	def deepstandby(self):
		import NavigationInstance
		now = time()
		recording = NavigationInstance.instance.getRecordingsCheckBeforeActivateDeepStandby()
		rectimer = abs(NavigationInstance.instance.RecordTimer.getNextRecordingTime() - now) <= 900 or NavigationInstance.instance.RecordTimer.getStillRecording() or abs(NavigationInstance.instance.RecordTimer.getNextZapTime() - now) <= 900
		pwrtimer = abs(NavigationInstance.instance.PowerTimer.getNextPowerManagerTime() - now) <= 900 or NavigationInstance.instance.PowerTimer.isProcessing(exceptTimer=0) or not NavigationInstance.instance.PowerTimer.isAutoDeepstandbyEnabled()
		if recording or rectimer or pwrtimer:
			self.CECwritedebug('[HdmiCec] go not into deepstandby... recording=%s, rectimer=%s, pwrtimer=%s' % (recording, rectimer, pwrtimer), True)
			self.standby()
		else:
			from Screens.InfoBar import InfoBar
			if InfoBar and InfoBar.instance:
				self.CECwritedebug('[HdmiCec] go into deepstandby...', True)
				InfoBar.instance.openInfoBarSession(Screens.Standby.TryQuitMainloop, 1)

So I didn't follow all the python code but looks like there is some sort of recording validations and handling that just analyzing this code part I read that if a recording is happening at the moment just does a normal standby instead a deapstandby. 

I can leave with this and looks a smart decision.  ;)

 

Just tried to this implementation myself bur some other things need to be changed for sure as the plugin itself to handle new options on GUI.

If anyone can help on this It will be fantastic !!!


Edited by JamesBond, 6 February 2022 - 14:57.


Re: OpenPLI 8.1 deep standby on HDMI-CEC #5 littlesat

  • PLi® Core member
  • 57,441 posts

+708
Excellent

Posted 7 February 2022 - 08:38

I suggest a modification is not required at all when you enable deepstandby after x minutes in standby..... When the user enables this the box goes to standby and then later in deepstandby.... you can reduce that time to a minimum (I do not remember what the minimum is here - but we can consider to add 10 seconds to that list or even 1 second or so to give the feeling of an immediately deepstandby - which I think is a much less invasive change).

 

Advantage is that when you make a mistake during powering down the TV you do not need to wait for the shut down and power up+boot....

 

It sounds a bit obvious but I suggest no tricks and additional stuff is needed that way.

 

I think we should also not consider to make tweaks here!


Edited by littlesat, 7 February 2022 - 08:40.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: OpenPLI 8.1 deep standby on HDMI-CEC #6 Dimitrij

  • PLi® Core member
  • 10,379 posts

+354
Excellent

Posted 7 February 2022 - 09:18

Simple...

When "Regard deep standby as standby" --> is yes

Add option "Handle deep standby from TV" yes/no


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: OpenPLI 8.1 deep standby on HDMI-CEC #7 JamesBond

  • Senior Member
  • 27 posts

0
Neutral

Posted 7 February 2022 - 10:24

Hi, first thanks for all the replies.
 
But @littlesat can't see any "enable deepstandby after x minutes in standby" option in the plugin settings.
 
Also @Dimitrij I have the "Regard deep standby as standby" but not the other ("Handle deep standby from TV").
 
 
Here is my settings for the moment on the HDMI-CEC plugin interface (forum doesn't allow me to upload images, follow the link to see, sorry...):
 


Re: OpenPLI 8.1 deep standby on HDMI-CEC #8 ims

  • PLi® Core member
  • 13,932 posts

+215
Excellent

Posted 7 February 2022 - 10:34

Simple...

When "Regard deep standby as standby" --> is yes

Add option "Handle deep standby from TV" yes/no

No. You must test recording, streaming, timeshift again in plugin... 

 

When is used timer, all is without it.


Kdo nic nedělá, nic nezkazí!

Re: OpenPLI 8.1 deep standby on HDMI-CEC #9 Dimitrij

  • PLi® Core member
  • 10,379 posts

+354
Excellent

Posted 7 February 2022 - 10:35

Or as openATV

choicelist = [
	("disabled", _("Disabled")),
	("standby", _("Standby")),
	("deepstandby", _("Deep standby"))
]
config.hdmicec.handle_tv_standby = ConfigSelection(default="standby", choices=choicelist)

 


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: OpenPLI 8.1 deep standby on HDMI-CEC #10 ims

  • PLi® Core member
  • 13,932 posts

+215
Excellent

Posted 7 February 2022 - 10:37

 

Hi, first thanks for all the replies.
 
But @littlesat can't see any "enable deepstandby after x minutes in standby" option in the plugin settings.
 
Also @Dimitrij I have the "Regard deep standby as standby" but not the other ("Handle deep standby from TV").
 
 
Here is my settings for the moment on the HDMI-CEC plugin interface (forum doesn't allow me to upload images, follow the link to see, sorry...):
 

 

As wrote littlesat, use timer, when box goes from standby to deepstanby after some time. I am using it in on one box in one room too. I will see, what must be set and will write it here...


Kdo nic nedělá, nic nezkazí!

Re: OpenPLI 8.1 deep standby on HDMI-CEC #11 Dimitrij

  • PLi® Core member
  • 10,379 posts

+354
Excellent

Posted 7 February 2022 - 10:37

 

No. You must test recording, streaming, timeshift again in plugin... 

 

When is used timer, all is without it.

Yes is it recording, streaming, timeshift   use standby

 

Sleep timer

https://github.com/O...imerEdit.py#L92


Edited by Dimitrij, 7 February 2022 - 10:38.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: OpenPLI 8.1 deep standby on HDMI-CEC #12 ims

  • PLi® Core member
  • 13,932 posts

+215
Excellent

Posted 7 February 2022 - 10:45

Menu -> Stanby /restart -> Sleeptimer - Shutdown when in Standby ... set minuts (i am using there "after 5 minutes" )

 

You can enable interval "Specify timeframe to ignore ...." to "Yes" and then set f.eg:

Start time ...  8:00

End time ...  23:00

=> in this time (from 8:00 to 23:00) will not be automaticaly box going from Standby to Deepstandby.


Kdo nic nedělá, nic nezkazí!

Re: OpenPLI 8.1 deep standby on HDMI-CEC #13 ims

  • PLi® Core member
  • 13,932 posts

+215
Excellent

Posted 7 February 2022 - 10:46

 

 

No. You must test recording, streaming, timeshift again in plugin... 

 

When is used timer, all is without it.

Yes is it recording, streaming, timeshift   use standby

 

Yes, but all this test must be added to cec.py... next code...


Edited by ims, 7 February 2022 - 10:46.

Kdo nic nedělá, nic nezkazí!

Re: OpenPLI 8.1 deep standby on HDMI-CEC #14 JamesBond

  • Senior Member
  • 27 posts

0
Neutral

Posted 7 February 2022 - 10:58

Sorry guys don't know what are talking about. Timer? Is it another plugin?

The timer I know on the receiver only manage to schedule recordings or to zap to some channel at certain time and can´t see any sleep or standby tasks.

 

I just want something that puts my receiver on deepsantdby when the TV goes into power off, that's it !


Edited by JamesBond, 7 February 2022 - 10:59.


Re: OpenPLI 8.1 deep standby on HDMI-CEC #15 JamesBond

  • Senior Member
  • 27 posts

0
Neutral

Posted 7 February 2022 - 11:03

Ohhhh... sorry @ims I didn't saw your explanation as messages drop here so quickly while I was typing my last one.

 

I see now that option you are saying,

Ok going to try if does what I need, since the auto power off plug as short time before cuts totally the power on everything plug on it.

 

Thanks.


Edited by JamesBond, 7 February 2022 - 11:04.


Re: OpenPLI 8.1 deep standby on HDMI-CEC #16 littlesat

  • PLi® Core member
  • 57,441 posts

+708
Excellent

Posted 7 February 2022 - 12:26

It is not a plugin. It is an option in the sleeptimer (menu -> Last Option -> First Option).

 

Immediately going deep standby is something you simply cannot do (even other image claim it) as it interferes/block auto upgrading bouquets (cable scan/fast scan) and it might also 'block' going to standby when a recording is going on...etc... All of these exceptions are no arranged at one point that keeps the code simple without special hacks.

 

You cannot simply shut down the box 'anywhere' without risk and side efffects.


Edited by littlesat, 7 February 2022 - 12:28.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: OpenPLI 8.1 deep standby on HDMI-CEC #17 JamesBond

  • Senior Member
  • 27 posts

0
Neutral

Posted 7 February 2022 - 13:04

@littlesat Sorry to contradict you, but I have an other image doing this without any problems just filling the right settings on HDMI-CEC menu/interface.

 

I just want to start using the OpenPLI 8.1 since I discovered that is light, quicker, better image quality and stronger signal on all channels as the other I used before.

 

As I showed here before part of the code from this other image and they contour the recording problem by just checking if there is one on the moment or near by and if yes just do a normal standby instead a deep one. 



Re: OpenPLI 8.1 deep standby on HDMI-CEC #18 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 7 February 2022 - 13:16

 

Simple...

When "Regard deep standby as standby" --> is yes

Add option "Handle deep standby from TV" yes/no

No. You must test recording, streaming, timeshift again in plugin... 

 

When is used timer, all is without it.

 

 

If you turn off the TV, these tests make no sense, because you will not see a warning on the TV screen anyway.
I think it should be left to the user.
If he wants to turn off the receiver completely with the TV remote, why not let him do it even if he loses some recordings.
You can warn about this by turning on this setting.
 
Thefore I think this is the best.

Or as openATV
choicelist = [
("disabled", _("Disabled")),
("standby", _("Standby")),
("deepstandby", _("Deep standby"))
]
config.hdmicec.handle_tv_standby = ConfigSelection(default="standby", choices=choicelist)

Edited by Taapat, 7 February 2022 - 13:19.


Re: OpenPLI 8.1 deep standby on HDMI-CEC #19 littlesat

  • PLi® Core member
  • 57,441 posts

+708
Excellent

Posted 7 February 2022 - 18:41

When you adapt to it you have more location where you need to repeat some code for deepstanby… and the hdmi is coming with a trigger… when doing it x time after standby you can centralize is. Beside recording it covers more, like streaming, harddisk in use, fastscan, cablescan, fallbacktuner, nas functionality, and maybe more…. As far I know all of that is not coverend in those foreign images. When eg a client box is viewing a recording you do not want that a server box goes down suddenly… 

 

Keep code simple as possible is what we should prefer above just hack and hammer it in because a user wants it.

 

That you do not have a problem does not say there isn’t any….

 

Better be smart and when you to let it directly go to deepstandby change one thing (when it is not already there) that is shorten  that go to deepstandby when in standby timer (with eg add a warning that cablescan and fastscan might not work when you make it too short).

 

Yes with other images it can go to deepstandby, but some features that depend on going to standby will be overruled and will not work anymore.


Edited by littlesat, 7 February 2022 - 18:49.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: OpenPLI 8.1 deep standby on HDMI-CEC #20 JamesBond

  • Senior Member
  • 27 posts

0
Neutral

Posted 16 February 2022 - 11:30

For now I solved my needs with an old plugin I found that I manually installed and still works, the enigma2-plugin-extensions-enhancedpowersave_2.2.3-20130122_all.ipk.

I just turn it on and after a TV off the receiver goes into standby because of the configurations I have on HDMI-CEC, them immediately after this plugin puts it into deep standby.

 

:)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users