[go: up one dir, main page]

CN105677379A - Electronic device and awakening method thereof - Google Patents

Electronic device and awakening method thereof Download PDF

Info

Publication number
CN105677379A
CN105677379A CN201410670517.1A CN201410670517A CN105677379A CN 105677379 A CN105677379 A CN 105677379A CN 201410670517 A CN201410670517 A CN 201410670517A CN 105677379 A CN105677379 A CN 105677379A
Authority
CN
China
Prior art keywords
electronic installation
wake
network card
electronic device
partial
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
CN201410670517.1A
Other languages
Chinese (zh)
Inventor
陈冠禹
廖述群
蔡锦和
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.)
Acer Inc
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 CN201410670517.1A priority Critical patent/CN105677379A/en
Publication of CN105677379A publication Critical patent/CN105677379A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

本发明提供一种电子装置及其唤醒方法,此方法包括:接收由输入单元所触发的输入事件,判断电子装置是否处于经由网络卡唤醒所进入的部分唤醒模式。若电子装置处于部分唤醒模式,唤醒电子装置至正常运作模式。

The present invention provides an electronic device and a wake-up method thereof, the method comprising: receiving an input event triggered by an input unit, determining whether the electronic device is in a partial wake-up mode entered through a network card wake-up, and waking up the electronic device to a normal operation mode if the electronic device is in the partial wake-up mode.

Description

电子装置及其唤醒方法Electronic device and wake-up method thereof

技术领域technical field

本发明涉及一种电子装置及其唤醒方法,且尤其涉及一种已由网络卡所唤醒的电子装置及其唤醒方法。The present invention relates to an electronic device and its wake-up method, and in particular to an electronic device awakened by a network card and its wake-up method.

背景技术Background technique

近年来,随着电脑科技日新月异,远端控制技术已越来越普遍。使用者可随时随地经由网络对远端的电脑进行操作。例如一般使用者可在家利用远端控制操控办公室的电脑系统,以取得所需的数据或进行远端作业。系统管理人员还可以利用远端控制取得远端电脑的硬件状态、系统事件日志记录等信息,以随时掌握电脑系统的状态。In recent years, with the rapid development of computer technology, remote control technology has become more and more common. Users can operate remote computers via the network anytime and anywhere. For example, general users can use remote control to control the computer system in the office at home to obtain required data or perform remote operations. System administrators can also use remote control to obtain information such as the hardware status of the remote computer, system event log records, etc., so as to grasp the status of the computer system at any time.

现今电脑系统通常具有支持远端唤醒(WakeonLAN,简称WOL)功能的网络卡,并且可通过此网络卡接收到另一远端电脑的唤醒要求后进行唤醒行为。由于此唤醒行为经由网络卡唤醒所进入的部分唤醒模式,在此模式下,仅需提供使用者进行远端数据存取,因此,会有另一部分的设备(例如,屏幕、喇叭与光盘驱动器等装置)仍处于睡眠或关闭的状态,以达到省电以及避免噪音的效果。Today's computer systems usually have a network card that supports the Wake on LAN (WOL) function, and can perform a wake-up behavior after receiving a wake-up request from another remote computer through the network card. Since this wake-up behavior enters into a partial wake-up mode through the network card wake-up, in this mode, only the user needs to provide remote data access, so there will be another part of the equipment (such as the screen, speakers, and CD-ROM drives, etc.) device) is still in a sleeping or off state to save power and avoid noise.

举例而言,请参照表(1),在现行电脑状态中,具有对应上述部分唤醒模式的部分唤醒状态、显示屏幕关闭(Displayoff)状态、睡眠(Sleep)状态、休眠(Hibernate)状态及关机(Shutdown)状态等,各状态与其对应的输入单元所执行的唤醒行为后的结果不尽相同。举例来说,在上述部分唤醒状态中,由于部分的设备仍处于睡眠或关闭的状态,因此,使用者可能会误判电脑仍处于睡眠状态而进行唤醒行为,例如,按下电源按钮、输入键盘或是点击鼠标等的唤醒行为。也就是说,当电脑已处于被唤醒的部分唤醒模式时,若使用者按下电源按钮,电脑便会执行电源按钮的对应行为(例如,休眠、睡眠或关机等行为)。据此,将导致使用者预料之外的结果发生。For example, please refer to Table (1). In the current computer state, there are partial wake-up state, display screen off (Displayoff) state, sleep (Sleep) state, hibernate (Hibernate) state and shutdown ( Shutdown) state, etc. Each state and its corresponding input unit have different wake-up results. For example, in the above-mentioned partial wake-up state, because some devices are still in the sleep or off state, the user may misjudge that the computer is still in the sleep state and perform wake-up actions, for example, press the power button, enter the keyboard Or the wake-up behavior of clicking the mouse, etc. That is to say, when the computer is already in the awakened partial wake-up mode, if the user presses the power button, the computer will execute the corresponding behavior of the power button (for example, dormancy, sleep or shutdown, etc.). Accordingly, unexpected results will be caused by users.

