Do a sudo halt equivalent?
andym (447) 472 posts |
Having recently purchased a Rev. 2 Raspberry Pi, I am going to fit a header to P6 to add a reset switch. I’ve seen a video on YouTube or something where a Pi that has been “sudo halt”ed in Linux can be restarted using the reset header. Whilst Shutdown does half the job of sudo halt, is there any way to emulate sudo halt and make the Pi completely power down? Like the Iyonix does, I guess? Could also be useful if it was HALified and worked with the Cortex boards too. |
Rick Murray (539) 13806 posts |
It’s just wired to the reset thingy. I poke mine with a screwdriver. Short the contacts, the thing resets. Less elegant than a switch, but just as functional…
Does it completely power down, or does it shut down the OS and then do a
All I can say right now is that something to do this is being worked on… |
Theo Markettos (89) 919 posts |
The API for this is TaskManager_Shutdown . Try it and see. However I don’t know to what extent that’s implemented in the firmware. It’s easy to make the screen go black, but a proper shutdown involves turning off the clocks (which I think is supported). There’s no hardware to de-power things (eg the USB ethernet controller or devices), though taking away their USB data probably saves power. |