You are correct. I had a typo on the original example. The () was not needed after onSleep. Apologies for that.
Executing the backlight via script used to work in PEP1. Maybe it does not in later firmware. If you'd like to understand the ProntoScript names (aka Tags) from my previous example, see Appendix D of the 1.4.3 DEV Guide (Page 185).
If remote is currenly on the home page, what I suggest below may not work but is worth a try.
1. In your 'Home' activity, Set the 'Home' ProntoScript Name to 'HOME'.
2. Create a page in this activity and set the ProntoScript Name to 'JUMPS'.
3. On this page, add a button and set the ProntoScript Name to 'JUMP_TO_HOME' (will have to press the 'PS' button on Actions Property Tab to do this.
4. Unpress the 'PS' button and add action Page Jump->Home->Home.
Now, use this in your Home activity script.
var activity = CF.activity(); activity.onSleep = function() { // When screen starts to dim, execute the backlight button via ProntoScript. try{ CF.widget('JUMP_TO_HOME','JUMPS', 'HOME').executeActions(); } catch(e) { System.print(e); // ignore any error } }