表(1)Table 1)

综上,如何解决通过按下电源按钮、输入键盘或是点击鼠标等的唤醒行为却无法唤醒处于部分唤醒模式下的电子装置至正常运作状态的问题,是此领域技术人员所致力的目标。To sum up, how to solve the problem that the electronic device in the partial wake-up mode cannot be woken up to the normal operation state by pressing the power button, inputting the keyboard, or clicking the mouse is the goal that those skilled in the art are working on.

发明内容Contents of the invention

本发明提供一种电子装置及其唤醒方法,其能够有效地通过输入事件唤醒已由网络卡所唤醒的电子装置至正常运作模式。The invention provides an electronic device and a wake-up method thereof, which can effectively wake up the electronic device awakened by a network card to a normal operation mode through an input event.

本发明提供一种具有输入单元及网络卡的电子装置的唤醒方法,此方法包括:接收由输入单元所触发的输入事件。本方法还包括:判断电子装置是否处于经由网络卡唤醒所进入的部分唤醒模式。本方法还包括:若电子装置处于部分唤醒模式,唤醒电子装置至正常运作模式。The invention provides a method for waking up an electronic device with an input unit and a network card. The method includes: receiving an input event triggered by the input unit. The method further includes: judging whether the electronic device is in a partial wake-up mode entered through wake-up via the network card. The method further includes: if the electronic device is in a partial wake-up mode, waking up the electronic device to a normal operation mode.

本发明提供一种电子装置,此电子装置包括输入事件过滤模块与唤醒模块。输入事件过滤模块接收由电子装置的输入单元所触发的输入事件,以及唤醒模块判断电子装置是否处于经由电子装置的网络卡唤醒所进入的部分唤醒模式。若该电子装置处于部分唤醒模式,唤醒模块唤醒电子装置至正常运作模式。The invention provides an electronic device, which includes an input event filtering module and a wake-up module. The input event filtering module receives an input event triggered by the input unit of the electronic device, and the wake-up module determines whether the electronic device is in a partial wake-up mode entered by waking up via the network card of the electronic device. If the electronic device is in a partial wake-up mode, the wake-up module wakes up the electronic device to a normal operation mode.

基于上述,本发明的电子装置及其唤醒方法,通过接收输入事件后,判断电子装置是否已由网络卡唤醒以正确地唤醒电子装置至正常运作模式,据此,可避免使用者预料之外的结果发生。Based on the above, the electronic device and its wake-up method of the present invention judge whether the electronic device has been woken up by the network card after receiving an input event, so as to correctly wake up the electronic device to the normal operation mode, thereby avoiding the user's unexpected Results happen.

为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合附图作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail with reference to the accompanying drawings.

附图说明Description of drawings

图1是依照本发明一实施例所示的电子装置的方块图;FIG. 1 is a block diagram of an electronic device according to an embodiment of the present invention;

图2是依照本发明一实施例所示的电子装置的唤醒方法流程图;FIG. 2 is a flowchart of a method for waking up an electronic device according to an embodiment of the present invention;

图3是依照本发明一实施例所示的基于电源按钮触发的输入事件的电子装置的唤醒方法流程图;3 is a flowchart of a method for waking up an electronic device based on an input event triggered by a power button according to an embodiment of the present invention;

图4是依照本发明一实施例所示的基于鼠标或键盘触发的输入事件的电子装置的唤醒方法流程图。FIG. 4 is a flowchart of a method for waking up an electronic device based on an input event triggered by a mouse or a keyboard according to an embodiment of the present invention.

附图标记说明:Explanation of reference signs:

100:电子装置;100: electronic device;

102:网络卡;102: network card;

104:输入单元;104: input unit;

106:存储单元;106: storage unit;

108:处理器;108: processor;

110:输入事件过滤模块;110: input event filtering module;

120:唤醒模块;120: wake up the module;

S201、S203、S205:电子装置的唤醒方法的步骤;S201, S203, S205: Steps of a method for waking up an electronic device;

S301、S303、S305、S307、S309、S311:的基于电源按钮触发的输入事件的电子装置的唤醒方法的步骤;S301, S303, S305, S307, S309, S311: Steps in a method for waking up an electronic device based on an input event triggered by a power button;

S401、S403、S405、S407、S409:基于鼠标或键盘触发的输入事件的电子装置的唤醒方法的步骤。S401, S403, S405, S407, S409: Steps in a method for waking up an electronic device based on an input event triggered by a mouse or a keyboard.

具体实施方式detailed description

为了解决通过按下电源按钮、输入键盘或是点击鼠标等的唤醒行为却无法唤醒处于部分唤醒模式下的电子装置至正常运作状态的问题,本发明通过接收输入事件后,判断电子装置是否已由网络卡唤醒以正确地唤醒电子装置至正常运作模式,由此使用者可获得其所预期的结果。基此,有效地改善使用者操作电子装置的经验。In order to solve the problem that the electronic device in the partial wake-up mode cannot be awakened to the normal operation state by pressing the power button, inputting the keyboard, or clicking the mouse, etc., the present invention judges whether the electronic device has been activated by receiving an input event. The network card wakes up to correctly wake up the electronic device to the normal operation mode, so that the user can obtain the desired result. Based on this, the user's experience in operating the electronic device is effectively improved.

