RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    I'd like the Retropie to power on our Xbox and switch to its OneGuide app

    Scheduled Pinned Locked Moved Help and Support
    pythonscriptingxbox
    4 Posts 2 Posters 436 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      WesleyBidsnipes
      last edited by

      Our Retropie is hooked up to the Xbox's auxiliary HDMI port. To view the Retropie's screen it's necessary to launch the Xbox Oneguide app.

      Towards this end I have written a python script that does these things (I've yet to run it from the Retropie, but it works from my development machine... but I think I remember seeing that Python was already installed so it shouldn't be too difficult).

      I would like for this script to execute whenever the Retropie controller is activated and finished syncing. Is there a hook from which to execute this script somewhere on the Retropie (not sure if that'd be Emulationstation or what) when that occurs?

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        You probably want the script to be executed from an udev rule, when a device is added (i.e. plugged in). Something like:

        SUBSYSTEM=="input", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="c268", ACTION=="add", RUN+="/usr/bin/python /path/to/script"
        

        You'll have to replace the vendor/product Id's with the ones of your gamepad(s) and put this in an udev rules file under /etc/udev/rules.d.

        W 1 Reply Last reply Reply Quote 0
        • W
          WesleyBidsnipes @mitu
          last edited by

          @mitu It's been years since I've messed with udev... does that work with Bluetooth as well? We have one of the Playstation 3 wireless controllers, I think it's the Sixaxis.

          dmesg makes it seem like mine are 054c and 0268. I guess Sony's a popular choice here?

          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by

            @WesleyBidsnipes said in I'd like the Retropie to power on our Xbox and switch to its OneGuide app:

            @mitu It's been years since I've messed with udev... does that work with Bluetooth as well? We have one of the Playstation 3 wireless controllers, I think it's the Sixaxis.

            It should work.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.