{"id":353866,"date":"2021-10-17T00:00:24","date_gmt":"2021-10-16T21:00:24","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-turn-raspberry-pi-on-and-off\/"},"modified":"2021-10-17T00:00:24","modified_gmt":"2021-10-16T21:00:24","slug":"how-to-turn-raspberry-pi-on-and-off","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-turn-raspberry-pi-on-and-off\/","title":{"rendered":"#How to Turn Raspberry Pi on and Off"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a3f38f456d9a\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a3f38f456d9a\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-turn-raspberry-pi-on-and-off\/#How_to_Turn_on_the_Raspberry_Pi\" >How to Turn on the Raspberry Pi<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-turn-raspberry-pi-on-and-off\/#How_to_Turn_a_Raspberry_Pi_Off_the_Right_Way\" >How to Turn a Raspberry Pi Off the Right Way<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-turn-raspberry-pi-on-and-off\/#Add_a_Power_Button_to_Your_Raspberry_Pi\" >Add a Power Button to Your Raspberry Pi<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How to Turn Raspberry Pi on and Off&#8221;<\/strong><\/p>\n<div>\n<!-- UNCACHED CONTENT --><\/p>\n<figure style=\"width: 1200px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage size-full wp-image-757698\" srcset=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/09\/How-to-Turn-Raspberry-Pi-On-and-Off.jpg?width=398&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 400w, https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/09\/How-to-Turn-Raspberry-Pi-On-and-Off.jpg?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 1200w\" sizes=\"auto, 400w, 1200w\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/09\/How-to-Turn-Raspberry-Pi-On-and-Off.jpg?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"A Raspberry Pi 4 B Computer\" width=\"1200\" height=\"675\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\"><span class=\"type:primaryImage imagecredit\"><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.shutterstock.com\/image-photo\/reus-tarragona-01-21-2021-raspberry-1899064624\">Ferter\/Shutterstock.com<\/a><\/span><\/figcaption><\/figure>\n<p>If you\u2019ve just got your Raspberry Pi, you probably noticed it lacks a power button. This might leave you wondering how to turn the miniature computer on and off. Let\u2019s walk through it all, step by step.<\/p>\n<h2 id=\"Turning on the Raspberry Pi is Simple\"><span class=\"ez-toc-section\" id=\"How_to_Turn_on_the_Raspberry_Pi\"><\/span>How to Turn on the Raspberry Pi<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To start up your Raspberry Pi, all you have to do is plug it in. Beginning with the Raspberry Pi Model 4, you simply need a USB-C cable and any 5V power source. Older models of the Raspberry Pi still require a 5V power source, but use a micro USB connector.<\/p>\n<p><strong>RELATED:<\/strong> <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.reviewgeek.com\/53587\/usb-explained-all-the-different-types-and-what-theyre-used-for\/\"><strong><em>USB Explained: All the Different Types (and What They&#8217;re Used for)<\/em><\/strong><\/a><\/p>\n<p>First, make sure you have your <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.lifesavvy.com\/reviews\/the-best-hdmi-cables\/\">HDMI cable<\/a> connected to your TV or monitor, along with your keyboard and mouse of choice. USB keyboards and mice work fine on first boot, as do most wireless combos with their own USB receiver. Later, you can connect any Bluetooth keyboard or mouse to your Raspberry Pi.<\/p>\n<p>Plug the power adapter into an outlet, connect the USB-C cable to it, then plug the other end into your Raspberry Pi.<\/p>\n<figure style=\"width: 650px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-758484 size-full\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/09\/raspberry-pi-power-port.jpg?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Connect the USB cord to the power port on your Raspberry Pi\" width=\"650\" height=\"424\" data-crediturl=\"https:\/\/www.shutterstock.com\/image-photo\/close-raspberry-pi-4-isolated-on-1587314257\" data-credittext=\"trickyaamir\/Shutterstock.com\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">Location of the USB-C power port on a Pi 4. Yours will look different if you\u2019re using an older model with a micro USB port. <span class=\"imagecredit\"><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.shutterstock.com\/image-photo\/close-raspberry-pi-4-isolated-on-1587314257\">trickyaamir\/Shutterstock.com<\/a><\/span><\/figcaption><\/figure>\n<p>A red LED will turn on, and you\u2019ll see a rainbow screen followed by the Raspberry Pi OS desktop. From this point, if it\u2019s your first boot into Raspberry Pi OS, you\u2019ll go through some setup menus.<\/p>\n<h2 id=\"Turning the Raspberry Pi Off the Right Way\"><span class=\"ez-toc-section\" id=\"How_to_Turn_a_Raspberry_Pi_Off_the_Right_Way\"><\/span>How to Turn a Raspberry Pi Off the Right Way<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Since all you have to do to start up the Raspberry Pi is plug it in, you just unplug it to power down, right? Absolutely not, actually. Abruptly removing power before shutting the operating system down can cause your SD card to get corrupted. This danger is worse for some operating systems than others, but it is definitely still a threat to Linux, the most common OS used on Raspberry Pi. Do that enough times, and your Raspberry Pi won\u2019t boot up all the way until you reinstall.<\/p>\n<p>Instead, you need to do a proper shutdown. There are a couple of ways to do this. In Raspberry Pi OS, you can do this by clicking the Raspberry icon in the top left corner of your screen and choosing Log Out.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-757691 size-full\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/09\/Turn_Off_Raspberry_Pi_Menu.jpg?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"378\" height=\"477\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>On the next menu, you can choose to log out, shut down, or reboot. If you\u2019re done for the day, choose Shut Down. After a few minutes, your screen should go completely black and you\u2019ll notice the red LED on the Pi go out.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-757693 size-full\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/09\/Turn_Off_Raspberry_Pi_Options.jpg?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Finally, choose either Shutdown or Reboot.\" width=\"320\" height=\"180\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The second way to shut down your Raspberry Pi is from the terminal. Simply open a terminal, type in this command, and hit Enter:<\/p>\n<pre>sudo shutdown -h now<\/pre>\n<p>Again, you\u2019ll soon see the screen go black and the red power LED turn off. After that, you can safely remove the power cord. When you\u2019re ready to start your Raspberry Pi again, reconnect the power cord.<\/p>\n<h2 id=\"Add a Power Button to Your Raspberry Pi\"><span class=\"ez-toc-section\" id=\"Add_a_Power_Button_to_Your_Raspberry_Pi\"><\/span>Add a Power Button to Your Raspberry Pi<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Of course, you can also add a power button to your Raspberry Pi. There are cases that have include a power button, such as Argon40\u2019s <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.amazon.com\/Argon-Raspberry-Support-B-Key-Compatible\/dp\/B08MJ3CSW7?tag=hotoge-20\">Argon ONE M.2 case<\/a>. Also, CanaKit makes a <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.amazon.com\/CanaKit-Raspberry-Power-Supply-PiSwitch\/dp\/B07TSFYXBC?tag=hotoge-20\">power button attachment<\/a> for the USB-C power cable. The drawback to CanaKit\u2019s solution is that it simply kills power to the USB-C plug; there\u2019s no way to signal a graceful shutdown to the OS.<\/p>\n<figure style=\"width: 650px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-757702 size-full\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/09\/Power-Buttons.jpg?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Power buttons for a Raspberry Pi\" width=\"650\" height=\"450\" data-crediturl=\"https:\/\/www.shutterstock.com\/image-photo\/electronic-push-buttons-toggle-switch-used-1902531322\" data-credittext=\"Omar Shekho\/Shutterstock.com\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\"><span class=\"imagecredit\"><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.shutterstock.com\/image-photo\/electronic-push-buttons-toggle-switch-used-1902531322\">Omar Shekho\/Shutterstock.com<\/a><\/span><\/figcaption><\/figure>\n<p>One thing to be mindful of is that your Raspberry Pi will not automatically know to do a proper shutdown when you press the power button. For a power button to trigger the shutdown command, it needs to be wired into the GPIO header. You\u2019ll also have to <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.makeuseof.com\/tag\/add-power-button-raspberry-pi\/\">program your Pi<\/a> to trigger the shutdown command when you push the button.<\/p>\n<p>Of course, you may not want to dive into a project like that right now. In that case, you\u2019ll probably want to stick with an external, prebuilt power button.<\/p>\n<div class=\"product-box\">\n<div class=\"product-img product-img-noaward\">\n<a rel=\"nofollow noopener\" target=\"_blank\" aria-hidden=\"true\" tabindex=\"-1\" role=\"presentation\" href=\"https:\/\/www.amazon.com\/dp\/B07TSFYXBC?tag=hotoge-20&amp;linkCode=ogi&amp;th=1&amp;psc=1\" onclick=\"fbq('track', 'Buy Button'); if (fb_t_convert){fb_t_convert();}\"><br \/>\n<img decoding=\"async\" src=\"https:\/\/m.media-amazon.com\/images\/I\/41tg0OVd-4L._SL160_.jpg\" height=\"147px\" alt=\"\" role=\"presentation\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/a>\n<\/div>\n<\/div>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/757170\/how-to-turn-raspberry-pi-on-and-off\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Turn Raspberry Pi on and Off&#8221; Ferter\/Shutterstock.com If you\u2019ve just got your Raspberry Pi, you probably noticed it lacks a power button. This might leave you wondering how to turn the miniature computer on and off. Let\u2019s walk through it all, step by step. How to Turn on the Raspberry Pi To start&#8230;<\/p>\n","protected":false},"author":1,"featured_media":353867,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/09\/How-to-Turn-Raspberry-Pi-On-and-Off.jpg?height=200p&trim=2,2,2,2","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-353866","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/353866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=353866"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/353866\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/353867"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=353866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=353866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=353866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}