JPH05265602A - Power management control device - Google Patents

Power management control device

Info

Publication number
JPH05265602A
JPH05265602A JP4089285A JP8928592A JPH05265602A JP H05265602 A JPH05265602 A JP H05265602A JP 4089285 A JP4089285 A JP 4089285A JP 8928592 A JP8928592 A JP 8928592A JP H05265602 A JPH05265602 A JP H05265602A
Authority
JP
Japan
Prior art keywords
power management
power
program
application program
management mechanism
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4089285A
Other languages
Japanese (ja)
Inventor
Keiichi Kato
敬一 加藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP4089285A priority Critical patent/JPH05265602A/en
Publication of JPH05265602A publication Critical patent/JPH05265602A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Calculators And Similar Devices (AREA)

Abstract

PURPOSE:To obtain a power management control device capable of setting up an optimum power supply OFF time in each application program, effectively functioning a power management mechanism and attaining a hot stand-by function without adding a dedicated hardware mechanism. CONSTITUTION:A monitoring program 23 monitors the start/stop of an application program 21 and I/O instruction issuing status to a device connected to the power management mechanism 3, stores the monitored results in a management table 24 and controls the mechanism 3 in accordance with the using status of a peripheral device based upon the program 21. A hot stand-by control program 22 is driven by an interruption from the mechanism 3 and saves system information to hard disk 4. When a system power supply is ON, the program 22 loads the saved system information to a main storage device and starts hot sand-by.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、パーソナルコンピュー
タのパワーマネージメント制御装置に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a power management control device for a personal computer.

【0002】[0002]

【従来の技術】従来、パワーマネージメント機構を有す
るパーソナルコンピュータ(以下、PCと呼ぶ)で、パ
ワーマネージメント機構を制御する場合、あらかじめパ
ワーマネージメント機構に接続している各装置毎に電源
断までの時間を利用者が設定しなければならなかった。
また、システム稼動状態で一旦電源を落とししばらくし
てからシステムを再稼動させるホットスタンバイ制御を
行うためには、それを実現するための専用ハードウェア
機構を必要とした。
2. Description of the Related Art Conventionally, when a power management mechanism is controlled by a personal computer (hereinafter referred to as a PC) having a power management mechanism, the time until the power is cut off for each device previously connected to the power management mechanism. The user had to set it.
In addition, in order to perform hot standby control in which the power is temporarily turned off while the system is operating and the system is restarted after a while, a dedicated hardware mechanism for realizing this is required.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述し
た従来のパワーマネージメント制御方式では、電源断ま
での時間を一意に設定するため、応用プログラム毎に最
適な時間設定を行うことが困難であった。また、時間設
定を一意に行うため、パワーマネージメント機構を最大
限有効に利用することができないという問題があり、さ
らに、ホットスタンバイ制御を行うために専用ハードウ
ェアが必要であった。
However, in the above-mentioned conventional power management control method, since the time until power-off is uniquely set, it is difficult to set the optimum time for each application program. Further, since the time is set uniquely, there is a problem that the power management mechanism cannot be used to the maximum extent, and further, dedicated hardware is required for performing hot standby control.

【0004】本発明は、上述した従来例における問題点
を解消するためになされたもので、応用プログラム毎に
最適な電源オフ時間を設定することができパワーマネー
ジメント機構をより効果的に機能させることができると
共に、専用のハードウェア機構を付加することなくホッ
トスタンバイ機能を実現できるパワーマネージメント制
御装置を得ることを目的とする。
The present invention has been made in order to solve the problems in the above-mentioned conventional example, and it is possible to set the optimum power-off time for each application program and to make the power management mechanism function more effectively. It is an object of the present invention to provide a power management control device capable of realizing a hot standby function without adding a dedicated hardware mechanism.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に、本発明に係るパワーマネージメント制御装置は、主
記憶装置にロードされる応用プログラムでの周辺装置の
使用状況を監視しその使用状況に応じて上記パワーマネ
ージメント機構を制御する第1の制御手段と、第1の制
御手段により得られた情報に基づいてシステム情報をハ
ードディスクに退避しシステムのホットスタンバイを制
御する第2の制御手段とを備えたことを特徴とするもの
である。
In order to achieve the above object, a power management control device according to the present invention monitors the usage status of a peripheral device in an application program loaded in a main storage device and monitors the usage status. Accordingly, there are provided a first control means for controlling the power management mechanism, and a second control means for saving the system information in the hard disk based on the information obtained by the first control means to control the hot standby of the system. It is characterized by having.

