Rockbox General > Rockbox General Discussion

Remember Sleep-Timer on boot

<< < (5/6) > >>

DanRock:
Ok thanks.  Is there an example someplace of what's required top add a new setting?

JdGordon:
add it to global_settings in setting.h
if you want to be able to save/load it from a .cfg add it to settings_list.c
if you want it in the menus look in apps/menus/*.c

questrdl:
Insert Quote
One easy solution: Set the config loading to *load* a sleep timer value, but prevent the "manage config" from saving a sleep timer value. That way the current behaviour of "don't save sleep timer settings on manual poweroff" is kept, but you can add a sleep timer line to your fixed.cfg if you want it to load at boot every time.

As I understand it, if the sleep timer was in the brought out as one of the "Custom CFG File" table items, the user could set a persistent timer to turn the device off.  Where is the best place to ask to have this implemented?

I would use this to save battery life.  Many times I accidentally leave my  player running for hours and the next time I go to use it the battery is discharged. This would be a HUGE improvement for me.

(:@):

--- Quote from: questrdl on March 03, 2008, 08:58:12 AM ---Where is the best place to ask to have this implemented?

--- End quote ---
Tracker (see "feature requests" on the left side)


--- Quote from: questrdl on March 03, 2008, 08:58:12 AM ---I would use this to save battery life.  Many times I accidentally leave my  player running for hours and the next time I go to use it the battery is discharged. This would be a HUGE improvement for me.

--- End quote ---
You can apply the attached patch and add the following entry in your config file:
auto shutdown: [countdown time in minutes]
e.g.
auto shutdown: 30
(will automatically shutdown your player in 30 minutes)

questrdl:
 Is there a build out there that includes this  "auto_shutdown_patch.txt " ??

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version