2014-04-28, 12:31
(2014-04-28, 06:03)redstorm Wrote: I thought it would add MAME to my HTPC as I like to play the odd arcade game from time to time, installed advanced launcher and setup MAME as per the wiki,. What I get is a black screen when launching a rom.If this command line is working on your system, maybe you can try to modify your MAME launcher like this :
My config
Ubuntu 12.04 (kernel updated to 3.13.5)
XBMC 12.3
I do not run a window manager and Linux boots into XBMC via an upstart job as per the XBMC wiki
The black screen issue is to do with not running a Window manager like Gnome.
Testing the emulator I can stop XBMC and lunch MAME as follows.
Code:#!/bin/sh
exec su -c "xinit /usr/games/mame exerion -- -nocursor :0" xbmc
This lunches MAME and loads Exerion no problem (well sound was missing but fixed that with an asound.conf file)
Is their a more elegant way to launch the emulator from within XBMC without resorting to installing a GDM
Application : /usr/bin/exec
Arguments : su -c "xinit /usr/games/mame %romname% -- -nocursor :0" xbmc
But I'm not sure it will work until XBMC still running and so have the focus. Way to fix it would be to close XBMC and then start MAME using you command. But honestly, using a windows manager, that will automatically manage application display switch, focus, resolution, commands and all would be more easier.