【0006】[0006]

【作用】本発明においては、第1の制御手段により、応
用プログラムでの周辺装置の使用状況に応じてパワーマ
ネージメント機構を制御することにより、応用プログラ
ム毎に最適な電源オフ時間を設定してパワーマネージメ
ント機構をより効果的に機能させ、第2の制御手段によ
り、第1の制御手段により得られた情報に基づいてシス
テム情報をハードディスクに退避しシステムのホットス
タンバイを制御する。
In the present invention, the first control means controls the power management mechanism in accordance with the usage status of the peripheral device in the application program to set the optimum power off time for each application program. The management mechanism is caused to function more effectively, and the second control means saves the system information in the hard disk based on the information obtained by the first control means to control the hot standby of the system.

【0007】[0007]

【実施例】次に、本発明について、図面を参照して説明
する。
Next, the present invention will be described with reference to the drawings.

【0008】図1は本発明の一実施例のハードウェア構
成を示す。図において、ハードディスク装置4、フロッ
ピィ装置5、プリンタ6及びCRT7は、パワーマネー
ジメント機構3を通して、CPU1、主記憶装置2、メ
モリカード8及びROM9に接続している。
FIG. 1 shows the hardware configuration of an embodiment of the present invention. In the figure, a hard disk device 4, a floppy device 5, a printer 6 and a CRT 7 are connected to a CPU 1, a main storage device 2, a memory card 8 and a ROM 9 through a power management mechanism 3.

【0009】ここで、上記パワーマネージメント機構3
は、接続している装置毎の電源ON/OFF機能と電源
OFFまでの任意の時間を設定することができ、設定し
た時間が経過した後、該当する装置の電源をOFFにす
る。また、パワーマネージメント機構3は、接続してい
る装置にI/O要求があり、かつ、その装置が電源OF
F状態である場合、自動的に電源を投入する。さらに、
システムの電源をOFFにすることもできる。
Here, the power management mechanism 3
Can set a power ON / OFF function for each connected device and an arbitrary time until the power is turned off, and after the set time has elapsed, the power of the corresponding device is turned off. Further, the power management mechanism 3 requires that the connected device has an I / O request, and the device is the power source OF.
In the F state, the power is automatically turned on. further,
You can also power off the system.

【0010】次に、図2は本発明を実施する主要部分を
示す図である。第1の制御手段となる監視プログラム2
3は、常に、応用プログラム21の起動/終了及びパワ
ーマネージメント機構3に接続している装置のI/O発
行状態を監視し、監視した結果を図3に示す構成でなる
管理テーブル24に格納する。さらに、監視プログラム
23は、応用プログラム21起動時、管理テーブル24
を検索し、該当する応用プログラムの電源OFF時間を
パワーマネージメント機構3に設定する。
Next, FIG. 2 is a diagram showing a main part for carrying out the present invention. Monitoring program 2 serving as first control means
3 always monitors activation / termination of the application program 21 and the I / O issuance state of the device connected to the power management mechanism 3, and stores the monitoring result in the management table 24 having the configuration shown in FIG. .. Further, the monitoring program 23 has a management table 24 when the application program 21 is activated.
Is set, and the power-off time of the corresponding application program is set in the power management mechanism 3.

