How sdl select a modeline from linux framebuffer console by fbcon?

Hello!

I’m working an SDL live cd for SDLMAME emulator, and using only the
linux framebuffer console for video acceleration.

I disabled the vesa and vga drivers under kernel first, and now the
livecd is using the correct drivers (like nvidiafb and others).

My problem starts when trying to change resolutions. I put a lot of them
at /etc/fb.modes but the SDLMAME application
cannot change to the desirable resolution.

For example, I have this modeline:

320x224x60.00 @ 15.750kHz

mode "344x240x60.11"
geometry 344 240 344 240 16
timings 152626 32 8 15 4 32 3
hsync low
vsync low
endmode

To setup a 320x224x60.00 resolution, SDLMAME should select the
344x240x60.11 modeline, allright?
SDLMAME need to select the 344x240x60.11 modeline instead of just
344x240, allright?

Thanks again!

PS: I got better performance with fbcon instead of direcfb driver.

For example, I have this modeline:

320x224x60.00 @ 15.750kHz

mode "344x240x60.11"
geometry 344 240 344 240 16
timings 152626 32 8 15 4 32 3
hsync low
vsync low
endmode

To setup a 320x224x60.00 resolution, SDLMAME should select the
344x240x60.11 modeline, allright?

Well no, this isn’t a 320x224 modeline. :slight_smile:

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment