Brandon Low
cdacab3d89
Charging state reporting on H3x0
...
Don't read the GPIO every refresh of statusbar or gwps for plugged state, use a
variable exported from powermgmt instead.
Allow Custom WPS to access %bc for battery charge state on targets that support
this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8383 a1c6a512-1295-4272-9138-f99709370657
2006-01-19 07:47:34 +00:00
Brandon Low
ccc72cc2d0
Part of patch #1407541 to improve battery smoothing by absorbing extra precision from the battery scale factor
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8372 a1c6a512-1295-4272-9138-f99709370657
2006-01-18 16:48:54 +00:00
Marcoen Hirschberg
b0fee17d6e
waiting is over: initial unicode commit
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8169 a1c6a512-1295-4272-9138-f99709370657
2005-12-06 13:27:15 +00:00
Jens Arnold
a6d409d9db
Replaced the booolean 'Backlight On When Plugged' setting with a complete alternative 'Backlight When Plugged' timeout setting. * Yield during poweroff to make backlight_off() work. * Bumped config version, save your settings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8053 a1c6a512-1295-4272-9138-f99709370657
2005-11-23 20:12:33 +00:00
Jens Arnold
b51f7dfc9b
Backlight handling: * Added 'Caption Backlight' and 'Backlight On When Charging' for the iriver remote LCD. * Enabled the backlight code for the simulator, and prepared backlight simulation. It's only a stub atm, writing messages to the console window. * Added tick task handling to the simulators for this to work. * Code cleanup in backlight.c, less dead code.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8034 a1c6a512-1295-4272-9138-f99709370657
2005-11-21 23:55:39 +00:00
Anton Oleynikov
c94557e0b9
refactored radio status code
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7999 a1c6a512-1295-4272-9138-f99709370657
2005-11-19 19:23:44 +00:00
Linus Nielsen Feltzing
d5f3e9ba83
H100: turn off remote backlight before cutting the power
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7975 a1c6a512-1295-4272-9138-f99709370657
2005-11-19 01:30:42 +00:00
Linus Nielsen Feltzing
e16ebf1a50
Moved the power_init() call to main(), removed unfinished inits for the H300
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7964 a1c6a512-1295-4272-9138-f99709370657
2005-11-18 14:55:51 +00:00
Linus Nielsen Feltzing
91216a5edc
The power thread now monitors the shutdown process and forces a poweroff if it takes more than 8 seconds.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7517 a1c6a512-1295-4272-9138-f99709370657
2005-09-14 09:08:26 +00:00
Michiel Van Der Kolk
4a271b6bc9
typos fixed...
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7287 a1c6a512-1295-4272-9138-f99709370657
2005-08-06 10:30:37 +00:00
Christian Gmeiner
14e80671af
iAudio: First unfinished attempt for tlv320 driver and rockbox integration
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7286 a1c6a512-1295-4272-9138-f99709370657
2005-08-06 10:12:19 +00:00
Jens Arnold
9cce5c3727
Adjustment for bootbox.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7107 a1c6a512-1295-4272-9138-f99709370657
2005-07-11 20:29:05 +00:00
Linus Nielsen Feltzing
6e80ac39a5
New poweroff handling, using the SYS_POWEROFF event, allowing plugins to save their settings before powering off.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7019 a1c6a512-1295-4272-9138-f99709370657
2005-07-05 00:03:18 +00:00
Jens Arnold
74d1f72f5d
Change current estimation for USB powered mode only if CURRENT_USB is less than CURRENT_NORMAL (Ondio).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6838 a1c6a512-1295-4272-9138-f99709370657
2005-06-23 02:42:28 +00:00
Jens Arnold
97a8049389
New feature for units that can be powered or charged from USB (Recorder fm/v2, Ondios): USB power mode, based on patch #1110332 by Pieter Bos. This way you can save battery power or even charge the battery (fm/v2) while using your unit near a PC. Hold MODE (Ondio) or F1 (fm/v2) while plugging USB to enter that mode. A tiny USB plug icon will be displayed is the status bar (overridden by the regular power plug icon in case of fm/v2 when the charger is connected).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6836 a1c6a512-1295-4272-9138-f99709370657
2005-06-23 02:18:29 +00:00
Marcoen Hirschberg
83b4a83b47
Better values for the iriver battery
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6802 a1c6a512-1295-4272-9138-f99709370657
2005-06-22 11:51:41 +00:00
Daniel Stenberg
9a7ebfda30
ifdef corrections
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6734 a1c6a512-1295-4272-9138-f99709370657
2005-06-17 07:43:46 +00:00
Jens Arnold
de1b915f79
Iriver: Sleep timer now powers off the box even when the charger is connected.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6733 a1c6a512-1295-4272-9138-f99709370657
2005-06-16 23:45:09 +00:00
Jens Arnold
116e4646b0
Proper 'battery level dangerous' handling for Ondio. Moved this info into an array, and removed unused #defines.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6403 a1c6a512-1295-4272-9138-f99709370657
2005-05-04 16:18:09 +00:00
Jens Arnold
06068b451d
Bugfixes: (1) Estimated runtime was wrong for approx. 1 minute after boot or battery type/ capacity change because the recalculation was (only) done in the power thread's main loop. (2) Restored Ondio NiMH discharge table. Code cleanup: (1) Moved adjustment for 8MB mod to runcurrent() where it belongs and made it more precise (only adjust the normal current).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6263 a1c6a512-1295-4272-9138-f99709370657
2005-04-10 15:10:44 +00:00
Linus Nielsen Feltzing
43bf39edb7
First lame attempt to show correct battery level on the iRiver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6258 a1c6a512-1295-4272-9138-f99709370657
2005-04-06 23:53:19 +00:00
Linus Nielsen Feltzing
3d2178148b
Moved the car adapter mode handling to apps/, now every thread gets SYS_CHARGER_CONNECTED and SYS_CHARGER_DISCONNECTED events
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6255 a1c6a512-1295-4272-9138-f99709370657
2005-04-06 11:12:22 +00:00
Linus Nielsen Feltzing
8a237a829e
More audio code restructuring, mostly renaming functions so far
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6246 a1c6a512-1295-4272-9138-f99709370657
2005-04-04 12:06:29 +00:00
Jörg Hohensohn
853bc3dcf8
sorry, the patch broke all the sims
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6225 a1c6a512-1295-4272-9138-f99709370657
2005-03-24 07:31:59 +00:00
Jörg Hohensohn
3644fa2824
patch # 1159539 from GvB: V1 charging cleanup
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6224 a1c6a512-1295-4272-9138-f99709370657
2005-03-23 20:53:37 +00:00
Linus Nielsen Feltzing
07218e5401
Properly shut down the UDA1380
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6209 a1c6a512-1295-4272-9138-f99709370657
2005-03-18 11:38:47 +00:00
Jörg Hohensohn
d061b371d6
removed the practically useless "trickle charge" and "deep discharge" options, now trickle is always on and deep always off
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6107 a1c6a512-1295-4272-9138-f99709370657
2005-03-03 08:32:55 +00:00
Jörg Hohensohn
2584896920
More aggressive Recorder V1 charging (patch #1116884 from Jerry Van Baren)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6105 a1c6a512-1295-4272-9138-f99709370657
2005-03-03 07:25:43 +00:00
Christi Scarborough
a38947114d
Turn off the RTC alarm if it's gone off. Best not to have alarm events 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-16 12:18:16 +00:00
Jean-Philippe Bernardy
1798a2043d
fixed signedness
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5840 a1c6a512-1295-4272-9138-f99709370657
2005-02-07 22:02:19 +00:00
Christi Scarborough
a83ffb208f
A proper alarm clock for the V2/FM (and v1 with mod)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5818 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 17:21:42 +00:00
Christi Scarborough
541e9f6581
fix warnings / sim build
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5816 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 10:16:13 +00:00
Christi Scarborough
e033d7cea7
fix warnings / sim build
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5815 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 10:14:50 +00:00
Christi Scarborough
247fe6d698
clean shutdown for idle timer and sleep timer
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5814 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 09:57:57 +00:00
Linus Nielsen Feltzing
4d7671ce22
Aligned thread stack
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5803 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 02:34:17 +00:00
Jean-Philippe Bernardy
8fd430508a
int -> long
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5797 a1c6a512-1295-4272-9138-f99709370657
2005-02-05 10:56:22 +00:00
Daniel Stenberg
39d20cf9b9
include fix
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5753 a1c6a512-1295-4272-9138-f99709370657
2005-02-02 22:05:53 +00:00
Jens Arnold
0457a578b5
Only reset battery level if battery type really changed.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5734 a1c6a512-1295-4272-9138-f99709370657
2005-02-01 18:00:15 +00:00
Jens Arnold
91846a1a8d
New Ondio feature: Battery type setting, for correct battery level display.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5717 a1c6a512-1295-4272-9138-f99709370657
2005-01-30 16:25:46 +00:00
Jörg Hohensohn
ef8d508d5a
tuner cleanup + improvements:
...
- 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-19 08:20:38 +00:00
Jörg Hohensohn
91f9350cbd
moved and renamed fmradio_set/get_status to power.c, where it now 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-17 08:53:18 +00:00
Jens Arnold
672305f0a1
Another small adjustment for Ondio: Don't adjust initial battery level for non-existing HD activity
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5287 a1c6a512-1295-4272-9138-f99709370657
2004-10-15 18:52:54 +00:00
Jens Arnold
c4f96930f0
Adjusted power thread to Ondio: no charging, no car adapter mode, different current values for runtime estimation
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5286 a1c6a512-1295-4272-9138-f99709370657
2004-10-15 18:18:15 +00:00
Jens Arnold
ba0a797b16
No hard-coded minimum capacity any more
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5272 a1c6a512-1295-4272-9138-f99709370657
2004-10-14 00:57:23 +00:00
Jörg Hohensohn
af2d88081a
battery levels adjusted for Ondio
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5230 a1c6a512-1295-4272-9138-f99709370657
2004-10-08 21:44:24 +00:00
Jörg Hohensohn
43079ea07f
multiple battery types prepared (CONFIG_BATTERY)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5227 a1c6a512-1295-4272-9138-f99709370657
2004-10-08 17:45:52 +00:00
Jörg Hohensohn
593cc00447
a hell of a commit: changed several HAVE_xx configuration flags into 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-09-28 22:13:26 +00:00
Jens Arnold
9478cc6f8a
More const policeing step 4
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4983 a1c6a512-1295-4272-9138-f99709370657
2004-08-03 19:22:56 +00:00
Linus Nielsen Feltzing
272d6f11cd
Now turns off the backlight when the sleeptimer expires with the charger attached
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4884 a1c6a512-1295-4272-9138-f99709370657
2004-07-15 05:24:34 +00:00
Linus Nielsen Feltzing
bac1ae5aa1
The music now pauses correctly in car adapter mode
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4879 a1c6a512-1295-4272-9138-f99709370657
2004-07-14 11:25:14 +00:00