【0011】また、第2の制御手段となるホットスタン
バイ制御プログラム22は、ROM9に格納されてお
り、システム電源投入時及びパワーマネージメント機構
3からの割込みにより、処理を開始し、システム電源投
入時は、ホットスタンバイを動作させ、パワーマネージ
メント機構3からの割込み発生時は、システム情報の退
避を行い、システム電源をOFFにする。
The hot standby control program 22, which is the second control means, is stored in the ROM 9 and starts its processing when the system power is turned on and by an interrupt from the power management mechanism 3, and when the system power is turned on. , Hot standby is operated, and when an interrupt is generated from the power management mechanism 3, the system information is saved and the system power is turned off.

【0012】図5は、監視プログラム23のフローチャ
ートである。ステップS51は、応用プログラム21の
起動/終了の判断を行い、I/O監視処理を行うか管理
テーブル24の更新処理を行うかを判断する。
FIG. 5 is a flowchart of the monitoring program 23. In step S51, it is determined whether the application program 21 is started or terminated, and whether the I / O monitoring process or the management table 24 update process is performed is determined.

【0013】次に、I/O監視処理を行う場合につい
て、フローチャートに沿って説明する。ステップS52
は、起動した応用プログラム21のプログラム名をキー
として図3に示す管理テーブル24を検索する。プログ
ラム名が一致した場合、それに付随する電源OFF時間
を読み込む。一致しない場合は、利用者が指定した既定
値とする。
Next, the case of performing the I / O monitoring process will be described with reference to the flowchart. Step S52
Searches the management table 24 shown in FIG. 3 using the program name of the activated application program 21 as a key. When the program names match, the power-off time associated with it is read. If they do not match, the default value specified by the user is used.

【0014】ステップS53は、ステップS52で得た
電源OFF時間をパワーマネージメント機構3に設定す
る。ステップS54は、応用プログラム21からパワー
マネージメント機構3に接続している装置に対するI/
Oを監視し、最適な電源OFF時間を算出する。
In step S53, the power OFF time obtained in step S52 is set in the power management mechanism 3. In step S54, I / O for the device connected to the power management mechanism 3 from the application program 21 is performed.
O is monitored and the optimum power OFF time is calculated.

【0015】一方、ステップS55は応用プログラム2
1の終了時、ステップS54で算出した最適な電源OF
F時間で、管理テーブル24を更新する。この時、管理
テーブル24に存在しない応用プログラム21である場
合は、管理テーブル24に追加する。このようにして、
常にユーザの使用環境に最適化される。
On the other hand, step S55 is the application program 2
At the end of 1, the optimum power supply OF calculated in step S54
The management table 24 is updated in F hours. At this time, if the application program 21 does not exist in the management table 24, it is added to the management table 24. In this way
It is always optimized for the user's usage environment.

【0016】図4は、ホットスタンバイ制御プログラム
のフローチャートである。ステップS42は、システム
の電源投入による起動なのか、パワーマネージメント機
構3の割込みによる起動なのかの判断を行い、ホットス
タンバイ起動処理を行うか、システム情報の退避処理を
行うかを判断する。
FIG. 4 is a flowchart of the hot standby control program. In step S42, it is determined whether the system is activated by turning on the power or an interrupt of the power management mechanism 3, and it is determined whether hot standby activation processing or system information saving processing is performed.

【0017】次に、ホットスタンバイ起動処理を行う場
合について、フローチャートに沿って説明する。ステッ
プS43は、システム初期化を行う。ステップS44で
は、ステップS43で指定されたシステム初期化がホッ
トスタンバイ起動か否かを判断し、ホットスタンバイ起
動でない場合は、ステップS48に制御を移し、OS起
動を行いプログラムを終了する。ホットスタンバイ起動
である場合は、ステップS45に制御を移す。
Next, the case of performing the hot standby start-up process will be described with reference to the flowchart. A step S43 initializes the system. In step S44, it is determined whether or not the system initialization designated in step S43 is hot standby activation. If it is not hot standby activation, control is transferred to step S48, OS is activated, and the program is terminated. If it is hot standby activation, control is transferred to step S45.

