Shutting down the headless client along with the host
Posted: Wed Oct 23, 2013 10:18 pm
Hello folks,
I am currently tinkering with the headless client on a mobile (battery powered) raspberry pi setup in order to be able to pilot / deploy it a bit away from computers.
Since I'm headless on it, without display, and as I'd prefer not being forced to simlpy power down the pi to shut it, risking SD card corruption, I'm thinking about powering it (simple sudo halt) off using either a gamepad key combination of simply when the radio is plugged out, maybe after a certain timeout.
Did anyone already figure a gracious way of handling that ? I think i'll start trying the radio unplugging and timeout process, but I'd gladly take any other idea.
By the way : I know this could be achieved using the gpio pins and some simple listener, but i'd prefer being able to keep the pi in its case without having a risky emergency shutdown dangling out.
Thanks !
I am currently tinkering with the headless client on a mobile (battery powered) raspberry pi setup in order to be able to pilot / deploy it a bit away from computers.
Since I'm headless on it, without display, and as I'd prefer not being forced to simlpy power down the pi to shut it, risking SD card corruption, I'm thinking about powering it (simple sudo halt) off using either a gamepad key combination of simply when the radio is plugged out, maybe after a certain timeout.
Did anyone already figure a gracious way of handling that ? I think i'll start trying the radio unplugging and timeout process, but I'd gladly take any other idea.
By the way : I know this could be achieved using the gpio pins and some simple listener, but i'd prefer being able to keep the pi in its case without having a risky emergency shutdown dangling out.
Thanks !