Questions tagged [shutdown]

For questions pertaining to shutting down the operating system.

Filter by
Sorted by
Tagged with
0
votes
2answers
65 views

reboot raspberry pi supplied after shutdown

My Raspberry Pi is connected to the supply, and after shutting down, it is still connected to the supply and the red led is on. Is it possible to reboot the pi without removing the supply and without ...
0
votes
2answers
106 views

How to boot and safely shutdown with a button when WAKE_ON_GPIO=0

1. Description To boot and shutdown my pi I have been using a button shorting GPIO 3 an GND. However after shutting down the pi, the fan shim and HDD keep on running. To solve this I've edited the ...
1
vote
1answer
23 views

my Pi-Top 3 wont power down on shutdown [closed]

I am running Noobs, it boots fine and runs fine but when I shut down the screen stays powered on, etc. What shout I tweak? I've already tried shutting down from the console, checked Hardware/software ...
0
votes
2answers
91 views

How safe is sudo halt -f to shutdown a RPi?

I realized that the shutdown process for my RPi sometimes takes a while (like up to 1-2 minutes) before the green ACT LED finally blinks 10 times and the RPi can be unpluged safely. However I am ...
-1
votes
1answer
84 views

edit UPS HAT safe shutdown script

I write this since I need advice with an RPi Hat that I purchased and the assistance told me to find a solution myself! I purchased an UPS HAT (UPS3 from geekworm). I need to perform some actions ...
1
vote
1answer
70 views

RPi 4B 4GB: Excessive Shut Down time using the GUI shutdown

I have 5 - 4B-4GB's and 1-8GB systems. One of the 4GB systems is experiencing an excessive shutdown (power off) time of 4.5 minutes. All the other systems take about 15-20 seconds, all my systems ...
1
vote
0answers
92 views

CM4 eMMC - safe shutdown / power supply schemes

I'm working on a design that uses a CM4 with eMMC and may (optionally) use an external SD card or USB stick for "user" file storage. The unit could (potentially) be hard powered-down by the ...
0
votes
0answers
180 views

RPI connected to a smart plug -> how to auto turn off plug after RPI shutdown?

In short: I was wondering if it is possible to send a command to a smart plug when the pi is good to kill it's power. background I'm running a 3d printer which I'm going to control with a rpi 4 using ...
0
votes
1answer
47 views

Shutdown from C program

I'd love to do a proper shutdown of the Pi from a program (written in C) so that the only thing left to do is pull the power plug. Is this possible?
-1
votes
1answer
47 views

How to safely shutdown raspberry pi

I have a iono-pi which sits on top of the raspberry pi. I have connected this to a machine so the pi is getting power from the machine. When the machine starts for production, pi also starts and when ...
0
votes
0answers
115 views

GPIO17 only works after calling 'GPIO.setup(17, GPIO.IN)'

I have a fresh installed RaspberryPi running Raspberry PI OS Lite (32-bit) from 2020-12-02 with a mounted OnOff-Shim. Starting the Raspberry via button works fine, but the shutdown sequence is not ...
2
votes
1answer
57 views

Upon shutdown of the pi, don't turn off the display until the very last moment?

I notice that a Pi 3B+ with the offcial touchscreen display will black/power off the display the instant that a shutdown command is issued, but it appears the Pi is still busy doing some things (what?)...
1
vote
0answers
109 views

GPIO input, keep high after button press

Hi was just wondering if there was a way of making a GPIO INPUT (connected to a momentary switch) stay high (for a certain amount of time), no matter how long the switch has been pressed for? The ...
1
vote
1answer
168 views

Why does my Pi Zero keep shutting down by itself?

I am trying to make a smart plug that activates a relay when it receives a certain message via MQTT. It works, but the Pi shuts down randomly, both when the relay is active and when everything is just ...
4
votes
1answer
128 views

GPIO stuck high after shutdown/halt

I'm new to the world of Raspberry Pi, I'm setting one up as a little PC for a kid. I have a RPi 4 running Raspberry Pi OS, and I've build a case around this heatsink. I have created a simple circuit ...
2
votes
2answers
3k views

Raspberry Pi 4 B GPIO boot and shutdown button(s)

I've been doing some research on power buttons for the Raspberry Pi, but I'm having quite a hard time finding information. Right now, I have button working on GPIO5, and when I connect it to the ...
2
votes
2answers
152 views

Safely unplug raspberry

