summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-01-28 20:38:11 +0000
committerNils Wallménius <nils@rockbox.org>2007-01-28 20:38:11 +0000
commit942e4d8d5837512150b01d44661de9e988785fc2 (patch)
tree9bb435c1e4c1cb182692c200de991b6127e2bfd2
parent84b509dc43cf84ef16fcd4a57b167351f146cd11 (diff)
downloadrockbox-942e4d8d5837512150b01d44661de9e988785fc2.tar.gz
rockbox-942e4d8d5837512150b01d44661de9e988785fc2.zip
Do not change backlight timeout and disk spindown timeout when battery is low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12137 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/powermgmt.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 7f796abde5..5c7607413c 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -347,7 +347,6 @@ static const char power_thread_name[] = "power";
static int poweroff_timeout = 0;
static int powermgmt_est_runningtime_min = -1;
-static bool low_battery = false;
static bool sleeptimer_active = false;
static long sleeptimer_endtick;
@@ -623,27 +622,6 @@ static void handle_auto_poweroff(void)
}
#endif
- /* For low battery condition do some power-saving stuff */
- if (!low_battery && battery_level_critical()) {
-#if CONFIG_BACKLIGHT == BL_IRIVER_H100
- backlight_set_fade_in(0);
- backlight_set_fade_out(0);
-#endif
-#if defined(CONFIG_BACKLIGHT) && !defined(BOOTLOADER)
- if (backlight_get_current_timeout() > 2)
-#endif
- backlight_set_timeout(2);
-#ifdef HAVE_REMOTE_LCD
- remote_backlight_set_timeout(2);
-#endif
- ata_spindown(3);
- low_battery = true;
- } else if (low_battery && (battery_percent > 11)) {
- backlight_set_timeout(10);
- ata_spindown(10);
- low_battery = false;
- }
-
/* switch off unit if battery level is too low for reliable operation */
#if (CONFIG_BATTERY!=BATT_4AA_NIMH) && (CONFIG_BATTERY!=BATT_3AAA)&& \
(CONFIG_BATTERY!=BATT_1AA)