摘要:
A method for controlling an operating mode of a portable electronic device having a first plane and a second plane connected together comprises forming a magnet in the first plane, forming a magnetic flux sensor in a position of the second plane corresponding to the magnet for sensing magnetic flux, and controlling the operating mode of the portable electronic device according to the sensing result of the magnetic flux sensor.