I have a great software running on my Raspberry Pi 4 and we will send it to customers for production. The image on the SD card is Ubuntu. I would like to know if we can add any security to protect the ...
1
vote
1answer
57 views

Pushbutton -> print message and shutdown. Prints message only the first time

I wrote a small script to shutdown the pi once the button is pressed for 2 seconds. It should print a message and after one second shutdown the pi. I also have this script to run automatically on each ...
-1
votes
1answer
63 views

Can we make raspberry Pi plug and play type [closed]

I am using raspberry Pi as a webcam server in my windows PC. It is working fine and I am able to use my raspberry Pi camera in Skype, Google meet etc but one thing that I want to improve is ...
2
votes
3answers
513 views

Does Raspberry Pi 4 consume considerable amount of power in soft-off state?

In the Start menu (you know, the fruit button at the top-left corner), I clicked shutdown. I did not unplug the USB-C power cable. The red light was still on, but I thought it was like the sleep light ...
0
votes
0answers
87 views

Remapping a key on a keyboard as dedicated shutdown button

I have a RP4 and want to remap a button from my keyboard to be a dedicated shutdown button. I don't really want to add an external shutdown/power switch to it since my power supply unit has a power ...
0
votes
0answers
166 views

GPIO Power off on shutdown with retropie

i asked this question before but i have added a diagram to explain it more clearly. I am building a retropie arcade machine with a raspberry pi. I have added a shutdown / startup button to shutdown ...
1
vote
0answers
203 views

How to cut power to gpio pins on shutdown

I am working on a project where i am using a pi running retropie to make a homemade arcade machine. i have wired and coded a startup/shutdown button. i would like to set up the pi n such a way i can ...
0
votes
1answer
73 views

Raspberry Pi 3 Model B: not booting Raspbian after shutdown

I installed the latest Raspbian on an SD card using Imager. The first boot: everything OK. Updates, installs, rebooting: worked perfectly fine. However, after shutdown, the screen is blank. After ...
0
votes
0answers
58 views

How to get AIY voice project to shutdown with button

Greetings fellow raspberry pi fans! I use this code for AIY VOICE KIT google assistant. This kit uses a raspberry pi to run google assistant. So basicly you can build your own google home and control ...
0
votes
2answers
1k views

How to add Capacitors to Raspberry Pi

My goal is to add capacitors to the Raspberry Pi power-supply. Currently I have my raspberry Pi plugged straight into a portable 5v battery, this works fine. However, I want to be able to swap from ...
0
votes
1answer
42 views

My python script does not shutdown when started during startup

So I have a python script that starts as expected during power-on by following: Startup by systemd My Pi has a button connect to GPIO which is used to stop the logger and then shut down the Pi like ...
1
vote
1answer
2k views

How to schedule raspberry pi to shutdown every day at a certain time?

I’m trying to schedule my pi 3b+ (buster) to shutdown automatically at a certain time, but it’s not listening to me. What am i doing wrong? Sudo crontab -e Then i add (nano) this to bottom of the ...
1
vote
1answer
92 views

Automatically shutdown Pi 104 hours after booting?

I have a project where I'd like to plug in (to power) the Raspberry Pi, have it start running a Python program to write data to a USB stick, and shut itself down after 104 hours. It will NOT be ...
2
votes
2answers
187 views

Running IRSEND through custom service

I am totally new to raspberry pi and I am trying to get the IRSEND command to work in my custom service. My objective is when my pi is about to shutdown or reboot that it would execute a shell script ...
4
votes
1answer
329 views

Gracefully handle power loss Raspbian on a Pi Zero

I recently installed a Pi Zero running Pi-hole for my folks. They live in a rural area and only have a 4G Modem with a limited data plan. The issue, is that every now and then there are power outages ...
0
votes
0answers
751 views

Raspberry Pi 4 shutdown with no Power LED (red) and no ACT LED (green)

I've recently modified my boot/config.txt to include the following lines: dtoverlay=gpio-poweroff,gpiopin=9,active_low=n dtoverlay=gpio-poweroff,gpiopin=10,active_low=n This works exactly how I ...
1
vote
0answers
31 views

Change power key behaviour

I've paired a Bluetooth remote to a Raspberry Pi ZW with Raspbian Buster Lite. One of the buttons sends the power key on a long press. This causes the RPi to shutdown immediately. This is a bit brutal ...
1
vote
0answers
211 views

