Dimmed screen

I am new to SDL, I have been using Linux (Ubuntu) and have noticed that all SDL programs I run dim my screen on my laptop. I have noticed this seems to happen at the point of the SDL_init stage is this a bug or normal within SDL or Linux/Ubuntu? I would have expected it to hold the brightness of my current screen setting. Or have I missed something that I need to do within my programs. I have noticed this with programs written by other people as well on my screen.

Thanks

Email Disclaimer: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are notified that any use or dissemination of this communication is strictly forbidden. If you have received this communication in error please notify the sender immediately

Mayber power settings? Your screen dims when graphics card enters 3D
mode? Connect it to any power source and check if it still dims.

Cheers

Dnia 2009-02-18, ?ro o godzinie 13:19 +1100, Philip Lidbetter pisze:>

Email Disclaimer: This email and any files transmitted with it are
confidential and intended solely for the use of the individual or
entity to whom they are addressed. If you are not the intended
recipient you are notified that any use or dissemination of this
communication is strictly forbidden. If you have received this
communication in error please notify the sender immediately

I think the most intuitive assumption is that you’re talking about the
LCD backlight brightness, so that’s what I think all the SDL mailing
list readers think you mean. In fact, maybe that’s so intuitive that
it’s what you assumed even if that’s not what’s changing. I know one
other experience that a person might mistake for a chance in
backlight brightness, or otherwise call a change in “brightness.”

Are you perhaps talking about your video gamma settings? On my system,
many games have their own gamma settings, and when I switch between
them, there is often a clear change in gamma before the actual
framebuffer is changed from one application to another (usually
changing between my desktop and the game in question.)On Tue, Feb 17, 2009 at 9:19 PM, Philip Lidbetter wrote:

I am new to SDL, I have been using Linux (Ubuntu) and have noticed that all
SDL programs I run dim my screen on my laptop.


http://codebad.com/

It maybe the LCD backlightness brightness. But why would that be changed just
at the point of SDL_init command within my code? Is there is there something
like that happening within the SDL_init? Does SDL_init command alter the
Gamma settings? As I have run a very simple SDL program more or less only
the SDL_init command, no SDL_INIT_VIDEO even within the SDL_init and still
get this dimming effect.

Donny Viszneki wrote:>

On Tue, Feb 17, 2009 at 9:19 PM, Philip Lidbetter <@Philip_Lidbetter> wrote:

I am new to SDL, I have been using Linux (Ubuntu) and have noticed that
all
SDL programs I run dim my screen on my laptop.

I think the most intuitive assumption is that you’re talking about the
LCD backlight brightness, so that’s what I think all the SDL mailing
list readers think you mean. In fact, maybe that’s so intuitive that
it’s what you assumed even if that’s not what’s changing. I know one
other experience that a person might mistake for a chance in
backlight brightness, or otherwise call a change in “brightness.”

Are you perhaps talking about your video gamma settings? On my system,
many games have their own gamma settings, and when I switch between
them, there is often a clear change in gamma before the actual
framebuffer is changed from one application to another (usually
changing between my desktop and the game in question.)


http://codebad.com/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


View this message in context: http://www.nabble.com/Dimmed-screen-tp22070877p22093016.html
Sent from the SDL mailing list archive at Nabble.com.

It maybe the LCD backlightness brightness. But why would that be changed just
at the point of SDL_init command within my code? Is there is there something
like that happening within the SDL_init? Does SDL_init command alter the
Gamma settings? As I have run a very simple SDL program more or less only
the SDL_init command, no SDL_INIT_VIDEO even within the SDL_init and still
get this dimming effect.

Very strange! So you get it even if you run the loopwave program in the
test directory of the SDL source archive? Is it for the duration of the
program, or forever?

See ya!
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Perhaps you could run the program in gdb and tell us what syscall
coincides with the change? Have you asked Ubuntu people?On Wed, Feb 18, 2009 at 9:57 PM, Sam Lantinga wrote:

It maybe the LCD backlightness brightness. But why would that be changed just
at the point of SDL_init command within my code? Is there is there something
like that happening within the SDL_init? Does SDL_init command alter the
Gamma settings? As I have run a very simple SDL program more or less only
the SDL_init command, no SDL_INIT_VIDEO even within the SDL_init and still
get this dimming effect.

Very strange! So you get it even if you run the loopwave program in the
test directory of the SDL source archive? Is it for the duration of the
program, or forever?


http://codebad.com/

This is on Ubuntu, right? The latest versions of Ubuntu will dim an
application while it running but not responding. It is a visual
warning, something like the little hour glass icon or the spinny icon
that Ubuntu uses to tell you that and app is busy. I’m pretty sure
this is an OS or window manager thing because I’ve seen it happen with
pretty much all applications. It makes sense that it would happen just
as you are initializing SDL because at that point SDL runs off and
does a lot of work and the even queue is not being processed.

This may not be the cause, but it seems likely to me.

Bob PendletonOn Wed, Feb 18, 2009 at 8:57 PM, Sam Lantinga wrote:

It maybe the LCD backlightness brightness. But why would that be changed just
at the point of SDL_init command within my code? Is there is there something
like that happening within the SDL_init? Does SDL_init command alter the
Gamma settings? As I have run a very simple SDL program more or less only
the SDL_init command, no SDL_INIT_VIDEO even within the SDL_init and still
get this dimming effect.

Very strange! So you get it even if you run the loopwave program in the
test directory of the SDL source archive? Is it for the duration of the
program, or forever?

See ya!
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

±-------------------------------------+

But that feature (in Compiz or metacity with xcomposite) lighten the
application up when it is responding again, so I doubt that is the
problem here.

I have seen that behaviour also on other Notebooks with Ubuntu where
it dims the screen (really seems to dim the LCD backlight) and also in
window mode. I cannot test that right now though and on my Desktop PC
this does not happen (but I also have a CRT on that one, so it cannot
dim anything).

  • AlbertAm 19.02.2009 um 19:03 schrieb Bob Pendleton:

This is on Ubuntu, right? The latest versions of Ubuntu will dim an
application while it running but not responding. It is a visual
warning, something like the little hour glass icon or the spinny icon
that Ubuntu uses to tell you that and app is busy. I’m pretty sure
this is an OS or window manager thing because I’ve seen it happen with
pretty much all applications. It makes sense that it would happen just
as you are initializing SDL because at that point SDL runs off and
does a lot of work and the even queue is not being processed.

This may not be the cause, but it seems likely to me.

Bob Pendleton

On Wed, Feb 18, 2009 at 8:57 PM, Sam Lantinga wrote:

It maybe the LCD backlightness brightness. But why would that be
changed just
at the point of SDL_init command within my code? Is there is there
something
like that happening within the SDL_init? Does SDL_init command
alter the
Gamma settings? As I have run a very simple SDL program more or
less only
the SDL_init command, no SDL_INIT_VIDEO even within the SDL_init
and still
get this dimming effect.

Very strange! So you get it even if you run the loopwave program
in the
test directory of the SDL source archive? Is it for the duration
of the
program, or forever?

See ya!
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

±-------------------------------------+


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org