Patent ID: 8433941

Claim:
A portable electronic device comprising: a battery; a processor; a non-volatile memory coupled to said processor; a volatile memory coupled to said processor, wherein said volatile memory is operable to store data; and wherein said processor is operable to: (i) reserve an amount of memory on said non-volatile memory during normal operations, (ii) suspend user-initiated operation of said portable electronic device and place said volatile memory in a low power mode when an energy capacity of said battery is below a first threshold, said first threshold corresponding to a low power mode, (iii) determine when said energy capacity is at a second threshold, said second threshold being equivalent to an energy capacity just sufficient to copy said data to said non-volatile memory, said second threshold corresponding to a lower energy capacity than said first threshold, (iv) initiate copying of said data from said volatile memory to said non-volatile memory in response to detection of said energy capacity at said second threshold, wherein said non-volatile memory stores an indicator flag to indicate that said portable electronic device has stored data as a result of said energy capacity being below said second threshold, (v) in response to detecting said energy capacity is at a level that exceeds at least said second threshold and detecting said indicator flag, restore said data to said volatile memory, and (vi) in response to completing restoration of said data, delete said indicator flag from said non-volatile memory.