When using the setPowerSaveMode via JavaScript API it seems the HD225 reboots after 30 seconds when setting the mode to true.
I'm running the device on the latest BrightSignOS (9.0.145.1).
For testing purposes i created a very basic 'app' consisting of a basic runner that creates a roHtmlWidget and reads a simple HTML file that switches setPowerSaveMode between true or false each 60 seconds.
Are more people experiencing this or is it perhaps something in my setup?
autorun.brs
url$ = "file:///sd:/index.html"
r=CreateObject("roRectangle", 0,0,1920,1080)
config = {
nodejs_enabled: true
inspector_server: {
port: 2999
}
brightsign_js_objects_enabled: true
hwz_default: "off"
url: url$
}
h = CreateObject("roHtmlWidget", r, config)
p = CreateObject("roMessagePort")
h.SetPort(p)
h.Show()
while true
msg = wait(100, p)
end while
index.html
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body style="display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0;">
<h1 id="title" style="text-align: center; color: white;"></h1>
<script type="text/javascript">
console.log("Hello, world!");
const VideoOutputClass = require("@brightsign/videooutput");
const videoOutputHDMI = new VideoOutputClass("hdmi");
const title = document.getElementById('title');
let sleep = false;
let time = 60;
setInterval(() => {
time -= 1;
title.innerText = `${sleep ? 'Wake up' : 'Sleep'} in ${time} seconds`;
if (time <= 0) {
time = 60;
sleep = !sleep;
videoOutputHDMI.setPowerSaveMode(sleep);
}
}, 1000);
</script>
</body>
</html>