图1是依照本发明一实施例所示的电子装置的方块图。FIG. 1 is a block diagram of an electronic device according to an embodiment of the invention.

请参照图1,电子装置100包括网络卡102、输入单元104、存储单元106以及处理器108。在本实施例中,电子装置100可以是个人电脑、笔记本电脑等电子装置,在此并不加以限制其种类。Referring to FIG. 1 , the electronic device 100 includes a network card 102 , an input unit 104 , a storage unit 106 and a processor 108 . In this embodiment, the electronic device 100 may be an electronic device such as a personal computer, a notebook computer, etc., and the type is not limited here.

网络卡102例如是支持电机和电子工程师协会(InstituteofElectricalandElectronicsEngineers,简称IEEE)等无线通讯标准的无线网络卡或是支持有线网络连结的网络卡。其可通过无线或有线方式与外部的远端装置等其他装置进行网络连线。例如,在本发明实施例中,网络卡102的驱动程序为符合网络驱动接口规范(NetworkDriverInterfaceSpecification,简称NDIS)的驱动程序。然而,本发明不加以限制网络卡102的驱动程序的类型,例如,在另一实施例中,网络卡102的驱动程序可以是任何具有支持远端唤醒(WakeonLAN,简称WOL)功能的驱动程序。The network card 102 is, for example, a wireless network card supporting wireless communication standards such as Institute of Electrical and Electronics Engineers (IEEE for short), or a network card supporting wired network connection. It can be networked with other devices such as external remote devices through wireless or wired methods. For example, in the embodiment of the present invention, the driver program of the network card 102 is a driver program conforming to the Network Driver Interface Specification (Network Driver Interface Specification, NDIS for short). However, the present invention does not limit the type of the driver of the network card 102. For example, in another embodiment, the driver of the network card 102 may be any driver that supports Wake on LAN (WOL for short).

输入单元104用以接收使用者的操作,例如,在本实施例中,输入单元104可以是电源按钮,然而,本发明并不限于此。例如,在另一实施例中,输入单元104可以是电子装置100外接或内装的键盘或鼠标。The input unit 104 is used to receive user operations. For example, in this embodiment, the input unit 104 may be a power button, however, the present invention is not limited thereto. For example, in another embodiment, the input unit 104 may be a keyboard or a mouse external to or built into the electronic device 100 .

存储单元106可以是任何型态的固定式或可移动式随机存取存储器(randomaccessmemory,简称RAM)、只读存储器(read-onlymemory,简称ROM)、快闪存储器(flashmemory)、固态硬盘(SolidStateDrive,简称SSD)或类似元件或上述元件的组合。在本实施例中,存储单元106用以记录输入事件过滤模块110以及唤醒模块120的软件程序。本实施例中所述的存储单元106并未限制是单一存储元件,上述的各软件模块也可以分开存储在不同的两个或两个以上的相同或不同型态的存储元件中。The storage unit 106 can be any type of fixed or removable random access memory (random access memory, referred to as RAM), read-only memory (read-only memory, referred to as ROM), flash memory (flash memory), solid state hard drive (Solid State Drive, SSD for short) or similar elements or a combination of the above elements. In this embodiment, the storage unit 106 is used to record the software programs of the input event filter module 110 and the wake-up module 120 . The storage unit 106 described in this embodiment is not limited to a single storage element, and the above-mentioned software modules can also be separately stored in two or more storage elements of the same or different types.

处理器108耦接至网络卡102、输入单元104与存储单元106。处理器108可以是具有单核心或多核心的中央处理单元(CentralProcessingUnit,简称CPU),或是其他可程序化的一般用途或特殊用途的微处理器(Microprocessor)、数字信号处理器(DigitalSignalProcessor,简称DSP)、可程序化控制器、特殊应用集成电路(ApplicationSpecificIntegratedCircuit,简称ASIC)或其他类似元件或上述元件的组合。在本实施例中,处理器108用以存取并执行上述存储单元106中所记录的模块,藉以实现本发明实施例的电子装置的唤醒的方法。本实施例的处理器108并未限制是单一处理元件,也可以是由两个或两个以上的处理元件共同执行。The processor 108 is coupled to the network card 102 , the input unit 104 and the storage unit 106 . Processor 108 may be a central processing unit (Central Processing Unit, referred to as CPU) with a single core or multiple cores, or other programmable general-purpose or special-purpose microprocessor (Microprocessor), digital signal processor (Digital Signal Processor, referred to as DSP), programmable controller, application specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC) or other similar components or a combination of the above components. In this embodiment, the processor 108 is configured to access and execute the modules recorded in the storage unit 106, so as to implement the method for waking up the electronic device according to the embodiment of the present invention. The processor 108 in this embodiment is not limited to be a single processing element, and may also be jointly executed by two or more processing elements.