【0018】ステップS45は、ハードディスクに退避
されている主記憶装置2の内容を、主記憶装置2に展開
する。ステップS46は、ホットスタンバイ起動フラグ
をOFFにし、退避されていたレジスタを復旧し、ステ
ップS47に制御を移す。ステップS47は、システム
を再開する。
A step S45 expands the contents of the main storage device 2 saved in the hard disk into the main storage device 2. A step S46 turns off the hot standby activation flag, restores the saved registers, and shifts the control to the step S47. A step S47 restarts the system.

【0019】次に、システム情報の退避処理について、
フローチャートに沿って説明する。ステップS49は、
パワーマネージメント機構3をアクセスし、パワーマネ
ージメント機構3に管理される全ての周辺装置の電源O
N/OFF状態を読み取る。ステップS4Aは、ステッ
プS49で読み取った状態から、全ての装置が電源OF
F状態であるか否かを判断し、どれか一つの周辺装置が
電源ON状態である場合は、プログラムを終了する。
Next, regarding the saving processing of the system information,
A description will be given along the flowchart. Step S49 is
The power management mechanism 3 is accessed and the power supply O of all peripheral devices managed by the power management mechanism 3 is turned on.
Read N / OFF status. In step S4A, from the state read in step S49, all devices are powered off.
Whether or not it is in the F state is determined, and if any one of the peripheral devices is in the power-on state, the program ends.

【0020】全てが電源OFF状態である場合は、シス
テム情報の退避処理を続行する。ステップS4Bは、主
記憶装置2の内容をそのまま図6に示すハードディスク
内のシステム情報退避エリアに退避する。ステップS4
Cにおいては、ステップS4Bと同様にして、ホットス
タンバイ制御プログラム22に制御が移される直前のレ
ジスタの内容をシステム情報退避エリアに退避する。
If all are in the power-off state, the system information saving process is continued. A step S4B saves the contents of the main storage device 2 as they are to the system information save area in the hard disk shown in FIG. Step S4
In C, similar to step S4B, the contents of the register immediately before the control is transferred to the hot standby control program 22 are saved in the system information save area.

【0021】ステップS4Dは、システムの電源ON
時、ホットスタンバイを行う旨のフラグをシステムが持
っているCMOS上にセットする。これら一連の退避処
理を終了後、ステップS4Eにおいて、システム電源O
FFするI/O命令を、パワーマネージメント機構3に
発行する。
In step S4D, the system power is turned on.
At this time, a flag indicating that hot standby is performed is set on the CMOS included in the system. After completing the series of evacuation processing, in step S4E, the system power supply O
The I / O command for FF is issued to the power management mechanism 3.

【0022】[0022]

【発明の効果】以上、説明したように、本発明は、応用
プログラム毎に周辺装置の使用状況に応じて最適な電源
オフ時間を設定し、かつ、自動的に実行することによ
り、パワーマネージメント機能をより効果的に機能さ
せ、また、利用者がパワーマネージメント機能を意識せ
ずに使用できるという効果がある。さらに、専用のハー
ドウェア機構を付加することなく、ホットスタンバイ機
能を実現可能とする。
As described above, according to the present invention, the power management function is set by setting the optimum power-off time according to the usage status of the peripheral device for each application program and automatically executing it. It has the effect that it can function more effectively and that the user can use it without being aware of the power management function. Furthermore, the hot standby function can be realized without adding a dedicated hardware mechanism.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例のハードウェア構成図であ
る。
FIG. 1 is a hardware configuration diagram of an embodiment of the present invention.

【図2】本発明の主要モジュール構成図である。FIG. 2 is a configuration diagram of main modules of the present invention.

【図3】図2の管理テーブル24の内容図である。FIG. 3 is a content diagram of a management table 24 in FIG.

【図4】図2のホットスタンバイ制御プログラム22の
フローチャートである。
FIG. 4 is a flowchart of a hot standby control program 22 of FIG.

【図5】図2の監視プログラム23のフローチャートで
ある。
5 is a flowchart of a monitoring program 23 of FIG.

【図6】図2のハードディスク4の構成図である。6 is a configuration diagram of a hard disk 4 of FIG.

【符号の説明】[Explanation of symbols]

