6 Ways to Shut Down Your Raspberry Pi

This is the second part in our series for Raspberry Pi enthusiasts. To read our first part in the series, visit Raspberry Pi for Commercial Applications: Configuring Wifi.

Raspberry Pi enthusiasts have consistently come up with innovative ways to use their mini computer. What’s great about it is, “its ‘tinker-ability.’” You get the most basic resources of a computer.

It’s easy to get stuck on the simple things, however, including how you can safely power down your Raspberry Pi. We’ve compiled some tips and a list of resources to help you optimally shutdown your system.

Should I just pull the plug?

No, it’s not recommended to just pull the plug. This can cause a variety of issues including corruption of your SD card and file system. It’s important that your Raspberry Pi gets a clean shutdown. There are easy ways to do this and some fun projects that you create to ensure a shutdown without unplugging your device.

Shutting down your Raspberry Pi from the terminal

If you have a keyboard and a screen, then the easiest way to shutdown your Raspberry Pi is by using this code in the command line:

or

This will give you a clean shutdown. After that, you can unplug the computer.

Creating a shutdown button

Unlike your other electronic devices, Raspberry Pi doesn’t come with an “off” switch. However, you can create a switch that acts as a shutdown button for your computer. If you’re running “headless (no keyboard or display)” then adding some kind of “off” switch or button will let you shutdown without unplugging.

The coding and setup instructions can be found at the Raspberry Pi site.   

How to turn off without a keyboard

If you’re not using a keyboard then you can shut it down via the menu options.

Press start → select shutdown → turn off the pi

The menu will let you safely shutdown and you can proceed to unplug your device.

Using SSH (Secure Shell)

You can access your Raspberry Pi’s command line from another device if you use an SSH on the same network. It can act as a remote device – you can connect to it from another machine. Once set up, you’ll be able to shutdown your Raspberry Pi from another computer or device if more convenient when working on different projects. The Raspberry Pi site discusses the use of SSH with your device.

SSH will also allow you to shut down from a mobile device – not just another computer. This can be useful when you are wanting to shut down a program that your Raspberry Pi is running, but you cannot access it for different reasons.

ThisDaveJ.com has a great tutorial showing how to control a Raspberry Pi from a mobile device. Check it out.

Voice command

Though there are some easy methods to shutdown, you have lots of options to play around with your coding.

One fun method is by using voice commands to turn off your Pi. As techradar says, “Make your own Alexa.” This can be done with a microphone and some coding. You’ll be able to give a list of commands to your Raspberry Pi when you’re finished, not just to shut off.

Read the step-by-step instructions at techradar.

And a paperclip?

Yes, you can even shut down with a paperclip. Paperclip isn’t a euphemism for some code work, it’s literally a paperclip that you probably have on your desk. It acts as a switch that you can use to turn your device on or off.

How to turn on Raspberry Pi after shutdown

It’s simple. Just plug it in. You don’t need to write code or create a button. After you have safely shutdown your Raspberry Pi, unplug it. When you’re ready to turn it on again you can just plug it back in.

If you want to leave your computer plugged in, then you can use some of the ideas above as methods to turn it on with a few minor tweaks.

Getting started

One of the best parts of having a Raspberry Pi is the endless amount of customization and applications you can create. We wanted to touch on a seemingly simple topic – how can I shut it down – but as you can see, a simple process can turn into a fun project.

 

20 comments on “6 Ways to Shut Down Your Raspberry Pi

  1. На данном сайте доступны свежие промокоды для Lamoda. Примените их, чтобы получить удобные покупки на популярные товары. Коды на скидку актуализируются регулярно, чтобы вам всегда были доступны максимально выгодными скидками.
    Актуальные промокоды Ламода

  2. Вещи бренда Balmain можно приобрести в нашем магазине. Погрузитесь в коллекцию модной одежды от знаменитого французского бренда
    https://shop.balmain1.ru

  3. I recently occupied this site to lay one’s hands on leak detection Philadelphia , and I couldn’t be happier with the results. The search was straightforward, and I appreciated the ornate profiles and patron reviews on the side of each contractor. It made comparing options and reading nearly other clients’ experiences easy. The contractors I contacted were willing, efficient, and offered competitive quotes. This position is a fantastic resource instead of anyone needing safe haven renew services. Greatly recommended in search its understandable interface and quality listings!

  4. На нашем сайте вы можете заказать товары от Gucci. На платформе доступны изделия этого легендарного бренда, которые характеризуются неповторимым стилем и высочайшим качеством. Откройте для себя лучшие предложения Gucci по привлекательным ценам.
    https://shop.gucci1.ru

  5. На данном ресурсе представлены стильные сумки Bottega Veneta. Здесь предлагается купить актуальные модели, которые станут изюминкой вашего гардероба. Каждое изделие отличается превосходным исполнением, что характерно бренду Боттега Венета
    https://bookmarkloves.com/story20315533/bottega-veneta

  6. Bottega Veneta — это итальянский бренд, известный неповторимым стилем. Основанный в середине 60-х годов, бренд стал символом лаконичной роскоши и славится кожаными изделиями высочайшего качества. Дизайны бренда отражают искусность и внимательность к деталям, а также непревзойденное качество исполнения.
    https://bottega-official.ru

  7. Бренд Tissot — знаменитый швейцарский производитель наручных часов, который славится своим высочайшим качеством и элегантным дизайном. Уже более столетия с половиной компания производит современные хронометры, что пользуются уважение по всему миру.
    https://tissot.icefashion.ru

  8. Премиальный интернет-магазин Bottega Veneta предлагает полный каталог оригинальной продукции от легендарного бренда. В нашем каталоге вы сможете выбрать и заказать модели актуальных коллекций с возможностью доставки по Москве и всей России.
    https://bottega-official.ru

  9. В нашем магазине можно купить оригинальные товары от Gucci . Большой выбор включает одежду и аксессуары , для самых изысканных покупателей.
    https://boutique.gucci1.ru

  10. Geciktirici Sprey Nedir? Kullanımı oldukça kolay olan geciktirici spreyler partnerlerin ilişki esnasında fiziksel açıdan doyuma ulaşmasını sağlar.En İyi Geciktirici Sprey · Black Berry Geciktirici Sprey 25 ml · BayCazip 2adet Geçiktiriçi Erkeklere Ozelstağ Sprey Resımdekının Aynısı Gelır STAG 9000 ERKEKLERE ÖZEL GELİŞTİRİLMİŞTİR. ERKEN BOŞALMA PROBLEMİ YAŞAYAN KİŞİLERDE uygulanması tavsye edilir. GÜÇLÜ FORMULÜ SAYESİNDE GECİKTİRİREK Geciktirici spreyler penisin uç kısmına gelecek şekilde sıkılır ve bölgeyi biraz uyuşturarak ereksiyonu uzatır.Geciktirici Sprey n11.com’da. Geciktirici Sprey modelleri, geciktirici sprey markaları, seçenekleri, özellikleri ve en uygun fiyatları Geciktirici Sprey – Sprey Boya ve Yapı Malzemeleri uygun fiyatlarla ilan ve alışverişte ilk adres https://libidoxa.com/libidoxa-premium-delay-geciktirici-sprey

  11. Hi my family member I want to say that this post is awesome nice written and come with approximately all significant infos I would like to peer extra posts like this

Leave a Reply

Your email address will not be published. Required fields are marked *