A non-transitory storage medium having stored thereon instructions that, when executed by at least one processor of a notebook computer, causes the processor to perform a method for automatically opening a cover of the notebook computer, the cover comprising a display screen and a gravity sensor, the notebook computer comprising a base member, a signal receiver and a driver device, the method comprising:
- setting an operation angle between the cover and the base member, and storing the operation angle into a register of the gravity sensor;
- controlling the signal receiver to receive a power-on signal from a remote controller for powering on the notebook computer;
- driving the driver device to rotate a rotating element to open the cover according to the power-on signal;
- detecting a tilting angle of the display screen using the gravity sensor;
- determining whether the tilting angle of the display screen is equal to the operation angle between the cover and the base member;
- and
- controlling the driver device to fix the display screen at the operation angle when the tilting angle of the display screen is equal to the operation angle.