Patent ID: 8624695

Claim:
A consumer electronic product, comprising: an electronic device, comprising: a processor, a display assembly comprising a top protective cover, a magnetometer configured to detect a magnetic field and to provide a first detection signal, and a mechanism for determining a current spatial orientation of the electronic device with respect to an inertial reference frame; and a flexible flap pivotally coupled to a first side of the electronic device at a first end of the flexible flap, the flexible flap comprising a magnetic element disposed proximate a second end of the flexible flap, the second end opposite the first end, wherein the processor is in communication with the magnetometer and the mechanism, and configured to evaluate the first detection signal for a stationary magnetic field component and a dynamic magnetic field component and using the evaluation of the first detection signal in combination with the current orientation of the electronic device to provide a current position of the external magnetic element with respect to the electronic device, and wherein the processor is further configured to alter an operating state of the electronic device in accordance with the provided current position of the magnetic element.