图2是依照本发明一实施例所示的电子装置的唤醒方法流程图。请同时参照图1与图2,本实施例的方法适用于上述的电子装置100,以下即搭配图1中电子装置100的各项元件,说明本实施例方法的详细流程。FIG. 2 is a flowchart of a method for waking up an electronic device according to an embodiment of the invention. Please refer to FIG. 1 and FIG. 2 at the same time. The method of this embodiment is applicable to the above-mentioned electronic device 100 . The detailed process of the method of this embodiment will be described below with various components of the electronic device 100 in FIG. 1 .

首先,输入事件过滤模块110会接收由输入单元104所触发的输入事件(步骤S201)。在本实施例中,当输入单元104为一电源按钮时,输入事件过滤模块110会在接收由输入单元104所触发的输入事件之后,触发一中断事件至唤醒模块120。First, the input event filtering module 110 receives an input event triggered by the input unit 104 (step S201 ). In this embodiment, when the input unit 104 is a power button, the input event filtering module 110 triggers an interrupt event to the wakeup module 120 after receiving the input event triggered by the input unit 104 .

接着,唤醒模块120会从输入事件过滤模块110接收上述中断事件,并且判断电子装置100是否处于经由网络卡102唤醒所进入的部分唤醒模式(步骤S203)。其中唤醒模块120接收中断事件后,会向网络卡102的驱动程序取得唤醒信息,并据以判断电子装置100是否处于所述部分唤醒模式。具体而言,在由网络卡102唤醒所进入的部分唤醒模式中,电子装置100仅唤醒可使远端装置通过网络卡存取电子装置100中数据的必要元件,所述必要元件包括电子装置100的处理器、网络卡、存储器与硬盘其中之一或其组合。换言之,在此模式下,仅需提供远端装置进行对电子装置100的数据存取,因此,在电子装置100中会有另一部分的设备(例如,屏幕、喇叭与光盘驱动器等装置)仍处于睡眠或关闭的状态,以达到省电。Next, the wake-up module 120 receives the interrupt event from the input event filter module 110, and determines whether the electronic device 100 is in a partial wake-up mode entered through wake-up via the network card 102 (step S203). The wake-up module 120 obtains wake-up information from the driver program of the network card 102 after receiving the interrupt event, and judges whether the electronic device 100 is in the partial wake-up mode based on it. Specifically, in the partial wake-up mode entered by being woken up by the network card 102, the electronic device 100 only wakes up the necessary components that allow the remote device to access data in the electronic device 100 through the network card, and the necessary components include the electronic device 100 One or a combination of processors, network cards, memory and hard disks. In other words, in this mode, only a remote device needs to be provided for data access to the electronic device 100. Therefore, there will be another part of the equipment in the electronic device 100 (for example, devices such as screens, speakers, and optical disk drives) are still in sleep or off state to save power.

特别是,在本实施例中,上述中断事件为一窗口管理规范(WindowsManagementInstrumentation,简称WMI)事件。窗口管理规范为微软公司所制定的一项核心的窗口(Windows)管理技术,使用者可通过使用窗口管理规范管理本地电子装置和远端装置,由此可获得本地电子装置和远端装置内部状态的信息。例如,窗口管理规范可提供在远端装置上启动一个工作、获得本机或远端电脑的已安装程序列表、设定一个在特定日期和时间执行的工作以及查询本机或远端装置的Windows事件日志等服务。举例来说,在本实施例中,当唤醒模块120接收到窗口管理规范事件时,会向电子装置100的网络卡102取得对应于电子装置100的唤醒状态的唤醒信息。据此,唤醒模块120即可根据此唤醒信息得知电子装置100是否处于部分唤醒模式。In particular, in this embodiment, the interrupt event is a window management instrumentation (Windows Management Instrumentation, WMI for short) event. The window management specification is a core window (Windows) management technology developed by Microsoft Corporation. Users can use the window management specification to manage local electronic devices and remote devices, so as to obtain the internal status of local electronic devices and remote devices. Information. For example, a window management specification provides for starting a job on a remote device, getting a list of installed programs on a local or remote computer, setting a job to execute at a specific date and time, and querying the Windows Event logs and other services. For example, in this embodiment, when the wake-up module 120 receives a window management specification event, it will obtain wake-up information corresponding to the wake-up state of the electronic device 100 from the network card 102 of the electronic device 100 . Accordingly, the wake-up module 120 can know whether the electronic device 100 is in the partial wake-up mode according to the wake-up information.

