Commit graph

116 commits

Author SHA1 Message Date
Linus Nielsen Feltzing
d41942e12f Sleeptimer now reboots instead of poweroff when charger is attached
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2926 a1c6a512-1295-4272-9138-f99709370657
2002-12-04 12:53:10 +00:00
Linus Nielsen Feltzing
b43dba8760 Sleep timer, inspired by Jim Hagani
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2918 a1c6a512-1295-4272-9138-f99709370657
2002-12-03 22:41:50 +00:00
Björn Stenberg
040816d173 Fixed build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2914 a1c6a512-1295-4272-9138-f99709370657
2002-12-03 14:33:20 +00:00
Björn Stenberg
f09c5f4c63 Finally, merged the improved power code from Uwe Freese:
- 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-12-03 14:18:51 +00:00
Linus Nielsen Feltzing
a05d2f490d Auto-poweroff restarts the timeout when extracting the charger
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2428 a1c6a512-1295-4272-9138-f99709370657
2002-09-26 22:34:35 +00:00
Linus Nielsen Feltzing
1665811d33 Don't auto-poweroff if USB is inserted
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2418 a1c6a512-1295-4272-9138-f99709370657
2002-09-25 19:25:10 +00:00
Linus Nielsen Feltzing
868111c5c1 Now powers off when the music is paused
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2381 a1c6a512-1295-4272-9138-f99709370657
2002-09-24 07:50:17 +00:00
Linus Nielsen Feltzing
2f4e36abd5 Simulator fix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2375 a1c6a512-1295-4272-9138-f99709370657
2002-09-23 12:21:51 +00:00
Linus Nielsen Feltzing
083a6dbc4e Auto-poweroff, by Lee Marlow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2374 a1c6a512-1295-4272-9138-f99709370657
2002-09-23 11:42:48 +00:00
Heikki Hannikainen
fdb44c9175 Reset the power history with the latest value when starting charging
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-21 20:06:41 +00:00
Heikki Hannikainen
dd2bae49eb avoid flickering of battery level during the first minute of uptime by taking a voltage sample at power_init
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1758 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 11:32:01 +00:00
Heikki Hannikainen
9872b66cd1 Use average of two samples at both ends of the range for calculating smoother delta values.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1716 a1c6a512-1295-4272-9138-f99709370657
2002-08-13 16:06:29 +00:00
Heikki Hannikainen
a4cb4aff7b Tune charging algorithm: use more voltage samples (4 per minute) and discard
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-12 12:19:25 +00:00
Heikki Hannikainen
38c8a83779 Made battery_level() use the power history table to get an average battery level over the last 3 minutes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1589 a1c6a512-1295-4272-9138-f99709370657
2002-08-07 11:30:39 +00:00
Linus Nielsen Feltzing
aba19c95b7 Removed a warning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1558 a1c6a512-1295-4272-9138-f99709370657
2002-08-06 13:06:41 +00:00
Heikki Hannikainen
3f809e716d Added battery charger code for the recorder and battery voltage statistics keeping for all platforms.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1546 a1c6a512-1295-4272-9138-f99709370657
2002-08-06 10:50:50 +00:00