Ticket #891 (closed enhancement: fixed)

Opened 11 years ago

Last modified 17 months ago

Don't power anything up if battery is critical and charger is inserted

Reported by: cesarb@… Owned by: openmoko-kernel
Priority: normal Milestone:
Component: kernel Version:
Severity: minor Keywords: bootloader
Cc: buglog@…, cw@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:


If the battery charge is too low, doing things like powering up the backlight is
counterproductive (if things are really critical, it could make the voltage sag
enough that the CPU loses power, causing a reset cycle). This could be the cause
for reports of repeated backlight flashing when trying to recharge dead batteries.

If the powerup cause is reset or charger insert, AND the battery level is too
low (below some threshold voltage), u-boot should detect the situation at the
earliest possible time (perhaps even before powering up the SDRAM) and refrain
from powering up anything else (perhaps even powering down the CPU, or making it
use the least possible amount of power while slowly polling the battery status).
This would give the charger time to bring the battery voltage back to a
comfortable level.

Change History

comment:1 Changed 11 years ago by cesarb@…

  • Version changed from unspecified to 2007.2

comment:2 Changed 11 years ago by cesarb@…

Related bugs: #293 (don't boot the linux kernel in this situation), #848
(charger UI for u-boot)

comment:3 Changed 11 years ago by cw@…

  • Cc cw@… added

comment:4 Changed 11 years ago by speedevil@…

To do this right:
U-boot should:
Boot to slow mode, not fast mode (lower power, higher chance of not immediately
crashing out)

Extremely low batt: - under 2.9V, USB power on.
Turn off immediately, charge at low-rate, set RTC to wakeup in 2 min.

Low bat - V under 3.1V, USB power on:

Connected to USB bus in suspend.

Attempt to wake host.

Wake fails: beep to indicate state, power off.
Wake succeeds: next state

Connected to USB bus not in suspend:

Attempt to negotiate for 500mA as a HID device

Negotiation succeeds - high speed mode, boot.
Negotiation fails: beep to indicate state, power off.

Connected to something that is not a USB host in operational or suspend mode:

Check we have not tried high power mode in last minute.

If this has failed, then beep to indicate low-rate charge, power off.

Record that we're trying high power mode at time now.
Turn on high power mode, verify power stays stable for 10s.
High speed, Boot.

All of this happens _before_ the u-boot bootsplash screen.
These thresholds should be set so that they will work with a year old battery,
with increased ESR and lower capacity than the

comment:5 Changed 11 years ago by laforge@…

  • Severity changed from critical to enhancement

comment:6 Changed 11 years ago by willie_chen@…

  • Owner changed from laforge@… to michael@…

comment:7 Changed 10 years ago by roh

  • Owner changed from michael@… to michael

comment:8 Changed 10 years ago by john_lee

  • Status changed from new to assigned
  • HasPatchForReview unset
  • Component changed from u-boot to System Software
  • Priority changed from high to normal
  • Version 2007.2 deleted
  • Owner changed from michael to openmoko-kernel

seems not specific to u-boot but an enhancement to system software.

comment:9 Changed 10 years ago by marek

  • Keywords bootloader added

comment:10 Changed 10 years ago by andy

  • Status changed from assigned to closed
  • Resolution set to fixed

comment:11 Changed 17 months ago by Kennescoma

