I'm having some problems with galaga: when I try to launch the rom, the screen is upside-down and I can't even insert credits or start a game.
Parsing mame.ini
Parsing mame.ini
Optional device 'sub3' not found
Optional device 'samples' not found
Optional device 'sub3' not found
Optional device 'samples' not found
Optional device 'sub3' not found
Optional device 'samples' not found
Optional device 'sub3' not found
Optional device 'samples' not found
Optional device 'sub3' not found
Optional device 'samples' not found
Optional device 'sub3' not found
Optional device 'samples' not found
Optional device 'sub3' not found
Optional device 'samples' not found
SwitchRes: Monitor range 15625.00-15800.00,49.50-60.50,2.000,4.700,8.000,0.064,0.160,1.056,0,0,192,288,448,576
SwitchRes: Monitor: custom Orientation: vertical Modeline generation: enabled
SwitchRes: Found output connector 'VGA-0'
SwitchRes: Entering switchres_modeline_setup
SwitchRes: v0.015:[galaga] Calculating best video mode for 224x288@60.606060 orientation: rotated
SwitchRes: ( 1)x( 1)_(60=0.0000Hz)
rng(0): 400 x 288_51.299p 15.800 [integ] scale(1, 1, 1) diff(0.00, 0.00, -9.3074) ratio(1.786, 1.000)
SwitchRes: [galaga] (1) vertical (224x288@60.61)->(400x288@51.30)
rng(0): 400 x 288_51.299p 15.800 [integ] scale(1, 1, 1) diff(0.00, 0.00, -9.3074) ratio(1.786, 1.000)
SwitchRes: Modeline "400x288_60 15.80KHz 51.30Hz" 8.22 400 416 456 520 288 289 292 308 -hsync -vsync
SwitchRes: Running 'xrandr --newmode "400x288_51.30" 8.22 400 416 456 520 288 289 292 308 -hsync -vsync'
SwitchRes: Running 'xrandr --addmode VGA-0 "400x288_51.30"'
SwitchRes: Setting option -rotate
SwitchRes: Setting option -noror
SwitchRes: Setting option -noautoror
SwitchRes: Setting option -norol
SwitchRes: Setting option -noautorol
SwitchRes: Setting option -noblack_frame_insertion
SwitchRes: Setting option -nomultithreading
SwitchRes: Setting option -nosyncrefresh
SwitchRes: Setting option -nowaitvsync
SwitchRes: Setting option -keepaspect
SwitchRes: Setting option -nounevenstretch
SwitchRes: Setting option -nofilter
SwitchRes: Setting option -prescale 1
Build version: 0.153 (Apr 9 2014)
Build architecure: SDLMAME_ARCH=
Build defines 1: SDLMAME_UNIX=1 SDLMAME_X11=1 SDLMAME_LINUX=1
Build defines 1: LSB_FIRST=1 PTR64=1 DISTRO=generic SYNC_IMPLEMENTATION=tc
SDL/OpenGL defines: SDL_COMPILEDVERSION=1215 USE_OPENGL=1 USE_DISPATCH_GL=1
Compiler defines A: __GNUC__=4 __GNUC_MINOR__=8 __GNUC_PATCHLEVEL__=2 __VERSION__="4.8.2"
Compiler defines B: __amd64__=1 __x86_64__=1 __unix__=1
Compiler defines C: __USE_FORTIFY_LEVEL=0
SDL Device Driver : x11
SDL Monitor Dimensions: 768 x 576
Enter sdlwindow_init
Using SDL single-window OpenGL driver (SDL 1.2)
Leave sdlwindow_init
Loaded opengl shared library: <default>
OpenGL: X.Org
OpenGL: Gallium 0.4 on AMD RS780
OpenGL: 2.1 Mesa 9.1.7
OpenGL: texture rectangle supported
OpenGL: non-power-of-2 textures supported (new method)
OpenGL: vertex buffer supported
OpenGL: pixel buffers supported
OpenGL: framebuffer object supported
OpenGL: GLSL supported, but disabled
OpenGL: max texture size 8192 x 8192
Keyboard: Start initialization
Input: Adding Kbd #0: System keyboard
Keyboard: Registered System keyboard
Keyboard: End initialization
Mouse: Start initialization
Input: Adding Mouse #0: System mouse
Mouse: Registered System mouse
Mouse: End initialization
Joystick: Start initialization
Joystick: End initialization
Audio: Start initialization
Audio: Driver is alsa
Audio: frequency: 48000, channels: 2, samples: 1024
sdl_create_buffers: creating stream buffer of 114688 bytes
Audio: End initialization
output: unable to open output notifier file /tmp/sdlmame_out
Region ':maincpu' created
Region ':sub' created
Region ':sub2' created
Region ':gfx1' created
Region ':gfx2' created
Region ':proms' created
Region ':namco' created
Region ':51xx:mcu' created
Region ':54xx:mcu' created
Searching font Liberation Sans in -fontpath
Matching font: /usr/share/fonts/TTF/LiberationSans-Regular.ttf
Starting Galaga (Namco rev. B) ':'
Optional shared pointer 'paletteram2' not found
Optional shared pointer 'paletteram' not found
Optional shared pointer 'paletteram2' not found
Optional shared pointer 'paletteram' not found
Optional shared pointer 'paletteram2' not found
Optional shared pointer 'paletteram' not found
(missing dependencies; rescheduling)
Starting Z80 ':maincpu'
Starting Z80 ':sub'
Starting Z80 ':sub2'
Starting Namco 51xx ':51xx'
Starting MB8843 ':51xx:mcu'
Starting Namco 54xx ':54xx'
Starting MB8844 ':54xx:mcu'
Starting Namco 06xx ':06xx'
Starting Video Screen ':screen'
(missing dependencies; rescheduling)
Starting gfxdecode ':gfxdecode'
Starting palette ':palette'
Starting Speaker ':mono'
(missing dependencies; rescheduling)
Starting Namco ':namco'
Starting DISCRETE ':discrete'
Starting Galaga (Namco rev. B) ':'
Optional shared pointer 'paletteram2' not found
Optional shared pointer 'paletteram' not found
Optional shared pointer 'paletteram2' not found
Optional shared pointer 'paletteram' not found
Optional shared pointer 'paletteram2' not found
Optional shared pointer 'paletteram' not found
(missing dependencies; rescheduling)
Starting Video Screen ':screen'
Starting Speaker ':mono'
Starting Galaga (Namco rev. B) ':'
Optional shared pointer 'paletteram2' not found
Optional shared pointer 'paletteram' not found
Optional shared pointer 'paletteram2' not found
Optional shared pointer 'paletteram' not found
Optional shared pointer 'paletteram2' not found
Optional shared pointer 'paletteram' not found
OpenGL: VBO supported
OpenGL: PBO supported
OpenGL: FBO supported
OpenGL: using vid filter: 0
GL texture: copy 1, shader 0, dynamic 1, 288x224 288x224 [PALETTE16, Equal: 0, Palette: 1,
scale 1x1, border 0, pitch 384,288/8192], bytes/pix 4
GL texture: copy 1, shader 0, dynamic 1, 288x224 288x224 [PALETTE16, Equal: 0, Palette: 1,
scale 1x1, border 0, pitch 384,288/8192], bytes/pix 4
Average speed: 99.99% (22 seconds)
sdl_kill: closing audio
Joystick: Start deinitialization
Joystick: End deinitialization
Enter sdlwindow_exit
Leave sdlwindow_exit
SwitchRes: Restoring desktop resolution: 768x576x50.00
SwitchRes: Running 'xrandr --output VGA-0 --mode 768x576x50.00'
SwitchRes: Running 'xrandr --delmode VGA-0 "400x288_51.30"'
SwitchRes: Running 'xrandr --rmmode "400x288_51.30"'
The strange thing is "SwitchRes: Monitor: custom Orientation: vertical Modeline generation: enabled", since in "mame.ini" I explicitly set "orientation horizontal".