exit emulator with python?

This topic contains 5 replies, has 2 voices, and was last updated by Profile photo of Gustav Johansson Gustav Johansson 4 years, 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1580
    Profile photo of Gustav Johansson
    Gustav Johansson
    Participant

    Hi!

    Is there a way to exit the emulators using a terminal command?

    I have a button connected to the gpio and im able to run terminal commands in the background but I don’t know any command to exit the emulators.

    Are there one or perhaps a more simply method?

    Thank you!

    #1592
    Profile photo of petrockblog
    petrockblog
    Keymaster

    Maybe this is what you are looking for: http://tjjr.fi/sw/python-uinput/

    To exit the emulators you need to simulate the press of the escape (“ESC”) key.

    #1598
    Profile photo of Gustav Johansson
    Gustav Johansson
    Participant

    Thank you! I will look into that.

    #1608
    Profile photo of Gustav Johansson
    Gustav Johansson
    Participant

    I can’t install python-uinput it seems, don’t know what’s wrong.

    How does your gpio adapter button work? Is the sourcecode available?

    #1609
    Profile photo of petrockblog
    petrockblog
    Keymaster

    The GPIO adapter can be used with SNESDev (https://github.com/petrockblog/SNESDev-RPi), which makes use of the UInput kernel module.

    #1649
    Profile photo of Gustav Johansson
    Gustav Johansson
    Participant

    The button worked without any problems, thank you!
    I have an unrelated question, thought it was better to use this thread than create a new one…
    I disabled autostart of emulationstation and did instead a small python app which ask to start emulationstation or not. The problem is that it start emulationstation from root instead of /home/pi.
    Is there a command to start emulationstation with a specific user?

Viewing 6 posts - 1 through 6 (of 6 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar