Re: Notification on screen tap for restoring screen brightness after auto-dimming

2009-04-28 Thread Dmitry Grinberg
it's only bad if you rely on a lot of events. In normal use it won't
be a big deal.

Best Regards,
Dmitry Grinberg
(847) 226 9295



On Tue, Apr 28, 2009 at 12:48 PM, Luc Le Blanc  wrote:
> Dmitry Grinberg wrote:
>
>> use the much-hated (and rightly so) 'hede' notification,
>> and catch penDown event
>
> Is this too much system overload if I only register for this notification 
> when I dim down the screen, and de-register when I set  back the original 
> screen brightness?
>
>
> Luc Le Blanc
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe, 
> please see http://www.access-company.com/developers/forums/
>

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: Notification on screen tap for restoring screen brightness after auto-dimming

2009-04-28 Thread Christopher Stamper
On Tue, Apr 28, 2009 at 3:48 PM, Luc Le Blanc  wrote:
> Is this too much system overload if I only register for this notification 
> when I dim down the screen, and de-register when I set  back the original 
> screen brightness?


Just a FYI: I used to have an OS4 hack on my old m515 that did exactly
ehat you are trying to do. Don't know how it did it, but it *did* seem
to help with battery life.

-- 
Christopher Stamper

Email: christopherstam...@gmail.com
Web: http://tinyurl.com/2ooncg
gTalk: http://tinyurl.com/6e359r
Skype: cdstamper

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: Notification on screen tap for restoring screen brightness after auto-dimming

2009-04-28 Thread Luc Le Blanc
Dmitry Grinberg wrote:

> use the much-hated (and rightly so) 'hede' notification,
> and catch penDown event

Is this too much system overload if I only register for this notification when 
I dim down the screen, and de-register when I set  back the original screen 
brightness?


Luc Le Blanc
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


re: Notification on screen tap for restoring screen brightness after auto-dimming

2009-04-28 Thread Harry
Try sysNotifyEventDequeuedEvent

But watch out - you might end up consuming more power through
the CPU than you save through the dimmed LCD.


Harry
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: Notification on screen tap for restoring screen brightness after auto-dimming

2009-04-28 Thread Dmitry Grinberg
use the much-hated (and rightly so) 'hede' notification, and catch penDown event

Best Regards,
Dmitry Grinberg
(847) 226 9295



On Tue, Apr 28, 2009 at 10:48 AM, Luc Le Blanc  wrote:
> I want to implement an auto-dimming feature in my app so as to reduce power 
> consumption after x seconds of inactivity (in order to make a device such as 
> an E2 last a full day of cave surveying.)
>
> My only problem: in order to restore previous brightness, I would need a 
> notification broadcast when the user taps (anywhere) on screen, but there 
> does not seem to be one. Relying on a notification would circumvent those 
> times when my app is not the current event handler (ex. when an alert is 
> displayed.) Did I miss something? Or is there another trick? After all, the 
> OS uses such tap events to reset its auto-off timer.
>
>
> Luc Le Blanc
> http://www.speleo.qc.ca/Auriga
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe, 
> please see http://www.access-company.com/developers/forums/
>

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Notification on screen tap for restoring screen brightness after auto-dimming

2009-04-28 Thread Luc Le Blanc
I want to implement an auto-dimming feature in my app so as to reduce power 
consumption after x seconds of inactivity (in order to make a device such as an 
E2 last a full day of cave surveying.)

My only problem: in order to restore previous brightness, I would need a 
notification broadcast when the user taps (anywhere) on screen, but there does 
not seem to be one. Relying on a notification would circumvent those times when 
my app is not the current event handler (ex. when an alert is displayed.) Did I 
miss something? Or is there another trick? After all, the OS uses such tap 
events to reset its auto-off timer.


Luc Le Blanc
http://www.speleo.qc.ca/Auriga
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/