informed wrote: ↑Fri Dec 21, 2018 11:31 am
Hi,
I will be using the Raspbian Lite OS.
I want my Users to be able to switch the device on/off.
I am using a battery source for the main application.
I was thinking of providing kiosk browser UI (which I found some sample code for) to allow the user to click on my virtual button to shut the device down when not in use.
But, 'durrh' just occurred how can i get my user to switch the device back on? Or should I be looking at some 'sleep' functionality rather than looking to completely power off?
A RPi does not have a 'sleep' mode.
When a proper shutdown command is issued the RPi enters a halt state which will still use some power.
An additional physical hardware switch is required to completely power off the RPi board. The simplest way to remove power is to use a multi outlet power strip to switch off AC mains to the power supply.
When power is restored the RPi will automatically boot.
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.