nonsense
Posts: 4
Joined: Tue May 06, 2014 4:44 pm

Chromium kiosk mode, "sleep mode" for after hours?

Sun Sep 21, 2014 1:12 am

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?

User avatar
Jessie
Posts: 1754
Joined: Fri Nov 04, 2011 7:40 pm
Location: C/S CO USA

Re: Chromium kiosk mode, "sleep mode" for after hours?

Sun Sep 21, 2014 2:06 am

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.

nonsense
Posts: 4
Joined: Tue May 06, 2014 4:44 pm

Re: Chromium kiosk mode, "sleep mode" for after hours?

Sun Sep 21, 2014 3:15 am

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.

User avatar
Jessie
Posts: 1754
Joined: Fri Nov 04, 2011 7:40 pm
Location: C/S CO USA

Re: Chromium kiosk mode, "sleep mode" for after hours?

Sun Sep 21, 2014 6:09 am

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.
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.

Sjefke
Posts: 24
Joined: Sun Jun 24, 2012 8:13 am
Location: The Netherlands

Re: Chromium kiosk mode, "sleep mode" for after hours?

Mon Sep 22, 2014 6:48 pm

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

Code: Select all

#!/bin/sh
sudo /opt/vc/bin/tvservice -o
crontab –e

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

nonsense
Posts: 4
Joined: Tue May 06, 2014 4:44 pm

Re: Chromium kiosk mode, "sleep mode" for after hours?

Sat Oct 18, 2014 9:47 pm

@Sjefke, that's pretty much perfect for this application I think!

Return to “General discussion”