Jump to content


Photo

My box switches on by itself every morning


  • Please log in to reply
23 replies to this topic

#1 sjlouis

  • Senior Member
  • 1,573 posts

+3
Neutral

Posted 9 December 2023 - 16:08

Hi,

 

Since a few days, my Vu+ switches on by itself every morning but not the TV while there is HDMI CEC on.

 

I sought in the settings file and I've found this line : config.misc.prev_wakeup_time_type=2

Is this the problem ?

 

It's not as obvious as EPGimport and autobackup : config.plugins.autobackup.wakeup=9:30

                                                                                config.plugins.epgimport.wakeup=9:30

 

Thank you :)


Vu+ Ultimo 4K - OpenPli 8.3

Xtrend ET9200 - OpenPli 6.2


Re: My box switches on by itself every morning #2 Pr2

  • PLi® Contributor
  • 6,182 posts

+261
Excellent

Posted 9 December 2023 - 16:50

Hi,

 

This can happens, when your box crash and restart by itself at night, if you didn't activate start in standby your box will remain on.

Check that you don't have a enigma-crash log generated at night on your box HDD or USB.

 

Or you have a cat that push on the RCU and turn on the STB, this happens to me so the RCU is now in a drawer every night.  ;)

 

Pr2 


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: My box switches on by itself every morning #3 sjlouis

  • Senior Member
  • 1,573 posts

+3
Neutral

Posted 9 December 2023 - 17:57

The last crash is 2023/12/4. There are no crashes since this date but the box is awake every morning and the TV is not awake while when I press the remote box or the front button TV, the TV starts.

 

I have no cat now :( .


Vu+ Ultimo 4K - OpenPli 8.3

Xtrend ET9200 - OpenPli 6.2


Re: My box switches on by itself every morning #4 WanWizard

  • PLi® Core member
  • 70,546 posts

+1,813
Excellent

Posted 9 December 2023 - 18:14

You don't mention if the box is in standby or off (deep standby) when you go to bed in the evening.

There is only one thing that takes a box out of standby and into on, and that is a recording timer. Which should switch the box back off, unless you have instructed the timer not to.

 

It's not as obvious as EPGimport and autobackup : config.plugins.autobackup.wakeup=9:30

                                                                                           config.plugins.epgimport.wakeup=9:30

 

These aren't really wakeup timers, they're more "run-at" values.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: My box switches on by itself every morning #5 sjlouis

  • Senior Member
  • 1,573 posts

+3
Neutral

Posted 9 December 2023 - 18:31

The box is in standby, it turns on immediately and it can record.

 

It's a good idea a timer wake up the box if the switch in on zap but it's not the case, I've just verified  ;)  and if the timer is on zap, the box wake up and the TV wake up. In my case, the TV does not wake up.


Vu+ Ultimo 4K - OpenPli 8.3

Xtrend ET9200 - OpenPli 6.2


Re: My box switches on by itself every morning #6 WanWizard

  • PLi® Core member
  • 70,546 posts

+1,813
Excellent

Posted 9 December 2023 - 19:46

No idea, even an enigma crash and restart would switch on the TV, unless it is setup to start to standby.

 

If the uptime of the box indicates it is not a full reboot, you could restart Enigma into debug mode before you go the bed, and put it into standby.

 

Then the next morning check if it is still running in debug mode (if so the restart menu shows the "restart to standard menu" option) or if E2 has restarted. And you can check the debuglog to see what has happened overnight...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: My box switches on by itself every morning #7 sjlouis

  • Senior Member
  • 1,573 posts

+3
Neutral

Posted 10 December 2023 - 09:56

If the uptime of the box indicates it is not a full reboot, you could restart Enigma into debug mode before you go the bed, and put it into standby.

How can I verify "uptime"?

 

 

Then the next morning check if it is still running in debug mode (if so the restart menu shows the "restart to standard menu" option) or if E2 has restarted. And you can check the debuglog to see what has happened overnight...

I restart the box in debug mode yesterday. With the restart, some commands are executed by a recent application (which is boring) and that was not the case with this restart.

 

This morning, the box have switched on like these last days, the restart menu shows "Restart in debug mode".

 

I've found debuglog file. I join it because I don't know what I have to search. There is "[EPGImport] Will wake up from deep sleep" but I don't think it's the problem.

 

Thank you.

Attached Files


Vu+ Ultimo 4K - OpenPli 8.3

Xtrend ET9200 - OpenPli 6.2


Re: My box switches on by itself every morning #8 WanWizard

  • PLi® Core member
  • 70,546 posts

+1,813
Excellent

Posted 10 December 2023 - 15:33

According to the log enigma restarts because of a crash in epgimport, which is caused by

[EPGImport] failed to open /etc/epgimport/rytec.sources.xml Error: mismatched tag: line 679, column 65

have you been editing these files manually?
 


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: My box switches on by itself every morning #9 sjlouis

  • Senior Member
  • 1,573 posts

+3
Neutral

Posted 10 December 2023 - 16:03

If I look at "rytec.sources.xml", in Windows explorer, it shows "Last date modification : 12/01/2020 8:50". It's old and my problem dates a few days.

 

I don't try to modify this file but I can copy internet link in Firefox to get the website of a satellite channel (syfy.fr for example) for IPTV EPG (it doesn't work very well). Perhaps I may have modified the file unintentionally but as I just said, it's old.

 

