You are not logged in.
Pages: 1
Hi all,
I upgraded my system the other day and I just noticed that I can no longer run SDL programs. As soon as SDL_Init() is called, my X11 display changes back to the (framebuffer) text console. Pressing Alt+Ctrl+F1 does not restore my X session, however changing to another console with Alt+Ctrl+F2 and then pressing Alt+Ctrl+F1 to go back does restore my X session (but without an SDL window on the screen.)
Has anyone else experienced this? I am not sure whether it's a kernel problem, an X11 problem or a video driver problem (I'm using Intel HD graphics.)
Here is a simple test. Put this content in sdl-test.cpp:
#include <SDL.h>
int main(void)
{
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO);
return 0;
}Then compile and run it like this:
g++ -o sdl-test sdl-test.cpp -lSDL -I/usr/include/SDL
./sdl-testFor me the instant I press enter on the ./sdl-test line all my screens go black for a second and then I'm presented with the login prompt on another VT.
Is it just me or does this affect anyone else? Running all the latest packages as of just before this post, with Intel graphics and drivers.
Offline
I know next to nothing about SDL, but I just compiled and tried the above code and it did nothing as expected (no issue as you describe). I also have intel video with xf86-video-intel.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Interesting. Many thanks for testing it out! Guess I will have to look deeper to find the cause of this weird behaviour.
Offline
Pages: 1