Raspberry Pi always reboots when trying to shutdown

I've been facing this issue for a long time and I haven't been able to find a working solution for it. I've found a few different posts online of people having the same issue but none of the solutions ...
5
votes
2answers
2k views

RPi 4 consumes 2.5W when shut down

My RPi 4 consumes about 0.5A after executing sudo halt, while according to this post it should draw at least an order of magnitude less (0.069A). The green LED blinks several times then goes off, but ...
1
vote
1answer
111 views

ssh, shutdown problem, pi 3B+

I could not find answer to my question reading the forum, Im having unusual problem with my new pi 3b+. I'm able to connect my Pi with ethernet cable, and I can ssh to it. So no problem with ...
0
votes
1answer
274 views

Can GPIO detect if Pi is fully shut down?

Scenario: headless Pi. By glancing at the state of an LED that's plugged into the GPIO, I want to know if the Pi is fully shut down or not so I can pull the plug. For example: Pi on --> LED on. Pi is ...
0
votes
1answer
128 views

Pi 3 w/Pisound - Won't turn on unless wait a few minutes

I have a Pi 3 and Pisound (hat) and to turn it off I just unplug the cable. Now oddly, if I plug it back in right away I just get a red light, no blinking yellow BUT If I wait a few minutes to plug it ...
7
votes
6answers
4k views

Is there a way to unplug the Raspberry pi safely without shutting down

I'm building a kiosk app for a raspberry pi, and the final intention is that it will sit in a pelicase with all the external hardware, with one power cord in. My program has a quit button which safely ...
1
vote
1answer
920 views

Run a script before blank screen on shutdown/reboot

I am trying to get my raspberry pi 3 (running Raspbian 10) to show an animation on boot and before shutdown/reboot. using Plymouth I managed to get the boot animation, however, it doesn't display ...
3
votes
2answers
3k views

What happens to the GPIO voltage after shutdown?

I don't have a Raspberry Pi laying around at the moment and I would like to detect if my Raspberry Pi is shuted down. My Idea is that maybe after the Pi shutted down the Voltage at the 3V3 pin will ...
2
votes
2answers
861 views

Detect when the rpi3b+ has shut down

I have a pi in an embedded project. When the user turns the instrument off, I want to inhibit turning back on until the pi is done shutting down. I can do this with a timer circuit, but would like to ...
0
votes
1answer
51 views

No video output on HDMI to VGA with shutdown commands

My Raspberry Pi has following issue: It doesnt make any video output after booting if shut down by command sudo shutdown -h now or by taking the plug out. However, if I send via SSH or by blindly ...
0
votes
0answers
28 views

When is the RPi safe to power down? [duplicate]

My RPi3B+ is an embedded front end for a scientific instrument. I have an interface PCB with a 3amp 5v regulator, driven by a 48v supply. I monitor the 48v with ADC polled each 100ms, then sudo ...
2
votes
2answers
515 views

What is meant by Raspberry Pi “soft shutdown”

I am searching for MicroSD card for Raspberry Pi that won't get damaged. (See previous post, SanDisk Ultra SD Card with Raspberry Pi 3+ Suddenly Stopped Working (and is Overheated!)) On this product ...
1
vote
0answers
233 views

Raspberry Pi UPS with LiPo Battery

I have been working on a battery back up for my raspberry. The idea is classic: connect power bank to wall outlet and raspberry to power bank output. It works well with only battery power. But when ...
2
votes
1answer
4k views

Automatic shutdown of Pi based on timer

I'm looking to have my pi shutdown automatically based on a time interval (rather than the time of day). This is for an art installation and the reason I am turning off the pi is because it will ...
0
votes
0answers
125 views

Auto-(re)start of GUI application prevents shutdown

I have a GUI program (Python + Qt) coded for my Raspberry Pi. In order to start the program after startup, I have added the following line: @/bin/bash /home/pi/start_my_program.sh into .config/...
1
vote
2answers
2k views

How to make ups hat run safe shutdown on raspberry when disconnected from the power source

It can be long discussion, because there is no single solution around this, so, to cut the story short, I will tell where I stuck on my way. It is AndroidAuto (media centre in car on raspi) project I'...
0
votes
2answers
1k views

Raspberry Pi 3 B+ shuts down randomly [closed]

My RPi 3 B+ shuts down randomly. I have a official power supply and a 32 GB Toshiba microSDHC class 4 card. I'm using it as a host for a Discord bot.