之后,若唤醒模块120根据此唤醒信息得知电子装置100处于部分唤醒模式,则唤醒模块120会唤醒电子装置100至正常运作模式(步骤S205)。在此,正常运作模式例如是先进架构与电源接口(AdvancedConfigurationandPowerInterface,简称ACPI)标准中的S0状态,在此正常运作模式下,电子装置100的设备与元件皆会被启用,且其操作系统和应用程序也会被处理器108所执行。换言之,除了上述电子装置100的处理器、网络卡、存储器与硬盘其中之一或其组合以外,电子装置100的其他设备与元件(例如,屏幕、喇叭与光盘驱动器)皆会在此正常运作模式下被唤醒。Afterwards, if the wake-up module 120 knows that the electronic device 100 is in the partial wake-up mode according to the wake-up information, the wake-up module 120 wakes up the electronic device 100 to the normal operation mode (step S205 ). Here, the normal operation mode is, for example, the S0 state in the Advanced Configuration and Power Interface (ACPI) standard. In this normal operation mode, the devices and components of the electronic device 100 are enabled, and its operating system and applications The programs are also executed by the processor 108 . In other words, except for one or a combination of the above-mentioned processor, network card, memory, and hard disk of the electronic device 100, other devices and components of the electronic device 100 (for example, the screen, the speaker, and the optical disk drive) will all be in this normal operation mode. next to be awakened.

值得一提的是,由于在本实施例中,输入单元104为一电源按钮,因此,若唤醒模块120根据所取得的唤醒信息得知电子装置100非处于部分唤醒模式时,唤醒模块120会请求输入事件过滤模块110传送此电源按钮的控制码(IOcontrolcode)至电子装置100的电源管理接口,以使得电子装置100执行电源按钮的对应行为。在此,电源管理接口为一先进架构与电源接口(ACPI),也就是说,此时电子装置100会根据先进架构与电源接口与使用者的设定执行对应此电源按钮的行为,例如,电子装置100会进入睡眠模式、关机模式、正常运作模式或不执行任何动作。It is worth mentioning that since in this embodiment, the input unit 104 is a power button, if the wake-up module 120 knows that the electronic device 100 is not in the partial wake-up mode according to the wake-up information obtained, the wake-up module 120 will request The input event filtering module 110 transmits the control code (IOcontrolcode) of the power button to the power management interface of the electronic device 100, so that the electronic device 100 executes the corresponding action of the power button. Here, the power management interface is an advanced architecture and power interface (ACPI). That is to say, at this time, the electronic device 100 will perform the behavior corresponding to the power button according to the advanced architecture and power interface and the user's settings. The device 100 may enter sleep mode, shutdown mode, normal operation mode or perform no action.

此外,在另一实施例中,输入单元104可以是键盘或鼠标。在此情况下,唤醒模块120会拦截(hook)由键盘或鼠标所触发的输入事件,换言之,键盘或鼠标所触发的输入事件会由唤醒模块120所接收。当唤醒模块120接收到由键盘或鼠标所触发的输入事件之后,唤醒模块120会执行上述判断电子装置100是否处于经由网络卡102唤醒所进入的部分唤醒模式的步骤(步骤S203),在此不再重述。倘若唤醒模块120判断电子装置100处于部分唤醒模式,则唤醒模块120会直接唤醒电子装置100至正常运作模式。反之,倘若唤醒模块120判断电子装置100非处于部分唤醒模式,则唤醒模块120会执行鼠标或键盘的对应行为或者不执行任何动作,因此,电子装置100会根据下表(2)进入所对应的状态或继续处于目前的状态。Furthermore, in another embodiment, the input unit 104 may be a keyboard or a mouse. In this case, the wake-up module 120 will intercept (hook) the input event triggered by the keyboard or the mouse, in other words, the input event triggered by the keyboard or the mouse will be received by the wake-up module 120 . After the wake-up module 120 receives the input event triggered by the keyboard or the mouse, the wake-up module 120 will execute the above-mentioned step of judging whether the electronic device 100 is in the partial wake-up mode entered by waking up via the network card 102 (step S203). Recap. If the wake-up module 120 determines that the electronic device 100 is in the partial wake-up mode, the wake-up module 120 will directly wake up the electronic device 100 to the normal operation mode. On the contrary, if the wake-up module 120 judges that the electronic device 100 is not in the partial wake-up mode, the wake-up module 120 will perform the corresponding behavior of the mouse or the keyboard or not perform any action. Therefore, the electronic device 100 will enter the corresponding mode according to the following table (2). status or continue in its current status.

请参照表(2),如上所述,在现行电脑状态中,具有对应上述部分唤醒模式的部分唤醒状态、显示屏幕关闭(Displayoff)状态、睡眠(Sleep)状态、休眠(Hibernate)状态及关机(Shutdown)状态等,各状态与其对应的输入单元所执行的唤醒行为后的结果不尽相同。特别是,在部分唤醒状态中,通过本发明的电子装置的唤醒方法,当使用者进行唤醒行为,例如,按下电源按钮、输入键盘或是点击鼠标时,电子装置100的唤醒模块120皆会执行唤醒电子装置100至正常运作模式的操作。据此,使得使用者在部分唤醒状态下进行唤醒的行为时,可获得其所预想的结果。Please refer to Table (2), as mentioned above, in the current computer state, there are partial wake-up state, display screen off (Displayoff) state, sleep (Sleep) state, hibernate (Hibernate) state and shutdown ( Shutdown) state, etc. Each state and its corresponding input unit have different wake-up results. Especially, in the partial wake-up state, through the wake-up method of the electronic device of the present invention, when the user performs a wake-up action, for example, pressing the power button, typing a keyboard or clicking the mouse, the wake-up module 120 of the electronic device 100 will The operation of waking up the electronic device 100 to a normal operation mode is performed. Accordingly, when the user performs the behavior of waking up in the partially aroused state, the expected result can be obtained.

