Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: LCD Backlight - Customise your own menu
From: BlueChip (cs_bluechip_at_webtribe.net)
Date: 2004-07-20


This is my patch to add sleep-timer to the root menu:

===========================================================
in apps/main_menu.c

...in the list of #includes at the top, add

#include "sleeptimer.h"

...in main_menu(), just before

      m=menu_init( items, i, NULL, NULL, NULL, NULL );

...add

     items[i].desc = str(LANG_SLEEP_TIMER);
     items[i].voice_id = LANG_SLEEP_TIMER;
     items[i++].function = sleeptimer_screen;
===========================================================

I'm only guessing here, but i reckon if you use
#include "backlight.h"
...at the top; and then use
LANG_BACKLIGHT
...and
backlight_timer
...in the second bit.

You will get your menu option where you want it.

DevKit and entry level instructions for complation can be found at
http://homepage.ntlworld.com/cyborgsystems

...it's simpler that you might think
...it should take you about 30mins to set it up (first time cost)
...and about 5mins to edit main_menu.c in notepad

Good luck, let us know how you get on :)

BC

>You want a setting that you personally find most useful near the root
>menu? I don't mean to be harsh, but, get in line or roll your own. Pretty
>much every user of this software has their own needs, so if the devs.
>answered all of them the root menu would be 6 screens long :)
>
>It's the old saying: you get what you pay for.
>
>Joe
>
>Brian wrote:
>>I've noticed that the battery depletes more quickly when the backlight is
>>on. Well, I don't know if i've noticed, or just saw that my battery
>>depleted quickly and i used that as the reason. I remember some tests done
>>a while ago that have to do with battery usage in mAh of various activities
>>of the units.
>>What it all boils down to, is, why is the LCD backlight setting buried 3
>>screens deep in the menu? Many times I find myself out at night in my car
>>looking at a unlit screen, and in the day when I turn the backlight on I
>>feel that my battery just isn't lasting long enough.
>>Brian

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa