1. A method for determining an object sensing mode of a touch sensor panel, comprising: at an electronic device with one or more processors and memory, operating the touch sensor panel in a first object sensing mode having a first resolution and a first gain, if no first touch or proximity event is detected in the first object sensing mode, switching the touch sensor panel to operate in a second object sensing mode having a second resolution and a second gain greater than the first gain, and if no second touch or proximity event is detected in the second object sensing mode and the second gain is not a maximum gain, switching the touch sensor panel to operate in the second object sensing mode having a third gain greater than the second gain.