CF.activity().onWake = callmeOnScreenOn;
CF.activity().onSleep = callmeOnScreenOn;
The onSleep callback is invoked when backlight goes off.
The onWake callback is invoked 'after' any 'pageExit' 'pageEnter' callback functions as soon as the remote becomes active after sleep.
Based on what I recall, 'activating' the remote can be done 1) by touching a Hard/Firm button or Backlight button 2) Pickup sensor trigger, or 3) a scheduled script executes that causes a Browse/Jump (Jumps automatically activate the backlight as the page will be changing).
In my opinion, these are misnamed because the remote is actually not asleep when docked as ProntoScript continues to run. For purists, they should have been named onActivate, onPassivate.
Last edited by Lyndel McGee on December 15, 2018 14:35.