summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
AgeCommit message (Collapse)Author
2005-02-16Turn off the RTC alarm if it's gone off. Best not to have alarm events ↵Christi Scarborough
unless the user has specifically asked for them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5973 a1c6a512-1295-4272-9138-f99709370657
2005-02-07fixed signednessJean-Philippe Bernardy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5840 a1c6a512-1295-4272-9138-f99709370657
2005-02-06A proper alarm clock for the V2/FM (and v1 with mod)Christi Scarborough
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5818 a1c6a512-1295-4272-9138-f99709370657
2005-02-06fix warnings / sim buildChristi Scarborough
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5816 a1c6a512-1295-4272-9138-f99709370657
2005-02-06fix warnings / sim buildChristi Scarborough
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5815 a1c6a512-1295-4272-9138-f99709370657
2005-02-06clean shutdown for idle timer and sleep timerChristi Scarborough
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5814 a1c6a512-1295-4272-9138-f99709370657
2005-02-06Aligned thread stackLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5803 a1c6a512-1295-4272-9138-f99709370657
2005-02-05int -> longJean-Philippe Bernardy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5797 a1c6a512-1295-4272-9138-f99709370657
2005-02-02include fixDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5753 a1c6a512-1295-4272-9138-f99709370657
2005-02-01Only reset battery level if battery type really changed.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5734 a1c6a512-1295-4272-9138-f99709370657
2005-01-30New Ondio feature: Battery type setting, for correct battery level display.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5717 a1c6a512-1295-4272-9138-f99709370657
2004-10-19tuner cleanup + improvements:Jörg Hohensohn
- use sleep and powerdown for those who can - philips station search works now git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5306 a1c6a512-1295-4272-9138-f99709370657
2004-10-17moved and renamed fmradio_set/get_status to power.c, where it now ↵Jörg Hohensohn
additionally serves well for tuner power enable on OndioFM git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5296 a1c6a512-1295-4272-9138-f99709370657
2004-10-15Another small adjustment for Ondio: Don't adjust initial battery level for ↵Jens Arnold
non-existing HD activity git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5287 a1c6a512-1295-4272-9138-f99709370657
2004-10-15Adjusted power thread to Ondio: no charging, no car adapter mode, different ↵Jens Arnold
current values for runtime estimation git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5286 a1c6a512-1295-4272-9138-f99709370657
2004-10-14No hard-coded minimum capacity any moreJens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5272 a1c6a512-1295-4272-9138-f99709370657
2004-10-08battery levels adjusted for OndioJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5230 a1c6a512-1295-4272-9138-f99709370657
2004-10-08multiple battery types prepared (CONFIG_BATTERY)Jörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5227 a1c6a512-1295-4272-9138-f99709370657
2004-09-28a hell of a commit: changed several HAVE_xx configuration flags into ↵Jörg Hohensohn
multiple choice values (keypad, tuner, CPU, h/w codec) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5126 a1c6a512-1295-4272-9138-f99709370657
2004-08-03More const policeing step 4Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4983 a1c6a512-1295-4272-9138-f99709370657
2004-07-15Now turns off the backlight when the sleeptimer expires with the charger ↵Linus Nielsen Feltzing
attached git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4884 a1c6a512-1295-4272-9138-f99709370657
2004-07-14The music now pauses correctly in car adapter modeLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4879 a1c6a512-1295-4272-9138-f99709370657
2004-06-22Added reset_poweroff_timer(), which can be used to prevent idle poweroff. ↵Linus Nielsen Feltzing
This is also available in the plugin API. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4787 a1c6a512-1295-4272-9138-f99709370657
2004-06-14The sleep timer now waits until the disk is idle before shutting downLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4737 a1c6a512-1295-4272-9138-f99709370657
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