I think I've found the problem in column 13 and not 65, there is :

 

    url>http://91.121.106.17...I_Misc.xz</url>

instead of :

    <url>http://91.121.106.17...I_Misc.xz</url>

 

I do a lot of tests with EPG import to find EPG for IPTV channels and Openpli doesn't crash when I launch manually EPG Import. Isn't it curious?


Vu+ Ultimo 4K - OpenPli 8.3

Xtrend ET9200 - OpenPli 6.2


Re: My box switches on by itself every morning #10 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 11 December 2023 - 16:02

Hi.

 

This could be an HDMI CEC issue that some of the devices on the HDMI network are sending some CEC commands (for unknown reasons). So... in the HDMI-CEC configuration, in the Enigma2 GUI, which you enter with the help of the RCU:

   main menu > settings > system > audio/video > HDMI-CEC settings > ...

...there you should see a number of CEC configurable settings. One of the settings is also the possibility to receive the command to wake up the set-top box from standby mode, from the TV or other devices. Try turning off all these set-top box "wake-up" commands, coming from the TV or other devices.

 

The another problem would be that you have set the real wake-up of your set-top box (OpenPLi wake-up). You can find this setting here:

   main menu -> timers (recording from DVB channels to disk) = check or delete if something is set for the morning hour

...or also here:

   hold down the POWER button on the RCU for 3 seconds -> shutdown timer -> enable receiver wakeup timer = (disable if enabled)


Edited by s3n0, 11 December 2023 - 16:04.


Re: My box switches on by itself every morning #11 sjlouis

  • Senior Member
  • 1,573 posts

+3
Neutral

Posted 12 December 2023 - 12:51

Sorry s3n0, I was busy yesterday and I can't respond. I read your response but I have not well understood, I'm not easy in English. So, I have to use a translator.

 

I found the problem this night. I wrote a script which awake the box. I shall explain it below.

 

For the CEC settings, they are activated. They ran well since a lot of years and it's convenient.

 

When I have timers which run in the night, they don't awake the box unless there is not "record" in a parameter but "zap".

 

For "Shutdown timer" parameters, there are all in red.

 

 

 

In fact, I use "init 4" and "init 3" in my script. As an application (which was installed a few days ago) changed my favorites an other parameters several times a day, and when the box restarts, it was boring. Then I found a script in the crontab which modified the favorites and I desactivated it. This was good for the several times a day.

 

But I didn't find when the box restart even if I searched in \etc\init.d the "bad" script. I shall try later.

 

 

 

So, when the box restarts, the "bad" script changes my favorites, erase the TNT frequencies... Another personal script copies the good parameters files in /etc/enigma2. And I have to "close" OpenPli, copy files and restarts OpenPli otherwise there are no changes on the screen.

 

I didn't know the OpenPli restart awakes the box :lol: .

 

 

 

For the script which is launched in the night, I also used "init 4" and "init 3. That's why the box awakes. I deleted the init commands and the box didn't awake this night :D  .

 

