Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

Backlight


Backlight

Postby patrickwai » Apr 3, 2007 @ 2:22am

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
patrickwai
pm Member
 
Posts: 29
Joined: Jan 12, 2007 @ 2:24am


Postby edge » Apr 3, 2007 @ 11:03am

Hi Patrick,

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

Code: Select all

User::ResetInactivityTime();
1 lines; 0 keywds; 0 nums; 5 ops; 0 strs; 0 coms    Syntactic Coloring v0.4 - Dan East  


It needs to be called each frame.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby patrickwai » Apr 4, 2007 @ 4:24am

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
patrickwai
pm Member
 
Posts: 29
Joined: Jan 12, 2007 @ 2:24am


Postby edge » Apr 8, 2007 @ 12:07pm

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.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Backlight

Postby yucani » Jun 9, 2009 @ 4:00pm

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
User avatar
yucani
pm Member
 
Posts: 29
Joined: Jan 11, 2008 @ 11:19am


Postby edge » Jun 17, 2009 @ 10:26am

Hi Yucani,

We haven't found a workaround yet. Can you tell me which errors you get with your solution?
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Backlight

Postby yucani » Jun 17, 2009 @ 6:36pm

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.
User avatar
yucani
pm Member
 
Posts: 29
Joined: Jan 11, 2008 @ 11:19am


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron