Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pkill -15 signal for retroarch, in order to soft close it and so … #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions SafeShutdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def poweroff():
while True:
#self.assertEqual(GPIO.input(powerPin), GPIO.LOW)
GPIO.wait_for_edge(powerPin, GPIO.FALLING)
os.system("sudo pkill -15 'retroarch'")
os.system("sudo killall emulationstation")
os.system("sudo killall emulationstatio") #RetroPie 4.6
os.system("sudo sleep 5s")
Expand All @@ -48,6 +49,7 @@ def reset():
while True:
#self.assertEqual(GPIO.input(resetPin), GPIO.LOW)
GPIO.wait_for_edge(resetPin, GPIO.FALLING)
os.system("sudo pkill -15 'retroarch'")
os.system("sudo killall emulationstation")
os.system("sudo killall emulationstatio") #RetroPie 4.6
os.system("sudo sleep 5s")
Expand Down
1 change: 1 addition & 0 deletions SafeShutdown_gpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#functions that handle button events
def when_pressed():
os.system("sudo pkill -15 'retroarch'")
os.system("sudo killall emulationstation")
os.system("sudo killall emulationstatio") #RetroPie 4.6
os.system("sleep 5s")
Expand Down