summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
AgeCommit message (Collapse)Author
2004-02-05Better charging feedback for FM/V2 devicesLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4296 a1c6a512-1295-4272-9138-f99709370657
2003-11-25Bug fix: Idle timeout would stop paused playback when charger was connectedBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4066 a1c6a512-1295-4272-9138-f99709370657
2003-11-19Don't show battery meter until a proper power reading has been doneBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4042 a1c6a512-1295-4272-9138-f99709370657
2003-10-17Car Ignition Auto Stop (patch #736339 by Craig Sather)Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3976 a1c6a512-1295-4272-9138-f99709370657
2003-10-17Fixes sleep timer when connected to charger (patch #769591 by Henrik Backe)Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3975 a1c6a512-1295-4272-9138-f99709370657
2003-09-22Removed the battery level rise limiter. This provides more accurate values ↵Björn Stenberg
the minutes after booting. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3962 a1c6a512-1295-4272-9138-f99709370657
2003-08-25Slightly more correct initialization of the power/charging codeLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3940 a1c6a512-1295-4272-9138-f99709370657
2003-08-21Measured voltages for LiIon. I found rockbox-liion.gifUwe Freese
somewhere, didn't know where anymore. Thanks to the one who measured the values. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3936 a1c6a512-1295-4272-9138-f99709370657
2003-06-09Report max 99% battery level during chargingBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3738 a1c6a512-1295-4272-9138-f99709370657
2003-06-04Make simulator report 75% battery instead of 100%Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3724 a1c6a512-1295-4272-9138-f99709370657
2003-05-03Idle poweroff fix for FM radio, as suggested by Mike HoldenLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3645 a1c6a512-1295-4272-9138-f99709370657
2003-03-07Don't reboot if charger is connected when sleep timer expires, just stop the ↵Björn Stenberg
music. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3397 a1c6a512-1295-4272-9138-f99709370657
2003-03-04Massively code-policed. We keep source lines less than 80 columns...Daniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3378 a1c6a512-1295-4272-9138-f99709370657
2003-03-03estimate 22 percent longer runtime when having 8 MB, assuming 192 kbps files ↵Uwe Freese
again git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3372 a1c6a512-1295-4272-9138-f99709370657
2003-02-12disable charge control for FMUwe Freese
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3239 a1c6a512-1295-4272-9138-f99709370657
2003-01-27LiIon values for FMUwe Freese
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3169 a1c6a512-1295-4272-9138-f99709370657
2003-01-19Start new charge cycle should be possible in trickle mode. This should fix ↵Uwe Freese
the battries getting empty in USB mode. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3129 a1c6a512-1295-4272-9138-f99709370657
2003-01-09better estimated running time for usb modeUwe Freese
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3047 a1c6a512-1295-4272-9138-f99709370657
2002-12-18battery level 100% when trickle chg, only 1% per minute change allowed, ↵Uwe Freese
ignore 25 min. after charge start/stop, get rid of old lazyness table (I hope this makes the battery display less confusing to the user, charging algo. is not affected\!) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3017 a1c6a512-1295-4272-9138-f99709370657
2002-12-17Fixed a simulator stub for set_battery_capacity()Kjell Ericson
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3012 a1c6a512-1295-4272-9138-f99709370657
2002-12-16battery capacity (1500-2400 in 50mAh steps) saved to diskUwe Freese
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3008 a1c6a512-1295-4272-9138-f99709370657
2002-12-16stupid bug, trickle setting in menu didn't workUwe Freese
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3007 a1c6a512-1295-4272-9138-f99709370657
2002-12-15charger on if battery low at boot time, battery capacity settingsUwe Freese
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3000 a1c6a512-1295-4272-9138-f99709370657
2002-12-14battery capacity setting functionUwe Freese
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2997 a1c6a512-1295-4272-9138-f99709370657
2002-12-14we don't want battery symbol flickering while trickle chargingUwe Freese
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2996 a1c6a512-1295-4272-9138-f99709370657
2002-12-14no inclusion of apps/settings.h anymore (simulator build error), new ↵Uwe Freese
enable_trickle_charge function git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2995 a1c6a512-1295-4272-9138-f99709370657
2002-12-14max charge duration now depends on batt. capacity and is a little longerUwe Freese
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2992 a1c6a512-1295-4272-9138-f99709370657
2002-12-14using the new charge state variable instead of trickle_enableUwe Freese
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2991 a1c6a512-1295-4272-9138-f99709370657
2002-12-14added trickle chargeUwe Freese
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2982 a1c6a512-1295-4272-9138-f99709370657
2002-12-04Sleeptimer now reboots instead of poweroff when charger is attachedLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2926 a1c6a512-1295-4272-9138-f99709370657
2002-12-03Sleep timer, inspired by Jim HaganiLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2918 a1c6a512-1295-4272-9138-f99709370657
2002-12-03Fixed build.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2914 a1c6a512-1295-4272-9138-f99709370657
2002-12-03Finally, merged the improved power code from Uwe Freese:Björn Stenberg
- The battery level (percentage) is more realistic and considers if the charger is on. - It considers the "lazyness" a battery shows when the charging has just turned on or off (see below). But this is not perfect by now. - The battery level is good enough to estimate the remaining running time and the remaining charging time. And so the info screen now shows this info. - The maximum time of a charging cycle is now dynamically calculated out of the battery level (percentage) and is not a fixed value. - A minimum of 60 minutes is waited after a charging cycle stops before another one starts. - Added another screen in the battery debug screen (press down three times). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2913 a1c6a512-1295-4272-9138-f99709370657
2002-09-26Auto-poweroff restarts the timeout when extracting the chargerLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2428 a1c6a512-1295-4272-9138-f99709370657
2002-09-25Don't auto-poweroff if USB is insertedLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2418 a1c6a512-1295-4272-9138-f99709370657
2002-09-24Now powers off when the music is pausedLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2381 a1c6a512-1295-4272-9138-f99709370657
2002-09-23Simulator fixLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2375 a1c6a512-1295-4272-9138-f99709370657
2002-09-23Auto-poweroff, by Lee MarlowLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2374 a1c6a512-1295-4272-9138-f99709370657
2002-08-21Reset the power history with the latest value when starting chargingHeikki Hannikainen
so that we don't use values before discharge for the long-term delta calculation. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1899 a1c6a512-1295-4272-9138-f99709370657
2002-08-15avoid flickering of battery level during the first minute of uptime by ↵Heikki Hannikainen
taking a voltage sample at power_init git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1758 a1c6a512-1295-4272-9138-f99709370657
2002-08-13Use average of two samples at both ends of the range for calculating ↵Heikki Hannikainen
smoother delta values. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1716 a1c6a512-1295-4272-9138-f99709370657
2002-08-12Tune charging algorithm: use more voltage samples (4 per minute) and discardHeikki Hannikainen
samples taken while the disk is spinning. If no 'disk idle' samples are available, use the ones we have anyway (yeah, maybe we could interpolate too). Also tuned the deltas detection too, and fixed some comments. This seems to work quite a bit better for me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1682 a1c6a512-1295-4272-9138-f99709370657
2002-08-07Made battery_level() use the power history table to get an average battery ↵Heikki Hannikainen
level over the last 3 minutes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1589 a1c6a512-1295-4272-9138-f99709370657
2002-08-06Removed a warningLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1558 a1c6a512-1295-4272-9138-f99709370657
2002-08-06Added battery charger code for the recorder and battery voltage statistics ↵Heikki Hannikainen
keeping for all platforms. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1546 a1c6a512-1295-4272-9138-f99709370657