poea. <a href=http://yourcashloan24.com>direct payday lenders</a> She told me that she paid off a big chunk of her loans but then had to quit her job the hours were too tough on her and she didnt see her daughter enough.Acheter Priligy Dapoxetine Etats <a href=http://zol1.xyz/order-zoloft-pills.php>Order Zoloft Pills</a> Comprar Viagra Sin Receta.Canada Drug Literature Cephalexin <a href=http://cytotec.ccrpdc.com/order-cytotec-in-usa.php>Order Cytotec In Usa</a> Levitra En Francais Viagra Schweiz Rezeptfrei <a href=http://viag1.xyz/cheap-viagra-online.php>Cheap Viagra Online</a> La Viagra Necesita Receta Buy Levitra Online With Paypal <a href=http://kama1.xyz/buy-kamagra-online-100mg.php>Buy Kamagra Online 100mg</a> Buy Viagra Brand Viagra For Sale With Debit Card <a href=http://zol1.xyz/buy-zoloft.php>Buy Zoloft</a> Order Now On Line Isotretinoin Lasix Mexico <a href=http://cialis.ccrpdc.com/shop-cialis-online.php>Shop Cialis Online</a> Finasteride Ratiopharm 1 Mg Prix Description Of The Drug Fluconazole 100mg <a href=http://cial1.xyz/low-cost-cialis-online.php>Low Cost Cialis Online</a> Le Viagra Chinois Overnight Neurontin <a href=http://zol1.xyz/buying-zoloft-online.php>Buying Zoloft Online</a> Buying Cialis In Montreal Viagra Vs Generic Viagra <a href=http://priligy.ccrpdc.com/buy-priligy-online-pharmacy.php>Buy Priligy Online Pharmacy</a> Commander Cialis Generic Methotrexate Overseas Pharmacy <a href=http://zol1.xyz/where-to-order-zoloft.php>Where To Order Zoloft</a> Zenegra 100 Buy From Usa Amoxicillin Sinus Infection <a href=http://viag1.xyz/buy-cheap-viagra.php>Buy Cheap Viagra</a> Fish Amoxicillin Sales Fastest Cialis Delivery <a href=http://kama1.xyz/online-generic-kamagra.php>Online Generic Kamagra</a> How To Stay Healthy After Keflex Variety Package With Apcalis <a href=http://zol1.xyz/cheap-zoloft-online.php>Cheap Zoloft Online</a> Kamagra Que Es Propecia Precio Parafarmacia <a href=http://cial5mg.xyz/cialis-price.php>Cialis Price</a> Order Plavix No Prescription Description Amoxil <a href=http://cial1.xyz/cheap-cialis-tablets.php>Cheap Cialis Tablets</a> Proscar Espana Propecia Order Neurontine Overnight <a href=http://viag1.xyz/purchase-viagra.php>Purchase Viagra</a> Acheter Generique Levitra Effetto Kamagra <a href=http://cial5mg.xyz/cialis-order.php>Cialis Order</a> Bonnisan Drops Levitra 30 Mg <a href=http://cial1.xyz/purchase-cialis.php>Purchase Cialis</a> Isotretinoin roaccutane how to buy Cialis 10 Mg Apotheke <a href=http://xenical.ccrpdc.com/xenical-pills.php>Xenical Pills</a> Cialis Mecanismo De Accion Buy Nexium From India <a href=http://zol1.xyz/cheap-zoloft-online.php>Cheap Zoloft Online</a> Viahra Propecia Tinnitus Finasteride <a href=http://viag1.xyz/cheap-viagra-sales.php>Cheap Viagra Sales</a> Does Keflex Help Bronchitis Online Pharmacy Uk No Prescription <a href=http://prednisone.ccrpdc.com/low-cost-deltasone-online.php>Low Cost Deltasone Online</a> Cialis Generico Online Italia Helthy Man <a href=http://kama1.xyz/cheap-kamagra-pills.php>Cheap Kamagra Pills</a> Achat De Ciprofloxacin En Ligne Orlistat Sky Pharmacy <a href=http://kama1.xyz/order-kamagra-online.php>Order Kamagra Online</a> Amoxicillin 500mg Capsule Rhine <a href=http://cial1.xyz/buy-cialis-online-cheap.php>Buy Cialis Online Cheap</a> Conseils Pour Durer Plus Longtemps Keflex Medication <a href=http://viag1.xyz/sildenafil-citrate.php>Sildenafil Citrate</a> Preise Levitra How To Buy Diclofenac Gel <a href=http://viag1.xyz/online-generic-viagra.php>Online Generic Viagra</a> Cialis 10 Prix Foro Cialis Vs Viagra <a href=http://cial1.xyz/low-cost-cialis-online.php>Low Cost Cialis Online</a> Ciprofloxacin Tab 500mg Side Effects Viagra E Tumori <a href=http://viag1.xyz/cheap-viagra-usa.php>Cheap Viagra Usa</a> Online Pharmacies Canada Buy Lasix Online Cheap <a href=http://cial1.xyz/cialis-online-pharmacy.php>Cialis Online Pharmacy</a> Levitra Super Active Reviews Buy Now Tab Isotretinoin Isotret Mastercard Cod <a href=http://viag1.xyz/cheap-viagra-online.php>Cheap Viagra Online</a> Generique Kamagra 25 Mg

Note: See TracTickets for help on using tickets.