Questions tagged [shutdown]

For questions pertaining to shutting down the operating system.

Filter by
Sorted by
Tagged with
0
votes
2answers
69 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
48 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
31 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
22 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
68 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
82 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 ...
1
vote
1answer
181 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
38 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
288 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
109 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
424 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 ...
1
vote
2answers
2k 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
115 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
93 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
156 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
309 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
43 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
105 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
235 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
295 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
242 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
677 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
108 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 ...
3
votes
2answers
10k 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
225 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 ...
3
votes
2answers
12k 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
870 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
122 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
136 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
9k 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
90 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
1k 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
1k 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 ...
0
votes
1answer
320 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
1answer
541 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 ...
8
votes
3answers
10k 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
3k 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 ...
1
vote
3answers
2k views

How to get shutdown and reboot buttons of `lxde-pi-shutdown-helper` working

I am running my the PIXEL desktop of Rasbian (Jessie) in VNC started by cron. In this case the Shutdown and Reboot of the shutdown menu do not work (only Logout). How can I get shutdown and reboot ...
0
votes
1answer
62 views

My PI makes shut down at 22:15 regularly, but I don't know why

I can find the entry in syslog: Mar 29 22:15:01 raspi CRON[14533]: (root) CMD ( shutdown -h now ) But I can't find any related between the cron jobs of any users. for user in $(cut -f1 -d: /etc/...
1
vote
1answer
133 views

Hiding terminal/console on shutdown

Is there a way to hide the terminal/console on shutting down the Pi? I've got a python script running that calls Shutdown as a subprocess: # shutdown subprocess.call("shutdown -h now", shell=True, ...
0
votes
0answers
27 views

How does a Raspberry Pi 3 react with low voltage as batteries die? [duplicate]

How does the Raspberry pi react as voltage drops from batteries die? Does it eventually automatically halt or do I need to worry about unpredictable side effects from running the batteries dead?
2
votes
1answer
371 views

Prevent raspberry pi auto start?

Is it possible to prevent raspberry pi 3 from booting up automatically when i connect power? Use case: i'm using shutdown -h for shutdown/halt, and then a push button in pins 5 & 6 to start again....
2
votes
1answer
3k views

Shutdown the Pi at the end of my python script using cron?

I have created a python script that lights up some leds on a bit of breadboard then it's supposed to shut down the pi, the script works fine if I run it in python and the pi shuts down as intended. ...
3
votes
1answer
5k views

Cut GPIO power on shutdown

I'm developing a project where I have a button connected to the Raspberry Pi GPIO where it sends shutdown command when pressed for 3 seconds. I also have a 16x2 LCD that outputs status messages. When ...
1
vote
1answer
153 views

On a raspberry pi, is safer to restart it by unplugging it or shorting the “run” pad to ground?

I know that running a shutdown script it best. I know that unplugging the RPi runs the risk of corrupting the SD card. Does using the "run" pad also run the risk of corrupting the SD card? Second when ...
24
votes
5answers
18k views

Shutting down the Pi safely without SSH or a monitor?

My Pi is currently not responding to SSH, and the only HDMI monitor I have is a large TV several meters away. I've heard bad things about unplugging it, but do I have any other option? Currently ...
1
vote
1answer
517 views

Should I shut down RP3 using command line or GUI?

I am a pretty new user of Raspberry Pi, and I booted it just once so far. I used NOOBS to install Raspbian on a microSD card for my RP3. When I wanted to shut it down afterwards, I Googled it to ...
1
vote
1answer
222 views

Shutdown Pi via USB stick

First time poster, not first time RasPi user. I am trying to figure out a failsafe way to shutdown any Pi(w/ rasbian) due to the oft-sited issues with SD card corruption when the power cable is ...
4
votes
2answers
717 views

Prevent wake-from-halt

I have an SMBUS (I2C, SMART Battery/charger) communication connected to the RPi: Pin 3 GPIO2 SMBUS SDA Pin 5 GPIO3 SMBUS SCL When pin 5 is connected, the system will wake up after approx 5-20 secs ...
1
vote
1answer
229 views

Control GPIO first thing on boot-up and last thing on shutdown

I want an external circuit to know when the Pi has started booting up and finished shutting down. How early/late is it possible to control the pins? And how might it be done? I'm thinking of writing ...