摘要 |
A portable electronic device comprises a first body having a magnet member mounted thereon; a second body slidably assembled on the first body and including a Hall sensor mounted thereon. The magnet member acts on the Hall sensor with the first body is moved relative to the second body, thereby switching the portable electronic device to a work mode when the Hall sensor faces the magnet member or a power save mode when the Hall sensor is spaced away from the magnet member. |