表(2)Table 2)

图3是依照本发明一实施例所示的基于电源按钮触发的输入事件的电子装置的唤醒方法流程图。FIG. 3 is a flowchart of a method for waking up an electronic device based on an input event triggered by a power button according to an embodiment of the invention.

请参照图3,在步骤S301中,输入事件过滤模块110会接收由电源按钮所触发的输入事件。Referring to FIG. 3 , in step S301 , the input event filtering module 110 receives an input event triggered by a power button.

在步骤S303中,输入事件过滤模块110接收由电源按钮所触发的输入事件之后,会触发中断事件。在此,中断事件为一窗口管理规范(WMI)事件。In step S303, after receiving the input event triggered by the power button, the input event filtering module 110 triggers an interrupt event. Here, the interrupt event is a Windows Management Instrumentation (WMI) event.

在步骤S305中,唤醒模块120接收所述中断事件,以向网络卡的驱动程序取得唤醒信息。其中网络卡的驱动程序为符合一网络驱动接口规范(NDIS)的驱动程序。In step S305, the wake-up module 120 receives the interrupt event to obtain wake-up information from the driver of the network card. The driver program of the network card is a driver program conforming to a Network Driver Interface Specification (NDIS).

在步骤S307中,唤醒模块120根据所述唤醒信息判断电子装置100是否处于经由网络卡唤醒所进入的部分唤醒模式。In step S307 , the wake-up module 120 determines whether the electronic device 100 is in the partial wake-up mode entered through wake-up via the network card according to the wake-up information.

若电子装置100处于部分唤醒模式,在步骤S309中,唤醒模块120唤醒电子装置100至正常运作模式。If the electronic device 100 is in the partial wake-up mode, in step S309 , the wake-up module 120 wakes up the electronic device 100 to the normal operation mode.

反之,若电子装置100处非于部分唤醒模式,在步骤S311中,唤醒模块120会请求输入事件过滤模块110传送电源按钮的控制码至电子装置100的电源管理接口,以执行电源按钮的对应行为。其中电源管理接口包括先进架构与电源接口(ACPI)。On the contrary, if the electronic device 100 is not in the partial wake-up mode, in step S311, the wake-up module 120 will request the input event filter module 110 to transmit the control code of the power button to the power management interface of the electronic device 100 to execute the corresponding behavior of the power button . The power management interface includes Advanced Architecture and Power Interface (ACPI).

然而,图3中各步骤已详细说明如上,在此便不再赘述。值得注意的是,图3中各步骤可以实作为多个程序码或是电路,本发明并不在此限。此外,图3的方法可以搭配以上实施例使用,也可以单独使用,本发明并不在此限。However, each step in FIG. 3 has been described in detail above, and will not be repeated here. It should be noted that each step in FIG. 3 can be implemented as a plurality of program codes or circuits, and the present invention is not limited thereto. In addition, the method in FIG. 3 can be used in conjunction with the above embodiments, or can be used alone, and the present invention is not limited thereto.

图4是依照本发明一实施例所示的基于鼠标或键盘触发的输入事件的电子装置的唤醒方法流程图。FIG. 4 is a flowchart of a method for waking up an electronic device based on an input event triggered by a mouse or a keyboard according to an embodiment of the present invention.

请参照图4,在步骤S401中,唤醒模块120会拦截由鼠标或键盘所触发的输入事件。Please refer to FIG. 4 , in step S401 , the wakeup module 120 intercepts input events triggered by the mouse or the keyboard.

在步骤S403中,唤醒模块120接收由鼠标或键盘所触发的输入事件之后,向网络卡的驱动程序取得唤醒信息。In step S403, the wake-up module 120 obtains wake-up information from the driver of the network card after receiving the input event triggered by the mouse or the keyboard.

在步骤S405中,唤醒模块120根据所述唤醒信息判断电子装置100是否处于经由网络卡唤醒所进入的部分唤醒模式。In step S405 , the wake-up module 120 determines whether the electronic device 100 is in the partial wake-up mode entered through wake-up via the network card according to the wake-up information.

若电子装置100处于部分唤醒模式,在步骤S407中,唤醒模块120唤醒电子装置100至正常运作模式。If the electronic device 100 is in the partial wake-up mode, in step S407, the wake-up module 120 wakes up the electronic device 100 to the normal operation mode.

