TWI465914B - Method for docking and undocking peripheral apparatus during transition of power management mode - Google Patents

Method for docking and undocking peripheral apparatus during transition of power management mode Download PDF

Info

Publication number
TWI465914B
TWI465914B TW101124263A TW101124263A TWI465914B TW I465914 B TWI465914 B TW I465914B TW 101124263 A TW101124263 A TW 101124263A TW 101124263 A TW101124263 A TW 101124263A TW I465914 B TWI465914 B TW I465914B
Authority
TW
Taiwan
Prior art keywords
peripheral device
electronic device
program
peripheral
power management
Prior art date
Application number
TW101124263A
Other languages
Chinese (zh)
Other versions
TW201403327A (en
Inventor
Kim Yeung Sip
Ching Piao Kuan
Hung Wu Shih
Yen Liang Lin
Yi Ling Lien
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to TW101124263A priority Critical patent/TWI465914B/en
Publication of TW201403327A publication Critical patent/TW201403327A/en
Application granted granted Critical
Publication of TWI465914B publication Critical patent/TWI465914B/en

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)

Description

在電源管理模式轉換時裝卸週邊裝置的方法Method for converting fashion unloading peripheral devices in power management mode

本發明是有關於一種電子裝置的裝卸方法,且特別是有關於一種在電子裝置轉換電源管理模式時裝卸週邊裝置的方法。The present invention relates to a method of loading and unloading an electronic device, and more particularly to a method for unloading peripheral devices in a power conversion mode of an electronic device.

通用序列匯流排(Universal Serial Bus,USB)介面是連接電腦與週邊裝置的匯流排標準,也是一種輸入輸出介面的技術規範,其可提供裝置之間資料高速傳輸的通道,因此被廣泛地應用在電腦與週邊裝置之間的通訊上。而隨著通用序列匯流排傳輸速度的增加,隨身碟、硬碟等各式各樣的週邊裝置均採用此傳輸介面與主裝置連接,以供主裝置存取資料。The Universal Serial Bus (USB) interface is a busbar standard for connecting computers and peripheral devices. It is also a technical specification for input and output interfaces. It provides a channel for high-speed data transmission between devices, so it is widely used in Communication between the computer and peripheral devices. With the increase of the transmission speed of the universal serial bus, various peripheral devices such as a flash drive and a hard disk are connected to the main device by the transmission interface for the main device to access the data.

現今電腦的作業系統已能支援大部分週邊裝置的隨插即用,當使用者將週邊裝置插入電腦的連接埠時,作業系統可立即識別出裝置的種類、規格等資訊,從而驅動週邊裝置以存取資料。Nowadays, the operating system of the computer can support the plug-and-play of most peripheral devices. When the user inserts the peripheral device into the connection port of the computer, the operating system can immediately recognize the type and specifications of the device, thereby driving the peripheral device to Access data.

當使用者欲從電腦上移除週邊裝置時,為了避免因資料傳輸中斷造成資料遺失或是系統崩潰,目前的作法均需要使用者以手動的方式在電腦正在執行的程式中,找出與此週邊裝置相關的程式並將其關閉,然後點選作業系統的週邊裝置移除鍵,並選擇所要移除的週邊裝置。藉此,作業系統即會將此週邊裝置的驅動程式移除,並在移除之後 提示訊息以告知使用者可將週邊裝置拔除。最後,使用者才能進行拔除的動作。When the user wants to remove the peripheral device from the computer, in order to avoid data loss or system crash due to data transmission interruption, the current practice requires the user to manually find out the program in the program being executed by the computer. Install the program associated with the peripheral device and turn it off, then click the peripheral device removal button of the operating system and select the peripheral device to be removed. In this way, the operating system will remove the driver of the peripheral device and after removing it. A message is displayed to inform the user that the peripheral device can be removed. Finally, the user can perform the removal action.

上述的移除方式需要使用者依照順序逐步完成多項步驟,才能順利地將週邊裝置移除。然而,在使用者需要頻繁插拔週邊裝置,或是沒有時間操作電腦的情況下,這樣繁瑣的移除方式時常造成使用者困擾,甚至在趕時間時只能冒著資料遺失的風險直接插拔週邊裝置。The above removal method requires the user to gradually complete a plurality of steps in order to smoothly remove the peripheral device. However, in the case where the user needs to frequently insert and remove the peripheral device, or does not have time to operate the computer, such a cumbersome removal method often causes user trouble, and even in the hurry, the risk of data loss can be directly inserted and removed. Peripheral device.

有鑑於此,本發明提出一種在電源管理模式轉換時裝卸週邊裝置的方法。In view of this, the present invention proposes a method of switching a fashion peripheral device in a power management mode.