And I found why the modification date of some files changed when the script was running. When OpenPli is closed, it saves some parameters as timers, settings...

 

 

 

Wouaw ! It takes me a long time to write this note :lol: !


Vu+ Ultimo 4K - OpenPli 8.3

Xtrend ET9200 - OpenPli 6.2


Re: My box switches on by itself every morning #12 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 12 December 2023 - 17:43

Hi.

 

You can switch the set-top box to standby mode a few seconds after initializing Enigma2 with the INIT 3 command, for example by calling OpenWebif:

sleep 20; wget -qO- "http://127.0.0.1/web/powerstate?newstate=5" > /dev/null 2>&1

# newstate options  =    0: Toggle Standby;  1: TurnToDeepStandby;  2: RebootDevice;  3: RestartEnigma;  4: WakeUp;  5: TurnToStandby

There should also be a setting in OpenPLi that will leave the TV completely off when Enigma2 crashes and also when Enigma2 starts normally. But I don't know exactly where it is set in OpenPLi. It is probably better to use the mentioned linux-shell command, where it is necessary to estimate the correct delay time (20 secs ?) to switch Enigma2 back to standby mode.

 

You can also add a test cycle to start OpenWebif and as soon as OpenWebif is active, immediately switch the set-top box to standby:

init_4_with_feedback() {
    echo "Stopping the Enigma..."
    init 4
    x=0
    while [ "$x" -le 15 ] && [ $(pidof enigma2) ] ; do
        x=$(( $x + 1 ))
        sleep 1
        echo "...$x seconds waiting"
        #echo "...Enigma state = "`ps --no-headers -o stat -C enigma2`      # debugging output - for testing purpose only
    done
    if pidof enigma2 > /dev/null 2>&1 ; then
        echo "...stopping failed ! the 'backrest' script was aborted !"
        exit 1
    else
        echo "...successfully stopped after $x seconds."
    fi
}

init_3_with_feedback() {
    echo "Starting the Enigma..."
    init 3
    x=0
    while [ "$x" -le 120 ] && [ -z "$(timeout 1 wget -q -O - http://127.0.0.1/web/powerstate)" ] ; do
        x=$(( $x + 1 ))
        sleep 1
        echo "...$x seconds waiting"
    done
    echo "...+5 seconds of additional waiting (other Enigma2 modules such as OpenWebif take a long time to start)"
    sleep 5; x=$(( $x + 5 ))
    echo "...successfully started after $x seconds."
}

Then... use the following script:

#### usage :
init_3_with_feedback; wget -qO- "http://127.0.0.1/web/powerstate?newstate=5" > /dev/null 2>&1

 


Edited by s3n0, 12 December 2023 - 17:44.


Re: My box switches on by itself every morning #13 sjlouis

  • Senior Member
  • 1,573 posts

+3
Neutral

Posted 13 December 2023 - 16:47

With wget, we can display some text on the box screen, isn't ?

 

Thank you for your help but it's a little complex. I searched a command to switch the box on standby but I haven't found it. In the Linux commands, there is "/sys/power/state". If I have found them in the tree but it doesn't work.

 

In the Openwebif of a smartphone, there are buttons to command the box and one is "Standby" and another "Toggle standby". I think they execute a command. How to find this command?


Vu+ Ultimo 4K - OpenPli 8.3

Xtrend ET9200 - OpenPli 6.2


Re: My box switches on by itself every morning #14 Dimitrij

  • PLi® Core member
  • 10,330 posts

+350
Excellent

Posted 13 December 2023 - 16:53

http://dreambox/web/powerstate?newstate={powerstate_number}
#               0 = Toogle Standby
#               1 = Deepstandby
#               2 = Reboot
#               3 = Restart Enigma2
#               4 = Wakeup form Standby
#               5 = Standby

 


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


Re: My box switches on by itself every morning #15 sjlouis

  • Senior Member
  • 1,573 posts

+3
Neutral

Posted 13 December 2023 - 17:20

Thank you Dimitrij but I want to use it in a script, I've not found command "powerstate".

 

Nevertheless I try from PC :

http://192.168.0.5/w...state?newstate={0}   ==> Processing Failed

http://192.168.0.5/w...state?newstate={5}   ==> Processing Failed