若电子装置100非处于部分唤醒模式,在步骤S409中,唤醒模块120不会执行任何动作或者执行鼠标或键盘的对应行为。If the electronic device 100 is not in the partial wake-up mode, in step S409, the wake-up module 120 will not perform any actions or perform corresponding actions of the mouse or the keyboard.

图4中各步骤已详细说明如上,在此便不再赘述。值得注意的是,图4中各步骤可以实作为多个程序码或是电路,本发明并不在此限。此外,图4的方法可以搭配以上实施例使用,也可以单独使用,本发明并不在此限。Each step in FIG. 4 has been described in detail above, and will not be repeated here. It should be noted that each step in FIG. 4 can be implemented as a plurality of program codes or circuits, and the present invention is not limited thereto. In addition, the method in FIG. 4 can be used in conjunction with the above embodiments, or can be used alone, and the present invention is not limited thereto.

综上所述,本发明所提出的电子装置及其唤醒方法,通过接收输入事件后,判断电子装置是否已由网络卡唤醒以正确地唤醒电子装置至正常运作模式,由此可避免使用者预料之外的结果发生。基此,有效地改善使用者操作电子装置的经验。To sum up, the electronic device and its wake-up method proposed by the present invention judge whether the electronic device has been woken up by the network card after receiving an input event, so as to correctly wake up the electronic device to the normal operation mode, thereby preventing the user from anticipating Other results occur. Based on this, the user's experience in operating the electronic device is effectively improved.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (12)

1. the awakening method of an electronic installation, it is characterised in that being suitable to the electronic installation with input block and network card, the method comprises the following steps:
Receive the incoming event triggered by this input block;
Judge whether this electronic installation is in and wake a part of awakening mode entered via this network card up; And
If this electronic installation is in this partial wake pattern, wake this electronic installation up to normal operation mode.
2. the awakening method of electronic installation according to claim 1, it is characterised in that this input block is power knob, and after receiving the step of this incoming event triggered by this input block, also include:
Triggered interrupts event.
3. the awakening method of electronic installation according to claim 2, it is characterised in that judge whether this electronic installation is in the step being waken up this partial wake pattern entered by this network card and includes:
Receive this interrupt event, wake information up to obtain to the driver of this network card, and judge whether this electronic installation is in this partial wake pattern according to this.
4. the awakening method of electronic installation according to claim 2, it is characterised in that judge whether this electronic installation is in the step waking this partial wake pattern entered via this network card up and also includes:
If this electronic installation is non-is in this partial wake pattern, transmit the control code power-management interface to this electronic installation of this power knob, to perform the corresponding behavior of this power knob.
5. the awakening method of electronic installation according to claim 1, it is characterised in that this input block is keyboard or mouse, and after receiving the step of this incoming event triggered by this keyboard or this mouse, also includes:
Directly wake this electronic installation up to this normal operation mode.
6. the awakening method of electronic installation according to claim 1, it is characterized in that, in this partial wake pattern, this electronic installation only wakes up and far end device can be made to access the necessary element of data in this electronic installation by this network card, and described necessary element includes the processor of this electronic installation, this network card, memorizer and hard disk one of them or its and combines.
7. an electronic installation, it is characterised in that including:
Incoming event filtering module, receives the incoming event triggered by the input block of this electronic installation; And
Wake module, it is judged that whether this electronic installation is in is waken a part of awakening mode entered up via the network card of this electronic installation, wherein
If this electronic installation is in this partial wake pattern, this wake module wakes this electronic installation up to normal operation mode.
8. electronic installation according to claim 7, it is characterised in that this input block is power knob,
After wherein this incoming event filtering module receives this incoming event triggered by this input block, triggered interrupts event.
9. electronic installation according to claim 8, it is characterised in that this wake module receives this interrupt event, wakes information up to obtain to the driver of this network card, and judges whether this electronic installation is in this partial wake pattern according to this.
10. electronic installation according to claim 8, it is characterised in that
If this electronic installation is non-when being in this partial wake pattern, this wake module asks this incoming event filtering module to transmit the control code power-management interface to this electronic installation of this power knob, to perform the corresponding behavior of this power knob.
11. electronic installation according to claim 7, it is characterised in that this input block is keyboard or mouse,
After wherein this wake module receives this incoming event of being triggered by this keyboard or this mouse, this wake module directly wake this electronic installation up to this normal operation mode.
12. electronic installation according to claim 7, it is characterized in that, in this partial wake pattern, this electronic installation only wakes up and far end device can be made to access the necessary element of data in this electronic installation by this network card, and described necessary element includes the processor of this electronic installation, this network card, memorizer and hard disk one of them or its and combines.
CN201410670517.1A 2014-11-21 2014-11-21 Electronic device and awakening method thereof Pending CN105677379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410670517.1A CN105677379A (en) 2014-11-21 2014-11-21 Electronic device and awakening method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410670517.1A CN105677379A (en) 2014-11-21 2014-11-21 Electronic device and awakening method thereof

Publications (1)

