Commit graph

116 commits

Author SHA1 Message Date
Rani Hod
c9f59e6f75 Accepted FS #5772 by Michael Sevakis
1. X5 lcd sleep
2. #define HAVE_LCD_ENABLE
3. add "backlight (on hold switch)" setting, adapted from FS #5735

Note that the while(1) yield ==> asm("halt") part is NOT commited here,
I prefer it would be discussed separately.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10489 a1c6a512-1295-4272-9138-f99709370657
2006-08-08 22:03:56 +00:00
Miika Pekkarinen
954b732654 Initial support and use for EEPROM memory on H120 & H140 players when
Rockbox firmware has been flashed over original firmware (not yet
possible to do). Dircache & tagcache serialization for fast bootup
without the need to scan disk when Rockbox is in flash.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10464 a1c6a512-1295-4272-9138-f99709370657
2006-08-05 20:19:10 +00:00
Rani Hod
cc839a2671 Applied FS#5734 by Michael Sevakis (X5 LCD contrast bugfix and
some #define fixup).


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10388 a1c6a512-1295-4272-9138-f99709370657
2006-07-31 19:13:21 +00:00
Jens Arnold
0dd1f8ec11 Work-in-progress rework of charging status reading & display: * Changed several charging related HAVE_* macros into one multi-value CONFIG_CHARGING. * Always use proper macros for charging states. * Battery symbol charging animation now starts from current level on all targets with charging. Two-colour animation kept for non-b&w targets. Round down fill level while charging as before, but round to nearest pixel value for discharging on all targets. * Charging anim fixed on player. * Some code cleanup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10080 a1c6a512-1295-4272-9138-f99709370657
2006-06-06 22:23:52 +00:00
Miika Pekkarinen
3b31346103 Commit tagcache in background when possible (at least dircache enabled).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9686 a1c6a512-1295-4272-9138-f99709370657
2006-04-16 17:32:54 +00:00
Zakk Roberts
16a57e2e4f Also add a config-specific 'Default' value, this should fix the sim builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9680 a1c6a512-1295-4272-9138-f99709370657
2006-04-15 13:07:21 +00:00
Brandon Low
461addf658 Disable backlight fade out for shutdown
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9500 a1c6a512-1295-4272-9138-f99709370657
2006-04-04 19:19:28 +00:00
Brandon Low
2ff150793a Even better LCD clearing for ipod color displays, clear to white, but after backlight off
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9293 a1c6a512-1295-4272-9138-f99709370657
2006-03-27 17:29:09 +00:00
Brandon Low
99538b73f5 Clear the display in a less intrusive way to the user's selected background _color_ (solid color ghosting is hard to detect)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9288 a1c6a512-1295-4272-9138-f99709370657
2006-03-27 14:15:07 +00:00
Brandon Low
ee4674852f Patch 4819 from Robert Keevil to shutdown the codec and clear the LCD on ipod shutdown
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9286 a1c6a512-1295-4272-9138-f99709370657
2006-03-27 13:36:51 +00:00
Dan Everton
f6bdfbdcd0 Add simulated battery drain to the simulator. Patch from Matthias Mohr (task 4886).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9247 a1c6a512-1295-4272-9138-f99709370657
2006-03-25 14:31:44 +00:00
Brandon Low
ba2e8b163e Fix red and yello build table
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9062 a1c6a512-1295-4272-9138-f99709370657
2006-03-16 18:25:45 +00:00
Brandon Low
4b68f1e2a3 Proper charger input, usb and charger activity detection/reporting for ipod video
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9061 a1c6a512-1295-4272-9138-f99709370657
2006-03-16 17:34:37 +00:00
Miika Pekkarinen
451ee0b11c Charging state reporting for iriver players. Values calibrated with
1900 mAh Ionity battery; might need recalibration with the stock
battery.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9030 a1c6a512-1295-4272-9138-f99709370657
2006-03-13 16:11:30 +00:00
Jörg Hohensohn
ea5df70e46 Archos V1 recorder charging path #2927 by Alun Thomas
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8898 a1c6a512-1295-4272-9138-f99709370657
2006-03-04 09:48:53 +00:00
Brandon Low
6d19a569be Improved battery status reporting for units which support usb power / charge
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8886 a1c6a512-1295-4272-9138-f99709370657
2006-03-02 13:37:51 +00:00
Linus Nielsen Feltzing
760fea9ac7 iAudio X5: various fixes to make the bootloader compile
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8560 a1c6a512-1295-4272-9138-f99709370657
2006-02-04 00:01:15 +00:00
Brandon Low
4a6b2c5a69 Fix all the simulator builds I broke
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8456 a1c6a512-1295-4272-9138-f99709370657
2006-01-25 22:28:55 +00:00
Hristo Kovachev
495c63f867 New "battery benchmark" plugin by Alexander Spyridakis, modified a bit by me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8451 a1c6a512-1295-4272-9138-f99709370657
2006-01-25 18:29:56 +00:00
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