1 CPU 2 主記憶装置 3 パワーネージメント機構 4 ハードディスク 5 フロッピィ装置 6 プリンタ 7 CRT 8 メモリカード 9 ROM 1 CPU 2 Main Storage Device 3 Power Generation Mechanism 4 Hard Disk 5 Floppy Device 6 Printer 7 CRT 8 Memory Card 9 ROM

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 接続された装置の電源をオンオフするパ
ワーマネージメント機構を有するパーソナルコンピュー
タにおいて、主記憶装置にロードされる応用プログラム
での周辺装置の使用状況を監視しその使用状況に応じて
上記パワーマネージメント機構を制御する第1の制御手
段と、第1の制御手段により得られた情報に基づいてシ
ステム情報をハードディスクに退避しシステムのホット
スタンバイを制御する第2の制御手段とを備えたことを
特徴とするパワーマネージメント制御装置。
1. In a personal computer having a power management mechanism for turning on / off the power of a connected device, the usage state of a peripheral device in an application program loaded into a main storage device is monitored, and the power consumption is changed according to the usage state. A first control means for controlling the management mechanism; and a second control means for saving system information on a hard disk based on the information obtained by the first control means and controlling hot standby of the system. Characteristic power management control device.
JP4089285A 1992-03-16 1992-03-16 Power management control device Pending JPH05265602A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4089285A JPH05265602A (en) 1992-03-16 1992-03-16 Power management control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4089285A JPH05265602A (en) 1992-03-16 1992-03-16 Power management control device

Publications (1)

Publication Number Publication Date
JPH05265602A true JPH05265602A (en) 1993-10-15

Family

ID=13966436

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4089285A Pending JPH05265602A (en) 1992-03-16 1992-03-16 Power management control device

Country Status (1)

Country Link
JP (1) JPH05265602A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100743824B1 (en) * 2005-06-30 2007-07-30 세이코 엡슨 가부시키가이샤 Information processing apparatus and computer readable recording medium having recorded therein program for causing computer to execute power control method
JP2012173579A (en) * 2011-02-22 2012-09-10 Fujitsu Frontech Ltd Display device and control method of display device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100743824B1 (en) * 2005-06-30 2007-07-30 세이코 엡슨 가부시키가이샤 Information processing apparatus and computer readable recording medium having recorded therein program for causing computer to execute power control method
JP2012173579A (en) * 2011-02-22 2012-09-10 Fujitsu Frontech Ltd Display device and control method of display device

Similar Documents

Publication Publication Date Title
JP3799130B2 (en) Method for switching power saving mode of computer having power saving function while using network
US5884087A (en) Power management system for a computer
US6618813B1 (en) Method for suspending, resuming, and turning on a computer system without being affected by an abnormal power failure
KR960011766A (en) Computer systems
JPH04333119A (en) Information processor
US7334138B2 (en) Windows-driven power management for peripheral devices in a computer system
JPH11353048A (en) Power saving mode shift control method for electronic equipment, electronic equipment and storage medium recorded with power saving mode shift control procedure
JPH05265602A (en) Power management control device
JP2000172386A (en) Computer system and method for managing memory power supply
JPH0651858A (en) Program interrupting/restarting system
JPH06230845A (en) Resuming system
JPH11282685A (en) Information processor
JPH10333790A (en) Information processor equipped with power-saving function and power saving releasing method for the information processor
JP2000172359A (en) Starting method for personal computer
JPH0883133A (en) Computer system and clock control method for the same
JPH1097340A (en) Portable information unit
JPH11184550A (en) Computer system and timer interruption control method
KR100200528B1 (en) Auto shut-down method of personal computer
TW411409B (en) Suspension method for computer system
JPH06223028A (en) Suspend resume controller
TW550451B (en) Programmable power-on system and method for central processing unit
JPH064168A (en) Computer system
JPH10149232A (en) System processing request system for power-off time
JPH1020953A (en) Shutdown processing system of computer system
JP2002149291A (en) Method for initializing device and information processing apparatus allowing device to be set to save power