Support and General Use > Hardware

CF Mod: Influence on battery life?

<< < (2/2)

AlexP:
You would have to edit the code to change the level at which Rockbox shuts down then compile it.

http://www.rockbox.org/twiki/bin/view/Main/DocsIndex#For_Developers

crypt@:
I thought as much.  Reading through powermgmt.c, being rather rusty with coding, I can see this will take some time before I can pinpoint where and what to do...

Having said that I've tried a couple of shutdown scenarios and so far the file system is holding up after svn-19817.

dreamlayers:

--- Quote from: crypt@ on January 23, 2009, 12:49:08 AM ---I thought as much.  Reading through powermgmt.c, being rather rusty with coding, I can see this will take some time before I can pinpoint where and what to do...

--- End quote ---

See battery_level_safe and query_force_shutdown.  Also see the powermgmt file for your target (eg. firmware\target\coldfire\iriver\powermgmt-h300.c), which sets levels for those functions.

crypt@:
dreamlayers: Thanks for the tip. :)

Navigation

[0] Message Index

[*] Previous page

Go to full version