Patent ID: 8296095

Claim:
An electronic device comprising: a cover, a main body rotatably connected with the cover, a plurality of components received in the cover or the main body, wherein each of plurality of components has an on working state and an off working state, the on and off working states of each of the plurality of components respectively correspond to an angle range between the cover and the main body, an angle measuring apparatus to measure an angle between the cover and the main body, a presetting unit configured to preset a relationship between the on and of working states of each of the components and the corresponding angle ranges between the main body and the cover; a memory for storing the relationship as a table; an angle measuring unit configured to control the angle measuring apparatus to detect a current angle value between the main body and the cover; a state determining unit configured to determine the angle range which the detected current angle value is in, and thereby determining the corresponding working state of each of the components according to the table; a determining unit configured to determine whether a current working state of the each of the components is the same as the determined working state; and an updating unit configured to record the determined working state as an updated working state of each of the components when the current state of each of the components is different from the determined working state.