http://192.168.0.5/p...state?newstate={5}          ==> Error 404: Not found

http://dreambox/web/powerstate?newstate={0}      ==> Error 404: Not found

 

I also tried it in Telnet session "http://dreambox/web/powerstate?newstate={0}" and I got an error.


Vu+ Ultimo 4K - OpenPli 8.3

Xtrend ET9200 - OpenPli 6.2


Re: My box switches on by itself every morning #16 40H3X

  • Forum Moderator
    PLi® Contributor
  • 5,957 posts

+191
Excellent

Posted 13 December 2023 - 17:54

You must not use {0}, but simple 0. So below is the commandline to toggle (change) the standby

http://ipadresofyourreceiver/web/powerstate?newstate=0

Hardware: Vu+ Uno 4K SE - Vu+ Duo 4K  - Fuba 78 cm - Tripleblock LNB Quad 19.2/23.5/28.2 - DS918+
Software : OpenPLi - OSCam - Settings van Hans - Autotimer - EPGImport

---------------------------------------------------------------------------------------------------------------------------------------

Remember: Upvote with the rep_up.png button for any user/post you find to be helpful, informative, or deserving of recognition!

---------------------------------------------------------------------------------------------------------------------------------------

Many answers to your question can be found in our new and improved wiki

Note: I do not provide support via PM !.


Re: My box switches on by itself every morning #17 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 13 December 2023 - 18:51

With wget, we can display some text on the box screen, isn't ?

 

Thank you for your help but it's a little complex. I searched a command to switch the box on standby but I haven't found it. In the Linux commands, there is "/sys/power/state". If I have found them in the tree but it doesn't work.

 

In the Openwebif of a smartphone, there are buttons to command the box and one is "Standby" and another "Toggle standby". I think they execute a command. How to find this command?

 

Everything is mentioned in the comment "#" - in the shell script, what I sent to you. Why didn't you read it ? :)

# newstate options  =    0: Toggle Standby;  1: TurnToDeepStandby;  2: RebootDevice;  3: RestartEnigma;  4: WakeUp;  5: TurnToStandby

If you want to send text to the display, you can also do it... for example:

wget -qO- 'http://127.0.0.1/web/message?type=1&timeout=15&text=Test+message+invoked%0A+from+the+background+script.' > /dev/null 2>&1

For the use of special characters, ULR coding is used - find it on the Internet. For more info on sending messages via OpenWebif in Linux Shell, please use Google :).
 


Edited by s3n0, 13 December 2023 - 19:00.


Re: My box switches on by itself every morning #18 sjlouis

  • Senior Member
  • 1,573 posts

+3
Neutral

Posted 14 December 2023 - 19:19

Sorry s3n0 but as I wrote it, I found your solution a little complex. When I searched the command wget on Internet, I can see wget allows to get files from the web. Al the websites I found explain how to import files. As I don't want to import files, I was a little disturbed. Next, I don't understand what does "> /dev/null 2>&1".

 

When I wanted to send a message a few years ago at the end of my script, another man explain me to use :

         wget "http://192.168.0.5/w...erminée&type=1"

 

I searched also was is type=1 but I didn't found.

 

Effectively, OpenPli restart takes a long time.


Vu+ Ultimo 4K - OpenPli 8.3

Xtrend ET9200 - OpenPli 6.2


Re: My box switches on by itself every morning #19 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 15 December 2023 - 09:37

Hi.

 

Simple put... text in msg you need to use special formatting of characters other than ASCII characters. They are formatted as URLs. A quick example of URL formatting, found via Google: https://www.w3school...f_urlencode.ASP So then a space represents, for example, the code: %20 You must not insert an empty character there, which SEPARATES a command in the Linux Shell, and you have de facto ended the first command with a space. The space is already followed by another command - which in your case the Linux Shell interprets as meaningless characters.

 

Next, it is necessary to enter the name and password, if they are required in your OpenWebif:

http://login:password@192.168.0.5/..........

These are the basics of working with Linux Shell. It's about redirection... in this case redirecting to a /dev/null (a imaginary null-device) so that the output is redirected to the "nothing" (not to the screen, not to a file, or anywhere else, but really "nothing"). At the end, 2>&1 means that the error console (execution errors) will also be redirected to standard output, which we redirected to /dev/null - so the error console will also be redirected to an imaginary non-existent device. Otherwise, errors will also be hidden (unrecorded). All this can be found on Google, with a detailed explanation:

