Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL-dispmanx + EmulationStation #1

Open
twolife opened this issue Dec 17, 2012 · 11 comments
Open

SDL-dispmanx + EmulationStation #1

twolife opened this issue Dec 17, 2012 · 11 comments

Comments

@twolife
Copy link

twolife commented Dec 17, 2012

Hi there !

I'm using you patched SDL on my Pi & i have (so far ;) ) only found a glitch on 1 app : https://github.com/Aloshi/EmulationStation

The simplified codeflow looks like :

SDL_init
*initialize EGL/GLES surface*
...
*destroy EGL/GLES surface*
SDL_exit
system(start_an_emulator)
SDL_init
*initialize EGL/GLES surface*
...

The problem is that there is a not-really-cool exit(0) in DISPMANX_VideoQuit @ src/video/dispmanx/SDL_fbvideo.c , so it never start the emulator :(

I tried to remove the exit(0), the emulator started correctly, but on the exit i only had garbage on the screen.

If i simply remove the SDL_exit call from EmulationStation, it works flawlessly ; but i suppose the proper fix is to keep it & fix the libSDL

Regards,

@kalehrl
Copy link

kalehrl commented Feb 20, 2013

Hi twolife
I have the same problem - I can't start an emulator with emulationstation using dispmanx.
Can you tell me what lines and in what file did you change in emulationstation to get it working with dispmanx?
Thank you

@twolife
Copy link
Author

twolife commented Feb 20, 2013

@kalehrl : src/Renderer_init_rpi.cpp, line 182, you need to comment out "SDL_Quit();"
it's a ugly hack, I insist to repeat that the proper fix is to fix the dispmanx backend in libsdl.

@kalehrl
Copy link

kalehrl commented Feb 20, 2013

Thank you very much for your quick reply!
I'm now recompiling it. :)

@kalehrl
Copy link

kalehrl commented Feb 20, 2013

It works this way.
Have you noticed any side effects?

@kalehrl
Copy link

kalehrl commented Feb 20, 2013

Advmame doesn't seem to work with dispmanx and started via emulationstation.
I only get black picture while the sound works fine.
Snes9x and dgen work fine via emulationstation.
Also, after exiting emulationstation, keyboard doesn't work and I have to restart raspi.
I think I will abandon it and start the games through a simple script in console.

@adskiremote
Copy link

Hi Kalehrl did you get any further wiith this? I installed dispmanx toget DGen working. Then the same as you,problems in ES.

I haven't tried the SDL_Quit() hack yet thought I'd see if there had been any updates.

@kalehrl
Copy link

kalehrl commented May 5, 2013

No, but somebody else seems to have found a solution:
https://github.com/petrockblog/RetroPie-Setup/issues/155#issuecomment-16653623
I haven't tried it though.

@adskiremote
Copy link

Thanks - I shall give the fix a try. Unfortunately I did a make install
and wrote over the original SDL. Breaking RetroArch and pretty much
everything else.

Will try a fresh start and comile everything again, let you know how I get
on.

I suppose I could save myself all the hassle and plug in my TV that's HDMI
compatible. But I refuse to do so and like the 'retro-ness' of composite
video ;-)

On 5 May 2013 15:21, kalehrl [email protected] wrote:

No, but somebody else seems to have found a solution:
petrockblog/RetroPie-Setup#155https://github.com/petrockblog/RetroPie-Setup/issues/155#issuecomment-16653623
I haven't tried it though.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-17448429
.

@kalehrl
Copy link

kalehrl commented May 6, 2013

You can get back the default SDL installation quite easily.
Just reinstall libsdl1.2-dev and libsdl1.2debian.

@adskiremote
Copy link

really? Oh great was just about to waste another entire weekend building
and testing ;-)

Thank you for that - you've saved me a lot of time.

On 7 May 2013 00:30, kalehrl [email protected] wrote:

You can get back the default SDL installation quite easily.
Just reinstall libsdl1.2-dev and libsdl1.2debian.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-17495501
.

@joolswills
Copy link

This might be of interest - http://www.raspberrypi.org/forums/viewtopic.php?f=38&t=99822

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants