This Application claims priority of Taiwan Patent Application No. 101133608, filed on Sep. 14, 2012, the entirety of which is incorporated by reference herein.
1. Field of the Invention
The present invention relates to power management, and in particular, relates to a computer system and power management method for downloading background activities data without using the processor in the connected-standby state.
2. Description of the Related Art
In other words, before entering the low power state, the processor 110 may suspend all of the applications which are being executed, and then enter the low power state. When the network transmission module 120 receives update information associated with an application, the processor 110 may be awaken from the low power state for processing the received information, and then enter the low power state again after processing all of the received information. Accordingly, the computer system 100 may display the latest message instantaneously, so that the user may view the latest information, such as e-mails or message notifications.
Upon receiving information from the network, the network transmission module 120 in the conventional computer system 100 must access the data stored in the storage unit 140 through the processor 110, and thus the processor 110 cannot fully be under the low power state during the predetermined sleeping period (e.g. the 30-second period shown in
Therefore, there is a demand for a computer system and a power management method, which are capable of avoiding the periodic waking up of the processor during the predetermined sleeping period of the processor in the connected-standby state, thereby effectively reducing the power consumption of the computer system.
A detailed description is given in the following embodiments with reference to the accompanying drawings.
In an exemplary embodiment, a computer system is provided. The computer system has: a processor; a network transmission module; a storage unit; and a dual-port disk controller, coupled to the processor, the network transmission module and the storage unit, configured to control access of the storage unit, wherein when the computer system is in a connected-standby state and the processor is operating in a low power state, the network transmission module receives network data of the at least one background activity from a network, and writes the received network data to the storage unit directly through the dual-port disk controller.
In another exemplary embodiment, a power management method applied in a computer system is provided. The computer system has a processor; a network transmission module; a storage unit; and a dual-port disk controller. The method comprises the following steps of: utilizing the network transmission module to receive network data of the at least one background activity from a network when the computer system is in a connected-standby state and the processor is operating in a low power state; and utilizing the network transmission module to write the received network data to the storage unit directly through the dual-port disk controller.
The present invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
The following description is of the best-contemplated mode of carrying out the invention. This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims.
In an embodiment, the processor 210 may support ACPI and function in the connected-standby state. When the computer system enters the connected-standby state, the processor 210 is in a low power state (e.g. C7 or C10 state defined by ACPI). Although the applications which are being executed are suspended by the processor 210, these suspended applications may still keep a connection to the network (e.g. Wifi network or local network) through the network transmission module 220. In other words, when the computer system 200 enters the connected-standby state, the applications executed by the processor 210 before entering the low power state may consistently be updated by receiving new information, so that the new information can be instantaneously received and processed. For example, the user may instantaneously view the latest data or applications, such as e-mails or notification messages, after booting up the computer system 200.
The dual-port disk controller 230 is coupled to the processor 210 and the network transmission module 220, and configured to control the access of the storage unit 240, such as simultaneously processing the access (e.g. writing and reading) actions from the processor 210 and the network transmission module 220 to the storage unit 240. Specifically, the computer system 200 supports the connected-standby function. As long as the computer system 200 is activated, the network transmission module 220, the dual-port disk controller 230 and the storage unit 240 are always active no matter whether the computer system 200 is in the connected-standby state or not.
In the aforementioned embodiment, the network transmission module 220 further comprises a memory unit 221 configured to store data (e.g. e-mails or notification messages) from the network temporarily. Specifically, when the computer system 200 is in the working state and the network transmission module 220 receives network data from a network, the network transmission module 220 may store the received network data in the memory unit 221, and then writes the network data stored in the memory unit 221 to the storage unit 240 directly through the dual-port disk controller 230. For example, the memory unit 221 may be a first-in-first-out (FIFO) buffer, but the invention is not limited thereto.
In an embodiment, the storage unit 240 can be classified into a first storage space 241 and a second storage space 242. The first storage space 241 is configured to store the received network data (e.g. main texts in e-mails or notification messages) when the computer system 200 is in the connected-standby state. The second storage space 242 is configured to store files with larger sizes, such as operating systems, applications, multimedia files in the received network data, or attachment files of e-mails. In other words, the operating system and applications of the computer system 200 are stored in the second storage space 242. For example, the storage unit 240 may be a non-volatile memory, such as a hard disk or a solid state disk (SSD), but the invention is not limited thereto.
In an embodiment, when the computer system 200 is in the working state and the network transmission module 220 receives network data from a network, the network transmission module 220 may directly transmit the received network data to the processor 210, and then the processor 210 may store the network data in the storage unit 240 through the dual-port disk controller 230. In another embodiment, the network transmission module 220 may classify the received network data into data with a longer length and data with a shorter length. For example, the network transmission module 220 may store the data with a longer length, such as attachment files of e-mails or downloaded files, into the second storage space 242, and transmit the data with a shorter length, such as main texts of e-mails, text messages, or MSN messages, to the processor 210, so that the processor 210 may directly display these messages.
In an embodiment, when the computer system 200 is in the connected-standby state and the processor 210 is processing background activities, all the downloaded network data is processed by the network transmission module 220 without passing through the processor 210. For example, when the network transmission module 220 receives network data from a network, the network transmission module 220 may control the dual-port disk controller 230 to store the received network data into the storage unit 240. The processor 210 is periodically awaken in the connected-standby state to process the stored network data to notify the user.
The background activities may be the suspended applications which are not sensible to the user in the connected-standby state. In other words, although the computer system 200 is in the connected-standby state, it still has to receive network data from the network, but the user can not sense any application being executed by the computer system 200. In fact, there are some hardware components in the computer system 200 to process these background activities, such as receiving network data through the network transmission module 220, or waking up the processor 210 periodically to execute applications (e.g. playing music, checking e-mails, displaying notification message or executing anti-virus applications).
When the processor 210 is awaken periodically to process the applications of background activities, the processor 210 may check whether the network data of related applications are stored in the first storage space 241. If so, the processor 210 may generate corresponding display data, such as notification of e-mails or messages, and then the processor 210 may further display the generated display data on a screen (not shown in
As for ways for processing the downloaded data, the network transmission module 220 may store the network with a smaller size, such as main texts of e-mails or notification messages, in the first storage space 241, and store the network data with a larger size, such as attachment files of e-mails or downloaded files, in the second storage space 242. Accordingly, this may prevent the processor 210 from accessing the files with a larger size in the connected-standby state, thereby reducing power consumption.
In view of the above, four data access paths can be summarized. For example, Path (1): the computer system 200 may receive network data through the network transmission module 220 in the connected-standby state, and the network transmission module 220 may store the received network data into the storage unit 240 directly through the dual-port disk controller 230. Path (2): the background activities in the connected-standby state may take corresponding actions after checking the received network data (e.g. main texts of e-mails, notification messages, downloaded files, or attachment files of e-mails) through the aforementioned path (1) or by polling the storage unit 240 by the processor 210. Path (3): In the non-connected-standby state, if the network data received by the network transmission module 220 is data with a shorter length, such as e-mails, text messages, or MSN messages, the network transmission module 220 may transmit the received network data to the processor 210, so that the processor 210 may display these messages. Path (4): In the non-connected-standby state, if the network data received by the network transmission module 220 is data with a longer length or downloaded files, the received network data can be stored in the storage unit 240 through the aforementioned path (2), and then the processor 210 may access the storage unit 240 through the dual-port disk controller 230.
It should be noted that when the computer system 200 is in the connected-standby state and the processor 210 is polling data, the processor 210 only has to process the network data with a smaller size (e.g. main texts of e-mails or notification messages) stored in the first storage space 241 without wasting much power to process the network data with a larger size (e.g. downloaded files or attachment files of e-mails stored in the second storage space 242). Accordingly, the operation time and power of the processor 210 during background activities periods can be reduced in the invention.
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
101133608 | Sep 2012 | TW | national |