2>&1 ----- https://www.google.c...what means 2>

/dev/null ----- https://www.google.c...v/null redirect

 

I don't know what exactly is complex about you :). Select one with the mouse and copy the text into your shell script :). Then call this function and it's done. The functions I sent last time are actually standard init 4 and init 3 calls with the difference that there is a test feedback in them (waiting for a regular start or for stopping the Enigma2 process). To understand it... we have to write... that OpenWebif is a part (plugin / module) in the Enigma2. So... OpenWebif only is running together with Enigma2 ! So... the implication is that you cannot use wget calls for OpenWebif when this web-server (this OpenWebif) is not running (along with Enigma). Mentioned _with_feedback function waits until Enigma2 actually starts up... and only when it actually starts up does it send a "message" using the OpenWebif call. It's just a precaution to wait until OpenWebif (the Enigma2 web server) is up and running.

 

Regarding the use of API calls for the OpenWebif web-server in Enigma2, here you will find all the commands and not just the mentioned "message".

- all commands: https://github.com/E...I-documentation

- message only: https://github.com/E...tation#messages


Edited by s3n0, 15 December 2023 - 09:43.


Re: My box switches on by itself every morning #20 sjlouis

  • Senior Member
  • 1,573 posts

+3
Neutral

Posted 15 December 2023 - 10:32

Thank you for these explanations :) .

 

Simple put... text in msg you need to use special formatting of characters other than ASCII characters. They are formatted as URLs. A quick example of URL formatting, found via Google: https://www.w3school...f_urlencode.ASP So then a space represents, for example, the code: %20 You must not insert an empty character there, which SEPARATES a command in the Linux Shell, and you have de facto ended the first command with a space. The space is already followed by another command - which in your case the Linux Shell interprets as meaningless characters.

 

 

I know for %20. As I've just copied the instruction in the response, it was replaced by a space. I have to think about inserting the command lines in a window code to show it :

wget "http://192.168.0.5/web/message?text=Sauvegarde%20terminée&type=1"

 

 

 

These are the basics of working with Linux Shell. It's about redirection... in this case redirecting to a /dev/null (a imaginary null-device) so that the output is redirected to the "nothing" (not to the screen, not to a file, or anywhere else, but really "nothing"). At the end, 2>&1 means that the error console (execution errors) will also be redirected to standard output, which we redirected to /dev/null - so the error console will also be redirected to an imaginary non-existent device. Otherwise, errors will also be hidden (unrecorded). All this can be found on Google, with a detailed explanation:

2>&1 ----- https://www.google.c...what means 2>

/dev/null ----- https://www.google.c...v/null redirect

 

 

OK, I haven't found what that means. I don't use Linux and I search the commands when I want to do something.

 

 

I don't know what exactly is complex about you :). Select one with the mouse and copy the text into your shell script :). Then call this function and it's done. The functions I sent last time are actually standard init 4 and init 3 calls with the difference that there is a test feedback in them (waiting for a regular start or for stopping the Enigma2 process). To understand it... we have to write... that OpenWebif is a part (plugin / module) in the Enigma2. So... OpenWebif only is running together with Enigma2 ! So... the implication is that you cannot use wget calls for OpenWebif when this web-server (this OpenWebif) is not running (along with Enigma). Mentioned _with_feedback function waits until Enigma2 actually starts up... and only when it actually starts up does it send a "message" using the OpenWebif call. It's just a precaution to wait until OpenWebif (the Enigma2 web server) is up and running.
 

 

I understood what you want to do. I only think there are a lot of instructions before puting OpenPli in stanby. Maybe complex wasn't the right wording ;) .

 

 

Regarding the use of API calls for the OpenWebif web-server in Enigma2, here you will find all the commands and not just the mentioned "message".

- all commands: https://github.com/E...I-documentation

- message only: https://github.com/E...tation#messages

 

OK, thank you :D .

 

 

 

 


Vu+ Ultimo 4K - OpenPli 8.3

Xtrend ET9200 - OpenPli 6.2



3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users