The invention provides an electronic device which comprises a display unit, a controller, a control chip and a power supply, wherein, the control chip is connected with the power supply and controls a switch of the power supply; the display unit comprises a capacitive touch screen, which orderly consists of a glass substrate, a conductive layer and a linear layer, wherein, the four sides of the linear layer are respectively plated with an electrode, and the electrodes are idiostatic; each electrode and the display unit are respectively connected with the controller; the controller is used for preinstalling a starting signal which comprises at least one piece of information in a specific position, a specific time and a specific frequency for the touch screen, and is used for detecting a detection signal which comprises a position, a time and a frequency for the touch screen being actually touched, and then, a starting command is determined depending on the comparison of the detection signal and the starting signal. The invention also provides a method for opening the electronic device, and the controller determines whether to send out the starting command to open the electronic device or not depending on whether the detection signal corresponds to the starting signal.