METHOD FOR CONTROLLING POWER MODE SWITCHING
First Claim
1. A method for controlling power mode switching, applied to a computer device, wherein the computer device comprises a power source supplying electrical power to the computer device for operation, the computer device is operated in a first power mode, and the method comprising:
- receiving a request for switching the computer device to a second power mode;
calculating a power consumption amount corresponding to the second power mode;
obtaining a remaining capacity of the power source;
determining whether the power consumption amount is larger than the remaining capacity; and
when the power consumption amount is larger than the remaining capacity, sending a warning, which indicates that the remaining capacity is not sufficient, to an operating system of the computer device and preventing the computer device from being switched to the second power mode.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for controlling power mode switching, applied to a computer device, is provided. The computer device includes a power source supplying electrical power to the computer device for operation and is operated in a first power mode. In the method, firstly, a request for switching the computer to a second power mode is received. A power consumption amount corresponding to the second power mode is calculated. A remaining capacity of the power source is obtained. Then, whether the power consumption amount is larger than the remaining capacity is determined. If the power consumption amount is larger than the remaining capacity, a warning indicating that the remaining capacity is not sufficient is sent to an operating system of the computer device and the computer device is not switched to the second power mode.
-
Citations
6 Claims
-
1. A method for controlling power mode switching, applied to a computer device, wherein the computer device comprises a power source supplying electrical power to the computer device for operation, the computer device is operated in a first power mode, and the method comprising:
-
receiving a request for switching the computer device to a second power mode; calculating a power consumption amount corresponding to the second power mode; obtaining a remaining capacity of the power source; determining whether the power consumption amount is larger than the remaining capacity; and when the power consumption amount is larger than the remaining capacity, sending a warning, which indicates that the remaining capacity is not sufficient, to an operating system of the computer device and preventing the computer device from being switched to the second power mode. - View Dependent Claims (2, 3)
-
-
4. A computer program product embodied in a non-transitory computer-readable medium, wherein when the computer program product is loaded into and executed by a computer device, the computer device practices a method for controlling power mode switching, wherein the computer device comprises a power source supplying electrical power to the computer device for operation, the computer device is operated in a first power mode, and the computer program product comprising:
-
a first program code for receiving a request for switching the computer to a second power mode; a second program code for calculating a power consumption amount corresponding to the second power mode; a third program code for obtaining a remaining capacity of the power source; a fourth program code for determining whether the power consumption amount is larger than the remaining capacity; and a fifth program code for sending a warning, which indicates that the remaining capacity is not sufficient, to an operating system of the computer device and preventing the computer device from being switched to the second power mode if the power consumption amount is larger than the remaining capacity. - View Dependent Claims (5, 6)
-
Specification