本發明提出一種在電源管理模式轉換時裝卸週邊裝置的方法,適於由電子裝置裝卸週邊裝置。此方法係將週邊裝置安裝於電子裝置,而當電子裝置的上蓋關閉時,強制將電子裝置上與週邊裝置相關之程式關閉,以將週邊裝置卸除,並在所述程式關閉後,進入省電模式。The invention provides a method for switching a fashion unloading peripheral device in a power management mode, which is suitable for loading and unloading peripheral devices by an electronic device. The method is to install the peripheral device on the electronic device, and when the upper cover of the electronic device is closed, forcibly close the program related to the peripheral device on the electronic device to remove the peripheral device, and enter the province after the program is closed. Electrical mode.

在本發明之一實施例中,上述將週邊裝置安裝於電子裝置的步驟包括偵測是否有週邊裝置連接至電子裝置,而當偵測到週邊裝置時,執行週邊裝置的驅動程式,以驅動週邊裝置。In an embodiment of the invention, the step of installing the peripheral device on the electronic device includes detecting whether a peripheral device is connected to the electronic device, and when detecting the peripheral device, executing a driver of the peripheral device to drive the periphery Device.

在本發明之一實施例中,上述強制關閉與週邊裝置相關之程式,以將週邊裝置卸除的步驟包括關閉電子裝置正在執行且會使用到週邊裝置功能的應用程式,並在所述應用程式關閉後,將週邊裝置的驅動程式移除。In an embodiment of the present invention, the step of forcibly closing the program associated with the peripheral device to remove the peripheral device includes: closing an application that is being executed by the electronic device and using the function of the peripheral device, and in the application After turning off, remove the driver of the peripheral device.

在本發明之一實施例中,在上述將週邊裝置安裝於電子裝置的步驟之後,所述方法更接收進入省電模式的觸發訊號,以提示使用者關閉電子裝置上與週邊裝置相關之程式,並在所述程式關閉後,控制電子裝置進入省電模式。In an embodiment of the present invention, after the step of installing the peripheral device on the electronic device, the method further receives a trigger signal into the power saving mode to prompt the user to close the program related to the peripheral device on the electronic device. And after the program is turned off, the control electronic device enters the power saving mode.

在本發明之一實施例中,在上述提示使用者關閉電子裝置上與週邊裝置相關之程式的步驟之後,若使用者未關閉所述程式,所述方法會在儲存所述程式的背景(context)資訊後,控制電子裝置進入省電模式。In an embodiment of the present invention, after the step of prompting the user to close the program related to the peripheral device on the electronic device, if the user does not close the program, the method stores the background of the program (context) After the information, the control electronic device enters the power saving mode.

在本發明之一實施例中,在上述儲存所述程式的背景資訊,並控制電子裝置進入省電模式的步驟之後,所述方法更接收電子裝置或週邊裝置之卸除鍵的觸發訊號,而將電子裝置喚醒以提示使用者將電子裝置上與週邊裝置相關之程式關閉,並在所述程式關閉後,進入省電模式。In an embodiment of the present invention, after the step of storing the background information of the program and controlling the electronic device to enter the power saving mode, the method further receives a trigger signal of the uninstall button of the electronic device or the peripheral device, and The electronic device is woken up to prompt the user to close the program related to the peripheral device on the electronic device, and enter the power saving mode after the program is turned off.

在本發明之一實施例中,在上述儲存所述程式的背景資訊,並控制電子裝置進入省電模式的步驟之後,所述方法更接收喚醒訊號,而將電子裝置喚醒以讀取所述程式的背景資訊,並回復所述程式的執行狀態。其中,所述的喚醒訊號是在電子裝置的按鍵被觸發時所產生。In an embodiment of the present invention, after the step of storing the background information of the program and controlling the electronic device to enter the power saving mode, the method further receives the wake-up signal, and wakes up the electronic device to read the program. Background information and reply to the execution status of the program. The wake-up signal is generated when a button of the electronic device is triggered.

在本發明之一實施例中,在上述進入省電模式,並卸除週邊裝置的步驟之後,所述方法更接收喚醒訊號,而將電子裝置喚醒以重新偵測週邊裝置,並執行週邊裝置的驅動程式,以驅動週邊裝置。其中,所述的喚醒訊號是在上蓋被開啟時觸發產生。In an embodiment of the present invention, after the step of entering the power saving mode and removing the peripheral device, the method further receives the wake-up signal, wakes up the electronic device to re-detect the peripheral device, and executes the peripheral device. Driver to drive peripherals. The wake-up signal is triggered when the upper cover is opened.

