Auto restart task

  • 1
  • Praise
  • Updated 2 years ago
  • (Edited)
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members.

We have this problem with one of our players. It is on WiFi and in a metal enclosure. We have external WiFi adapter/antenna hooked up to it (we gonna be replacing it; this is not about that). For the most it works fine, but occasionally at the daily reboot (set in the RV player), the external adapter fails and we get blank presentation. And it can stay like that for days until somebody manually reboots the PC.

Now, it would be great that the RV player came with 'player reboot' by default, which would help in situations like that. But in mean time we decided to use Windows Task for this purpose for that player as explained here: https://answers.microsoft.com/en-us/windows/forum/windows_7-performance/how-can-i-set-up-a-task-in-t...

I have tried few different examples and this one actually worked. I am posting this in case somebody need this too.
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb

Posted 2 years ago

  • 1
Photo of RV News

RV News

  • 2,358 Points 2k badge 2x thumb
We have been using this for a long time and it works really well.

Our player is set to shutdown every night via the Task Scheduler and the system Bios is set to boot the player every morning.

To shutdown the system (not reboot), create a new task in the Scheduler (see Darius link) and add this script

Program Script: C:\Windows\System32\shutdown.exe
Argument: /s

We have added a script that shuts down the RV Player before the system is shutting down (same as CTRL+SHIFT + Q). This script is scheduled to start some minutes before the computer shut down.

1. Create a text file and paste this code

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "+^(Q)"

2. Save the txt file and change the file extension to .vbs (example stop.vbs)
(In this example the file is saved on the desktop)

3. Create a new task in the Sceduler (see Darius link) and add this script (set it to start some minutes before the other script)

Program Script: C:\Windows\System32\wscript.exe
Argument: "C:\Users\your username\Desktop\stop.vbs"
(Edited)
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
I am wondering why one would want to shut the RV App before restarting a PC?
Photo of RV News

RV News

  • 2,358 Points 2k badge 2x thumb
We wanted to be sure that the app is shutting down properly, since we sometimes got issues with the screen resolution after reboot.
(Edited)
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
This is interesting; I have never seen that. Has shutting down the RV App before restarting a PC fixed that problem? I am also wondering what PC model/OS was it?

I might be wrong, but I think the restart command actually makes all programs to shut properly before restarting a PC.
Photo of RV News

RV News

  • 2,358 Points 2k badge 2x thumb
The screen resolution (in the control panel, not on the screen itself) sometimes changed to 1024x768 after an automated reboot. That problem disappeared when we added the second script.
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
Interesting; I am gonna keep an eye on it now. When everything is OK with our displays I pretty much never even look at their control panels.
Photo of AdGators AdGators

AdGators AdGators

  • 3,612 Points 3k badge 2x thumb
You're better suited solving this issue on your own from the OS level, rather than asking a layer of software to control your OS to a degree that's above and beyond what you pay for Rise Vision.

I perform a similar method that RV News suggests, but on Linux. The script checks for the Wireless connection, and if it's not connected the media player reboots until it successfully grabs the connection. I'm sure Windows could be scripted in a similar fashion with the Task Manager and a Google Search on Wireless Connection Down Restarts.
(Edited)
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
It was just an idea; it does not hurt to ask ))) Also, when you offer a turn-key system dedicated for one thing only, you might also want it to work. It certainly does not feel like building 'forced' reboot by default (similar to what they have anyway when you ad a new display) within the RV player that kicks in regardless of presence or absence of the Internet connection, can be that big of a deal that would put such a big burden on top of what they have already. It is in their best interest to have working system anyway. And if they feel that this is something they want to charge users for... it is their right.

My other point is, just look at some problem solving suggestions... which is 'restart your device.' I believe it makes sense to ad this function just to make sure system gets fresh start every day, but of course, it needs to be user controlled for those who would not need/want it.

As you said, I am suited to solve this issue on my own, but many aren't.

Quite frankly, man, you are wrong that we are with Rise Vision because they are free. This is absolutely not the case. Yes, free software was a huge plus for me to get the owners to look at the digital signage. They did not want it, they did not understand it, they did not want to deal with it. They were/are very well off doing conventional architectural signage.

This is I who insist now on sticking with Rise Vision. I like the guys a lot, I love the company, I believe in open source. And I absolutely love RV's HTML approach.

I have been/I am asked to move to some other, payed system, which was more reliable then RV is. Payed system would not be a problem considering how much they make off these digital signs. I am sticking with RV, but it would help me a lot if they used every opportunity to improve reliability.
(Edited)