Patent ID: 8875138

Claim:
A control method of a computer system, wherein the computer system comprises an embedded controller (EC), a basic input/output system (BIOS) and an operating system (OS), the method comprising: when the computer system is rotated, making, by the EC, the BIOS identify a present rotation state of the computer system by an interrupt signal and an internal communication scheme; establishing, by the BIOS, a data structure in accordance with a virtual scan code and the rotation state and transmitting the data structure to the OS, wherein the virtual scan code is a preset identification code denoting that the computer system is rotated; and controlling, by the OS, a program to execute a related operation of the rotation state in accordance with the data structure, wherein the internal communication scheme is provided by a first specific address range in a main memory of the computer system defined by the BIOS when the computer system starts running, and the step of making, by the EC, the BIOS identify the rotation state by the interrupt signal and the internal communication scheme comprises: writing, by the EC, the virtual scan code and a rotation parameter corresponding to the rotation state into the first specific address range; and sending, by the EC, the interrupt signal to the BIOS to inform the BIOS of reading the first specific address range and acquiring the virtual scan code and the rotation parameter.