Questions tagged [shutdown]

For questions pertaining to shutting down the operating system.

Filter by
Sorted by
Tagged with
1
vote
1answer
53 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
71 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
126 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 ...
3
votes
1answer
64 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
104 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
24 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
87 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 ...
2
votes
1answer
488 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
61 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
89 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
107 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 ...
3
votes
6answers
2k 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
377 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 ...
2
votes
2answers
571 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
235 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
39 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
23 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
184 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
165 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
1k 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
79 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
800 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
393 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.
0
votes
2answers
871 views

gpio-shutdown doesn't seem to have an effect

We are trying to have the Pi shut down gracefully when power is removed. We have a battery connected so that it will have time to shut down. So far, our attempts to use gpio-shutdown have been ...
3
votes
2answers
5k views

Run a script at shutdown on Raspbian

I'm trying to run a script right before my Pi shuts down. OS: Raspbian Stretch Here is what I did so fare: put my script (name: sendir) in /etc/init.d/ created a symbolic link to it in /etc/rc6.d ...
1
vote
2answers
299 views

Shutting down quickly (And safely)

I'm currently writing a research paper on the power consumption of a raspberry pi 3 and a raspberry pi zero wireless. One question I have as far as shutdown goes (I'm trying to achieve a powered off ...
1
vote
1answer
116 views

GPIO 1 not waking up the board when shorted to ground

I'm trying to use a single button to put the pi in a halt state and then wake it up. I cannot use GPIO3 since I'm using i2c devices as well. However according to this original post https://www....
1
vote
1answer
187 views

Cooling fan causes shutdown

I'm using Raspberry Pi 3 with 5V/2.5A input. I'm going to do heavy work with Rasp (so need to cool CPU). Today I bought 5 V mini fan for my Raspberry and plugged to GPIO pins 4 and 6. While ...
0
votes
2answers
402 views

Raspberry Pi UPS - Thoughts for off shelf items

I've been looking at off the shelf raspberry pi UPS/shutdown controllers. I've come up with 4 and wanted somebody to weigh in on the choices. My use case is pretty strait forward. I want the pi to ...
1
vote
0answers
61 views

Why is my new Raspberry Pi 3 shutting down after inactivity?

My new Raspberry Pi 3 seems to shut down after a certain amount of inactivity. Is that intended behaviour? I've not found any documentation that says specifically whether this is supposed to happen, ...
2
votes
1answer
180 views

Cleanly shutting down daemon on Reboot or Shutdown command

I have a daemon I've created which fires up a bunch of subcomponent threads. If I use the "systemctl stop" command I catch the SIGTERM and usually have everything closed down cleanly in 2-6 seconds (...
0
votes
1answer
294 views

Script Running in Background GPIO.cleanup() on shutdown

I have been searching for answer to this. I have python script that runs on start up via cron, and lights up some different LEDs based on button pushing using the GPIO pins and runs in the background ...
0
votes
1answer
385 views

Shutdown command is now missing after installing MATE on Raspbian Lite?

I recently installed Raspbian Lite (stretch) on my Raspberry Pi 3b+, and followed these instructions to get MATE installed, which worked fine (with the exception of having to use -o Acquire::ForceIPv4=...
0
votes
0answers
293 views

Running PiHole from rPiW with safe shutdown

I am new to Raspberry Pi, but I was looking to use one as a PiHole from the small Zero wireless series. My thought was to run it connected to the router itself using the USB port from that to give it ...
3
votes
3answers
825 views

How to make Raspberry shutdown when internet/lan disconnected

I've already seen this link How to make Raspberry shutdown when I unplug the ethernet cable, but this solution does not work on Raspbian stretch since its network interface file/folder structure is ...
2
votes
0answers
119 views

Safe[ish] shutdown without the shutdown command

For my needs, I have to execute something (take a picture) early in the boot process, and then shut down the machine as quickly as possible. Right now, I have a script that does exactly that, it ...
6
votes
2answers
15k views

Raspberry Pi 3 model B “dtoverlay=gpio-shutdown”

To my /boot/config.txt on Raspberry Pi Model B I added: dtoverlay=gpio-shutdown,gpio_pin=3,active_low=1,gpio_pull=up Right now nothing happens when i shorten GPIO#3 with ground. What else needs to ...
2
votes
1answer
280 views

Shut down standalone pi without access

I'm working on getting a pi connected to my wifi network (my first attempt failed). I don't have ethernet access, nor do I have a monitor and keyboard. When pulling the plug, I'm corrupting the ...
6
votes
2answers
16k views

Raspberry Pi 3 Freezes

My Raspberry Pi 3 Model B freezes randomly. This as been going on since I got it, about 4 months ago. It sometimes freezes on reboot causing reboot loops. It freezes on Chromium when all that's open ...
0
votes
1answer
1k views

RPI Run a Python script fan speed control while loop until shutdown

So I have recently created a VPN server on a raspberry Pi 2 Mobel B, and I would like to create a script that will read the CPU temperature and change the PWM signal that is fed into a transistor to ...
1
vote
1answer
136 views

How to prevent Raspberry pi 3 from auto starting in an operating system after reboot?

Sometimes, I don't like the Raspberry Pi to reboot into the last operating system used automatically , after 10 seconds. I want to be able to either prevent this entirely and/or choose a custom start ...
1
vote
2answers
234 views

Force Pi to blackout display at certain times

I'm using a Pi 3 to display content in Kiosk mode (Chromium). I've disabled the PIXEL screensaver to prevent screen blackouts during operational hours. What I need is the display to blackout during ...
3
votes
2answers
12k views

How to properly reboot pi without disconnecting power

I have observed that if I use any of the following commands to reboot my RPi 2B: $ sudo reboot $ sudo shutdown -r now $ sudo shutdown -Hr now and then try to SSH into the Pi, I get a Connection ...
0
votes
1answer
98 views

Killing Power at GDM3 Login

I understand that killing power to a running pi without first shutting down can damage the SD card. Can Killing power at the GDM3 login screen also damage my SD card or do I need to run the GDM3 ...
1
vote
0answers
2k views

Raspberry Pi won't shut down

There are plently of questions on this forum regarding shutdowns and how to perform them properly on a rpi, but I have not encountered anything like this before. Maybe I'm just being a linux n00b ¯_(ツ)...
2
votes
1answer
2k views

Turning RPi off safely and elegantly

Raspberry Pi 1 Model A running Raspbian Stretch Lite here. What's the preferred method for elegantly shutting down the pi (so that all services shut down correctly & safely, etc.)? Looks like I ...
1
vote
1answer
378 views

How to determine if a Pi Zero is shutdown?

I've got a Raspberry Pi Zero W in my project. It is hidden inside an enclosure. I need some way for the user to determine that it is in a shutdown state so that power can be removed. I need to make ...
1
vote
0answers
605 views

Pigrrl 2 using pi 3, pitft 2.8 shutdown button

I have an unused button on the pitft screen that I want to use as a shutdown button. I tried the steps on adafruit but it just won't work. I've figured out hotkeys but not how to trigger a safe ...
9
votes
3answers
12k views

How to keep watchdog timer running during reboot/shutdown

In my research so far I've noticed there are two approaches to activating a watchdog timer on raspberry: using systemd or installing watchdog. It's all explained well here: https://www.raspberrypi.org/...
3
votes
2answers
4k views

Raspberry Pi hangs on reboot (once after one month) - works fine after power off/on

I have a problem where my Pi hangs on reboot. It only happens on some Pi's after about a month of running scripts. There's a script that resets the Pi every morning and it's on one of these resets ...