Re: What fuction can I use to change the brightness of screen?

Tech-Archive recommends: Speed Up your PC by fixing your registry




Reread my prev post:

>>But note, this will never work on all CE devices as
>>those features are platform specific. Not every display
>>driver supports it directly, some OEMs have separate
>>non-standard brightness/contast/backlight drivers/API
>>to control it...





MorrisTang wrote:
VIDEOPARAMETERS vp = {0};
GUID guid;

guid.Data1 = 0X02C62061;
guid.Data2 = 0X1097;
guid.Data3 = 0x11d1;
guid.Data4[0] = 0X92;
guid.Data4[1] = 0X0F;
guid.Data4[2] = 0X00;
guid.Data4[3] = 0XA0;
guid.Data4[4] = 0X24;
guid.Data4[5] = 0XDF;
guid.Data4[6] = 0X15;
guid.Data4[7] = 0X6E;

vp.Guid = guid; vp.dwOffset = 0;
vp.dwCommand = VP_COMMAND_SET;
vp.dwFlags = VP_FLAGS_BRIGHTNESS;
vp.dwBrightness = thumbIndex[1] * 10;

int result = ChangeDisplaySettingsEx(NULL, NULL, NULL, CDS_VIDEOPARAMETERS, &vp);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

This is my code.
Althogh result == DISP_CHANGE_SUCCESSFUL, the brightness of screen didn't change. Could you tell me what mistake do I make??
Thanks a lot.






"voidcoder" wrote:

A standard way to control brightness and contrast is
to use ChangeDisplaySettingsEx() API:

VIDEOPARAMETERS.dwBrightness
VIDEOPARAMETERS.dwContrast

But note, this will never work on all CE devices as
those features are platform specific. Not every display
driver supports it directly, some OEMs have separate
non-standard brightness/contast/backlight drivers/API
to control it...



On Sun, 01 Oct 2006 06:56:03 +0200, MorrisTang <MorrisTang@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I want to change the brightness of WinCE device.

What function can I use (pass a value to this function) ?

Please give me an example how to use it.

Thanks a lot.


.



Relevant Pages

  • Re: S3 Twister Installation Problem
    ... Description ("Display") ... Vendor ... Description ("VIA DXProsavage/Twister display driver") ... i built a platform and includet the driver. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: What fuction can I use to change the brightness of screen?
    ... >>those features are platform specific. ... Not every display ... >>driver supports it directly, some OEMs have separate ...
    (microsoft.public.windowsce.embedded)
  • Re: [PATCH v2] gpiolib: Add gpio_debounce and gpio_alt_func features to GPIOLIB
    ... Subject: GPIO: Add gpio_debounce and gpio_alt_func features to GPIOLIB ... Therefore a driver cannot depend on any ... particular behaviour unless it already knows what platform it's running ...
    (Linux-Kernel)
  • Re: S3 Twister Installation Problem
    ... Description ("Display") ... ExcludeWhenSet(ANY, "BSP_NODISPLAY") ... Description ("VIA DXProsavage/Twister display driver") ... i built a platform and includet the driver. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Display Driver Issue
    ... You should rather use IOCTL in the display driver, ... getting stuck, Kindky help me. ... - Then I made the SDK of the corresponding platform and installed it. ...
    (microsoft.public.windowsce.platbuilder)