RetroPie and MagicMirror
-
@ramez There's no tutorial to 'create' Ports. You take existing working games/programs and you create an installation procedure for them. You can take a look at an existing port in the RetroPie's Github repository.
Is your application working standalone without problems on the RetroPie system ? -
@ramez No we do not have such a section. And it is not needed because as @mitu said the ports are just bash files that call a specific program. So if the mirror does not work standalone then it will not work as port script out of EmulationStation.
Read the mirror tut in github. This seems very detailed and ask the people there for further assistance. Maybe the error message is common.
-
I think the problem is that MagicMirror seems to require the X.org environment to run.
@Ramez Install the PIXEL desktop from the RetroPie setup script - https://retropie.org.uk/docs/FAQ/#where-did-the-desktop-go - , then start it from ES and try to run MagicMirror from the Desktop environment. -
-
@cyperghost said in RetroPie and MagicMirror:
I asked @Ramez if he used the full Rasbian version and he said it is the same error.
May be the same error, but their Wiki suggests an X env is needed, since it's an Electron app - https://github.com/MichMich/MagicMirror/wiki/Configuring-the-Raspberry-Pi.
-
@mitu oh that will end in a mess ... OpenGL driver support should be disabled.
But in fact a cool project... Use a half (?!!) mirror in front of a display and get your weather report and if you are funny play Mario.
-
thanks for great discussion guys :) @mitu yes Mirror working correctly when i run it from terminal or PIXEL in both retropie img (lite Rasbian) or full one.
@cyperghost that's exactly what I aim to do, Having a stunning mirror in my home and guess what!! it plays PlayStation and Retro nostalgia games (^_^) ... but still can't figure out how to add mirror directly to the RetroPie ports :( actually I've ended up creating a desktop shortcut for the mirror so I log into ES to play games or log into desktop to (log into) mirror until someone help me fixing that problem. -
@ramez okay then it us very easy to do
Create a shortcut to autostart mirror within Pixel. Then in Ports section create a call to launch Pixel then it will work as you like.
To terminate Pixel you can use controller config that calls my Multi Switch Shutdown Script like
./multi_switch.sh --es-closeemu
. This will kick you back to ES -
@cyperghost many thanks will try it :)
-
EDIT: @cyperghost I can see that your MSS script requires a hardware GPIO button, am I right?
Just wanted solution to quit PIXEL globally, I've done that by simply editing lxde shortcuts and adding a new keybind that ends user session like that :
typesudo nano /home/pi/.config/openbox/lxde-pi-rc.xml
add the following code under keyboard bindings<!-- Keybindings for running applications -->
<keybind key="C-e"> <action name="Execute"> <command>pkill -KILL -u pi</command> </action> </keybind>
So as
Ctrl+q
quit apps ,NowCtrl+e
quits the whole desktop :)
Reference1 .... Reference2I've also made it possible to exit the system (my mirror in that case) by joystick just like RetroArch emulators hotkey [start+select] by remapping the keyboard and made aTutorial for that ;)
-
@ramez said in RetroPie and MagicMirror:
EDIT: @cyperghost I can see that your MSS script requires a hardware GPIO button, am I right?
No it can be tight to a button but it can also just be called by script itself. Read more about on its help screen.
The option--es-closeemu
brings you back to ES as long as you used to start Pixel officially installed by RetroPie
The option--es-poweroff
performs a safe shutdown with metadata saved. So you can tie several parameters to joypad described in your how to.But it is fundamental that any program must he launched through EmulationStation by runcommand call. The script uses runcommand as starting entry to determine all PIDs that will be closed by script call
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.