In one general aspect, the invention features a computer including a battery having a first terminal, a battery charging circuit having an output operatively connected to the first terminal of the battery and having a control input, and a temperature sensor responsive to temperature at a location within the computer and having a temperature indicating output operatively connected to the control in