JoshuaLaLonde
Posts: 22
Joined: Tue Mar 07, 2017 6:18 pm
Location: New York

How to safely shutdown raspberry pi when its frozen

Tue Mar 07, 2017 6:27 pm

I just downloaded Kodi and we all know about the screen going blank.. well I got it off the blank screen but there are 8 (visible) task managers open. The mouse still moves, so it isn't completely frozen, but might as well be. What is the safest way to shutdown my pi? I cannot get into terminal. Is there by any small chance a hotkey for this?

Thank you so much for your help!
Joshua.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 12405
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: How to safely shutdown raspberry pi when its frozen

Tue Mar 07, 2017 6:37 pm

Its unsafe to power down when there is (or recently has been) write action to the SD-card going on.
If recent writes have occurred the SD-card might decide to do some household tasks which when interrupted may lead to corruption. Otherwise it should be safe to power off, only the power off will cause a "dirty" bit set in the filing system, but that should not be a disaster.

Watch the ACT LED, as long as its blinking the sd-card is active then powering down is inadvisable.
If there is no SD-card action, then wait a few seconds and power off.

The is no "shortcut" key-combination to power down AFAIK.

User avatar
DougieLawson
Posts: 36544
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: How to safely shutdown raspberry pi when its frozen

Tue Mar 07, 2017 7:09 pm

mahjongg wrote: The is no "shortcut" key-combination to power down AFAIK.
Apart from the "magic sysrq" keys.

[CTRL]+[ALT]+[SYSRQ] then [R] for reboot.
[CTRL]+[ALT]+[SYSRQ] then [O] for poweroff.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
HawaiianPi
Posts: 4860
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: How to safely shutdown raspberry pi when its frozen

Tue Mar 07, 2017 7:14 pm

mahjongg wrote:...The is no "shortcut" key-combination to power down AFAIK.
Yup, there is, but it's pretty old-school Linux.

Hold down both Alt+PrintScreen, and while holding those keys, hit the following keys in sequence, one at a time, with a few seconds pause between them.

R E I S U B

A handy mnemonic to remember that is, Reboot Even If System Utterly Broken.

Substitute "O" for "B" to shutdown the system instead of rebooting (O=off, B=boot).

https://en.wikipedia.org/wiki/Magic_SysRq_key
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Return to “Troubleshooting”