PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Backlight Bug for Himalya Windows Mobile Devices

Slither2006 · 19 Jan 2008, 11:08 UTC
I have coded this in the OnDisplayInit() Function in my Edgelib C++ Program designed for WM05.

Here is the code to turn the backlight on :
Code:

//Make sure the backlight is turned on
myEcd->maincfg->backlighton = true;



Windows Mobile 5 & 6 Himalya devices can run my program but as soon as it starts their backlight turns off and only turns back on once they exit my program.


Any suggestions please?
Hi Slither,

We're aware of this bug, and a fix will be available in the next version. In the meantime we recommend setting the backlighton option to false (this will make devices use the default backlight setting, and will probably turn it off after 1-3 minutes when there is no user input).

If you only want to disable it for specific devices, you can use using ClassEDevice::GetModelName. It returns a string which should identify the name of the device. Another way to workaround this bug is to provide a configuration option.