How to turn off Raspberry Pi?

 To safely turn off a Raspberry Pi, do one of these:



From the terminal (recommended)

  • Shutdown now

sudo shutdown -h now
  • Power off immediately

sudo poweroff
  • Halt (stops CPU; usually also powers off)

sudo halt

With a desktop GUI

  • Click Menu (Raspberry icon) → Shutdown… → Shutdown

If it’s frozen

  • Try the “magic SysRq” safe reboot sequence (works only if enabled):

    1. Hold Alt + PrintScreen

    2. Slowly type: R E I S U B
      (reboots safely; for shutdown you’d usually still need power control afterward)

After shutdown

When the Pi finishes shutting down, the green ACT LED stops blinking.
Then you can remove power (unless you have a power management board that cuts power automatically).

评论

此博客中的热门博文

Detailed Explanation of STM32 HAL Library Clock System

How do you set up ADC (Analog-to-Digital Converter) in STM32?

How To Connect Stm32 To PC?