Is it possible to implement natively the On/Off power function in Volumio?
As per my humble IT opinion, some script must run in background and wait for the shutdown command.
This could be part of a separate plug-in and would add a considerable value to Volumio.
This could be the bridge into the field of non-DIY devices, usable by anyone.
What is the Debian command line, invoked by a hardware action, that should be used for an immediate shutdown and power off no matter what Volumio is doing?
As for tying it to a hardware action, you’d need a script (Python or similar) that monitors a hardware pin connected to the shutdown/reset button. Take a look here to see how the PiSupply switch does it.
OK that is the command I have been using. I just wanted to know if there was a more elegant method that wouldn’t damage open files and flush memory properly.
Thanks.
BTW the hardware is a simple USB device that also provides volume control thru software. No soldering needed.