九、發明說明: 【發明所屬之技術領域】 本發明係關於利用像是 力節省方法 器 螢幕節省哭的 兩丄 的一程式功能之電 電力節省程式及可予以肩 恧用的一貧訊處理 【先前技術】 近年來’由於個人電腦中之圖形 增加,因而引推Μ山Μ τ碉耗之电力逐無 而51進秸由降低供應之時脈頻率 之電力供應部分_ 吕理 r::’:體之電力消耗的技術。傳統上,此種VRAM電力 Μ技術係經由懸置或冬眠而切換成一電力節省模式。 4經由懸置或冬眠而切換成一電力節省模式之情況下, 备該模式從電力節省模式復原為一正常模式時一監心 之顯不條件必須復原為切換成電力節省模式前的原始停 件。因此’通常於切換前,儲存VRAM之上下文而且於 復原為正常模式後’根據健存之上下文將上下文恢復為切 換成電力節省模式前的原始條件。然而,如果仍本身支援 電力管理,當VRAM復原為正常模式時,〇s將執行vram 之初始化與影像資料再生,目此,不要求儲存vram之上 下文,及根據儲存之資料加以復原。在一〇s未支援電力管 理之情況下,如Wind〇wsR(註冊商標)Ντ 4 〇 ,將執行 VRAM上下文之儲存與恢復。 相對地,在一 0S支援電力管理之情況下,像是 WindowsR(註冊商標)XP/20〇〇/Me/98,其中具備當—個人 1336436 電腦停留一段預先設定時期時則關閉監視器電源的一螢幕 關閉計時器功能。如果於一預先設定時期内並無來自一鍵 盤或一滑鼠之輪入,則此功能藉由像是APM(高級電力管 里)的w面而停止一 LCD面板或一外部crt之顯示,以節 省整個系統的電力消耗。 [專利文件1] 公告之未審查專利申請案號2〇〇〇_298536 [本發明解決之問題] 根據上述.先前技藝之技術,當儲存及恢復vram上下文 τ將要求供儲存上下文用之區域和時間。尤其當使用— 冬眠技術時,必需將VRAM上下文健存於像是一硬碟的— 不變性記憶體中。近年來,VRAM2大小日益增加,因此 儲存器之資料傳輸率不容忽視。例如,為了將“则之 VRAM上下文儲存於—硬碟中將要求超過三十秒時間。由 於期間無法使用VRAM,所以無法顯示處理進行條件。 在具有-螢幕關閉計時器的—電力節省模式中,即使當 幕電源而不必顯示時,VRAM之電力或時脈供應: 考慮以上先前技藝之技術的問題,本發明的一目的為: 即使當一 0S未支援電力管理,仍 J ·.主由懸置或冬眠促進一 電力節省模式,無需儲存vRAM内 執行恢復。另一目的為:當營幕…及根據錯存之資料 VRAM之時脈或電力供應,無需儲存V編内容m 儲存之資料執行恢復。 根據 30 【發明内容】 為了達成該等目的,根據本發明的—資訊處理器具備 用以保留供—顯不器裝置所顯示之影像資料的一顯示記憶 體,用以將顯示記,丨音體切拖士、,土丄 u髖切換成造成影像資料消失的一電力 節省狀態且將該記憶體從電力節省狀態復原之電力節省構 件;用以健存一預先決定之啟動條件的-儲存區域;當滿 足該啟動條件時啟動—預先決定之常式的常式啟動構件; 用以終止該常式之常式終止構件;以及當該常式終止時執 行顯示記‘Itn像㈣再生的影像資料再生構件;該資 訊處理器包括:當顯示記憶體切換成電力節省狀態或從該 狀態復原時用以重寫健存區域_儲存之啟動條件以便啟動 該常式的啟動條件重寫構件;以及於啟動該常式後將重寫 之啟動條件復原為原始條件的啟動條件復原構件。 根據本發明的一電力節省方法係在一資訊處理器中實 作,該資訊處理器具備:當滿足一儲存之預先決定的啟動 條件時啟動一預先決定之常式的常式啟動構件;用以終止 該常式之常式終止構件;以及執行用以保留一顯示器裝置 所顯示之影像資料的一顯示記憶體其影像資料再生之影像 資料再生構件;該方法包含下列步驟:將顯示記憶體切換 成造成影像資料消失的一電力節省狀態;將顯示記憶體從 電力節省狀態復原;重寫儲存之啟動條件以便當顯示記憶 體切換成電力節省狀態或從該狀態復原時啟動該常式;於 啟動該常式後將重寫之啟動條件復原為原始條件;以及終 止啟動之常式。 1336436 根據本發明的-電力節省程式 本發明的一資訊處理。„ — 電腦發揮包含根據 益之母一XL· 執行包含根據本”的 =,或者促成一電腦 在本發明之組態中,當二:…之每-步驟。 資料消失的一電力節省能二不。己憶體切換成造成影像 時,必需將顯” &然後將該記憶體從狀態復原 省狀態前的原始條件。馬了因⑽體㈣成電力節IX. Description of the Invention: [Technical Field of the Invention] The present invention relates to an electric power saving program that utilizes a program function such as a power saving method screen to save crying, and an idle processing that can be used for shoulders. Prior Art] In recent years, due to the increase in graphics in personal computers, the power consumption of the Μ Μ 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 The technology of power consumption. Traditionally, such VRAM power technology has been switched to a power saving mode via suspension or hibernation. 4 When switching to a power saving mode via suspending or hibernation, when the mode is restored from the power saving mode to a normal mode, the unconditional condition must be restored to the original stop before switching to the power saving mode. Therefore, 'the context of the VRAM is stored before the switching, and after restoring to the normal mode', the context is restored to the original condition before switching to the power saving mode according to the context of the health. However, if the power management is still supported by itself, when the VRAM is restored to the normal mode, 〇s will perform the initialization of the vram and the reproduction of the image data. Therefore, it is not required to store the vram context and restore it based on the stored data. In the case where the power management is not supported, such as Wind〇wsR (registered trademark) Ντ 4 〇, the storage and recovery of the VRAM context will be performed. In contrast, in the case of an OS support power management, such as WindowsR (registered trademark) XP/20〇〇/Me/98, which has one when the personal 1336436 computer stays for a predetermined period of time, the monitor power is turned off. The screen off timer function. If there is no wheeling from a keyboard or a mouse within a predetermined period of time, this function stops the display of an LCD panel or an external crt by a w-side such as APM (Advanced Power Tube). Save power consumption throughout the system. [Patent Document 1] Unexamined Patent Application No. 2 298 298 536 [Problems to be Solved by the Invention] According to the above prior art technique, when storing and restoring the vram context τ, an area for storage context is required and time. Especially when using hibernation technology, the VRAM context must be stored in a non-volatile memory like a hard disk. In recent years, the size of VRAM2 has been increasing, so the data transfer rate of the memory cannot be ignored. For example, in order to store the "VRAM context" on the hard disk, it will take more than thirty seconds. Since the VRAM cannot be used during the period, the processing conditions cannot be displayed. In the power saving mode with the -screen off timer, Even if the screen power supply does not have to be displayed, the power or clock supply of the VRAM: Considering the problems of the prior art techniques, one object of the present invention is: Even when an OS does not support power management, J. Or hibernation promotes a power saving mode, and does not need to store the recovery in the vRAM. Another purpose is: when the camp... and according to the data or the power supply of the VRAM, the data stored in the V content is not stored. According to the present invention, in order to achieve the above objects, an information processor according to the present invention is provided with a display memory for retaining image data displayed by the display device for cutting the display and the sound body. The drag, the bandit, and the hip are switched to a power saving state that causes the image data to disappear and the power saving of the memory from the power saving state a component; a storage area for holding a predetermined activation condition; a start-up condition of a predetermined routine when the start condition is satisfied; a routine termination member for terminating the routine; and When the routine terminates, the image data reproducing component that displays the 'Itn image (4) reproduction is executed; the information processor includes: when the display memory is switched to the power saving state or restored from the state, the memory area is rewritten to be stored. a startup condition rewriting component for starting the routine; and a startup condition restoration member that restores the rewrite activation condition to the original condition after the routine is started. A power saving method according to the present invention is an information processing Implemented in the apparatus, the information processor has: a normal-starting component that initiates a predetermined routine when a predetermined pre-determined starting condition is satisfied; a terminating terminating member for terminating the routine; and An image data reproducing component for reproducing image data of a display memory for retaining image data displayed by a display device; the method comprises The following steps: switching the display memory to a power saving state that causes the image data to disappear; restoring the display memory from the power saving state; rewriting the stored starting condition to switch the display memory to the power saving state or recover from the state The routine is started; the startup condition of the rewrite is restored to the original condition after the routine is started; and the routine of terminating the startup is completed. 1336436 An electric power saving program according to the present invention is an information processing of the present invention. „ — computer play Included according to the benefit of the mother XL · Execution contains = according to this ", or facilitates a computer in the configuration of the present invention, when each of the two steps: .... The power of the data disappears can not save. When switching to cause an image, it is necessary to display the original condition before the state is restored from the state. Ma (in) (10) body (four) into electricity festival
上述的為了因應此必要性,本發明將使用 上述的一預先決定之堂 L, . L A彳Μ ± 式此*式必需伴隨一處理’當該 吊式終止時·-,促成勃并% ^ 成執仃顯不记憶體之影像資料再生,以便 將顯不記憶體復原為該常式開始時的肩始條件。再者,, 滿足一餘存之預先決定的啟動條件時啟動該常式,而^ 从、止Μ響應產生一輸入事件。根據本發明,該常式係 藉由當顯示記憶體切換成電力節省狀態或從該狀態復原時 重寫啟動條件而加以啟動;當顯示記憶體從電力節省狀態 復原時^者之後,則終止該常式;啟動條件被復原為原^ 條件,藉此使用在該常式終止時所執行之影像資料再生處 理復原顯示記憶體。 當一 0S未支援電力管理時,在從一電力節省狀態復原 時’ 0S並未執行顯示記憶體之影像資料再生及初始化。因 此,傳統上’顯示記憶體之復原係以一非常耗時之方法執 行’其令於顯示記憶體切換成電力節省狀態前保存顯示記 憶體之全部内容,而且當從電力節省狀態復原時復原為原 始條件。如果本發明應用於此情況,則顯示記憶體可經由 該常式終止時所執行之影像資料再生而復原,因此,切換 1336436 成電力節省狀態及從該狀態復原所要求之時間大幅縮短。 傳統上,在某政情況下,即使當一顯示if裝置切換成一 電力節省狀態因而顯示器裝置不必接收從顯示記憶體所傳 送之影像資料時,依舊無需對顯示έ己憶體採取任何電力節 省措施。如果本發明應用於此情況,則當顯示記憶體切換 成電力節省狀態時,將經由伴隨於常式終止之影像資料再 生而從電力節省狀態復原。因而,輕鬆將顯示記憶體切換 成電力節省狀態。 因而通常將顯示記憶體稱為一圖形記憶體或一視訊記憶 體’即一VRAM。造成影像資料消失之電力節省狀態像是 停止顯示記憶體之電力或控制時脈之供應的一狀態。顯示 5己憶體.之影像資料再生指每一啟動之應用程式都進行顯示 記憶體之影像資料再生。 S 一顯不記憶體從一電力節省狀態復原時,將終止一啟 動之常式。此情況下,該常式可藉由產生終止該啟動之常 式的一偽輸入事件而终止。替代上,於顯示記憶體從電力 節省狀態復原後,將終止該常式,以響應來自一鍵盤或一 滑鼠之作業輸入。 切換成一顯示記憶體的—兩_ 士々々 ^ 包力即省狀態或從該狀態復原 係由切換及復原一資訊處理写 龄里士々P此处 咨的一懸置或冬眠狀態加以執 行。當一顯示器裝置在—預杰 預先決定之電力節省狀態因而不 必傳送影像資料給顯示考择里士 一 攻置時,顯示記憶體將藉由停止 顯示記憶體之時脈或電力徂也 货應而切換成電力節省狀態。立 中將應用ACPI規格中之龜_ ’’不盗裝置的預先決定之電力節省 1336436 狀態D1至D3狀態。 一顯示記憶體之常式或影像資料再生之啟動可由一資訊 處理器中所安裝的一 0S予以執行。一螢幕節省器係當作常 式使用’而且啟動條件可儲存於〇S所參考的一暫存區中。 用以指定啟動時序的一時間條件可當作啟動條件使用。時 間條件可為一預先決定之時間的到來'一預先決定之時期 的流逝,或者一閒置狀態(無輸入狀態或無作業狀態)中一 預先決定之時期的流逝。 如果像是Windows11(註冊商標)Ντ 4.0之情況在一顯示記 憶體中除了影像資料外尚有—硬體游標資料,則在終止該 常式之同時必需初始化該部分。 【實施方式】 圖1出示根據本發明的一第一具體實施例之資訊處理器 的組態。如圖式所示,該資訊處理器具備:用以解譯及執 行一程式的一CPU(中央處理單元)丨 '用以儲存一啟動之程 式或資料的一主記憶體2、用以儲存BI〇s等的一 R〇M(唯讀 記憶體)3、用以儲存像是一 〇 s (作業系統)之程式的一硬碟 4、根據來自CPU 1之資料而執行顯示而且作為與一使用者 介接之構件的一監視器5、用以保留監視器5上顯示之影像 資料的一 VRAM(視訊RAM)6、用以控制從cpu i至 6之貧料傳輸而且根據VRAM 6之内容在監視器5上顯示的 〆圖形晶片7、像是-滑鼠和—鍵盤的_輸人裝置8,以及 用以控制資訊處理器其每一部分之電力供應的一電力控制 器9。該等部分經由一匯流排10相互連接《圖形晶片7更具 •12· 丄: 有控制VRAM 6之時脈供應和電力供應的一功能。 Γ 3/之職具有-電力管理功能,同時具有供0S 之“官理用的一介面。m〇s的—例示為所謂的一 APM(南級電力管理)BI〇S。此處使用像是Wind。〆(註冊 商標)NT 4.0等本身不支援電力管理的—⑽作為⑽。當⑽ 不支援電力管理時,在資訊處理器切換成—懸置或冬眠狀 態(以下簡稱為一懸置狀態)然後從該狀態復原時,〇S將不 執行所要求之VRAJV[内容復原。 然:,〇3具有稱為營幕節省器的一程式。當一間置狀 態持續達啟動前的-閒置時間時,將啟動營幕節省器,其 ^該閒置時_存於—暫存區中。閒置狀態指沒有來自像 是輸入裝置8之作業輸入的-狀態。此定義將考慮是否存 取硬碟4。於啟動螢幕節省器後,當藉由作業輸入等而釋 放閒置狀態時,將停止活動。然後〇s指導啟動之應用程式 再生VRAM 6的影像資料,以便將監視器上顯示之内容復 原為螢幕節省器啟動前的原始條件。 圖2出示圖i之資訊處理器的一電力管理系統。如圖式所 示,該系統具備:作為硬體21的一軟體介面之81〇3 22、 連接至BIOS 22且用以控制電力管理的一電力管理(pM)驅 動器23 '用以提供一軟體介面以執行使用者新增硬體之電 力官理的一客戶驅動器24,及根據來自PM驅動器23的一 拓導而重寫0S的一暫存區25之pm服務26。硬體21包括適 合用於電力管理的一輸入裝置8。 對於母板上之硬體,BI0S 22將控制電力管理功能,對 91437 •13- 1336436 於不在母板上之裝置,則以客戶驅動器24軟體加以支援。 不在母板上之裝置包括像是一外掛卡或一 PC卡。 PM服務26所重寫之暫存區部分係用以設定一螢幕節省 益啟動前的一閒置時間之部分。雖然pM服務26可重寫設 定時期,但使用者仍可設定當在一設定之預先決定時期中 /又有來自一鍵盤或一滑鼠之輸入時將啟動一螢幕節省器。 圖3出示在圊2之電力管理系統中切換成一懸置狀態的一 處理。圖3之步驟31至38對應於圖2所示的一資訊流〇至 CD。當硬體.21產生切換成一懸置狀態的一需求(步驟31) 時,BIOS 22通知PM驅動器23該需求(步驟32)。切換成一 懸置狀嘘之需求可由硬體2 1藉由像是根據按下一懸置鈕、 減少剩餘之電池容量、關上—蓋子等中斷而產生。該需求 可為一程式根據一使用者的_指示輸入所產生的一需求。 §收到切換成一懸置狀態的一需求通知時,pM驅動器 23通知每一客戶切換成一懸置狀態。其中最先通知服 務26(步驟33)。當收到此通知時,pM服務26保存被設定當 作螢幕節省器啟動前的一閒置時間之值,該數值係設定 於暫存區25中,而且取代設定為一秒鐘,其為一可設定之 最小單元(步驟34)。如果一應用程式或一裝置在一間置狀 態持續達該設定時間’則〇3將參考被設定當作閒置時間之 值而啟動螢幕節省器,因此螢幕節省器將於一秒鐘後啟 動。 於保存及重寫該設定值後’ PM服務26通知PM驅動器23 八>.’。果(步驟35)。當收到該通知時’ pM驅動器23通知其他 1336436 客戶24切換成一懸置狀態(步驟36)。當收到此通知時,每 —客戶驅動器24採取適當措施,像是保存當每一對應裝置 從懸置狀態復原時所要求之資訊。 當每一客户被通知切換成懸置狀態時,PM驅動器23通 知BIOS 22 : 0S的每一客戶24、26已準備好切換成懸置狀 態(步驟37)。當收到此通知時,bios 22去能像是一 PS/2鍵 盤、一PS/2滑鼠、一USB裝置等所有輸入裝置,而且存取 懸置所需之硬體,以便於一秒鐘後將系統切換成懸置狀 態。於經過上述之重寫後的一設定之閒置時間,亦即一秒 鐘後’則啟動螢幕節省器。 圖4出示從一懸置狀態復原時所造成的一資訊流。圖5出 示從懸置狀態復原時執行的一處理。圖5之步驟5 1至5 7所 執行之程序對應於圖4所示之資訊流〇至Q)。當根據一電 源按紐或一輸入裝置的一作業、一數據機或一計時器的一 作業等而回復所需之電力供應而且BIOS 22辨識已產生從 懸置狀態復原的一需求(步驟5 1)時,BIOS 22通知PM驅動 器23從懸置狀態復原之需求(步驟52)。 當收到此復原需求之通知時,PM驅動器23通知每一客 戶從懸置狀態復原。PM驅動器23最先通知PM服務26從懸 置狀態復原(步驟53)。當收到此通知時,pm服務26以保存 之設定值取代設定於暫存區中的一螢幕節省器啟動前之閒 置時間,以便將該值轉回切換成懸置狀態前的原始設定值 (步驟54)。然後PM驅動器23同時通知其他客戶從懸置狀態 復原(步驟55)。當收到此通知時,每一客戶驅動器24根據 1336436 保存之資訊 原始條件。 將每一對應裝置復原為切換成懸置狀態前的 於通知每一客戶從懸置狀態復原後,PM驅動器23通知 22 : 0S的每一客戶已從懸置狀態復原(步驟%卜當 收到此通知時,BI〇s 22從硬體產生一鍵輸入之偽事件(步 驟57)。根據該鍵輸入事件,〇s終止螢幕節省器之活動。 其中〇S指導每—啟動之制程式根據用以復原螢幕節省器 啟動前之原始顯示條件的原始功能而執行v R A m之影像資 料再生。其造成將懸置狀態期間毀損之VRAM内容恢復, 以及將監視器之顯示條件復原為切換成懸置狀態前的原始 條件。當0S為Wind〇WSR(註冊商標)NT 4〇時,VRam中除 了影像資料外’尚有—硬體游標資料,因此同時必需經由 一視訊驅動器初始化該部分β 根據本具體實施例,—VRA_容將利用―螢幕節省器 終止時所使用的-影像資料再生功能而復原為切換成一懸 置狀態前之原始條件,因而,相較於在切換成一懸置狀態 月J先保存VRAM内谷並且根據保存之資料從懸置狀態復 原的先前技藝之技術,切換成懸置狀態或從該狀態復原所 要求之時間將大幅縮短。 圖6出示根據本發明之另一 統。雖然其使用WindowsR(註 但圖1之硬體組態亦可應用此系統。 冊商標)XP作為0S, 如圖6所示,此系統具備: 面之BIOS 62、用以規劃一 具體實施例的一電力管理系 冊商標)2000或WindowsR(註 用以提供當作與硬體61的一介 監視器進入一電力節省模式的 1336436 一視訊迷你埠驅動器63、用以控制電力管理的_pM驅動 器64,及根據來自PM驅動器64的一通知而重寫及復原〇s 的一暫存區65之PM服務66。 圖7出示在圖6之電力管理系統中關閉監視器電源的一處 理。當用以管理來自一使用者及相關聯計時器的一輸入其 出現/消失的一核心之電力管理員根據於使用者設定之關 閉監視器電源前一閒置時間期間並無來自一使用者之輸入 的事實而決定關閉監視器電源時(步驟,將通知一視訊 槔驅動器該.決定。最後’呼叫一視訊迷你埠驅動器、由該 驅動器所呼叫的一視訊BIOS或者一平板形狀而且適合當作 圖形晶片的一 ACPI BIOS控制硬體(步驟72),並且規劃監 視器進入一電力節省模式(步驟75)。 根據本發明,螢幕節省器係於規劃監視器進入電力節省 模式前啟動(步驟73),而且視訊迷你埠驅動器停止經由圖 形晶片的一 VRAM之時脈供應或電力供應(步驟74),以便 將VRAM切換成一電力節省狀態。於步驟73之處理中,類 似於上述圖2和3所示之具體實施例,設定於暫存區65中的 一螢幕節省器啟動前之間置時間係由PM服務66藉由PM驅 動器64加以保存’而且以小於一秒鐘的一數值加以取代, 使螢幕節省器可於一秒鐘内啟動。圖6之參考數字Q至Q) 出示所產生的一資訊流。 於步驟75,視訊迷你埠驅動器63停止經由圖形晶片至監 視器之視訊輸出。再者,停止水平同步化信號和垂直同步 化信號之傳送,或者將背光關機。進而造成監視器關機。 1336436 圖8出示如以上所示於監視器切換成一關閉狀態後復原 為一導通狀態的一處理(即ACPI規格中所述之d3狀態)。圖 9之參考數字Θ至G)出示所產生的一資訊流。當一鍵盤或 —滑鼠之作業造成一中斷時,將通知系統BIOS 62(步驟 8 1)。此時,螢幕節省器之活動並未終止,因為控制尚未 轉給0S。 §收到中斷通知時’糸統B10 S 6 2通知p Μ驅動器6 4 :監 視器將復原為導通狀態(步驟82)。ΡΜ驅動器64通知ΡΜ服 務66和視訊迷你埠驅動器63 ^當收到此通知時,ρΜ服務 66以保存之值取代設定於暫存區中的一螢幕節省器啟動前 之閒置時間(步驟83)。 於收到復原為導通狀態之通知後,視訊迷你埠驅動器63 開始經由圖形晶片之VRAM的時脈供應或電力供應。其造 成VRAM從電力節省狀態復原。再者,視訊迷你埠驅動器 63開始已停止之給監視器的視訊輸出供應及水平同步化信 號#垂直同步化彳s號的傳送,而且點亮已關閉之背光(步 驟85) »其造成將監視器復原為導通狀態。 然後,當使用者操作—輸入裝置時,螢幕節省器將停 止’並執仃VRAM之影像資料再生,而且監視器再度顯示 當監視器切換成關閉狀態時顯示的影像。 根據本發明之具體實施例一 内容係利用營幕節 省器^時所執行之影像資料再生功能而復原為切換成一 電力即令狀@刖的原始條件,因而當監視器關機時可輕齡 停止VRAM之時脈或電力供應,以實現電力之節省。“ 1336436 本發明不以上诚且邮_ 处具體實施例為限,而且可在一適+夕政 正具體貫施例中實伟 ^ 瓦作。例如,雖然在以上說明中,— 節省器係於切換成—+ 爱秦 、 電力節省狀態時啟動,但取而件 螢幕節省器可在從恭〜 ’ #攸包力節省狀態復原時啟動。然而, 情況為:當替蓋y ,,、 禾 愛幕即名器啟動時〇S將VRAM中儲存之資粗 存至主記憶體,則從 、’叶保 貝J將不期待此種方法,因為在從電… 狀態復原期間,保在次 ^ '、子之貧料將消失。如果在從電力節 怨復原時啟動營墓銘义、 切京眷即渴态,螢幕上將顯示未定義之内容 續一段時間.·,直到螢幕節省器啟動為止。 、 [本發明之優勢] 如以上所述,根據本發明的一常式係於滿足所健存的一 啟動條件時啟動’而且當其活動終止時將執行—顯示記 憶體之影像資料再生,因而,該常式將被啟動而且藉由在 切換成-電力節省狀態或從該狀態復原時重寫啟動條件而 將啟動條件復原為原始條件。因此,可將顯示記憶體切換 成造成顯示記憶體之内容毁損的一電力節省狀態,或從該 狀態復原,無需保存及再度轉回顯示記憶體内容。 因此’即使因為0S本身未支援電力銪龙 谀€刀即噌,在切換成像 是一懸置或一冬眠狀態等造成一領示夺惜种& — ^ 4不。己憶體内容毁損的一 電力節省狀態或從該狀態復原時,一 os柏土& 亚未執行顯示記憶 體之影像資料再生,而可輕鬆執行切換成此—電力節省狀 態’或從該狀態復原。再者,當-顯示器裝置切換:像是 一關閉狀態的一電力節省模式時,可軔穸e L a J苹二止顯示記憶體 之時脈或電力供應,因而進一步改良電力之Μ… 91437 19In order to cope with this necessity, the present invention will use the above-mentioned pre-determined hall L, . LA彳Μ ± This type must be accompanied by a process 'when the hanging is terminated ·- The reproduction of the image data of the memory is performed in order to restore the memory to the initial condition of the beginning of the routine. Furthermore, the routine is started when a predetermined starting condition is satisfied, and an input event is generated by the response. According to the present invention, the routine is initiated by rewriting the activation condition when the display memory is switched to or restored from the power saving state; when the display memory is restored from the power saving state, the termination is terminated. The normal condition; the activation condition is restored to the original condition, whereby the display memory is restored using the image data reproduction processing executed at the time of termination of the routine. When 0S does not support power management, the image data reproduction and initialization of the display memory is not performed when recovering from a power saving state. Therefore, the conventional 'display memory recovery is performed in a very time consuming manner', which saves the entire contents of the display memory before the display memory is switched to the power saving state, and is restored to the time when the power saving state is restored. Original condition. If the present invention is applied to this case, the display memory can be restored by the reproduction of the image data executed when the routine is terminated. Therefore, the time required to switch 1336436 to the power saving state and to recover from the state is greatly shortened. Conventionally, in a certain political situation, even when the display if device is switched to a power saving state and the display device does not have to receive the image data transmitted from the display memory, there is still no need to take any power saving measures for displaying the memory. If the present invention is applied to this case, when the display memory is switched to the power saving state, it is restored from the power saving state via the reproduction of the image data accompanying the routine termination. Therefore, it is easy to switch the display memory to the power saving state. Therefore, the display memory is usually referred to as a graphic memory or a video memory, i.e., a VRAM. The power saving state that causes the image data to disappear is like a state in which the power of the memory is stopped or the supply of the clock is controlled. Displaying 5 Replica. Image data reproduction means that each launched application performs display image data reproduction. When a memory is restored from a power saving state, the startup routine will be terminated. In this case, the routine can be terminated by generating a pseudo input event that terminates the normalization of the startup. Alternatively, after the display memory is restored from the power saving state, the routine is terminated in response to a job input from a keyboard or a mouse. Switching to a display memory - two _ 士 ^ 包 包 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或 或When a display device is in a pre-determined power saving state, and thus does not have to transmit image data to display the selection of a test, the display memory will be stopped by displaying the clock or power of the memory. Switch to power save state. Lieutenant will apply the pre-determined power savings of the turtle _ ’’ in the ACPI specification 1336436 Status D1 to D3. The activation of a display memory or the reproduction of image data can be performed by an OS installed in an information processor. A screen saver is used as a routine' and the start condition can be stored in a temporary storage area referenced by the 〇S. A time condition to specify the start timing can be used as a start condition. The time condition may be the lapse of a predetermined time period of 'a predetermined period of time', or a predetermined period of time in an idle state (no input state or no job state). In the case of Windows 11 (registered trademark) Ντ 4.0, there is a hardware cursor data in addition to the image data in the display memory, and the part must be initialized at the same time as the routine is terminated. [Embodiment] FIG. 1 shows a configuration of an information processor according to a first embodiment of the present invention. As shown in the figure, the information processor has a CPU (Central Processing Unit) for interpreting and executing a program, a main memory 2 for storing a startup program or data, for storing BI. 〇s, etc., a R 〇 M (read only memory) 3, a hard disk 4 for storing a program such as a 〇 (operation system), performing display according to data from the CPU 1 and using it as one a monitor 5 for interfacing the component, a VRAM (video RAM) 6 for retaining image data displayed on the monitor 5, for controlling the poor material transfer from the cpu i to 6 and according to the content of the VRAM 6 A graphic wafer 7 displayed on the monitor 5, a device 8 like a mouse and a keyboard, and a power controller 9 for controlling the power supply of each portion of the information processor. These portions are connected to each other via a bus bar 10. "Graphic wafer 7 is more 12". There is a function of controlling the clock supply and power supply of the VRAM 6. Γ 3/ has a power management function, and has an interface for the use of 0S. The m〇s are exemplified as a so-called APM (Southern Power Management) BI〇S. Wind.〆 (registered trademark) NT 4.0 does not support power management itself—(10) as (10). When (10) does not support power management, the information processor switches to suspend or hibernate (hereinafter referred to as a suspended state). Then, when recovering from this state, 〇S will not execute the required VRAJV [content recovery. However: 〇3 has a program called a camp saver. When a set state continues until the pre-start-id time The camp saver will be activated, which is stored in the temporary storage area when idle. The idle state means that there is no status from the job input such as the input device 8. This definition will consider whether to access the hard disk 4. After the screen saver is started, when the idle state is released by the job input, etc., the activity is stopped. Then, the application that is started by the startup program reproduces the image data of the VRAM 6 to restore the content displayed on the monitor to the screen saver. Original before starting Figure 2 shows a power management system of the information processor of Figure i. As shown in the figure, the system has a software interface as a hardware 21 81 〇 32 22, connected to the BIOS 22 and used to control power. A managed power management (pM) driver 23' is used to provide a software interface to execute a client driver 24 of the user's newly added hardware power management, and to rewrite the OS based on a topology from the PM driver 23. A temporary service area 25 pm service 26. The hardware 21 includes an input device 8 suitable for power management. For the hardware on the motherboard, the BIOS 22 will control the power management function, and the 91437 • 13-1336436 is not in the mother. The device on the board is supported by the client driver 24 software. The device not on the motherboard includes an external card or a PC card. The portion of the temporary storage area rewritten by the PM service 26 is used to set a screen saver. Part of an idle time before startup. Although the pM service 26 can rewrite the set period, the user can still set a start time when there is a keyboard or mouse input in a predetermined period of time. Screen saver. Figure 3 shows a process of switching to a suspended state in the power management system of Figure 2. Steps 31 through 38 of Figure 3 correspond to a message flow shown in Figure 2 to the CD. When the hardware .21 is switched to a suspension When a requirement of the state is set (step 31), the BIOS 22 notifies the PM driver 23 of the demand (step 32). The need to switch to a suspended state can be reduced by the hardware 2 1 by pressing a suspension button, The remaining battery capacity, closing-cover, etc. are generated. This requirement may be a demand generated by a program according to a user's _ indication. § When receiving a demand notification that is switched to a suspended state, the pM driver 23 Notify each customer to switch to a suspended state. The service 26 is first notified (step 33). When receiving this notification, the pM service 26 saves the value set as the idle time before the screen saver is started. The value is set in the temporary storage area 25, and instead of being set to one second, it is one. The smallest unit set (step 34). If an application or a device continues in the set state for the set time, then 〇3 will start the screen saver with reference to the value set as the idle time, so the screen saver will start after one second. After saving and rewriting the set value, the 'PM service 26 notifies the PM driver 23 VIII>.'. (Step 35). When the notification is received, the pM driver 23 notifies the other 1336436 clients 24 to switch to a suspended state (step 36). Upon receipt of this notification, each client driver 24 takes appropriate action, such as saving the information required when each corresponding device is restored from the suspended state. When each client is notified to switch to the suspended state, the PM driver 23 notifies each client 24, 26 of the BIOS 22:0S that it is ready to switch to the suspended state (step 37). Upon receiving this notification, the bios 22 can be used as a PS/2 keyboard, a PS/2 mouse, a USB device, etc., and access the hardware required for the suspension for one second. Then switch the system to the suspended state. The screen saver is activated after a set of idle time after the above rewriting, that is, after one second. Figure 4 shows a flow of information caused by a recovery from a suspended state. Fig. 5 shows a process performed when restoring from the suspended state. The procedure executed in steps 5 to 5 of Fig. 5 corresponds to the flow of information shown in Fig. 4 to Q). Recovering the required power supply based on a power button or a job of an input device, a job of a modem or a timer, etc. and the BIOS 22 recognizes that a request has been generated to recover from the suspended state (step 5 1 At the time, the BIOS 22 notifies the PM driver 23 of the need to restore from the suspended state (step 52). Upon receiving the notification of the recovery request, the PM driver 23 notifies each customer to recover from the suspended state. The PM driver 23 first notifies the PM service 26 to resume from the suspended state (step 53). When receiving this notification, the pm service 26 replaces the idle time before the start of a screen saver set in the temporary storage area with the saved set value, so as to convert the value back to the original set value before switching to the suspended state ( Step 54). The PM driver 23 then simultaneously notifies other clients to resume from the suspended state (step 55). Upon receipt of this notification, each client driver 24 saves the information based on the original condition according to 1336436. After restoring each corresponding device to switch to the suspended state, after notifying each client to recover from the suspended state, the PM driver 23 notifies each client of 22: 0S that it has recovered from the suspended state (step % received when received) At the time of this notification, BI〇s 22 generates a one-key input pseudo event from the hardware (step 57). According to the key input event, 〇s terminates the activity of the screen saver. 〇S guides each-starting program according to the use The image data reproduction of v RA m is performed by restoring the original function of the original display condition before the screen saver is started. This causes the VRAM content to be destroyed during the suspended state to be restored, and the display condition of the monitor is restored to be switched to the suspension. The original condition before the state. When 0S is Wind〇WSR (registered trademark) NT 4〇, VRam has 'hard-cursor data except for the image data, so it is necessary to initialize the part via a video driver. In an embodiment, the VRA_capacity is restored to the original condition before switching to a suspended state by using the image data reproducing function used when the screen saver is terminated, and thus, In the prior art technique of saving the VRAM inner valley and switching from the suspended state according to the saved data, the time required to switch to the suspended state or to recover from the state is greatly shortened. Show another system according to the present invention. Although it uses WindowsR (note that the hardware configuration of Figure 1 can also be applied to this system. Registered trademark) XP as 0S, as shown in Figure 6, this system has: Face BIOS 62, Used to plan a power management system trademark of a specific embodiment) 2000 or WindowsR (note for providing a 1336436-video mini-driver 63 as a monitor with the hardware 61 to enter a power saving mode for controlling The power management _pM driver 64, and the PM service 66 of a temporary storage area 65 that rewrites and restores 〇s according to a notification from the PM driver 64. Figure 7 shows the power supply being turned off in the power management system of Figure 6. A process that is used by a power manager to manage the appearance/disappearance of an input from a user and associated timers based on the user's settings to turn off the monitor power supply. During the set time period, when there is no input from a user, it is decided to turn off the monitor power supply (step, the video driver will be notified. The final decision is made.) Finally, a video mini-driver is called, and a video called by the drive is called. The BIOS or a flat panel shape is suitable as an ACPI BIOS control hardware for the graphics chip (step 72), and the planning monitor enters a power save mode (step 75). According to the present invention, the screen saver is tied to the planning monitor. The power save mode is initiated (step 73), and the video mini drive stops the clock supply or power supply via a VRAM of the graphics chip (step 74) to switch the VRAM to a power save state. In the process of step 73, similar to the specific embodiment shown in FIGS. 2 and 3 above, the interim time before the start of a screen saver set in the temporary storage area 65 is performed by the PM service 66 by the PM driver 64. Save 'and replace it with a value less than one second to enable the screen saver to start in one second. The reference number Q to Q) of Fig. 6 shows the generated information stream. In step 75, the video mini-driver 63 stops the video output via the graphics chip to the monitor. Furthermore, the transmission of the horizontally synchronized signal and the vertically synchronized signal is stopped, or the backlight is turned off. This causes the monitor to shut down. 1336436 Figure 8 shows a process (i.e., the d3 state described in the ACPI specification) that is restored to a conducting state after the monitor is switched to a closed state as shown above. The reference numerals Θ to G) in Fig. 9 show the generated information stream. When a keyboard or mouse operation causes an interruption, the system BIOS 62 is notified (step 8 1). At this point, the screen saver activity has not been terminated because the control has not been transferred to OS. § When the interrupt notification is received, the system B10 S 6 2 notifies the p Μ drive 6 4 that the monitor will be restored to the on state (step 82). The drive 64 notifies the service 66 and the video mini drive 63. When this notification is received, the service 66 replaces the idle time before the start of a screen saver set in the temporary storage area with the saved value (step 83). Upon receipt of the notification of the return to the on state, the video mini-driver 63 begins the clock supply or power supply via the VRAM of the graphics chip. It causes the VRAM to recover from the power saving state. Furthermore, the video mini-driver 63 starts the transmission of the video output supply to the monitor and the horizontal synchronization signal #vertical synchronization 彳s number, and the backlight is turned off (step 85) » it causes monitoring The device is restored to the on state. Then, when the user operates the input device, the screen saver will stop and reproduce the image data of the VRAM, and the monitor will again display the image displayed when the monitor is switched to the off state. According to the specific embodiment of the present invention, the content is restored to the original condition of switching to a power, ie, the order @刖, by using the image data reproducing function executed by the camp saver, so that the VRAM can be stopped when the monitor is turned off. Clock or power supply to achieve power savings. " 1336436 The present invention is not limited to the specific embodiment of the present invention, and can be implemented in a specific embodiment. For example, although in the above description, the saver is attached to Switch to -+ Ai Qin, power saving state is activated, but the screen saver can be started when the recovery from Christine ~ '#攸包力saving state. However, the situation is: when the cover y,,, Wo love When the screen is started, 〇S will store the resources stored in the VRAM to the main memory, then, 'Ye Baobei J will not expect this method, because during the recovery from the state of the state... The poor material of the child will disappear. If the cemetery is started when the power is restored, the unspoken content will be displayed on the screen for a while. Until the screen saver starts. [Advantages of the Invention] As described above, a conventional method according to the present invention is to activate the image data of the display memory when the 'starting condition' is satisfied when the activation condition is satisfied, and thus, the image data of the display memory is reproduced. This routine will be activated and Switching to the power saving state or rewriting the starting condition from the state to restore the starting condition to the original condition. Therefore, the display memory can be switched to a power saving state causing the content of the display memory to be damaged, or from The state is restored, there is no need to save and revert back to the display memory content. Therefore, even if the 0S itself does not support the power, the image is a suspension or a hibernation state. & - ^ 4 No. When a power saving state of the content of the memory is destroyed or restored from the state, the image data reproduction of the display memory is performed, and the switching can be easily performed to this - the power Saving state or recovering from this state. Furthermore, when the display device switches: like a power saving mode in a closed state, the clock or power supply of the memory can be displayed. Therefore, the power is further improved... 91437 19
I3304JO 【圖式簡單說明】 圖1係出示根據本發明一具體實施例的一資訊處理器之 組態的一方塊圖; 圖2係出示在圖以資訊處理器中的一電力管理系統之— 方塊圖; 圖如出不在圖2之電力官理系統中切換成一懸置狀態的 一處理之一流程圖; 圖4係出示圖2之電力管理系統中從一懸置狀態復原時所 造成的一資.訊流之一方塊圖; 圖5係出示從一懸置狀態復原時由圖2之電力管理系統所 執行的一處理之一流程圖; 圖6係出示根據本發明另一具體實施例的一電力管理系 統之一方塊圖; 處理之一流裎圖,其係 圖7係出示關閉監視器電源的― 由圖6之電力管理系統所執行; 導通狀態的一處理之一流 圖8係出示使監視器復原為— 程圖’其係由圖6之電力管理系統所執行;以及 圖9係出示在圖8之處理中的一資訊流之 【主要元件符號說明】 1 中央處理單元 2 主記憶體 3 唯讀記憶體 4 硬碟 5 監視器 •20. 1336436 6 視訊隨機存取記憶體 7 圖形晶片 8 輸入裝置 9 電力控制器 10 匯流排 21,61 硬體 22 基本輸入輸出糸統 23, 64 電力管理驅動器 24 -客戶驅動器 25, 65 暫存區 26, 66 電力管理服務 62 系統基本輸入輸出系統和視訊基本輸入輸出系統 63 視訊迷你埠驅動器BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing the configuration of an information processor according to an embodiment of the present invention; FIG. 2 is a block diagram showing a power management system in an information processor. FIG. 4 is a flow chart showing a process of switching to a suspended state in the power government system of FIG. 2; FIG. 4 is a diagram showing a situation in which the power management system of FIG. 2 is restored from a suspended state. Figure 5 is a block diagram showing a process performed by the power management system of Figure 2 when recovering from a suspended state; Figure 6 is a diagram showing a process according to another embodiment of the present invention. Block diagram of a power management system; processing one of the flow diagrams, which is shown in Figure 7 for powering off the monitor - is performed by the power management system of Figure 6; one of the processes of the on state is shown in Figure 8 The recovery is as shown in Fig. 6 by the power management system of Fig. 6; and Fig. 9 is the main component symbol description of a information flow shown in the processing of Fig. 8 1 central processing unit 2 main memory 3 read Memory 4 Hard Disk 5 Monitor • 20. 1336436 6 Video Random Access Memory 7 Graphics Chip 8 Input Device 9 Power Controller 10 Busbar 21, 61 Hardware 22 Basic Input Output System 23, 64 Power Management Driver 24 - Customer Driver 25, 65 Scratch Area 26, 66 Power Management Service 62 System Basic Input Output System and Video Basic Input Output System 63 Video Mini Drive
-21 --twenty one -