The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Sdl 2.0.3 and Ubuntu 14.04
kj192


Joined: 26 Jan 2014
Posts: 7
Hi Everyone,

I don't know who has this problem like me, but I have a laptop freshly installed Ubuntu 14.04 32bit and SDL works fine just the screen goes to black and white after a 5 second.
I have installed the latest Ubuntu 14.04 64 bit to my PC, and the black and white effect is the same.
Is anybody know a solution how to solve this to not loose color?

Looking forward to your answers.
Sdl 2.0.3 and Ubuntu 14.04
JeZ-l-Lee


Joined: 20 Sep 2009
Posts: 572
Location: Long Island, New York, United States, Earth
Hi,
On 09/11/2014 11:52 AM, kj192 wrote:

Quote:
Hi Everyone,

I don't know who has this problem like me, but I have a laptop freshly installed Ubuntu 14.04 32bit and SDL works fine just the screen goes to black and white after a 5 second.
I have installed the latest Ubuntu 14.04 64 bit to my PC, and the black and white effect is the same.
Is anybody know a solution how to solve this to not loose color?

Looking forward to your answers.


Quote:
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Hi,

I am on Kubuntu 14.04 L.T.S. 64Bit and both SDL version 1.2 and SDL version 2.0.3 are working fine.
I have Intel CPU and nVidia GPU with nVidia proprietary display drivers installed.

Would help if you list hardware and what SDL application you are trying to run.

JeZxLee
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com
Re: Sdl 2.0.3 and Ubuntu 14.04
kj192


Joined: 26 Jan 2014
Posts: 7
Hi,
On the pc:
VGA compatible controller: Intel Corporation 82Q963/Q965 Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
Subsystem: Dell Device 01da
Flags: bus master, fast devsel, latency 0, IRQ 43
Memory at dfe00000 (32-bit, non-prefetchable) [size=1M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
I/O ports at ecb8 [size=8]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
Kernel driver in use: i915

SDL2-2.0.3
SDL2_gfx-1.0.1
SDL2_mixer-2.0.0
SDL2_ttf-2.0.12
SDL2_image-2.0.0

Found Driver: opengl
-> ACCELERATED
-> PRESENTVSYNC
-> TARGETTEXTURE
Found Driver: software
-> SOFTWARE
-> TARGETTEXTURE

video about what is happening:
I write the FPS with red color, and it will become black. The application is still running, just without color.
https://www.youtube.com/watch?v=2NdVptj-ZbY&list=UUEaVWVFsIpYqesdWZ4HYgBQ&index=1
Sdl 2.0.3 and Ubuntu 14.04
Sik


Joined: 26 Nov 2011
Posts: 905
2014-09-11 13:36 GMT-03:00, kj192:
Quote:
video about what is happening:
I write the FPS with red color, and it will become black. The application is
still running, just without color.
https://www.youtube.com/watch?v=2NdVptj-ZbY&list=UUEaVWVFsIpYqesdWZ4HYgBQ&index=1

I think you wanted to make it unlisted, not private (the latter
requires you to whitelist users, the former just makes it not appear
in your video list).
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Re: Sdl 2.0.3 and Ubuntu 14.04
kj192


Joined: 26 Jan 2014
Posts: 7
Sorry, the video should be okey now
Sik wrote:
2014-09-11 13:36 GMT-03:00, kj192:
Quote:
video about what is happening:
I write the FPS with red color, and it will become black. The application is
still running, just without color.
https://www.youtube.com/watch?v=2NdVptj-ZbY&list=UUEaVWVFsIpYqesdWZ4HYgBQ&index=1

I think you wanted to make it unlisted, not private (the latter
requires you to whitelist users, the former just makes it not appear
in your video list).
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Sdl 2.0.3 and Ubuntu 14.04
Ryan C. Gordon
Guest

Quote:
video about what is happening:
I write the FPS with red color, and it will become black. The
application is still running, just without color.
https://www.youtube.com/watch?v=2NdVptj-ZbY&list=UUEaVWVFsIpYqesdWZ4HYgBQ&index=1

Ubuntu turns windows to black and white when they aren't responding to
window events for some time, to alert the user that the application
appears to be hung up.

This will go away if you put this somewhere in your drawing loop:

SDL_Event e;
while (SDL_PollEvent(&e)) {}

Eventually you'd want to actually examine those events, but just polling
for them and throwing them away will fix your problem for now.

--ryan.


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Re: Sdl 2.0.3 and Ubuntu 14.04
kj192


Joined: 26 Jan 2014
Posts: 7
Thanks It worked !!
Ryan C. Gordon wrote:
Quote:
video about what is happening:
I write the FPS with red color, and it will become black. The
application is still running, just without color.
https://www.youtube.com/watch?v=2NdVptj-ZbY&list=UUEaVWVFsIpYqesdWZ4HYgBQ&index=1

Ubuntu turns windows to black and white when they aren't responding to
window events for some time, to alert the user that the application
appears to be hung up.

This will go away if you put this somewhere in your drawing loop:

SDL_Event e;
while (SDL_PollEvent(&e)) {}

Eventually you'd want to actually examine those events, but just polling
for them and throwing them away will fix your problem for now.

--ryan.


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org