My son and I are putting together a digital sign for his school. We've decided to serve the content on a web site, and use Chromium kiosk mode to display it. We'd like to be able to set a schedule for the page to go dark, saving some power at night and on weekends.
Is there a way to do this?
Re: Chromium kiosk mode, "sleep mode" for after hours?
A simple mecanical timer like what is used for a reptile tank can turn it all on and off. All you need to do then is make sure the Pi is shutdown before the timer clicks off.
Re: Chromium kiosk mode, "sleep mode" for after hours?
Ok, so I could use cron to shut down, but if I used a timer to kill the power to the TV (which is supplying the Pi with USB power) it won't turn on automatically when powered up. I suppose I could power the TV and Pi separately, and put a timer on the Pi only.
Re: Chromium kiosk mode, "sleep mode" for after hours?
Does the Tv support CEC? My Pi turns on my Visio by default, which I promptly disable after a fresh format. Of course now that you mention it the Pi boots up faster than the TV so in my case the TV would have to power up a couple min in advance of the Pi. It all happens fast when the TV is in standby mode but when it is first plugged in it checks for firmware and waits for the processor to boot.nonsense wrote:Ok, so I could use cron to shut down, but if I used a timer to kill the power to the TV (which is supplying the Pi with USB power) it won't turn on automatically when powered up. I suppose I could power the TV and Pi separately, and put a timer on the Pi only.
Re: Chromium kiosk mode, "sleep mode" for after hours?
For my dashboard at the office I switch off the HDMI signal at the end of the day. And in the morning RPi reboots.
Using cron jobs.
hdmi-off.sh
crontab –e
Using cron jobs.
hdmi-off.sh
Code: Select all
#!/bin/sh
sudo /opt/vc/bin/tvservice -o
Code: Select all
# Switch off monitor every dag at 17.00:
0 17 * * * /home/pi/hdmi-off.sh
# Every working day reboot on 8:00:
0 8 * * 1 /home/pi/reboot.sh
0 8 * * 2 /home/pi/reboot.sh
0 8 * * 3 /home/pi/reboot.sh
0 8 * * 4 /home/pi/reboot.sh
0 8 * * 5 /home/pi/reboot.sh
Re: Chromium kiosk mode, "sleep mode" for after hours?
@Sjefke, that's pretty much perfect for this application I think!