Publication Number Publication Date
CN105677379A true CN105677379A (en) 2016-06-15

Family

ID=56957697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410670517.1A Pending CN105677379A (en) 2014-11-21 2014-11-21 Electronic device and awakening method thereof

Country Status (1)

Country Link
CN (1) CN105677379A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426525A (en) * 2017-08-18 2019-03-05 华为技术有限公司 A kind of method and device that the sleep state for computer wakes up
CN110750151A (en) * 2018-07-20 2020-02-04 技嘉科技股份有限公司 Computer wake-up method and computer power saving method
US11082919B2 (en) 2016-12-30 2021-08-03 Huawei Technologies Co., Ltd. Data processing method and terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013340A (en) * 2007-03-02 2007-08-08 中兴通讯股份有限公司 Method for reducing power consumption of wireless network interface card
US7260729B2 (en) * 2003-08-14 2007-08-21 Kabushiki Kaisha Toshiba Home network station with streaming media function and power control method thereof
US20080320492A1 (en) * 2007-06-20 2008-12-25 Intel Corporation Apparatus and methods using intelligent wake mechanisms
CN102017527A (en) * 2007-12-17 2011-04-13 韩国电子通信研究院 Wake-up apparatus and wake-up method for a low power sensor node
US20110213992A1 (en) * 2010-02-28 2011-09-01 Freescale Semiconductor, Inc. Method of waking processor from sleep mode
US20130019042A1 (en) * 2011-07-13 2013-01-17 Microsoft Corporation Mechanism to save system power using packet filtering by network interface
TWI417710B (en) * 2009-05-26 2013-12-01 Feature Integration Technology Inc Computer system for saving power consumption of a stand-by/power-off state and method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7260729B2 (en) * 2003-08-14 2007-08-21 Kabushiki Kaisha Toshiba Home network station with streaming media function and power control method thereof
CN101013340A (en) * 2007-03-02 2007-08-08 中兴通讯股份有限公司 Method for reducing power consumption of wireless network interface card
US20080320492A1 (en) * 2007-06-20 2008-12-25 Intel Corporation Apparatus and methods using intelligent wake mechanisms
CN102017527A (en) * 2007-12-17 2011-04-13 韩国电子通信研究院 Wake-up apparatus and wake-up method for a low power sensor node
TWI417710B (en) * 2009-05-26 2013-12-01 Feature Integration Technology Inc Computer system for saving power consumption of a stand-by/power-off state and method thereof
US20110213992A1 (en) * 2010-02-28 2011-09-01 Freescale Semiconductor, Inc. Method of waking processor from sleep mode
US20130019042A1 (en) * 2011-07-13 2013-01-17 Microsoft Corporation Mechanism to save system power using packet filtering by network interface

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11082919B2 (en) 2016-12-30 2021-08-03 Huawei Technologies Co., Ltd. Data processing method and terminal
US11627527B2 (en) 2016-12-30 2023-04-11 Huawei Technologies Co., Ltd. Data processing method and terminal
US11985593B2 (en) 2016-12-30 2024-05-14 Huawei Technologies Co., Ltd. Data processing method and terminal
CN109426525A (en) * 2017-08-18 2019-03-05 华为技术有限公司 A kind of method and device that the sleep state for computer wakes up
CN110750151A (en) * 2018-07-20 2020-02-04 技嘉科技股份有限公司 Computer wake-up method and computer power saving method

Similar Documents

Publication Publication Date Title
TWI684859B (en) Method for remote system recovery
US7437575B2 (en) Low power mode for device power management
CN102057344B (en) Sleep processor
TWI494857B (en) Method for performing wake-up event management, and associated apparatus and associated computer program product
US20090083560A1 (en) Computing Device Power Management
CN103116402B (en) Computer system with voice control function and voice control method
WO2010027375A1 (en) Method and system for providing hybrid-shutdown and fast startup processes
CN104461048A (en) Electronic device and control method thereof
TWI557551B (en) Electronic apparatus and wake-up method thereof
CN104182243B (en) Sleep state control system, computer system and sleep state detection method thereof
WO2020015203A1 (en) System recovery method and device
CN103294545A (en) Method for switching dual operating systems and electronic device
CN100378617C (en) Network awakening device and method
KR20110038648A (en) Manage power consumption of your computer
US9954755B2 (en) Maintenance method for network connection and computer system
CN105677379A (en) Electronic device and awakening method thereof
CN109831714B (en) Method, device and electronic device for recognizing button of earphone
EP1338947A1 (en) A power state sub-system and a method of changing the power state of a selected computer system
CN105468549A (en) Chip device and electronic system thereof
CN103488270A (en) Power saving method and electronic device thereof
TWI493458B (en) Computer apparatus and reboot method thereof
CN102594575A (en) System and method of controlling sleep and awakening of server
CN101576765A (en) Method, element and circuit board for controlling shutdown of electronic device
CN101303653B (en) Method for judging whether computer system executes reboot and computer system thereof
CN104142832A (en) Computer device and rebooting method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160615