[raspberry-vi] Re: Shutting down your Pi

  • From: Jason Miller <hobbgoblin79@xxxxxxxxx>
  • To: raspberry-vi@xxxxxxxxxxxxx
  • Date: Mon, 14 Oct 2013 10:46:19 -0400

Hello all,

If thats too much typing, you could always bash alias/bash script a command,
something like "kp" for "sudo shutdown 0." You could also put together an
interactive script, which I might do, not only for the RPi, but also for my
computer at home. Somethign triggered to "kp" again and does something like:

kp>
Which do you wish to do?
1. reboot
2. shutdown
1>
your Pi is now rebooting.
***or***
2>
How long until shutdown? 
0>
Your Pi is now shutting down.
***or***
2>
How long until shutdown?
180>
Your Pi will shut down in 180 minutes.
(I don't know, maybe you want to have it record a show in an hour, that lasts an
hour and a half, and want a little extra for some reason? *shrugs*)

Also Mike, something you may or may not be aware of. The sudo halt command,
*doesn't* always work for a shutdown. I've found, along with quite a few others,
that halt only kills the system, but does not power down. That leaves your fans
running, and monitor light (not that the Pi has a monitor for us, right?)If 
you're reaching
down to unplug it before pulling a card, that's good enough, but without being
able to see the lights, and power indicators, I'm not sure it completely powers
the Pi down.

Georgina, if you manage to macro out something, please share, as I'm sure that
I'm not the only one interested in this, and it's something that google and I
haven't made friends over.

Thanks all, and hope this helps.

Jason

On Mon, Oct 14, 2013 at 03:14:41PM +0100, Georgina Joyce wrote:
> Hello Mike,
> 
> That's still too much typing for me. I'll find how to make ctrl alt delete 
> halt in stead of reboot. Although, if I opened a root console, each session, 
> at the beginning, it wouldn't be too difficult especially with the history 
> buffer.
> 
> Thanks.
> 
> Gena
> Georgina Joyce
> Applied Psychologist
> Training and Coaching.
> Because individuals of groups matter!
> 
> 
> On 13 Oct 2013, at 23:34, Mike Ray <mike@xxxxxxxxxxxxxxx> wrote:
> 
> > Gina,
> > 
> > I always use:
> > 
> > sudo halt
> > 
> > Then if I want to power it off I unplug the wall-wart from the mains.  
> > The micro-USB power connector on the board seems to me to be far more 
> > fragile than the other end, so I try to keep plugging and unplugging 
> > from the Pi end to a minimum.
> > 
> > Mike
> > 
> > On 13/10/2013 23:30, Georgina Joyce wrote:
> >> Hello All,
> >> 
> >> I wondered how you guys shut down your Pi's?
> >> 
> >> As tradition, ctrl alt delete puts it in reboot mode. One of the first 
> >> jobs I do with Linux is to edit inittab to shutdown -h now. Other than 
> >> changing the ctrl alt delete behaviour, how do you shutdown your Pi's?
> >> 
> >> Thanks.
> >> Gena
> >> 
> >> Georgina Joyce
> >> Applied Psychologist
> >> Training and Coaching.
> >> Because individuals of groups matter!
> >> 
> >> 
> >> ===========================================================
> >> The raspberry-vi mailing list
> >> Archives: //www.freelists.org/archives/raspberry-vi
> >> Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
> >> -----------------------------------------------------------
> >> Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
> >> Foundation.
> >> 
> >> This list is not affiliated to the Raspberry Pi Foundation and the views 
> >> and attitudes expressed by the subscribers to this list do not reflect 
> >> those of the Foundation.
> >> 
> >> Mike Ray, list creator, January 2013
> >> 
> > 
> > 
> > -- 
> > Michael A. Ray
> > Analyst/Programmer
> > Witley, Surrey, South-east UK
> > 
> > Don't just sit there, learn something
> > 
> > Interested in accessibility on the Raspberry Pi?
> > Visit: http://www.raspberryvi.org/
> > 
> > From where you can join our mailing list for visually-impaired Pi hackers
> > 
> > =========================================================== 
> > The raspberry-vi mailing list 
> > Archives: //www.freelists.org/archives/raspberry-vi
> > Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
> > -----------------------------------------------------------
> > Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
> > Foundation.
> > 
> > This list is not affiliated to the Raspberry Pi Foundation and the views 
> > and attitudes expressed by the subscribers to this list do not reflect 
> > those of the Foundation.
> > 
> > Mike Ray, list creator, January 2013
> > 
> > 
> 
> =========================================================== 
> The raspberry-vi mailing list 
> Archives: //www.freelists.org/archives/raspberry-vi
> Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
> -----------------------------------------------------------
> Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
> Foundation.
> 
> This list is not affiliated to the Raspberry Pi Foundation and the views and 
> attitudes expressed by the subscribers to this list do not reflect those of 
> the Foundation.
> 
> Mike Ray, list creator, January 2013
> 
=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of the 
Foundation.

Mike Ray, list creator, January 2013

Other related posts: