Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions retropie_SafeShutdown_gpi2.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def poweroff():
while True:
#self.assertEqual(GPIO.input(powerPin), GPIO.LOW)
GPIO.wait_for_edge(powerPin, GPIO.FALLING)
os.system("sudo killall emulationstation")
os.system("sudo killall emulationstatio") #RetroPie 4.6
os.system("sudo killall -SIGTERM emulationstation")
os.system("sudo killall -SIGTERM emulationstatio") #RetroPie 4.6
os.system("sudo sleep 5s")
os.system("sudo shutdown -h now")
def lcdrun():
Expand Down