PocketMatrix forums

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

Backlight

Hi Edge,

I know that the backlighton configuration option was added since Edge 2.95. I built my application using Edge 2.6 and found that the backlight kept turning on for Nokia 3230 and 6680. I would like to know how to control the backlight for the version before 2.95?

Thanks and regards,
Patrick
Hi Patrick,

You can keep the backlight on for Symbian using this code:

Code:

User::ResetInactivityTime();


It needs to be called each frame.
Hi Edge,

It returns error "'User' : is not a class or namespace name", is there any header file to include in order to use such function?

Regards,
Patrick
Hi Patrick,

The user class is defined in e32std.h.

However, we recommend updating to the EDGELIB 3.00 release to take advantage of the latest bugfixes and features.
yucani · 09 Jun 2009, 15:00 UTC — Backlight
Hello,

as
User::ResetInactivityTime();
does not work on UIQ2 or UIQ3, can you provide a different work around?
I read about RMPowerServer or HAL::Set as a solution but failed to implement it because of compiler faults.

with kind regards,
Andrzej
Hi Yucani,

We haven't found a workaround yet. Can you tell me which errors you get with your solution?
yucani · 17 Jun 2009, 17:36 UTC — Backlight
Hallo,

i checked again and have to take back my post,

on UIQ2 the User::ResetInactivityTime() does prevent the backlight of going out.
On UIQ3 it does not work.

HAL::Set(HALData::EBacklightState,1)
seems not to have any influance on my UIQ3 devices, but compiles well.
But WriteDeviceData prevents an instalation.