RetroFlag / retroflag-picase

RetroFlag Pi-Case Safe Shutdown
MIT License
713 stars 229 forks source link

Raspberry Pi 4 (Ubuntu 20.04) rebooting instead of shutting down when POWER button is pressed. #125

Open jungeisen opened 3 years ago

jungeisen commented 3 years ago

Issue: The Raspberry Pi reboots when the shutdown button is pressed.

Solution: sudo nano /opt/RetroFlag/SafeShutdown.py line 31 (Section "poweroff"): change os.system("sudo shutdown -r now") to os.system("sudo shutdown -h now")