Toggling WiFi and Bluetooth on and off inside Retropie menus?
-
This may be something that better fits inside the 'Suggestions' part of the forum, but for right now I think it's fine here. I'm in the process of building a RPi3 handheld and came upon an overlay github repository which I plan on using in my project. When I was scrolling through the repository I noticed this screenshot that showed the user was able to easily enable and disable WiFi and Bluetooth inside of the Retropie menus. I've worked on themes before, but I have no idea how to implement this into my own theme, is anybody able to steer me in the right direction? Thank you so much!
-
I cannot take credit for this as Adrian86 from the 8Bcraft created the script.
I added it to both my Raspiboy, Freeplay 0, and my RPi3 arcade cabinet.I can't post files here, so here is the url to the post in the 8bCraft forum.
http://forum.8bcraft.com/viewtopic.php?f=2&t=1432
Read thru the entire thread as you should not REPLACE the gamelist.xml from the opt folder but add the following lines to opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml before the </gameList> tag<game> <path>./Bluetooth-Toggle/disable-bluetooth.sh</path> <name>disable-bluetooth</name> <desc>Disable bluetooth when not needed</desc> <image>/home/pi/RetroPie/retropiemenu/icons/disable-bluetooth.png</image> </game> <game> <path>./Bluetooth-Toggle/enable-bluetooth.sh</path> <name>enable-bluetooth</name> <desc>Enable bluetooth when needed</desc> <image>/home/pi/RetroPie/retropiemenu/icons/enable-bluetooth.png</image> </game> <game> <path>./Bluetooth-Toggle</path> <name>Bluetooth-Toggle</name> <desc>Toggle bluetooth on or off</desc> <image>/home/pi/RetroPie/retropiemenu/icons/Bluetooth-Toggle.png</image> </game> <game> <path>./WiFi-Toggle/disable-WIFI.sh</path> <name>disable-WIFI</name> <desc>Disable WiFi when not needed</desc> <image>/home/pi/RetroPie/retropiemenu/icons/disable-WIFI.png</image> </game> <game> <path>./WiFi-Toggle/enable-WIFI.sh</path> <name>enable-WIFI</name> <desc>Enable WiFi when needed</desc> <image>/home/pi/RetroPie/retropiemenu/icons/enable-WIFI.png</image> </game> <game> <path>./WiFi-Toggle</path> <name>WiFi-Toggle</name> <desc>Toggle WIFI on or off</desc> <image>/home/pi/RetroPie/retropiemenu/icons/WiFi-Toggle.png</image> </game> <game> <path>./Shutdown.sh</path> <name>Shutdown</name> <desc>Shutdown the system</desc> <image>/home/pi/RetroPie/retropiemenu/icons/Shutdown.png</image> </game>
-
Dude! You're the best! Thank you so much!
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.