Build Your Own Arcade Controls Forum

Main => Software Forum => Linux => Topic started by: captbaritone on November 24, 2007, 10:33:14 pm

Title: xmame stays in low resolution when I exit games
Post by: captbaritone on November 24, 2007, 10:33:14 pm
I recently upgraded my Ubuntu cabinet (in progress) to Ubuntu Gutsy (7.10) and have encountered a strange problem. Now (usually but not always) when xmame exits, instead of returning to the original system resolution (1024x768) the system stays at the resolution that the game was using. (640x480) which completely screws up wahcade.

Any ideas why this would happen? Do you know of a place to ask questions about xame?

Any help is appreciated, I am sooo close to getting this thing running after MONTHS!

-Captbaritone
Title: Re: xmame stays in low resolution when I exit games
Post by: Major Rock Hardy on November 28, 2007, 09:28:19 am
Not too familiar with XMAME, but I remember stumbling across an option in advancemame that will revert the video mode upon exit when I was perusing the documentation one day.  XMAME may have a similar option - you might try searching the documentation for video mode or revert or something.
Title: Re: xmame stays in low resolution when I exit games
Post by: captbaritone on November 28, 2007, 10:55:49 am
Unfortunately, I don't see any such reference here:

http://linux.die.net/man/6/xmame

One possible fix I am thinking of is finding some application or command which will revert the video mode and having wahcade run it after xmame.

ideas?

Title: Re: xmame stays in low resolution when I exit games
Post by: Major Rock Hardy on November 29, 2007, 09:44:36 am
hmmm... maybe a re-start of your window manager or x-server?  I can't remember if programs running under X are child processes of the X server or not.  If not, perhaps wahcade can send a hangup signal to the x server....?
Title: Re: xmame stays in low resolution when I exit games
Post by: captbaritone on December 25, 2007, 01:49:29 pm
I FINALLY figured it out!

In Wahcade, at the end of the list of options that get passed to xmame, I added:

"; xrandr -s 1024x768"

Which means that after xmame closes, it runs the application xrandr to manually reset the video mode (in case xmame forgot this time).

-Captbaritone
http://www.classicalcode.com