基於上述,本發明之在電源管理模式轉換時裝卸週邊 裝置的方法係在電子裝置的上蓋關閉時,強制將電子裝置上與週邊裝置相關的程式關閉,之後才進入省電模式並卸除週邊裝置。藉此,可讓使用者可在最短時間內裝卸週邊裝置,而不會造成資料遺失或系統崩潰。Based on the above, the present invention switches the fashion unloading periphery in the power management mode. The method of the device is to forcibly close the program related to the peripheral device on the electronic device when the upper cover of the electronic device is closed, and then enter the power saving mode and remove the peripheral device. Thereby, the user can load and unload the peripheral device in the shortest time without causing data loss or system collapse.

為讓本發明之上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the present invention will be more apparent from the following description.

本發明藉由偵測電子裝置的上蓋是否關閉,從而決定要在電子裝置上提示訊息以要求使用者手動將電子裝置上與週邊裝置相關的程式關閉,或是強制電子裝置關閉這些程式,而將週邊裝置卸除。藉此,可省略繁瑣的裝卸程序,讓使用者可在最短時間內裝卸週邊裝置,且不會在拔除週邊裝置時造成資料遺失或系統崩潰。The invention determines whether to close the upper cover of the electronic device, thereby determining to prompt the electronic device to prompt the user to manually close the program related to the peripheral device on the electronic device, or to force the electronic device to close the program, and The peripheral device is removed. Thereby, the cumbersome loading and unloading procedure can be omitted, so that the user can load and unload the peripheral device in the shortest time without causing data loss or system collapse when the peripheral device is removed.

