The Raspberry Pi does not have a power button that may be used to restart or shut down the device. To make the modifications, you must utilise the Desktop GUI or the Terminal. The ability to remotely connect to a Raspberry Pi and SSH into the Terminal is the finest aspect, though. From there, you can easily restart or shut down the Raspberry Pi. Even better, you can decide to use your Windows laptop as a monitor for the Raspberry Pi to perform these tasks. So let’s visit the guide to learn more about how to shut down the Raspberry Pi in detail.
Shut Down or Reboot Raspberry Pi (2021)
In this post, we’ve covered a number of techniques for rebooting or shutting down a Raspberry Pi. The Desktop GUI, Terminal, or even adding a physical power button to the RPi board are all options. With that said, let’s look at these techniques in more detail:
How to Shut Down Raspberry Pi
Method 1: Desktop GUI
Shutting down the Raspberry Pi board is as simple as it gets if you’re using it with the Desktop GUI (let’s say, Raspbian OS).
1. Simply select Logout from the Raspberry menu in the top-left corner.
2. Then, all you have to do is click the “Shutdown” button in the pop-up box. Your Raspberry Pi will immediately turn off.
Method 2: Using Terminal Commands
There are numerous ways to shut down the Raspberry Pi if you prefer to utilise the Terminal application via SSH or a wired connection.
1. Start by launching the Terminal and entering one of the commands listed below. They’ll immediately turn off your Raspberry Pi.
sudo poweroff
or
sudo shutdown -h now
2. You can describe your argument in this way if you want to shut off your Raspberry Pi after a specified amount of time. Here, 30 denotes a 30-minute timer after which your Raspberry Pi will shut down. Additionally, the planned shutdown action can be stopped using the shutdown -ccommand.
sudo shutdown -h 30
3. You can define the command as follows to turn off the Raspberry Pi at a specific time, such as 9:00 PM. Keep in mind that the Terminal operates on a 24-hour schedule.
sudo shutdown -h 21:00
Method 3: Add a Power Button to Raspberry Pi
If you are an experienced user, you can go ahead and connect a physical power button to the Raspberry Pi board using the GPIO pins. The GPIO headers must also be configured via the Terminal. Visit this website for a thorough lesson. In addition, if you prefer a less complicated method, you may easily turn off and on your Raspberry Pi by purchasing a USB Type-C Power Switch cable from Amazon ($7.99).
Method 4: Pull the Plug
Last but not least, you can just detach the power line to turn off your Raspberry Pi if you don’t want to use the Terminal or desktop GUI. This will immediately turn off the Raspberry Pi, however we advise using one of the other techniques mentioned above. That being said, if you decide to stop working, make sure you save all of your work.
How to Reboot Raspberry Pi
Method 1: Desktop GUI
You can restart your Raspberry Pi from the Desktop GUI environment in a manner similar to how you shutdown the device. Also identical are the procedures.
1. Click on Logout in the top-left corner of the Raspberry menu after opening it.
2. Clicking Reboot in the pop-up box here will immediately cause the Raspberry Pi to restart.
Method 2: Using Terminal Commands
1. Start the Terminal and enter one of the following commands to rapidly restart the Raspberry Pi. You may reboot a Raspberry Pi board remotely using these commands, which operate over a wired or SSH connection.
sudo reboot
or
sudo shutdown -r now
Power Off or Restart Your Raspberry Pi in a Few Easy Steps!
So that’s how you can use the Desktop GUI or Terminal to shut down or restart your Raspberry Pi. Additionally, if you are skilled with hardware, you might want to consider connecting a power switch to the board’s GPIO header pins. That’s all we have to say, though. Follow our linked post to find out more about the best Raspberry Pi commands. Additionally, please leave a remark below if you have any questions.
Leave a Reply