I'd like the Retropie to power on our Xbox and switch to its OneGuide app
-
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?
-
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
. -
@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?
-
@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.
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.