圖1是依照本發明一實施例所繪示之在電源管理模式轉換時裝卸週邊裝置的方法流程圖。請參照圖1,本實施例適於由電子裝置裝卸週邊裝置,所述電子裝置例如是桌上型電腦、筆記型電腦、工作站等終端裝置,而所述週邊裝置例如是採用通用序列匯流排(Universal Serial Bus,USB)介面或雷電(Thunderbolt)介面連接電子裝置的硬碟、隨身碟、光碟、圖形處理單元(Graphic Processing Unit,GPU)、顯示器或光碟機等裝置。以下說明本實施例週邊裝置裝卸方法的詳細步驟:首先,將週邊裝置安裝於電子裝置(步驟S102)。其 中,電子裝置在正常運作模式(即S0)下,例如會偵測是否有週邊裝置連接至電子裝置,而當使用者將週邊裝置連接至電子裝置(例如將週邊裝置的USB插頭插入電子裝置上的USB插座)時,電子裝置即會偵測到有新的週邊裝置插入,並識別此週邊裝置的種類及規格,從而自動執行此週邊裝置的驅動程式,以驅動週邊裝置。1 is a flow chart of a method for switching a fashion peripheral device in a power management mode according to an embodiment of the invention. Referring to FIG. 1, the embodiment is suitable for loading and unloading peripheral devices by an electronic device, such as a desktop device, a notebook computer, a workstation, etc., and the peripheral device is, for example, a universal serial bus ( Universal Serial Bus (USB) interface or Thunderbolt interface to connect electronic devices such as hard drives, pen drives, optical discs, graphic processing units (GPUs), displays or CD players. The detailed steps of the peripheral device attaching and detaching method of the present embodiment will be described below. First, the peripheral device is mounted on the electronic device (step S102). its In the normal operation mode (ie, S0), for example, the device detects whether a peripheral device is connected to the electronic device, and when the user connects the peripheral device to the electronic device (for example, inserting the USB plug of the peripheral device into the electronic device) When the USB socket is used, the electronic device detects the insertion of a new peripheral device and recognizes the type and specifications of the peripheral device, thereby automatically executing the driver of the peripheral device to drive the peripheral device.

在週邊裝置驅動之後,電子裝置即可使用週邊裝置提供的功能。其中,使用者可執行週邊裝置的相關應用程式,並透過應用程式控制週邊裝置或是使用週邊裝置的功能。其中,當電子裝置的上蓋關閉時,電子裝置的作業系統即準備進入睡眠模式(sleep,即S3模式)或冬眠模式(hibernate,即S4模式)等省電模式。此時,電子裝置會先強制關閉與週邊裝置相關之至少一個程式,以將週邊裝置卸除(步驟S104)。其中,電子裝置例如會先關閉電子裝置正在執行且會使用到週邊裝置功能的應用程式,而在所述應用程式關閉後,再將週邊裝置的驅動程式移除,藉此將週邊裝置完整且安全地卸除,而可確保之後週邊裝置的拔除不會造成電子裝置的資料遺失或系統崩潰。After the peripheral device is driven, the electronic device can use the functions provided by the peripheral device. The user can execute the related application of the peripheral device and control the peripheral device or the function of the peripheral device through the application. Wherein, when the upper cover of the electronic device is closed, the operating system of the electronic device is ready to enter a power saving mode such as a sleep mode (sleep mode, ie, S3 mode) or a hibernate mode (hibernate mode). At this time, the electronic device first forcibly closes at least one program associated with the peripheral device to remove the peripheral device (step S104). The electronic device, for example, first turns off an application that is being executed by the electronic device and uses the function of the peripheral device, and after the application is closed, removes the driver of the peripheral device, thereby completing the peripheral device completely and safely. The ground is removed, and it can be ensured that the removal of the peripheral device does not cause the data of the electronic device to be lost or the system to collapse.

最後,在上述與週邊裝置相關之程式關閉後,電子裝置才進入省電模式(步驟S106)。其中,藉由上述自動將週邊裝置卸除的步驟,即可確保在省電模式下,當週邊裝置被拔除時,電子裝置與週邊裝置之間傳送的資料不會遺失,且不會因為週邊裝置被拔除而造成系統崩潰。Finally, after the above-described program associated with the peripheral device is turned off, the electronic device enters the power saving mode (step S106). Wherein, by the step of automatically removing the peripheral device, it is ensured that in the power saving mode, when the peripheral device is removed, the data transmitted between the electronic device and the peripheral device is not lost, and the peripheral device is not lost. Being removed caused the system to crash.

舉例來說,若安裝在電子裝置上的週邊裝置是一個外 接的圖形處理單元(Graphic Processing Unit,GPU),而電子裝置在正常運作(active)的模式下,會使用圖形處理單元來輔助其執行圖形運算。其中,當電子裝置的上蓋關閉時,一般是使用者已結束電子裝置的操作,而若使用者要離開現場,則有可能需要將外接的圖形處理單元拔除。此時,電子裝置與圖形處理單元之間的連結仍然存在,其間進行的工作也只是暫時中斷,若使用者強行將圖形處理單元拔除,極有可能會造成電子裝置的資料遺失或系統崩潰。因此,本實施例即在電子裝置的上蓋關閉時,直接強制關閉電子裝置上所有與週邊裝置相關之程式,以將週邊裝置卸除,從而避免上述的情況發生。For example, if the peripheral device mounted on the electronic device is an external device A graphic processing unit (GPU) is connected, and the electronic device uses a graphics processing unit to assist it in performing graphics operations in an active mode. Wherein, when the upper cover of the electronic device is closed, generally the user has finished the operation of the electronic device, and if the user wants to leave the site, the external graphic processing unit may need to be removed. At this time, the connection between the electronic device and the graphics processing unit still exists, and the work performed therebetween is only temporarily interrupted. If the user forcibly removes the graphics processing unit, it is highly likely that the data of the electronic device is lost or the system is collapsed. Therefore, in the embodiment, when the upper cover of the electronic device is closed, all programs related to the peripheral device on the electronic device are forcibly closed to remove the peripheral device, thereby avoiding the above situation.

需說明的是,上述實施例僅針對電子裝置上蓋關閉的情況,說明週邊裝置的卸除方式。然而,在電子裝置上蓋未關閉的情況下,本發明也提供相應的卸除方式,以對應使用者的不同操作,適當地將週邊裝置卸除,從而避免資料遺失或系統崩潰的情況發生。It should be noted that the above embodiment only describes the removal mode of the peripheral device only when the cover of the electronic device is closed. However, in the case where the cover of the electronic device is not closed, the present invention also provides a corresponding removal mode to appropriately dismount the peripheral device corresponding to different operations of the user, thereby avoiding data loss or system collapse.

圖2是依照本發明一實施例所繪示之週邊裝置裝卸方法的狀態轉換示意圖。圖3是依照本發明一實施例所繪示之在電源管理模式轉換時裝卸週邊裝置的方法流程圖。請同時參照圖2及圖3,本實施例說明電子裝置在正常運作模式(即S0模式)及省電模式(即S3模式或S4模式)之間轉換時,安裝及卸除週邊裝置的完整流程,以下即搭配圖2的狀態圖及圖3的流程圖說明週邊裝置裝卸方法的詳細步驟: 首先,在電子裝置處於正常運作模式(S0)的狀態202下,將週邊裝置安裝於電子裝置(步驟S302),從而進入週邊裝置已安裝的狀態204。FIG. 2 is a schematic diagram showing state transition of a peripheral device loading and unloading method according to an embodiment of the invention. FIG. 3 is a flow chart of a method for switching a peripheral device in a power management mode according to an embodiment of the invention. Referring to FIG. 2 and FIG. 3 simultaneously, this embodiment describes the complete process of installing and removing peripheral devices when the electronic device is switched between the normal operation mode (ie, S0 mode) and the power saving mode (ie, S3 mode or S4 mode). In the following, the detailed steps of the peripheral device loading and unloading method will be described with reference to the state diagram of FIG. 2 and the flowchart of FIG. 3. First, in a state 202 in which the electronic device is in the normal operation mode (S0), the peripheral device is mounted to the electronic device (step S302), thereby entering the state 204 in which the peripheral device has been installed.

在狀態204下,電子裝置會判斷電子裝置的上蓋是否關閉(步驟S304)。其中,若使用者關閉上蓋,則進入上蓋關閉狀態206,並由電子裝置強制關閉與週邊裝置相關之至少一個程式,以將週邊裝置卸除(步驟S306),而進入週邊裝置已卸除的狀態212。其中,當電子裝置完成進入省電模式的相關步驟後,則進入省電模式(S3或S4)的狀態214(步驟S308)。此時,若電子裝置接收到使用者開啟上蓋所觸發的喚醒訊號時,即會從省電模式喚醒,再次進入正常運作模式(S0)的狀態202,而重新偵測週邊裝置,並執行週邊裝置的驅動程式,以驅動週邊裝置(步驟S310)。In state 204, the electronic device determines if the upper cover of the electronic device is off (step S304). If the user closes the upper cover, the upper cover is closed, and the electronic device forcibly closes at least one program associated with the peripheral device to remove the peripheral device (step S306), and enters the state in which the peripheral device has been removed. 212. Wherein, after the electronic device completes the relevant steps of entering the power saving mode, the state 214 of the power saving mode (S3 or S4) is entered (step S308). At this time, if the electronic device receives the wake-up signal triggered by the user opening the upper cover, it will wake up from the power-saving mode, enter the state 202 of the normal operation mode (S0) again, and re-detect the peripheral device and execute the peripheral device. The driver to drive the peripheral device (step S310).

另一方面,在狀態204下,若使用者未關閉上蓋,則進入上蓋開啟狀態208,並且在接收到接收使用者控制電子裝置進入省電模式的觸發訊號時,進入提示關閉週邊裝置相關程式的狀態210,從而提示使用者關閉電子裝置上與週邊裝置相關之程式(步驟S312)。On the other hand, in the state 204, if the user does not close the upper cover, the user enters the upper cover open state 208, and when receiving the trigger signal for receiving the user control electronic device to enter the power saving mode, enters a prompt to close the peripheral device related program. State 210, thereby prompting the user to close the program associated with the peripheral device on the electronic device (step S312).

在狀態210下,電子裝置會判斷使用者是否有關閉相關程式(步驟S314)。其中,若使用者有關閉相關程式,則進入週邊裝置已卸除的狀態212。其中,當電子裝置完成進入省電模式的相關步驟後,則進入省電模式(S3或S4)的狀態214(步驟S316)。此時,若電子裝置接收到 使用者按壓按鍵(硬體按鍵或軟體按鍵)所觸發的喚醒訊號時,即會從省電模式喚醒,再次進入正常運作模式(S0)的狀態202,而重新偵測週邊裝置,並執行週邊裝置的驅動程式,以驅動週邊裝置(步驟S318)。In state 210, the electronic device determines if the user has closed the associated program (step S314). If the user has closed the relevant program, the state 212 in which the peripheral device has been removed is entered. Wherein, after the electronic device completes the relevant steps of entering the power saving mode, it enters the state 214 of the power saving mode (S3 or S4) (step S316). At this time, if the electronic device receives When the user presses the wake-up signal triggered by the button (hardware button or software button), it will wake up from the power-saving mode, enter the state 202 of the normal operation mode (S0) again, and re-detect the peripheral device and execute the peripheral device. The driver to drive the peripheral device (step S318).

另一方面,在狀態210下,若使用者沒有關閉相關程式,則電子裝置會儲存所述程式的背景(context)資訊(步驟S320),並進入省電模式(S3或S4)的狀態214(步驟S322)。此時,若電子裝置接收到使用者按壓按鍵(硬體按鍵或軟體按鍵)所觸發的喚醒訊號時,即會從省電模式喚醒,再次進入正常運作模式(S0)的狀態202,並讀取之前所儲存之程式的背景資訊,從而回復程式的執行狀態(步驟S324)。On the other hand, in the state 210, if the user does not close the related program, the electronic device stores the context information of the program (step S320), and enters the state 214 of the power saving mode (S3 or S4) ( Step S322). At this time, if the electronic device receives the wake-up signal triggered by the user pressing the button (hardware button or software button), it will wake up from the power-saving mode, enter the state 202 of the normal operation mode (S0) again, and read The background information of the previously stored program is returned to the execution state of the program (step S324).

需說明的是,在使用者沒有關閉相關程式,而電子裝置已進入省電模式的狀態214下,使用者仍可藉由按下電子裝置上的卸除(undock)鍵,以控制電子裝置進入週邊裝置的卸除程序。此卸除鍵可以是配置在電子裝置、週邊裝置上的硬體按鍵或軟體按鍵,也可以是配置在週邊裝置之連接器上的硬體按鍵,在此不設限。其中,當使用者按下卸除鍵時,電子裝置即會接收到卸除鍵的觸發訊號,從而將電子裝置喚醒,而依序進入上蓋開啟狀態208及提示關閉週邊裝置相關程式的狀態210,從而提示使用者關閉電子裝置上與週邊裝置相關之程式,並在所述程式關閉後,進入省電模式。It should be noted that, in the state 214 where the user has not turned off the related program and the electronic device has entered the power saving mode, the user can still control the electronic device to enter by pressing the undock button on the electronic device. The removal procedure of the peripheral device. The removal button may be a hardware button or a software button disposed on the electronic device or the peripheral device, or may be a hardware button disposed on the connector of the peripheral device, and is not limited herein. When the user presses the detach button, the electronic device receives the trigger signal of the detach button, thereby waking up the electronic device, and sequentially enters the upper cover open state 208 and prompts to close the state 210 of the peripheral device related program. The user is prompted to close the program associated with the peripheral device on the electronic device, and enter the power saving mode after the program is turned off.

綜上所述,本發明在電源管理模式轉換時裝卸週邊裝 置的方法係在電子裝置的上蓋關閉時,直接將電子裝置上與週邊裝置相關的程式關閉,以將週邊裝置卸除。而在電子裝置的上蓋未關閉時,則藉由提示使用者關閉程式的方式,將週邊裝置卸除。藉此,可避免電子裝置在週邊裝置拔除時產生資料遺失或系統崩潰,且可在電子裝置的上蓋打開或使用者觸發按鍵時,重新安裝週邊裝置,以回復週邊裝置的功能。In summary, the present invention converts the fashion unloading peripherals in the power management mode. When the upper cover of the electronic device is closed, the program related to the peripheral device on the electronic device is directly closed to remove the peripheral device. When the upper cover of the electronic device is not closed, the peripheral device is removed by prompting the user to close the program. Thereby, the electronic device can be prevented from causing data loss or system collapse when the peripheral device is removed, and the peripheral device can be reinstalled when the upper cover of the electronic device is opened or the user triggers the button to restore the function of the peripheral device.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,故本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the invention, and any one of ordinary skill in the art can make some modifications and refinements without departing from the spirit and scope of the invention. The scope of the invention is defined by the scope of the appended claims.

202‧‧‧正常運作模式狀態202‧‧‧Normal operating mode status

204‧‧‧週邊裝置已安裝狀態204‧‧‧The peripheral device is installed

206‧‧‧上蓋關閉狀態206‧‧‧Closed cover

208‧‧‧上蓋開啟狀態208‧‧‧The cover is open

210‧‧‧提示關閉週邊裝置相關程式狀態210‧‧‧Prompt to close the peripheral device related program status

212‧‧‧週邊裝置已卸除狀態212‧‧‧The peripheral device has been removed

214‧‧‧省電模式狀態214‧‧‧Power saving mode status

S102~S106‧‧‧本發明一實施例之在電源管理模式轉換時裝卸週邊裝置的方法步驟S102~S106‧‧‧ method steps for converting a fashion unloading peripheral device in a power management mode according to an embodiment of the present invention

S302~S324‧‧‧本發明一實施例之在電源管理模式轉換時裝卸週邊裝置的方法步驟S302~S324‧‧‧ method steps for converting a fashion unloading peripheral device in a power management mode according to an embodiment of the present invention

圖1是依照本發明一實施例所繪示之在電源管理模式轉換時裝卸週邊裝置的方法流程圖。1 is a flow chart of a method for switching a fashion peripheral device in a power management mode according to an embodiment of the invention.

圖2是依照本發明一實施例所繪示之週邊裝置裝卸方法的狀態轉換示意圖。FIG. 2 is a schematic diagram showing state transition of a peripheral device loading and unloading method according to an embodiment of the invention.

圖3是依照本發明一實施例所繪示之在電源管理模式轉換時裝卸週邊裝置的方法流程圖。FIG. 3 is a flow chart of a method for switching a peripheral device in a power management mode according to an embodiment of the invention.

S102~S106‧‧‧本發明一實施例之在電源管理模式轉換時裝卸週邊裝置的方法步驟S102~S106‧‧‧ method steps for converting a fashion unloading peripheral device in a power management mode according to an embodiment of the present invention

Claims (9)

一種在電源管理模式轉換時裝卸週邊裝置的方法,適於由一電子裝置裝卸一週邊裝置,該方法包括下列步驟:安裝該週邊裝置於該電子裝置;當該電子裝置的一上蓋關閉時,強制關閉該電子裝置正在執行且會使用到該週邊裝置相關之至少一程式;在所述程式關閉後,移除該週邊裝置的一驅動程式;以及在所述程式關閉後,進入一省電模式。 A method for switching a peripheral device in a power management mode, suitable for loading and unloading a peripheral device by an electronic device, the method comprising the steps of: installing the peripheral device on the electronic device; and forcing an upper cover of the electronic device to be closed Turning off the electronic device is executing and using at least one program related to the peripheral device; after the program is closed, removing a driver of the peripheral device; and after the program is turned off, entering a power saving mode. 如申請專利範圍第1項所述之在電源管理模式轉換時裝卸週邊裝置的方法,其中安裝該週邊裝置於該電子裝置的步驟包括:偵測是否有該週邊裝置連接至該電子裝置;以及當偵測到該週邊裝置連接時,執行該週邊裝置的該驅動程式,以驅動該週邊裝置。 The method for converting a fashion unloading peripheral device in a power management mode according to the first aspect of the invention, wherein the step of installing the peripheral device on the electronic device comprises: detecting whether the peripheral device is connected to the electronic device; When the peripheral device connection is detected, the driver of the peripheral device is executed to drive the peripheral device. 如申請專利範圍第1項所述之在電源管理模式轉換時裝卸週邊裝置的方法,其中在安裝該週邊裝置於該電子裝置的步驟之後,該方法更包括:接收進入該省電模式的一觸發訊號;提示一使用者關閉該電子裝置上與該週邊裝置相關之該至少一程式;以及在所述程式關閉後,進入該省電模式。 The method of converting a fashion unloading peripheral device in a power management mode according to the first aspect of the invention, wherein after the step of installing the peripheral device in the electronic device, the method further comprises: receiving a trigger to enter the power saving mode a signal prompting a user to close the at least one program associated with the peripheral device on the electronic device; and entering the power saving mode after the program is turned off. 如申請專利範圍第3項所述之在電源管理模式轉 換時裝卸週邊裝置的方法,其中在提示該使用者關閉該電子裝置上與該週邊裝置相關之該至少一程式的步驟之後,該方法更包括:若該使用者未關閉所述程式,儲存所述程式的一背景(context)資訊,並進入該省電模式。 In the power management mode as described in item 3 of the patent application scope The method of changing the peripheral device, wherein after the step of prompting the user to close the at least one program associated with the peripheral device on the electronic device, the method further comprises: if the user does not close the program, the storage device A context information of the program and enters the power saving mode. 如申請專利範圍第4項所述之在電源管理模式轉換時裝卸週邊裝置的方法,其中在儲存所述程式的該背景資訊,並進入該省電模式的步驟之後,該方法更包括:接收該電子裝置或該週邊裝置之一卸除鍵的一觸發訊號;喚醒該電子裝置以提示該使用者關閉該電子裝置上與該週邊裝置相關之該至少一程式;以及在所述程式關閉後,進入該省電模式。 The method for converting a fashion unloading peripheral device in a power management mode according to the fourth aspect of the invention, wherein after the step of storing the background information of the program and entering the power saving mode, the method further comprises: receiving the The electronic device or one of the peripheral devices dismounts a trigger signal of the key; wakes up the electronic device to prompt the user to close the at least one program associated with the peripheral device on the electronic device; and after the program is closed, enters This power saving mode. 如申請專利範圍第4項所述之在電源管理模式轉換時裝卸週邊裝置的方法,其中在儲存所述程式的該背景資訊,並進入該省電模式的步驟之後,該方法更包括:接收一喚醒訊號;以及喚醒該電子裝置以讀取所述程式的該背景資訊,而回復所述程式的一執行狀態。 The method for converting a fashion unloading peripheral device in a power management mode according to claim 4, wherein after the step of storing the background information of the program and entering the power saving mode, the method further comprises: receiving one Awakening the signal; and waking up the electronic device to read the background information of the program, and replying to an execution state of the program. 如申請專利範圍第6項所述之在電源管理模式轉換時裝卸週邊裝置的方法,其中該喚醒訊號是在該電子裝置的一按鍵被觸發時所產生。 A method for switching a fashion unloading peripheral device in a power management mode as described in claim 6 wherein the wake-up signal is generated when a button of the electronic device is triggered. 如申請專利範圍第1項所述之在電源管理模式轉換時裝卸週邊裝置的方法,其中在進入該省電模式的步驟 之後,該方法更包括:接收一喚醒訊號;以及喚醒該電子裝置以重新偵測該週邊裝置,並執行該週邊裝置的該驅動程式,以驅動該週邊裝置。 The method for switching a fashion unloading peripheral device in a power management mode as described in claim 1, wherein the step of entering the power saving mode Thereafter, the method further includes: receiving a wake-up signal; and waking up the electronic device to re-detect the peripheral device, and executing the driver of the peripheral device to drive the peripheral device. 如申請專利範圍第8項所述之在電源管理模式轉換時裝卸週邊裝置的方法,其中該喚醒訊號是在該上蓋被開啟時觸發產生。 A method for switching a fashion unloading peripheral device in a power management mode as described in claim 8 wherein the wake-up signal is triggered when the upper cover is opened.
TW101124263A 2012-07-05 2012-07-05 Method for docking and undocking peripheral apparatus during transition of power management mode TWI465914B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101124263A TWI465914B (en) 2012-07-05 2012-07-05 Method for docking and undocking peripheral apparatus during transition of power management mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101124263A TWI465914B (en) 2012-07-05 2012-07-05 Method for docking and undocking peripheral apparatus during transition of power management mode

Publications (2)

Publication Number Publication Date
TW201403327A TW201403327A (en) 2014-01-16
TWI465914B true TWI465914B (en) 2014-12-21

Family

ID=50345536

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101124263A TWI465914B (en) 2012-07-05 2012-07-05 Method for docking and undocking peripheral apparatus during transition of power management mode

Country Status (1)

Country Link
TW (1) TWI465914B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200807245A (en) * 2006-07-21 2008-02-01 Via Tech Inc Method of restarting a peripheral device
TW200917006A (en) * 2007-10-01 2009-04-16 Inventec Corp Apparatus and method for power management
TW200923784A (en) * 2007-11-16 2009-06-01 Asustek Comp Inc Electronic device and method for resuming from suspend-to-ram state thereof
TW201022922A (en) * 2008-10-30 2010-06-16 Dell Products Lp System and method of utilizing resources within an information handling system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200807245A (en) * 2006-07-21 2008-02-01 Via Tech Inc Method of restarting a peripheral device
TW200917006A (en) * 2007-10-01 2009-04-16 Inventec Corp Apparatus and method for power management
TW200923784A (en) * 2007-11-16 2009-06-01 Asustek Comp Inc Electronic device and method for resuming from suspend-to-ram state thereof
TW201022922A (en) * 2008-10-30 2010-06-16 Dell Products Lp System and method of utilizing resources within an information handling system

Also Published As

Publication number Publication date
TW201403327A (en) 2014-01-16

Similar Documents

Publication Publication Date Title
TWI479421B (en) Booting method and electronic device
US7681058B2 (en) Information processing apparatus and power supply control method
US8407495B2 (en) Information processor and power supply method for an information processor
US8924702B2 (en) Method for switching dual operating system on docking system
JP3264272B2 (en) Computer and power control method for computer
US20060236015A1 (en) Information processing apparatus and operation control method
US20050160302A1 (en) Power management apparatus and method
JP4724187B2 (en) Method and computer for accessing externally connected external storage device
JP2010108423A (en) Information processor
CN101430592A (en) Information processing apparatus
US20010020268A1 (en) Method for controlling computer and recording medium
KR950001418B1 (en) Pop up control system for portable computer having setup function and popup function
US20100036991A1 (en) Apparatus and method for docking of mobile device supporting docking station
CN113703799A (en) Computing device and BIOS updating method and medium thereof
US8275999B2 (en) Methods for providing power to an information handling system upon receiving a hot plug detect signal from a video display
US8103895B2 (en) Information processing apparatus and wake-up control method
JP2011134187A (en) Information processing apparatus
CN103853638A (en) Method for refreshing firmware and electronic equipment
US20130262889A1 (en) Information processing apparatus and power supply controlling method
TWI465914B (en) Method for docking and undocking peripheral apparatus during transition of power management mode
US7093142B2 (en) Method, apparatus and program for user-determined operational state of a portable computer prior to detachment
JP2007206839A (en) Electronic equipment and action control method
JP2006172325A (en) Device state control method and information processor
US20230030973A1 (en) Change of firmware settings
JP2011141707A (en) Information processing apparatus, information processing method, and program

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees