CN116700465A - USB wake-up method, device, circuit, notebook computer, equipment and medium - Google Patents
USB wake-up method, device, circuit, notebook computer, equipment and medium Download PDFInfo
- Publication number
- CN116700465A CN116700465A CN202310464672.7A CN202310464672A CN116700465A CN 116700465 A CN116700465 A CN 116700465A CN 202310464672 A CN202310464672 A CN 202310464672A CN 116700465 A CN116700465 A CN 116700465A
- Authority
- CN
- China
- Prior art keywords
- power supply
- notebook computer
- wake
- usb
- detection information
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
本发明提供一种USB唤醒方法、装置、电路、笔记本电脑、设备及介质,该方法包括:在确定笔记本电脑处于睡眠状态的情况下,接收USB控制器发出的第一信号;若确定第一信号为唤醒信号,接收第一检测模组反馈的供电状态检测信息;在确定供电状态检测信息所携带的供电标识为内部电池供电的情况下,通过向第二检测模组发出查询请求查询笔记本电脑的机盖状态检测信息;在确定第二检测模组反馈的机盖状态检测信息所携带的合盖标识为假的情况下,向供电电路发送第二信号,以供供电电路根据第二信号将笔记本电脑由睡眠状态更新至工作状态。本发明提供的USB唤醒方法、装置、电路、笔记本电脑、设备及介质,实现对外设唤醒进行自动配置。
The present invention provides a USB wake-up method, device, circuit, notebook computer, equipment and medium. The method includes: when it is determined that the notebook computer is in a sleep state, receiving a first signal sent by a USB controller; To wake up the signal, receive the power supply status detection information fed back by the first detection module; when it is determined that the power supply identification carried by the power supply status detection information is powered by an internal battery, query the notebook computer by sending a query request to the second detection module. Cover state detection information; in the case of determining that the lid closure flag carried by the cover state detection information fed back by the second detection module is false, send a second signal to the power supply circuit, so that the power supply circuit will switch the notebook according to the second signal. The computer is updated from the sleeping state to the working state. The USB wake-up method, device, circuit, notebook computer, equipment and medium provided by the invention realize automatic configuration of peripheral wake-up.
Description
技术领域technical field
本发明涉及电子技术领域,尤其涉及一种USB唤醒方法、装置、电路、笔记本电脑、设备及介质。The invention relates to the field of electronic technology, in particular to a USB wake-up method, device, circuit, notebook computer, equipment and medium.
背景技术Background technique
笔记本电脑通常通过一颗挂在CPU总线下的嵌入式控制器,帮助笔记本电脑管理低速外设(例如触摸板、矩阵键盘等),并通过外设的工作状态控制笔记本电脑的睡眠及唤醒,以实现电源管理功能。默认设置下开机且处于活动状态的笔记本电脑合盖后,合盖传感器(通常为霍尔传感器)输出合盖信号,嵌入式控制器收到该信号后会使笔记本电脑进入睡眠状态。对于进入睡眠状态的笔记本电脑,当嵌入式控制器监控到开盖事件、USB外设动作等,则会通过唤醒信号控制电源并与桥片或CPU的总线实现唤醒。Laptops usually use an embedded controller hanging under the CPU bus to help the laptop manage low-speed peripherals (such as touchpads, matrix keyboards, etc.), and control the sleep and wake-up of the laptop through the working status of the peripherals, so as to Implement power management functions. By default, when the notebook computer is turned on and in an active state, when the lid is closed, the lid closure sensor (usually a Hall sensor) outputs a lid closure signal, and the embedded controller will put the notebook computer into a sleep state after receiving the signal. For a notebook computer in a sleep state, when the embedded controller monitors the event of opening the cover, the action of the USB peripheral, etc., it will control the power supply through the wake-up signal and wake up with the bridge chip or the bus of the CPU.
但是对于现有技术方案,在笔记本合盖后,允许各种唤醒源唤醒电脑,其中包括USB接口的外设(比如有线鼠标、无线鼠标)。因此容易发生误触USB外设(最典型的是鼠标),而无意中唤醒了笔记本电脑,使笔记本电脑处于不必要的活动状态。因活动状态功耗高,很快消耗掉电池的电量。且用户难以发现该状态而无从纠正。But for the prior art solution, after the notebook is closed, various wake-up sources are allowed to wake up the computer, including peripherals of the USB interface (such as a wired mouse, a wireless mouse). Therefore, it is easy to accidentally touch a USB peripheral (most typically a mouse), and inadvertently wake up the notebook computer, leaving the notebook computer in an unnecessary active state. Due to the high power consumption of the active state, the battery power is quickly consumed. And it is difficult for the user to find this state and there is no way to correct it.
当然,现有技术方案也可以在基本输入输出系统(Basic Input Output System,BIOS)的配置界面手动关闭USB唤醒,但这样会带来明显不便,无法满足笔记本电脑在开盖时需要USB唤醒的需求,未免有些得不偿失。Of course, the existing technical solution can also manually disable the USB wake-up in the configuration interface of the Basic Input Output System (BIOS), but this will bring obvious inconvenience, and cannot meet the need for USB wake-up when the laptop is opened. , it is unavoidable that some gains outweigh the losses.
发明内容Contents of the invention
本发明提供一种USB唤醒方法、装置、电路、笔记本电脑、设备及介质,用以解决现有技术中笔记本在睡眠状态时会由于误触USB外设而唤醒所导致电池产生非必需消耗的缺陷。The present invention provides a USB wake-up method, device, circuit, notebook computer, equipment and medium to solve the defect in the prior art that the notebook will be woken up by mistakenly touching the USB peripheral when it is in a sleep state, resulting in unnecessary consumption of the battery .
本发明提供一种USB唤醒方法,包括:The present invention provides a USB wake-up method, comprising:
在确定笔记本电脑处于睡眠状态的情况下,接收USB控制器发出的第一信号;When it is determined that the notebook computer is in the sleep state, receiving the first signal sent by the USB controller;
若确定所述第一信号为唤醒信号,接收第一检测模组反馈的供电状态检测信息;If it is determined that the first signal is a wake-up signal, receiving power supply state detection information fed back by the first detection module;
在确定所述供电状态检测信息所携带的供电标识为内部电池供电的情况下,通过向第二检测模组发出查询请求查询所述笔记本电脑的机盖状态检测信息;When it is determined that the power supply identification carried by the power supply state detection information is powered by an internal battery, query the cover state detection information of the notebook computer by sending a query request to the second detection module;
在确定所述第二检测模组反馈的机盖状态检测信息所携带的合盖标识为假的情况下,向供电电路发送第二信号,以供所述供电电路根据所述第二信号将所述笔记本电脑由睡眠状态更新至工作状态;When it is determined that the lid closing flag carried in the lid state detection information fed back by the second detection module is false, send a second signal to the power supply circuit, so that the power supply circuit can convert the lid according to the second signal. The notebook computer is updated from the sleeping state to the working state;
其中,所述第一信号是所述笔记本电脑的USB控制器在监控到USB外设产生触控操作的情况下生成的;所述USB外设为通过USB接口连接到笔记本电脑的有线鼠标、无线鼠标、有线键盘和无线键盘中的一种或者多种;所述供电状态检测信息是所述第一检测模组针对于电源适配器是否在位对所述笔记本电脑进行供电的方式进行判断得到的,当所述电源适配器在位时所对应的供电方式为外部电源供电,当所述电源适配器不在位时所对应的供电方式为内部电池供电;所述机盖状态检测信息是所述第二检测模组响应于所述查询请求而采集到的笔记本电脑的屏幕面和键盘面之间的相对位置关系。Wherein, the first signal is generated when the USB controller of the notebook computer monitors the touch operation of the USB peripheral; the USB peripheral is a wired mouse or a wireless mouse connected to the notebook through a USB interface One or more of a mouse, a wired keyboard, and a wireless keyboard; the power supply state detection information is obtained by the first detection module judging whether the power adapter is in place to supply power to the notebook computer, When the power adapter is in place, the corresponding power supply mode is external power supply, and when the power adapter is not in place, the corresponding power supply mode is internal battery power supply; the cover state detection information is the second detection mode The group collects the relative positional relationship between the screen surface and the keyboard surface of the notebook computer in response to the query request.
根据本发明提供的一种USB唤醒方法,所述机盖状态检测信息至少包括所述屏幕面的外缘和所述键盘面的在铰接处所形成的夹角,和/或,所述屏幕面的外缘和所述键盘面的外缘之间的距离。According to a USB wake-up method provided by the present invention, the cover state detection information at least includes the angle formed at the hinge between the outer edge of the screen surface and the keyboard surface, and/or, the angle of the screen surface The distance between the outer edge and the outer edge of the keyboard face.
根据本发明提供的一种USB唤醒方法,确定所述第二检测模组反馈的机盖状态检测信息所携带的合盖标识为假,包括:According to a USB wake-up method provided by the present invention, it is determined that the cover closure flag carried by the cover state detection information fed back by the second detection module is false, including:
在确定所述机盖状态检测信息所携带的笔记本电脑的屏幕面和键盘面之间的夹角和/或外缘距离大于预设阈值的情况下,将所述合盖标识设置为假。When it is determined that the included angle and/or outer edge distance between the screen surface and the keyboard surface of the notebook computer carried by the cover state detection information is greater than a preset threshold, the lid closed flag is set to false.
根据本发明提供的一种USB唤醒方法,在所述在确定所述供电状态检测信息所携带的供电标识为内部电池供电的情况下,通过向第二检测模组发出查询请求查询所述笔记本电脑的机盖状态检测信息之后,还包括:According to a USB wake-up method provided by the present invention, when it is determined that the power supply identification carried by the power supply state detection information is powered by an internal battery, the notebook computer is queried by sending a query request to the second detection module After the hood status detection information of , it also includes:
在确定所述机盖状态检测信息所携带的笔记本电脑的屏幕面和键盘面之间的夹角和/或外缘距离小于或者等于预设阈值的情况下,将所述合盖标识设置为真,并使所述笔记本电脑保持睡眠状态。When it is determined that the included angle and/or outer edge distance between the screen surface and the keyboard surface of the notebook computer carried by the cover state detection information is less than or equal to a preset threshold value, the cover closure flag is set to true , and put said laptop to sleep.
根据本发明提供的一种USB唤醒方法,所述预设阈值取值为0。According to a USB wake-up method provided by the present invention, the preset threshold value is 0.
根据本发明提供的一种USB唤醒方法,在所述在确定所述机盖状态检测信息所携带的笔记本电脑的屏幕面和键盘面之间的夹角和/或外缘距离小于或者等于预设阈值的情况下,将所述合盖标识设置为真,并使所述笔记本电脑保持睡眠状态之后,还包括:According to a USB wake-up method provided by the present invention, the included angle and/or outer edge distance between the screen surface and the keyboard surface of the notebook computer carried by the cover state detection information is less than or equal to the preset In the case of the threshold, after setting the lid closed flag to true and keeping the laptop in a sleep state, further include:
若监控到所述键盘面上的内置键盘发生触控事件的情况下,使所述笔记本电脑继续保持睡眠状态。If it is monitored that a touch event occurs on the built-in keyboard on the keyboard surface, the notebook computer is kept in a sleep state.
根据本发明提供的一种USB唤醒方法,在所述若确定所述第一信号为唤醒信号,接收第一检测模组反馈的供电状态检测信息之后,还包括:According to a USB wake-up method provided by the present invention, after receiving the power supply state detection information fed back by the first detection module if it is determined that the first signal is a wake-up signal, it further includes:
在确定所述供电状态检测信息所携带的供电标识为外部电源供电的情况下,向供电电路发送第二信号,以供所述供电电路根据所述第二信号将所述笔记本电脑由睡眠状态更新至工作状态。When it is determined that the power supply identification carried by the power supply status detection information is powered by an external power supply, send a second signal to the power supply circuit, so that the power supply circuit can update the notebook computer from the sleep state according to the second signal to the working state.
根据本发明提供的一种USB唤醒方法,在所述在确定笔记本电脑处于睡眠状态的情况下,接收USB控制器发出的第一信号之后,还包括:According to a USB wake-up method provided by the present invention, after the first signal sent by the USB controller is received in the case of determining that the notebook computer is in a sleep state, it further includes:
若确定所述第一信号不为唤醒信号,使所述笔记本电脑保持睡眠状态。If it is determined that the first signal is not a wake-up signal, keep the notebook computer in a sleep state.
本发明还提供一种USB唤醒装置,包括:The present invention also provides a USB wake-up device, comprising:
唤醒监控模块,用于在确定笔记本电脑处于睡眠状态的情况下,接收USB控制器发出的第一信号;The wake-up monitoring module is used to receive the first signal sent by the USB controller when it is determined that the notebook computer is in a sleep state;
供电状态查询模块,用于若确定所述第一信号为唤醒信号,接收第一检测模组反馈的供电状态检测信息;A power supply status query module, configured to receive power supply status detection information fed back by the first detection module if it is determined that the first signal is a wake-up signal;
合盖状态查询模块,用于在确定所述供电状态检测信息所携带的供电标识为内部电池供电的情况下,通过向第二检测模组发出查询请求查询所述笔记本电脑的机盖状态检测信息;The cover state query module is used to query the cover state detection information of the notebook computer by sending a query request to the second detection module when it is determined that the power supply identification carried by the power supply state detection information is powered by an internal battery ;
唤醒拦截模块,用于在确定所述第二检测模组反馈的机盖状态检测信息所携带的合盖标识为假的情况下,向供电电路发送第二信号,以供所述供电电路根据所述第二信号将所述笔记本电脑由睡眠状态更新至工作状态;The wake-up interception module is configured to send a second signal to the power supply circuit when it is determined that the lid closing flag carried in the cover state detection information fed back by the second detection module is false, so that the power supply circuit The second signal updates the notebook computer from the sleeping state to the working state;
其中,所述第一信号是所述笔记本电脑的USB控制器在监控到USB外设产生触控操作的情况下生成的;所述USB外设为通过USB接口连接到笔记本电脑的有线鼠标、无线鼠标、有线键盘和无线键盘中的一种或者多种;所述供电状态检测信息是所述第一检测模组针对于电源适配器是否在位对所述笔记本电脑进行供电的方式进行判断得到的,当所述电源适配器在位时所对应的供电方式为外部电源供电,当所述电源适配器不在位时所对应的供电方式为内部电池供电;所述机盖状态检测信息是所述第二检测模组响应于所述查询请求而采集到的笔记本电脑的屏幕面和键盘面之间的相对位置关系。Wherein, the first signal is generated when the USB controller of the notebook computer monitors the touch operation of the USB peripheral; the USB peripheral is a wired mouse or a wireless mouse connected to the notebook through a USB interface One or more of a mouse, a wired keyboard, and a wireless keyboard; the power supply state detection information is obtained by the first detection module judging whether the power adapter is in place to supply power to the notebook computer, When the power adapter is in place, the corresponding power supply mode is external power supply, and when the power adapter is not in place, the corresponding power supply mode is internal battery power supply; the cover state detection information is the second detection mode The group collects the relative positional relationship between the screen surface and the keyboard surface of the notebook computer in response to the query request.
本发明还提供一种集成电路,包括USB控制器、嵌入式控制器、供电电路、第一检测模组和第二检测模组,所述嵌入式控制器运行时实现如上任一项所述USB唤醒方法;The present invention also provides an integrated circuit, including a USB controller, an embedded controller, a power supply circuit, a first detection module, and a second detection module. wake-up method;
所述USB控制器,用于在确定笔记本电脑处于睡眠状态时监控到USB外设产生触控操作的情况下,向所述嵌入式控制器发送第一信号;The USB controller is configured to send a first signal to the embedded controller when it is determined that the notebook computer is in a sleep state and monitors that the USB peripheral device generates a touch operation;
所述第一检测模组,用于在确定笔记本电脑外部的电源适配器在位的情况下,将供电标识设置为外部电源供电后,将携带有设置好的供电标识的供电状态检测信息反馈至所述嵌入式控制器;The first detection module is used to feed back the power supply state detection information carrying the set power supply logo to the laptop after setting the power supply logo as an external power supply when it is determined that the power adapter outside the notebook computer is in place. the embedded controller;
所述第一检测模组,用于在确定笔记本电脑外部的电源适配器不在位的情况下,将供电标识设置为内部电池供电后,将携带有设置好的供电标识的供电状态检测信息反馈至所述嵌入式控制器;The first detection module is used to feed back the power supply status detection information carrying the set power supply logo to the laptop after setting the power supply logo as the internal battery power supply when it is determined that the external power adapter of the notebook computer is not in place. the embedded controller;
所述第二检测模组,用于基于笔记本电脑的屏幕面和键盘面之间的相对位置关系,向所述嵌入式控制器反馈机盖状态检测信息;The second detection module is used to feed back cover state detection information to the embedded controller based on the relative positional relationship between the screen surface and the keyboard surface of the notebook computer;
所述供电电路,用于接收并响应于所述嵌入式控制器发出的第二信号,对所述笔记本电脑唤醒后的工作状态进行相应的电源管理;The power supply circuit is configured to receive and respond to the second signal sent by the embedded controller, and perform corresponding power management on the working state of the notebook computer after it wakes up;
其中,所述第二检测模组为霍尔传感器;所述供电电路包括电源电路和开机电路。Wherein, the second detection module is a Hall sensor; the power supply circuit includes a power supply circuit and a power-on circuit.
本发明还提供一种笔记本电脑,包括笔记本电脑本体,以及在所述笔记本电脑本体内设置的如上任一项所述的集成电路。The present invention also provides a notebook computer, including a notebook computer body, and the integrated circuit as described in any one of the above-mentioned notebook computer bodies arranged in the notebook computer body.
本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述USB唤醒方法。The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the USB wake-up method described above can be implemented.
本发明提供的USB唤醒方法、装置、电路、笔记本电脑、设备及介质,本发明实施例在笔记本电脑处于睡眠状态时拦截USB控制器对USB外设所监控到的用于申请唤醒系统的第一信号后,先通过第二一检测模组反馈的供电状态检测信息对笔记本电脑的使用场景做出初步判断,确定其利用供电电路进行内部电池供电时再根据第一二检测模组反馈的机盖状态检测信息执行不同的处理,决策是否唤醒系统。实现无需额外手动配置USB唤醒的开关,能够综合笔记本电脑的供电方式和合盖状态对其外设唤醒进行自动配置,以在内部电池供电且合盖状态下,使得USB外设无法正常唤醒睡眠的笔记本电脑。The USB wake-up method, device, circuit, notebook computer, equipment, and medium provided by the present invention, the embodiment of the present invention intercepts the first request to wake up the system monitored by the USB controller to the USB peripherals when the notebook computer is in a sleep state. After receiving the signal, first make a preliminary judgment on the use scene of the notebook computer through the power supply status detection information fed back by the second and first detection modules, and then make a preliminary judgment on the use scene of the notebook computer according to the feedback of the first and second detection modules when it is determined that it uses the power supply circuit for internal battery power supply. The status detection information performs different processing, and decides whether to wake up the system. Realize no additional manual configuration of the USB wake-up switch, and can automatically configure the peripheral wake-up based on the power supply mode and the closed state of the notebook computer, so that the USB peripheral cannot wake up the sleeping notebook normally when the internal battery is powered and the cover is closed computer.
附图说明Description of drawings
为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the present invention or the technical solutions in the prior art, the accompanying drawings that need to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are the present invention. For some embodiments of the invention, those skilled in the art can also obtain other drawings based on these drawings without creative effort.
图1是本发明提供的USB唤醒方法的流程示意图之一;Fig. 1 is one of the flow diagrams of the USB wake-up method provided by the present invention;
图2是本发明提供的USB唤醒方法的流程示意图之二;Fig. 2 is the second schematic flow chart of the USB wake-up method provided by the present invention;
图3是本发明提供的USB唤醒方法的流程示意图之三;Fig. 3 is the third schematic flow chart of the USB wake-up method provided by the present invention;
图4是本发明提供的USB唤醒装置的结构示意图;Fig. 4 is a schematic structural diagram of a USB wake-up device provided by the present invention;
图5是本发明提供的集成电路的结构示意图;Fig. 5 is a structural schematic diagram of an integrated circuit provided by the present invention;
图6是本发明提供的笔记本电脑的结构示意图;Fig. 6 is the structural representation of the notebook computer provided by the present invention;
图7是本发明提供的电子设备的结构示意图。Fig. 7 is a schematic structural diagram of an electronic device provided by the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本申请中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。The terms "first", "second" and the like in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects.
应当理解,在本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should be understood that the terminology used in the description of the present invention is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly dictates otherwise.
术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。The terms "comprising" and "comprising" indicate the presence of described features, integers, steps, operations, elements and/or components, but do not exclude the presence of one or more other features, integers, steps, operations, elements, components and/or The presence or addition of its collection.
图1是本发明提供的USB唤醒方法的流程示意图之一。如图1所示,本发明实施例提供的USB唤醒方法,包括:步骤101、在确定笔记本电脑处于睡眠状态的情况下,接收USB控制器发出的第一信号。FIG. 1 is one of the schematic flowcharts of the USB wake-up method provided by the present invention. As shown in FIG. 1 , the USB wake-up method provided by the embodiment of the present invention includes: Step 101 , when it is determined that the notebook computer is in a sleep state, receiving a first signal sent by a USB controller.
其中,所述第一信号是所述笔记本电脑的USB控制器在监控到USB外设产生触控操作的情况下生成的。所述USB外设为通过USB接口连接到笔记本电脑的有线鼠标、无线鼠标、有线键盘和无线键盘中的一种或者多种。Wherein, the first signal is generated when the USB controller of the notebook computer monitors that the USB peripheral device generates a touch operation. The USB peripheral is one or more of a wired mouse, a wireless mouse, a wired keyboard, and a wireless keyboard connected to a notebook computer through a USB interface.
需要说明的是,本发明实施例提供的服务器外设配置识别方法的执行主体是设置在服务器中的服务器外设配置识别装置。It should be noted that the server peripheral configuration identification method provided by the embodiment of the present invention is executed by a server peripheral configuration identification device set in the server.
本申请实施例提供的USB唤醒方法的应用场景,笔记本电脑的唤醒流程通常是通过笔记本电脑的嵌入式控制器实现的,通过增加笔记本电脑是否合盖的判断,来决定是否唤醒系统。当笔记本为合盖状态时,不允许USB外设唤醒电脑。当笔记本为开盖状态时,允许唤醒USB外设唤醒电脑。从而实现根据是否合盖来自动配置是否允许USB唤醒的效果。In the application scenario of the USB wake-up method provided by the embodiment of the present application, the wake-up process of the notebook computer is usually realized by the embedded controller of the notebook computer, and whether to wake up the system is determined by adding the judgment of whether the notebook computer is closed or not. When the notebook is closed, the USB peripherals are not allowed to wake up the computer. When the notebook is opened, it is allowed to wake up the USB peripheral to wake up the computer. In this way, the effect of automatically configuring whether to allow USB wake-up is realized according to whether the lid is closed or not.
需要说明的是,USB外设,是指除主机硬件设备外的其它设备,上述设备均通过USB接口连接到笔记本电脑的USB控制器,以使得USB控制器在监控到USB外设处于活跃状态时有信号连接到嵌入式控制器。It should be noted that USB peripherals refer to other devices except host hardware devices. The above-mentioned devices are all connected to the USB controller of the notebook computer through the USB interface, so that when the USB controller monitors that the USB peripherals are active There are signals connected to the embedded controller.
示例性地,通过USB接口与笔记本电脑连接USB外设可以为鼠标,以通过对当前屏幕上的游标进行定位,并通过按键和滚轮装置对游标所经过位置的屏幕元素进行操作触发唤醒动作。Exemplarily, the USB peripheral connected to the notebook computer through the USB interface can be a mouse, so as to trigger a wake-up action by positioning the cursor on the current screen and operating the screen elements at the position passed by the cursor through the button and wheel device.
其中,鼠标既可以为通过具有USB接口的数据线进行有线通信的有线鼠标,也可以为具有USB接口的无线收发器进行无线通信的无线鼠标,本发明实施例对此不做具体限定。Wherein, the mouse may be a wired mouse for wired communication through a data cable with a USB interface, or a wireless mouse for wireless communication with a wireless transceiver with a USB interface, which is not specifically limited in this embodiment of the present invention.
示例性地,通过USB接口与笔记本电脑连接USB外设可以为键盘,以通过将英文字母、汉字、数字、标点符号等输入到计算机中,从而向计算机发出命令、输入数据时触发唤醒动作。Exemplarily, the USB peripheral connected to the notebook computer through the USB interface can be a keyboard, so as to send commands to the computer and trigger a wake-up action when inputting data by inputting English letters, Chinese characters, numbers, punctuation marks, etc. into the computer.
其中,键盘既可以为通过具有USB接口的数据线进行有线通信的有线键盘,也可以为具有USB接口的无线收发器进行无线通信的无线键盘,本发明实施例对此不做具体限定。Wherein, the keyboard may be a wired keyboard for wired communication through a data cable with a USB interface, or a wireless keyboard for wireless communication with a wireless transceiver with a USB interface, which is not specifically limited in this embodiment of the present invention.
具体地,在步骤101中,设置在嵌入式控制器的USB唤醒装置根据笔记本电脑中各部件的运行信息确定笔记本电脑已经处于睡眠状态时,接收来自USB控制器在监控到其所纳管的USB外设处于活跃状态时所发出的第一信号。Specifically, in step 101, when the USB wake-up device set on the embedded controller determines that the notebook computer is already in a sleep state according to the operation information of each component in the notebook computer, it receives a USB The first signal sent when a peripheral is active.
其中,第一信号根据USB外设处于活跃状态所执行的不同触控动作,具有不同的动作属性。Wherein, the first signal has different action attributes according to different touch actions performed by the USB peripheral in an active state.
例如,USB外设在处于活跃状态时连续多次被触控,或者,持续被触控一段时间后,认定此种情况下第一信号所对应的属性为申请唤醒系统。For example, when the USB peripheral is in an active state and is continuously touched multiple times, or after being continuously touched for a period of time, it is determined that the attribute corresponding to the first signal in this case is an application for waking up the system.
而USB外设在处于非活跃状态,或者在处于活跃状态时仅发生一次触控,认定此种情况下第一信号不具备唤醒系统的属性。However, when the USB peripheral is in an inactive state, or only one touch occurs when it is in an active state, it is determined that the first signal does not have the property of waking up the system in this case.
步骤102、若确定所述第一信号为唤醒信号,接收第一检测模组反馈的供电状态检测信息。Step 102: If it is determined that the first signal is a wake-up signal, receive power supply state detection information fed back by the first detection module.
其中,所述供电状态检测信息是所述第一检测模组针对于电源适配器是否在位对所述笔记本电脑进行供电的方式进行判断得到的,当所述电源适配器在位时所对应的供电方式为外部电源供电,当所述电源适配器不在位时所对应的供电方式为内部电池供电。Wherein, the power supply state detection information is obtained by the first detection module judging whether the power adapter is in place to supply power to the notebook computer, and the corresponding power supply mode when the power adapter is in place It is powered by an external power supply, and the corresponding power supply mode is powered by an internal battery when the power adapter is not in place.
需要说明的是,第一检测模组,是指用于通过笔记本电脑的电源适配器是否接入检测出其供电方式。It should be noted that the first detection module is used to detect the power supply mode of the notebook computer based on whether the power adapter is connected.
具体地,在步骤102中,设置在嵌入式控制器的USB唤醒装置根据第一信号的属性对是否拦截本次唤醒做进一步的判断:Specifically, in step 102, the USB wake-up device provided on the embedded controller further judges whether to intercept this wake-up according to the attribute of the first signal:
若第一信号所对应的属性为申请唤醒系统,则若向第一检测模组查询笔记本电脑的供电方式,并获得第一检测模组对此所反馈的供电状态检测信息。If the attribute corresponding to the first signal is an application to wake up the system, then if the first detection module is inquired about the power supply mode of the notebook computer, and the power supply status detection information fed back by the first detection module is obtained.
若第一信号所对应的属性不为申请唤醒系统,则无需执行任何操作,仍保持原始的睡眠状态。If the attribute corresponding to the first signal is not an application for waking up the system, no operation is required and the original sleep state is maintained.
其中,供电状态检测信息所携带的供电标识用于指示笔记本电脑的电源适配器是否处于被接入。若其被接入,则供电标识为外部电源供电,以指示笔记本电脑当前通过电源适配器进行外部供电。反之,则供电标识为内部电池供电,以指示笔记本电脑当前有内部的供电电路进行内部供电,需要进一步截获此时监控到的唤醒行为。Wherein, the power supply identification carried in the power supply state detection information is used to indicate whether the power adapter of the notebook computer is being connected. If it is connected, the power supply identification is an external power supply to indicate that the notebook computer is currently powered externally through the power adapter. On the contrary, the power supply flag is powered by the internal battery to indicate that the notebook computer currently has an internal power supply circuit for internal power supply, and the wake-up behavior monitored at this time needs to be further intercepted.
步骤103、在确定所述供电状态检测信息所携带的供电标识为内部电池供电的情况下,通过向第二检测模组发出查询请求查询所述笔记本电脑的机盖状态检测信息。Step 103: When it is determined that the power supply identification carried in the power supply state detection information is powered by an internal battery, query the cover state detection information of the notebook computer by sending a query request to the second detection module.
其中,所述机盖状态检测信息是所述第二检测模组响应于所述查询请求而采集到的笔记本电脑的屏幕面和键盘面之间的相对位置关系。Wherein, the cover state detection information is the relative positional relationship between the screen surface and the keyboard surface of the notebook computer collected by the second detection module in response to the query request.
需要说明的是,第二检测模组,是指用于检测笔记本电脑的屏幕面和键盘面是否接近贴合,即笔记本电脑是否处于合盖状态,或者用户对笔记本电脑的操作意图为将其合盖。It should be noted that the second detection module is used to detect whether the screen surface of the notebook computer is close to the keyboard surface, that is, whether the notebook computer is in the closed state, or the user's operation intention on the notebook computer is to close it. build.
具体地,在步骤103中,设置在嵌入式控制器的USB唤醒装置根据供电状态检测信息对是否启动合盖检测进行进一步的判断:Specifically, in step 103, the USB wake-up device set on the embedded controller further judges whether to start the lid closing detection according to the power supply state detection information:
若供电状态检测信息携带的供电标识指示内部电池供电,即说明笔记本电脑当前仅由内部电池供电,其使用场景倾向于用户便携携带笔记本电脑并进行相关操作,则需要对此场景下监控到的唤醒动作更加警惕,通过向第二检测模组查询笔记本电脑的屏幕面和键盘面相对位置关系,并获得第二检测模组对此所反馈的机盖状态检测信息。If the power supply indicator carried in the power supply status detection information indicates that the internal battery is powered, it means that the notebook computer is currently powered only by the internal battery, and its use scenario tends to be carried by the user to carry the notebook computer and perform related operations. The action is more vigilant, by querying the relative positional relationship between the screen surface and the keyboard surface of the notebook computer from the second detection module, and obtaining the cover state detection information fed back by the second detection module.
其中,机盖状态检测信息携带有合盖标识用于指示笔记本电脑是否处于合盖状态,或者用户对笔记本电脑的操作意图为将其合盖。合盖标识具有逻辑性质上的取值,若合盖标识为真值,笔记本电脑当前处于合盖状态,需要截获此时监控到的唤醒行为,反之,合盖标识为假值,笔记本电脑当前处于开盖状态,则无需对此时监控到的唤醒行为进行拦截。Wherein, the lid state detection information carries a lid-closed flag to indicate whether the notebook computer is in the lid-closed state, or the intention of the user to operate the notebook computer is to close the lid. The lid closing flag has a logical value. If the lid closing flag is a true value, the laptop is currently in the lid closing state, and the wake-up behavior monitored at this time needs to be intercepted. Otherwise, the lid closing flag is a false value, and the laptop is currently in the closed state. In the state of opening the cover, there is no need to intercept the wake-up behavior monitored at this time.
步骤104、在确定所述第二检测模组反馈的机盖状态检测信息所携带的合盖标识为真的情况下,向供电电路发送第二信号,以供所述供电电路根据所述第二信号将所述笔记本电脑由睡眠状态更新至工作状态。Step 104, when it is determined that the lid closing flag carried in the cover state detection information fed back by the second detection module is true, send a second signal to the power supply circuit for the power supply circuit to use according to the second The signal updates the notebook computer from the sleeping state to the working state.
需要说明的是,供电电路采用开关稳压电源电路,其主要由电源控制芯片、场效应管、电容器、电阻器和电感器等电子元器件组成,用于在笔记本电脑处于不同状态时执行相应的供电模式,以向其所涉及到的部件相应进行供电。It should be noted that the power supply circuit adopts a switching power supply circuit, which is mainly composed of electronic components such as power control chips, field effect transistors, capacitors, resistors and inductors, and is used to perform corresponding functions when the notebook computer is in different states. Power supply mode to supply power to the components involved.
其中,笔记本电脑通常具有四种运行状态:Among them, notebook computers usually have four operating states:
(1)工作状态,是指一个系统的全功能状态,是在这个系统的软硬件能力范围之内,只要发生任何一个触控动作,笔记本电脑立即就有相应的反馈。(1) Working state refers to the full-featured state of a system, which is within the capability of the system's software and hardware. As long as any touch action occurs, the notebook computer will immediately have corresponding feedback.
(2)睡眠状态,中央处理器(Central Processing Unit,CPU)停止执行指令,后台的所有程序暂停执行,内存中的东西原样留在内存中。在系统被唤醒前,如果断电,内存中的信息将全部丢失,因为内存中的信息需要少量电力来维持。系统唤醒后,所有的系统状态恢复成睡眠前的样子。之前打开的所有应用程序窗口都留在原处,里面的内容也没变。(2) Sleep state, the central processing unit (Central Processing Unit, CPU) stops executing instructions, all programs in the background are suspended, and the things in the memory remain in the memory as they are. Before the system is woken up, if the power is cut off, all the information in the memory will be lost, because the information in the memory requires a small amount of power to maintain. After the system wakes up, all system states return to what they were before sleep. All previously open application windows remain in place and their contents remain unchanged.
(3)休眠状态,休眠状态和睡眠状态的大部分特征是相同的,区别之处在于原先睡眠状态下留在内存中的信息被原样写入硬盘,休眠完成后系统自身进入零耗电状态。唤醒系统时,硬盘中的内存镜像被原样装入内存,系统恢复运行。(3) Sleep state, most of the features of the sleep state and the sleep state are the same, the difference is that the information left in the memory in the sleep state is written to the hard disk as it is, and the system itself enters a zero power consumption state after the sleep state is completed. When the system is woken up, the memory image in the hard disk is loaded into the memory as it is, and the system resumes operation.
(4)关机状态,则会进入到零耗电模式,且内存中的数据全部被清空。(4) In the shutdown state, it will enter the zero power consumption mode, and all the data in the memory will be cleared.
具体地,在步骤104中,设置在嵌入式控制器的USB唤醒装置根据机盖状态检测信息对最终是否进行唤醒系统进行进一步的判断:Specifically, in step 104, the USB wake-up device arranged on the embedded controller further judges whether to wake up the system according to the cover state detection information:
若机盖状态检测信息携带有合盖标识为假值,即说明笔记本电脑当前处于开盖状态,或者用户对笔记本电脑的操作意图为将其开盖,则向供电电路发送第二信号,以唤醒系统。If the lid state detection information carries a false value of the lid closing flag, it means that the notebook computer is currently in the open state, or the user’s intention to operate the notebook computer is to open the lid, then send a second signal to the power supply circuit to wake up the notebook computer. system.
供电电路接收并响应于第二信号,对输入供电进行脉冲调制,实现供电转换以及自动稳压和输出可调电压的功能。从而,将笔记本电脑由原始的睡眠状态的供电模式转换至工作状态所对应的供电模式。The power supply circuit receives and responds to the second signal, performs pulse modulation on the input power supply, realizes the functions of power supply conversion, automatic voltage stabilization and output adjustable voltage. Therefore, the notebook computer is converted from the power supply mode of the original sleep state to the power supply mode corresponding to the working state.
若机盖状态检测信息携带有合盖标识为真值,即说明笔记本电脑当前处于合盖状态,或者用户对笔记本电脑的操作意图为将其合盖,则确定拦截当前监控到的外设唤醒操作,仍保持原始的睡眠状态。If the cover status detection information carries the cover closing flag as true, it means that the laptop is currently in the cover closed state, or the user’s intention to operate the laptop is to close the cover, then determine to intercept the currently monitored peripheral wake-up operation , still maintaining the original sleep state.
本发明实施例在笔记本电脑处于睡眠状态时拦截USB控制器对USB外设所监控到的用于申请唤醒系统的第一信号后,先通过第一检测模组反馈的供电状态检测信息对笔记本电脑的使用场景做出初步判断,确定其利用供电电路进行内部电池供电时再根据第二检测模组反馈的机盖状态检测信息执行不同的处理,决策是否唤醒系统。实现无需额外手动配置USB唤醒的开关,能够综合笔记本电脑的供电方式和合盖状态对其外设唤醒进行自动配置,以在内部电池供电且合盖状态下,使得USB外设无法正常唤醒睡眠的笔记本电脑。In the embodiment of the present invention, when the notebook computer is in a sleep state, after intercepting the first signal for applying to wake up the system monitored by the USB controller to the USB peripheral, the first detection information of the power supply status fed back by the first detection module is sent to the notebook computer. Make a preliminary judgment based on the usage scenario, determine whether it uses the power supply circuit for internal battery power supply, and then perform different processing according to the cover status detection information fed back by the second detection module, and decide whether to wake up the system. Realize no additional manual configuration of the USB wake-up switch, and can automatically configure the peripheral wake-up based on the power supply mode and the closed state of the notebook computer, so that the USB peripheral cannot wake up the sleeping notebook normally when the internal battery is powered and the cover is closed computer.
在上述任一实施例的基础上,所述机盖状态检测信息至少包括所述屏幕面的外缘和所述键盘面的在铰接处所形成的夹角,和/或,所述屏幕面的外缘和所述键盘面的外缘之间的距离。On the basis of any of the above embodiments, the cover state detection information at least includes the angle formed at the hinge between the outer edge of the screen surface and the keyboard surface, and/or, the outer edge of the screen surface The distance between the edge and the outer edge of the keyboard face.
具体地,设置在嵌入式控制器的USB唤醒装置通过向第二检测模组下发的查询请求,以对笔记本电脑的屏幕面和键盘面之间的相对位置进行检测,可以将屏幕面和键盘面之间的夹角封装至机盖状态检测信息反馈给USB唤醒装置。Specifically, the USB wake-up device set on the embedded controller can detect the relative position between the screen surface and the keyboard surface of the notebook computer through the query request sent to the second detection module, and can compare the screen surface and the keyboard surface The angle between the package and the cover status detection information is fed back to the USB wake-up device.
还可以将屏幕面外缘上某一基准点,以及键盘面外缘上与该基准点对应的参考点之间的距离封装至机盖状态检测信息反馈给USB唤醒装置。The distance between a certain reference point on the outer edge of the screen surface and the reference point corresponding to the reference point on the outer edge of the keyboard surface can also be packaged into the cover state detection information and fed back to the USB wake-up device.
本发明实施例通过向第二检测模组下发查询请求,以接收第二检测模组反馈的机盖状态检测信息,解析出笔记本电脑的屏幕面和键盘面之间的距离。进而,通过笔记本电脑的屏幕面和键盘面之间的夹角或者距离,对合盖进行判断来决定是否唤醒系统,以实现根据是否合盖来自动配置是否允许USB唤醒的效果。In the embodiment of the present invention, a query request is sent to the second detection module to receive the cover state detection information fed back by the second detection module, and analyze the distance between the screen surface and the keyboard surface of the notebook computer. Furthermore, according to the angle or distance between the screen surface and the keyboard surface of the notebook computer, the lid closure is judged to determine whether to wake up the system, so as to realize the effect of automatically configuring whether to allow USB wake-up according to whether the lid is closed.
在上述任一实施例的基础上,在所述在确定所述供电状态检测信息所携带的供电标识为内部电池供电的情况下,通过向第二检测模组发出查询请求查询所述笔记本电脑的机盖状态检测信息之后,还包括:在确定所述机盖状态检测信息所携带的笔记本电脑的屏幕面和键盘面之间的夹角和/或外缘距离小于或者等于预设阈值的情况下,将所述合盖标识设置为真,并使所述笔记本电脑保持睡眠状态。On the basis of any of the above-mentioned embodiments, when it is determined that the power supply identification carried by the power supply state detection information is powered by an internal battery, the notebook computer is queried by sending a query request to the second detection module. After the cover state detection information, it also includes: when it is determined that the angle and/or outer edge distance between the screen surface and the keyboard surface of the notebook computer carried by the cover state detection information is less than or equal to the preset threshold , set the closed lid flag to true, and keep the laptop in a sleep state.
需要说明的是,预设阈值,是指针对笔记本电脑的屏幕面和键盘面之间的相对位置关系所设置的门限值,以对笔记本电脑合盖状态进行判断。It should be noted that the preset threshold refers to the threshold set for the relative positional relationship between the screen surface and the keyboard surface of the notebook computer, so as to judge the closed state of the notebook computer.
具体地,设置在嵌入式控制器的USB唤醒装置可以从机盖状态检测信息所携带的笔记本电脑的屏幕面和键盘面之间的夹角进行判断,若二者之间的夹角大于预设阈值时,即说明笔记本电脑处于开盖状态,或者用户对笔记本电脑的操作意图为将其开盖,则将合盖标识设置为假。Specifically, the USB wake-up device arranged on the embedded controller can judge from the angle between the screen surface and the keyboard surface of the notebook computer carried by the cover state detection information, if the angle between the two is greater than the preset When the threshold is reached, it means that the laptop is in the open state, or the user intends to open the laptop by operating the laptop, then set the cover closed flag to false.
可以从机盖状态检测信息所携带的笔记本电脑的屏幕面和键盘面之间的外缘距离进行判断,若二者之间的距离大于预设阈值时,即说明笔记本电脑处于开盖状态,或者用户对笔记本电脑的操作意图为将其开盖,则将合盖标识设置为假,利用第二信号唤醒笔记本电脑。若二者之间的距离小于或者等于预设阈值时,即说明笔记本电脑处于合盖状态,或者用户对笔记本电脑的操作意图为将其合盖,则将合盖标识设置为真后,使笔记本电脑仍保持原有的睡眠状态。It can be judged from the outer edge distance between the screen surface and the keyboard surface of the notebook computer carried by the cover state detection information. If the distance between the two is greater than the preset threshold, it means that the notebook computer is in the open state, or If the user intends to operate the notebook computer to open the cover, the lid closing flag is set to false, and the notebook computer is woken up by the second signal. If the distance between the two is less than or equal to the preset threshold, it means that the notebook computer is in the closed state, or the user’s intention to operate the notebook computer is to close the lid, then set the closed cover flag to true to make the notebook computer The computer remains in its original sleep state.
本发明实施例在拦截当前的申请唤醒动作后,在根据第一检测模组反馈的机盖状态检测信息确定笔记本电脑的屏幕面和键盘面之间的夹角和/或外缘距离小于或者等于预设阈值时,决策将合盖标识逻辑为真后允许唤醒USB外设唤醒电脑。实现无需额外手动配置USB唤醒的开关,仅能够根据笔记本电脑两面之间构成的夹角和距离对合盖状态进行判断,并结合判断结果对其外设唤醒进行自动配置,以在合盖状态下使得USB外设无法正常唤醒睡眠的笔记本电脑,解决电脑合盖睡眠后,容易因误触USB外设而被唤醒的问题。进而避免唤醒后不必要的电量消耗和发热。In the embodiment of the present invention, after intercepting the current application wake-up action, according to the cover state detection information fed back by the first detection module, it is determined that the angle and/or outer edge distance between the screen surface and the keyboard surface of the notebook computer are less than or equal to When the threshold is preset, the decision will be closed and the flag logic is true to allow the USB peripheral to wake up the computer. Realize no additional manual configuration of the switch for USB wake-up. It can only judge the closed state according to the angle and distance formed between the two sides of the notebook computer, and combine the judgment results to automatically configure the wake-up of its peripherals, so that it can be closed in the closed state. This makes it impossible for USB peripherals to wake up sleeping laptops normally, and solves the problem that the computer is easily woken up by touching the USB peripherals by mistake after the computer is closed and sleeps. Thereby avoiding unnecessary power consumption and heating after waking up.
在上述任一实施例的基础上,所述预设阈值取值为0。On the basis of any of the foregoing embodiments, the preset threshold is 0.
具体地,设置在嵌入式控制器的USB唤醒装置可以将预设阈值的取值设置为0,以通过阈值比较判断笔记本电脑是否处于完全合盖状态。Specifically, the USB wake-up device installed on the embedded controller can set the value of the preset threshold to 0, so as to determine whether the notebook computer is in a completely closed state through threshold comparison.
可以理解的是,预设阈值的取值还可以被设置为略大于0的较小值,以通过阈值比较判断笔记本电脑是否是用户出于合盖的动作意图下,由于失误操作使其未完全合盖的状态。It can be understood that the value of the preset threshold can also be set to a smaller value slightly greater than 0, so as to determine whether the notebook computer is not fully closed due to a wrong operation under the action intention of the user to close the lid through threshold comparison. Closed state.
本发明实施例通过将对笔记本电脑的屏幕面和键盘面之间的夹角或者距离的阈值设置为0,以对笔记本电脑是否处于完全合盖进行判断。实现无需额外手动配置USB唤醒的开关,仅能够根据笔记本电脑两面之间构成的夹角和距离所判定出的合盖状态对外设唤醒进行自动配置。In the embodiment of the present invention, the threshold value of the angle or the distance between the screen surface and the keyboard surface of the notebook computer is set to 0 to judge whether the notebook computer is fully closed. Realize no need for additional manual configuration of the switch for USB wake-up, and can only automatically configure the peripheral wake-up according to the closed state determined by the angle and distance between the two sides of the notebook computer.
在上述任一实施例的基础上,在所述在确定所述机盖状态检测信息所携带的笔记本电脑的屏幕面和键盘面之间的夹角小于或者等于预设阈值的情况下,将所述合盖标识设置为真,并使所述笔记本电脑保持睡眠状态之后,还包括:若监控到所述键盘面上的内置键盘发生触控事件的情况下,使所述笔记本电脑继续保持睡眠状态。On the basis of any of the above embodiments, when it is determined that the angle between the screen surface and the keyboard surface of the laptop computer carried by the cover state detection information is less than or equal to the preset threshold, the After the lid closing flag is set to true and the notebook computer is kept in the sleep state, it also includes: if the built-in keyboard on the keyboard surface is monitored for a touch event, the notebook computer is kept in the sleep state .
具体地,设置在嵌入式控制器的USB唤醒装置在笔记本电脑合盖且处于睡眠状态后,监控到其键盘面上的内置键盘在发生触控事件申请唤醒时,使笔记本电脑继续保持睡眠状态。Specifically, after the notebook computer is closed and in a sleep state, the USB wake-up device arranged on the embedded controller monitors that the built-in keyboard on the keyboard surface applies for wakeup when a touch event occurs, and keeps the notebook computer in the sleep state.
示例性地,图2是本发明提供的USB唤醒方法的流程示意图之二。如图2所示,本发明实施例给出一种仅基于合盖检测进行USB唤醒方法的具体实施方式:Exemplarily, FIG. 2 is the second schematic flowchart of the USB wake-up method provided by the present invention. As shown in Figure 2, the embodiment of the present invention provides a specific implementation of a USB wake-up method based only on lid closing detection:
睡眠状态下,当嵌入式控制器收到USB控制器发出的第一信号,并确定该信号为唤醒信号后,嵌入式控制器查询第一检测模组,根据第一检测模组所反馈的机盖状态检测信息做不同处理。若为合盖状态,则不唤醒系统,若为开盖状态则唤醒系统。In the sleep state, when the embedded controller receives the first signal sent by the USB controller and determines that the signal is a wake-up signal, the embedded controller inquires the first detection module, and according to the mechanism fed back by the first detection module, Cover state detection information is handled differently. If the cover is closed, the system will not be woken up, and if the cover is opened, the system will be woken up.
本发明实施例在监控到笔记本电脑的内置键盘发生触控事件,使笔记本电脑继续保持原始的睡眠状态。能够防止笔记本电脑合盖睡眠后因压力误自带键盘的唤醒所引发的不必要的电量消耗。In the embodiment of the present invention, when a touch event is detected on the built-in keyboard of the notebook computer, the notebook computer is kept in the original sleep state. It can prevent unnecessary power consumption caused by waking up the laptop with its own keyboard due to pressure after closing the lid to sleep.
在上述任一实施例的基础上,在所述若确定所述第一信号为唤醒信号,接收第一检测模组反馈的供电状态检测信息之后,还包括:在确定所述供电状态检测信息所携带的供电标识为外部电源供电的情况下,向供电电路发送第二信号,以供所述供电电路根据所述第二信号将所述笔记本电脑由睡眠状态更新至工作状态。On the basis of any of the above-mentioned embodiments, if it is determined that the first signal is a wake-up signal, after receiving the power supply state detection information fed back by the first detection module, it further includes: after determining the power supply state detection information, When the carried power supply identification is an external power supply, a second signal is sent to the power supply circuit, so that the power supply circuit updates the notebook computer from the sleeping state to the working state according to the second signal.
具体地,设置在嵌入式控制器的USB唤醒装置根据供电状态检测信息对是否启动合盖检测进行先验判断:Specifically, the USB wake-up device set on the embedded controller performs a priori judgment on whether to start the lid closing detection according to the power supply state detection information:
若供电状态检测信息携带的供电标识指示外部电源供电,即说明笔记本电脑的使用场景倾向于用户在为笔记本电脑充电,一旦发生唤醒事件则认为是用户需要提前结束外部充电,则需要对此场景下监控到的唤醒动作更加宽容,只要USB外设触发唤醒事件,无论笔记本电脑是否合盖,均有原始的睡眠状态切换至工作状态。If the power supply identification carried by the power supply status detection information indicates external power supply, it means that the usage scenario of the notebook computer tends to be that the user is charging the notebook computer. Once a wake-up event occurs, it is considered that the user needs to end the external charging in advance. The monitored wake-up action is more tolerant. As long as the USB peripheral triggers a wake-up event, no matter whether the laptop is closed or not, the original sleep state will switch to the working state.
本发明实施例在笔记本电脑处于睡眠状态时拦截USB控制器对USB外设所监控到的用于申请唤醒系统的第一信号后,先通过第二检测模组反馈的供电状态检测信息对笔记本电脑的使用场景做出初步判断,确定其利用外部电源进行供电时直接对所有唤醒事件进行回应。实现无需额外手动配置USB唤醒的开关,能够综合笔记本电脑的供电方式和合盖状态对其外设唤醒进行自动配置,以在外部电源供电状态,可供USB外设正常唤醒睡眠的笔记本电脑。In the embodiment of the present invention, when the notebook computer is in a sleep state, after intercepting the first signal monitored by the USB controller to the USB peripheral for applying to wake up the system, the power supply state detection information fed back by the second detection module is first sent to the notebook computer. Make a preliminary judgment on the usage scenario, and determine that it directly responds to all wake-up events when it is powered by an external power supply. Realize no additional manual configuration of the USB wake-up switch, and can automatically configure the peripheral wake-up based on the power supply mode of the notebook computer and the closed state, so that the USB peripheral can normally wake up the sleeping notebook computer in the external power supply state.
在上述任一实施例的基础上,在所述在确定笔记本电脑处于睡眠状态的情况下,接收USB控制器发出的第一信号之后,还包括:若确定所述第一信号不为唤醒信号,使所述笔记本电脑保持睡眠状态。On the basis of any of the above embodiments, after the first signal sent by the USB controller is received in the case of determining that the notebook computer is in a sleep state, it further includes: if it is determined that the first signal is not a wake-up signal, Put said laptop to sleep.
具体地,在步骤101之后,设置在嵌入式控制器的USB唤醒装置若确定第一信号所对应的属性不为申请唤醒系统,则无需执行任何操作,仍保持原始的睡眠状态。Specifically, after step 101, if the USB wake-up device provided on the embedded controller determines that the attribute corresponding to the first signal is not an application for waking up the system, it does not need to perform any operation and remains in the original sleep state.
示例性地,图3是本发明提供的USB唤醒方法的流程示意图之三。如图3所示,本发明实施例给出一种仅基于供电检测和合盖检测进行USB唤醒方法的具体实施方式:Exemplarily, FIG. 3 is the third schematic flowchart of the USB wake-up method provided by the present invention. As shown in Figure 3, the embodiment of the present invention provides a specific implementation of a USB wake-up method based only on power supply detection and lid closing detection:
嵌入式控制器首先通过第二检测模组反馈的供电状态检测信息查询电源适配器是否插入,若插入则供电标识为外部电源供电,一旦监听到USB外设活跃直接唤醒系统。若电源适配器未插入,供电标识为内部电池供电,则需要进一步查询第一检测模组合盖,根据第一检测模组所反馈的机盖状态检测信息做不同处理。若为合盖状态,则不唤醒系统,若为开盖状态则唤醒系统。The embedded controller first checks whether the power adapter is plugged in through the power supply status detection information fed back by the second detection module. If it is plugged in, the power supply is marked as external power supply. Once the USB peripheral is detected to be active, the system is directly woken up. If the power adapter is not plugged in and the power supply sign is powered by an internal battery, it is necessary to further inquire about the combined cover of the first detection module, and perform different processing according to the cover state detection information fed back by the first detection module. If the cover is closed, the system will not be woken up, and if the cover is opened, the system will be woken up.
本发明实施例在笔记本电脑处于睡眠状态时未拦截到USB控制器对USB外设所监控到的用于申请唤醒系统的第一信号后,始终使笔记本电脑保持原始的睡眠状态。实现无需额外手动配置USB唤醒的开关,对其外设唤醒进行自动配置。In the embodiment of the present invention, when the notebook computer is in the sleep state, after the first signal for requesting to wake up the system monitored by the USB controller for the USB peripheral is not intercepted, the notebook computer is always kept in the original sleep state. Implement a switch that does not require additional manual configuration of USB wake-up, and automatically configures its peripheral wake-up.
图4是本发明提供的USB唤醒装置的结构示意图。在上述任一实施例的基础上,如图4所示,本发明实施例提供的USB唤醒装置包括唤醒监控模块410、供电状态查询模块420、合盖状态查询模块430和唤醒拦截模块440,其中:FIG. 4 is a schematic structural diagram of the USB wake-up device provided by the present invention. On the basis of any of the above-mentioned embodiments, as shown in FIG. 4 , the USB wake-up device provided by the embodiment of the present invention includes a wake-up monitoring module 410, a power supply status query module 420, a cover closing status query module 430, and a wake-up interception module 440, wherein :
唤醒监控模块410,用于在确定笔记本电脑处于睡眠状态的情况下,接收USB控制器发出的第一信号。The wake-up monitoring module 410 is configured to receive a first signal sent by the USB controller when it is determined that the notebook computer is in a sleep state.
供电状态查询模块420,用于若确定所述第一信号为唤醒信号,接收第一检测模组反馈的供电状态检测信息A power supply status query module 420, configured to receive power supply status detection information fed back by the first detection module if it is determined that the first signal is a wake-up signal
合盖状态查询模块430,用于在确定所述供电状态检测信息所携带的供电标识为内部电池供电的情况下,通过向第二检测模组发出查询请求查询所述笔记本电脑的机盖状态检测信息。The lid closing state query module 430 is configured to query the cover state detection of the notebook computer by sending a query request to the second detection module when it is determined that the power supply identification carried by the power supply state detection information is powered by an internal battery information.
唤醒拦截模块440,用于在确定所述第二检测模组反馈的机盖状态检测信息所携带的合盖标识为假的情况下,向供电电路发送第二信号,以供所述供电电路根据所述第二信号将所述笔记本电脑由睡眠状态更新至工作状态。The wake-up interception module 440 is configured to send a second signal to the power supply circuit when it is determined that the lid closure flag carried in the cover state detection information fed back by the second detection module is false, so that the power supply circuit The second signal updates the notebook computer from the sleeping state to the working state.
其中,所述第一信号是所述笔记本电脑的USB控制器在监控到USB外设产生触控操作的情况下生成的;所述USB外设为通过USB接口连接到笔记本电脑的有线鼠标、无线鼠标、有线键盘和无线键盘中的一种或者多种;所述供电状态检测信息是所述第一检测模组针对于电源适配器是否在位对所述笔记本电脑进行供电的方式进行判断得到的,当所述电源适配器在位时所对应的供电方式为外部电源供电,当所述电源适配器不在位时所对应的供电方式为内部电池供电;所述机盖状态检测信息是所述第二检测模组响应于所述查询请求而采集到的笔记本电脑的屏幕面和键盘面之间的相对位置关系。Wherein, the first signal is generated when the USB controller of the notebook computer monitors the touch operation of the USB peripheral; the USB peripheral is a wired mouse or a wireless mouse connected to the notebook through a USB interface One or more of a mouse, a wired keyboard, and a wireless keyboard; the power supply state detection information is obtained by the first detection module judging whether the power adapter is in place to supply power to the notebook computer, When the power adapter is in place, the corresponding power supply mode is external power supply, and when the power adapter is not in place, the corresponding power supply mode is internal battery power supply; the cover state detection information is the second detection mode The group collects the relative positional relationship between the screen surface and the keyboard surface of the notebook computer in response to the query request.
具体地,唤醒监控模块410、供电状态查询模块420、合盖状态查询模块430和唤醒拦截模块440顺次电连接。Specifically, the wake-up monitoring module 410 , the power supply status query module 420 , the lid closing status query module 430 and the wake-up blocking module 440 are electrically connected in sequence.
唤醒监控模块410根据笔记本电脑中各部件的运行信息确定笔记本电脑已经处于睡眠状态时,接收来自USB控制器在监控到其所纳管的USB外设处于活跃状态时所发出的第一信号。When the wake-up monitoring module 410 determines that the notebook computer is in the sleep state according to the operation information of each component in the notebook computer, it receives the first signal sent by the USB controller when it monitors that the USB peripheral it manages is in the active state.
供电状态查询模块420根据第一信号的属性对是否拦截本次唤醒做进一步的判断:The power supply state query module 420 makes a further judgment on whether to intercept this wake-up according to the attribute of the first signal:
若第一信号所对应的属性为申请唤醒系统,则若向第一检测模组查询笔记本电脑的供电方式,并获得第一检测模组对此所反馈的供电状态检测信息。If the attribute corresponding to the first signal is an application to wake up the system, then if the first detection module is inquired about the power supply mode of the notebook computer, and the power supply status detection information fed back by the first detection module is obtained.
若第一信号所对应的属性不为申请唤醒系统,则无需执行任何操作,仍保持原始的睡眠状态。If the attribute corresponding to the first signal is not an application for waking up the system, no operation is required and the original sleep state is maintained.
其中,供电状态检测信息所携带的供电标识用于指示笔记本电脑的电源适配器是否处于被接入。若其被接入,则供电标识为外部电源供电,以指示笔记本电脑当前通过电源适配器进行外部供电。反之,则供电标识为内部电池供电,以指示笔记本电脑当前有内部的供电电路进行内部供电,需要进一步截获此时监控到的唤醒行为。Wherein, the power supply identification carried in the power supply state detection information is used to indicate whether the power adapter of the notebook computer is being connected. If it is connected, the power supply identification is an external power supply to indicate that the notebook computer is currently powered externally through the power adapter. On the contrary, the power supply flag is powered by the internal battery to indicate that the notebook computer currently has an internal power supply circuit for internal power supply, and the wake-up behavior monitored at this time needs to be further intercepted.
合盖状态查询模块430根据供电状态检测信息对是否启动合盖检测进行进一步的判断:The lid closing state query module 430 further judges whether to start the lid closing detection according to the power supply state detection information:
若供电状态检测信息携带的供电标识指示内部电池供电,即说明笔记本电脑当前仅由内部电池供电,其使用场景倾向于用户便携携带笔记本电脑并进行相关操作,则需要对此场景下监控到的唤醒动作更加警惕,通过向第二检测模组查询笔记本电脑的屏幕面和键盘面相对位置关系,并获得第二检测模组对此所反馈的机盖状态检测信息。If the power supply indicator carried in the power supply status detection information indicates that the internal battery is powered, it means that the notebook computer is currently powered only by the internal battery, and its use scenario tends to be carried by the user to carry the notebook computer and perform related operations. The action is more vigilant, by querying the relative positional relationship between the screen surface and the keyboard surface of the notebook computer from the second detection module, and obtaining the cover state detection information fed back by the second detection module.
其中,机盖状态检测信息携带有合盖标识用于指示笔记本电脑是否处于合盖状态,或者用户对笔记本电脑的操作意图为将其合盖。合盖标识具有逻辑性质上的取值,若合盖标识为真值,笔记本电脑当前处于合盖状态,需要截获此时监控到的唤醒行为,反之,合盖标识为假值,笔记本电脑当前处于开盖状态,则无需对此时监控到的唤醒行为进行拦截。Wherein, the lid state detection information carries a lid-closed flag to indicate whether the notebook computer is in the lid-closed state, or the intention of the user to operate the notebook computer is to close the lid. The lid closing flag has a logical value. If the lid closing flag is a true value, the laptop is currently in the lid closing state, and the wake-up behavior monitored at this time needs to be intercepted. Otherwise, the lid closing flag is a false value, and the laptop is currently in the closed state. In the state of opening the cover, there is no need to intercept the wake-up behavior monitored at this time.
唤醒拦截模块440根据机盖状态检测信息对最终是否进行唤醒系统进行进一步的判断:The wake-up interception module 440 further judges whether to wake up the system according to the cover state detection information:
若机盖状态检测信息携带有合盖标识为假值,即说明笔记本电脑当前处于开盖状态,或者用户对笔记本电脑的操作意图为将其开盖,则向供电电路发送第二信号,以唤醒系统。If the lid state detection information carries a false value of the lid closing flag, it means that the notebook computer is currently in the open state, or the user’s intention to operate the notebook computer is to open the lid, then send a second signal to the power supply circuit to wake up the notebook computer. system.
供电电路接收并响应于第二信号,对输入供电进行脉冲调制,实现供电转换以及自动稳压和输出可调电压的功能。从而,将笔记本电脑由原始的睡眠状态的供电模式转换至工作状态所对应的供电模式。The power supply circuit receives and responds to the second signal, performs pulse modulation on the input power supply, realizes the functions of power supply conversion, automatic voltage stabilization and output adjustable voltage. Therefore, the notebook computer is converted from the power supply mode of the original sleep state to the power supply mode corresponding to the working state.
若机盖状态检测信息携带有合盖标识为真值,即说明笔记本电脑当前处于合盖状态,或者用户对笔记本电脑的操作意图为将其合盖,则确定拦截当前监控到的外设唤醒操作,仍保持原始的睡眠状态。If the cover status detection information carries the cover closing flag as true, it means that the laptop is currently in the cover closed state, or the user’s intention to operate the laptop is to close the cover, then determine to intercept the currently monitored peripheral wake-up operation , still maintaining the original sleep state.
可选地,所述机盖状态检测信息至少包括所述屏幕面的外缘和所述键盘面的在铰接处所形成的夹角,和/或,所述屏幕面的外缘和所述键盘面的外缘之间的距离。Optionally, the cover state detection information at least includes the angle formed at the hinge between the outer edge of the screen surface and the keyboard surface, and/or, the outer edge of the screen surface and the keyboard surface The distance between the outer edges of .
可选地,合盖状态查询模块430包括合盖标识判断单元,其中:Optionally, the lid closing state query module 430 includes a lid closing identification judging unit, wherein:
合盖标识判断单元,用于在确定所述机盖状态检测信息所携带的笔记本电脑的屏幕面和键盘面之间的夹角和/或外缘距离大于预设阈值的情况下,将所述合盖标识设置为假。The lid closing identification judging unit is used to determine that the included angle and/or outer edge distance between the screen surface and the keyboard surface of the notebook computer carried by the cover state detection information is greater than a preset threshold, and the Closed lid flag is set to false.
可选地,合盖标识判断单元,还用于在确定所述机盖状态检测信息所携带的笔记本电脑的屏幕面和键盘面之间的夹角和/或外缘距离小于或者等于预设阈值的情况下,将所述合盖标识设置为真,并使所述笔记本电脑保持睡眠状态。Optionally, the cover closure identification judging unit is further configured to determine that the included angle and/or outer edge distance between the screen surface and the keyboard surface of the notebook computer carried by the cover state detection information is less than or equal to a preset threshold In the case of , the closed lid flag is set to true, and the notebook computer is kept in a sleep state.
可选地,所述预设阈值取值为0。Optionally, the preset threshold value is 0.
可选地,唤醒拦截模块430还包括内置键盘唤醒拦截单元,其中:Optionally, the wakeup interception module 430 also includes a built-in keyboard wakeup interception unit, wherein:
内置键盘唤醒拦截单元,用于若监控到所述键盘面上的内置键盘发生触控事件的情况下,使所述笔记本电脑继续保持睡眠状态。The built-in keyboard wake-up interception unit is used to keep the notebook computer in a sleep state if a touch event is detected on the built-in keyboard on the keyboard surface.
可选地,供电状态查询模块420,还用于在确定所述供电状态检测信息所携带的供电标识为外部电源供电的情况下,向供电电路发送第二信号,以供所述供电电路根据所述第二信号将所述笔记本电脑由睡眠状态更新至工作状态。Optionally, the power supply state query module 420 is further configured to send a second signal to the power supply circuit in the case of determining that the power supply identification carried in the power supply state detection information is powered by an external power supply, so that the power supply circuit The second signal updates the notebook computer from the sleeping state to the working state.
可选地,该装置还包括睡眠防扰模块,其中:Optionally, the device also includes a sleeping anti-disturbance module, wherein:
睡眠防扰模块,用于若确定所述第一信号不为唤醒信号,使所述笔记本电脑保持睡眠状态。The sleep anti-disturbance module is configured to keep the notebook computer in a sleep state if it is determined that the first signal is not a wake-up signal.
本发明实施例提供的USB唤醒装置,用于执行本发明上述USB唤醒方法,其实施方式与本发明提供的USB唤醒方法的实施方式一致,且可以达到相同的有益效果,此处不再赘述。The USB wake-up device provided by the embodiment of the present invention is used to implement the above-mentioned USB wake-up method of the present invention, and its implementation mode is consistent with that of the USB wake-up method provided by the present invention, and can achieve the same beneficial effect, and will not be repeated here.
本发明实施例在笔记本电脑处于睡眠状态时拦截USB控制器对USB外设所监控到的用于申请唤醒系统的第一信号后,先通过第二一检测模组反馈的供电状态检测信息对笔记本电脑的使用场景做出初步判断,确定其利用供电电路进行内部电池供电时再根据第一二检测模组反馈的机盖状态检测信息执行不同的处理,决策是否唤醒系统。实现无需额外手动配置USB唤醒的开关,能够综合笔记本电脑的供电方式和合盖状态对其外设唤醒进行自动配置,以在内部电池供电且合盖状态下,使得USB外设无法正常唤醒睡眠的笔记本电脑。In the embodiment of the present invention, when the notebook computer is in a sleep state, after intercepting the first signal for applying to wake up the system monitored by the USB controller to the USB peripherals, the power supply state detection information fed back by the second detection module is used to send the notebook computer Make a preliminary judgment on the use scene of the computer, determine whether it uses the power supply circuit for internal battery power supply, and then perform different processing according to the cover state detection information fed back by the first and second detection modules, and decide whether to wake up the system. Realize no additional manual configuration of the USB wake-up switch, and can automatically configure the peripheral wake-up based on the power supply mode and the closed state of the notebook computer, so that the USB peripheral cannot wake up the sleeping notebook normally when the internal battery is powered and the cover is closed computer.
图5是本发明提供的集成电路的结构示意图之一。在上述任一实施例的基础上,如图5所示,本发明实施例提供的集成电路包括USB控制器510、嵌入式控制器520、供电电路530、第一检测模组540和第二检测模组550,所述嵌入式控制器520运行时实现如上所述USB唤醒方法。FIG. 5 is one of the structural schematic diagrams of the integrated circuit provided by the present invention. On the basis of any of the above embodiments, as shown in Figure 5, the integrated circuit provided by the embodiment of the present invention includes a USB controller 510, an embedded controller 520, a power supply circuit 530, a first detection module 540 and a second detection module The module 550, the embedded controller 520 implements the above USB wake-up method when running.
所述USB控制器510,用于在确定笔记本电脑处于睡眠状态时监控到USB外设产生触控操作的情况下,向所述嵌入式控制器发送第一信号。The USB controller 510 is configured to send a first signal to the embedded controller when it is determined that the notebook computer is in a sleep state and monitors the touch operation of the USB peripheral.
所述第一检测模组540,用于在确定笔记本电脑外部的电源适配器在位的情况下,将供电标识设置为外部电源供电后,将携带有设置好的供电标识的供电状态检测信息反馈至所述嵌入式控制器。The first detection module 540 is used to feed back the power supply status detection information carrying the set power supply logo to the the embedded controller.
所述第一检测模组540,用于在确定笔记本电脑外部的电源适配器不在位的情况下,将供电标识设置为内部电池供电后,将携带有设置好的供电标识的供电状态检测信息反馈至所述嵌入式控制器。The first detection module 540 is used to feed back the power supply state detection information carrying the set power supply logo to the the embedded controller.
所述第二检测模组550,用于基于笔记本电脑的屏幕面和键盘面之间的相对位置关系,向所述嵌入式控制器反馈机盖状态检测信息。The second detection module 550 is configured to feed back cover state detection information to the embedded controller based on the relative positional relationship between the screen surface and the keyboard surface of the notebook computer.
所述供电电路530,用于接收并响应于所述嵌入式控制器发出的第二信号,对所述笔记本电脑唤醒后的工作状态进行相应的电源管理。The power supply circuit 530 is configured to receive and respond to the second signal sent by the embedded controller, and perform corresponding power management on the working state of the notebook computer after it wakes up.
需要说明的是,第二检测模组550可以为由稳压器、霍尔元件、差分放大器构成的霍尔传感器,该类型传感器可以输出数字量。以使得针对笔记本电脑的屏幕面和键盘面之间的夹角所进行的换算,完全基于数字电路,与模拟电路无关。It should be noted that the second detection module 550 can be a Hall sensor composed of a voltage regulator, a Hall element, and a differential amplifier, and this type of sensor can output digital quantities. So that the conversion of the angle between the screen surface and the keyboard surface of the notebook computer is completely based on the digital circuit and has nothing to do with the analog circuit.
具体地,集成电路由USB控制器510、嵌入式控制器520、供电电路530、第一检测模组540和第二检测模组550构成。设置在嵌入式控制器520的USB唤醒装置根据笔记本电脑中各部件的运行信息确定笔记本电脑已经处于睡眠状态时,由供电电路530仅对USB控制器510、嵌入式控制器520、第一检测模组540和第二检测模组550供电。Specifically, the integrated circuit is composed of a USB controller 510 , an embedded controller 520 , a power supply circuit 530 , a first detection module 540 and a second detection module 550 . When the USB wake-up device arranged on the embedded controller 520 determines that the notebook computer has been in a sleep state according to the operating information of each part in the notebook computer, the power supply circuit 530 only activates the USB controller 510, the embedded controller 520, and the first detection module. The group 540 and the second detection module 550 are powered.
当USB控制器510在监控到其所纳管的USB外设处于活跃状态时向嵌入式控制器520发出的第一信号,以供嵌入式控制器520根据第一信号的属性对是否拦截本次唤醒做第一次判断:The first signal sent to the embedded controller 520 when the USB controller 510 monitors that the USB peripherals it manages is in an active state is used for the embedded controller 520 to determine whether to intercept this time according to the attribute of the first signal. Wake up to make the first judgment:
嵌入式控制器520若确定第一信号所对应的属性不为申请唤醒系统,则无需执行任何操作,仍保持原始的睡眠状态。If the embedded controller 520 determines that the attribute corresponding to the first signal is not an application for waking up the system, it does not need to perform any operations and remains in the original sleep state.
嵌入式控制器520若确定第一信号所对应的属性为申请唤醒系统,则向第一检测模组540查询笔记本电脑是否接入电源适配器,并获得第一检测模组540对此所反馈的供电状态检测信息,以供嵌入式控制器520根据供电状态检测信息对笔记本电脑当前的使用场景进行第二次判断:If the embedded controller 520 determines that the attribute corresponding to the first signal is an application to wake up the system, it will inquire from the first detection module 540 whether the notebook computer is connected to a power adapter, and obtain the power supply feedback from the first detection module 540. State detection information for the embedded controller 520 to make a second judgment on the current usage scenario of the notebook computer according to the power supply state detection information:
嵌入式控制器620若确定供电状态检测信息携带的供电标识指示外部电源供电,即说明笔记本电脑的使用场景倾向于用户在为笔记本电脑充电,一旦发生唤醒事件则认为是用户需要提前结束外部充电,则需要对此场景下监控到的唤醒动作更加宽容,只要USB外设触发唤醒事件,无论笔记本电脑是否合盖,均有原始的睡眠状态切换至工作状态。If the embedded controller 620 determines that the power supply identification carried in the power supply status detection information indicates external power supply, it means that the usage scenario of the notebook computer tends to be that the user is charging the notebook computer. Once a wake-up event occurs, it is considered that the user needs to end the external charging in advance. It is necessary to be more tolerant of the wake-up actions monitored in this scenario. As long as the USB peripheral triggers a wake-up event, no matter whether the laptop is closed or not, the original sleep state will switch to the working state.
嵌入式控制器620若确定供电状态检测信息携带的供电标识指示内部电池供电,即说明笔记本电脑当前仅由内部电池供电,其使用场景倾向于用户便携携带笔记本电脑并进行相关操作,则需要对此场景下监控到的唤醒动作更加警惕,通过向第二检测模组550查询笔记本电脑的屏幕面和键盘面相对位置关系,并获得第二检测模组550对此所反馈的机盖状态检测信息,以供嵌入式控制器520根据机盖状态检测信息对最终是否进行唤醒系统进行第三次判断:If the embedded controller 620 determines that the power supply identification carried in the power supply state detection information indicates that the internal battery is powered, it means that the notebook computer is currently powered only by the internal battery, and its use scenario tends to be carried by the user to carry the notebook computer and perform related operations. The wake-up action monitored in the scene is more vigilant. By querying the relative positional relationship between the screen surface and the keyboard surface of the notebook computer from the second detection module 550, and obtaining the cover state detection information fed back by the second detection module 550, For the embedded controller 520 to make a third judgment on whether to finally wake up the system according to the cover state detection information:
嵌入式控制器520若确定机盖状态检测信息携带有合盖标识为假值,即说明笔记本电脑当前处于开盖状态,或者用户对笔记本电脑的操作意图为将其开盖,则向供电电路发送第二信号,以唤醒系统。If the embedded controller 520 determines that the cover state detection information carries a cover-closed flag as a false value, which means that the notebook computer is currently in an open state, or the user intends to operate the notebook computer to open the cover, then it will send a message to the power supply circuit. The second signal to wake up the system.
供电电路530接收并响应于第二信号,对输入供电进行脉冲调制,实现供电转换以及自动稳压和输出可调电压的功能。从而,将笔记本电脑由原始的睡眠状态的供电模式转换至工作状态所对应的供电模式,以唤醒所述笔记本电脑。The power supply circuit 530 receives and responds to the second signal, performs pulse modulation on the input power supply, realizes the functions of power supply conversion, automatic voltage stabilization and output adjustable voltage. Therefore, the notebook computer is switched from the power supply mode of the original sleep state to the power supply mode corresponding to the working state, so as to wake up the notebook computer.
嵌入式控制器520若确定机盖状态检测信息携带有合盖标识为真值,即说明笔记本电脑当前处于合盖状态,或者用户对笔记本电脑的操作意图为将其合盖,则确定拦截当前监控到的外设唤醒操作,仍保持原始的睡眠状态。If the embedded controller 520 determines that the cover state detection information carries a cover-closed flag as a true value, which means that the notebook computer is currently in the cover-closed state, or the user's operation intention on the notebook computer is to close the cover, then determine to intercept the current monitoring Peripheral wake-up operation, still maintain the original sleep state.
其中,供电电路530可根据控制路线不同分为两个子电路,一个是电源电路,专用于对不同状态下所涉及的不同器件进行供电。另一个是开机电路,以通过开机模式一键触发所有器件的供电。Among them, the power supply circuit 530 can be divided into two sub-circuits according to different control routes, one is a power supply circuit, which is dedicated to supplying power to different devices involved in different states. The other is the power-on circuit to trigger the power supply of all devices with one key in the power-on mode.
本发明实施例在笔记本电脑处于睡眠状态时拦截USB控制器对USB外设所监控到的用于申请唤醒系统的第一信号后,先通过第二检测模组反馈的供电状态检测信息对笔记本电脑的使用场景做出初步判断,确定其利用供电电路进行内部电池供电时再根据第一检测模组反馈的机盖状态检测信息执行不同的处理,决策是否唤醒系统。实现无需额外手动配置USB唤醒的开关,能够综合笔记本电脑的供电方式和合盖状态对其外设唤醒进行自动配置,以在内部电池供电且合盖状态下,使得USB外设无法正常唤醒睡眠的笔记本电脑。图6是本发明提供的笔记本电脑的结构示意图。在上述任一实施例的基础上,如图6所示,本发明实施例提供的笔记本电脑,包括笔记本电脑本体610,以及在所述笔记本电脑本体610内设置的如上任一项所述的集成电路620。In the embodiment of the present invention, when the notebook computer is in a sleep state, after intercepting the first signal monitored by the USB controller to the USB peripheral for applying to wake up the system, the power supply state detection information fed back by the second detection module is first sent to the notebook computer. Make a preliminary judgment based on the usage scenario, determine whether it uses the power supply circuit for internal battery power supply, and then perform different processing according to the cover status detection information fed back by the first detection module, and decide whether to wake up the system. Realize no additional manual configuration of the USB wake-up switch, and can automatically configure the peripheral wake-up based on the power supply mode and the closed state of the notebook computer, so that the USB peripheral cannot wake up the sleeping notebook normally when the internal battery is powered and the cover is closed computer. Fig. 6 is a schematic structural diagram of a notebook computer provided by the present invention. On the basis of any of the above-mentioned embodiments, as shown in FIG. 6 , the notebook computer provided by the embodiment of the present invention includes a notebook computer body 610 , and an integrated computer as described in any of the preceding items set in the notebook computer body 610 . circuit 620.
具体地,笔记本电脑由外壳将笔记本电脑本体610的屏幕面、键盘膜以及内部的集成电路620进行外部封装形成一个整体。Specifically, the notebook computer is formed by external packaging of the screen surface of the notebook computer body 610 , the keyboard membrane and the internal integrated circuit 620 by the casing.
集成电路620是笔记本电脑中各种硬件传输数据、信息的“立交桥”,它连接整合了显卡、内存,CPU等各种硬件,使其相互独立又有机地结合在一起,各司其职,共同维持电脑的正常运行。尤其在USB外设唤醒系统时,增加是否电池供电且合盖的判断,若电池供电且合盖则不唤醒系统。若其他状态则唤醒系统,以达到:The integrated circuit 620 is an "overpass" for various hardware in the notebook computer to transmit data and information. It connects and integrates various hardware such as graphics cards, memory, and CPUs, making them independent and organically combined. Keep your computer running normally. Especially when the USB peripheral wakes up the system, the judgment of whether the battery is powered and the cover is closed is added. If the battery is powered and the cover is closed, the system will not be woken up. If other states wake up the system to achieve:
1、电池供电状态,开盖状态下,USB外设可正常唤醒睡眠的笔记本电脑。1. In the state of battery power supply and the state of opening the cover, the USB peripheral can normally wake up the sleeping laptop.
2、电池供电状态,合盖状态下,USB外设不能唤醒睡眠的笔记本电脑。2. In the state of battery power supply and the state of closing the cover, the USB peripheral cannot wake up the sleeping laptop.
3、外部电源供电状态,USB外设可正常唤醒睡眠的笔记本电脑。3. In the external power supply state, the USB peripheral can wake up the sleeping laptop normally.
本发明实施例在笔记本电脑处于睡眠状态时拦截USB控制器对USB外设所监控到的用于申请唤醒系统的第一信号后,先通过第二一检测模组反馈的供电状态检测信息对笔记本电脑的使用场景做出初步判断,确定其利用供电电路进行内部电池供电时再根据第一二检测模组反馈的机盖状态检测信息执行不同的处理,决策是否唤醒系统。实现无需额外手动配置USB唤醒的开关,能够综合笔记本电脑的供电方式和合盖状态对其外设唤醒进行自动配置,以在内部电池供电且合盖状态下,使得USB外设无法正常唤醒睡眠的笔记本电脑。In the embodiment of the present invention, when the notebook computer is in a sleep state, after intercepting the first signal for applying to wake up the system monitored by the USB controller to the USB peripherals, the power supply state detection information fed back by the second detection module is used to send the notebook computer Make a preliminary judgment on the use scene of the computer, determine whether it uses the power supply circuit for internal battery power supply, and then perform different processing according to the cover state detection information fed back by the first and second detection modules, and decide whether to wake up the system. Realize no additional manual configuration of the USB wake-up switch, and can automatically configure the peripheral wake-up based on the power supply mode and the closed state of the notebook computer, so that the USB peripheral cannot wake up the sleeping notebook normally when the internal battery is powered and the cover is closed computer.
图7示例了一种电子设备的实体结构示意图,如图7所示,该电子设备可以包括:处理器(processor)710、通信接口(Communications Interface)720、存储器(memory)730和通信总线740,其中,处理器710,通信接口720,存储器730通过通信总线740完成相互间的通信。处理器710可以调用存储器730中的逻辑指令,以执行USB唤醒方法,该方法包括:在确定笔记本电脑处于睡眠状态的情况下,接收USB控制器发出的第一信号;若确定所述第一信号为唤醒信号,接收第一检测模组反馈的机盖状态检测信息;在确定所述机盖状态检测信息所携带的合盖标识为假的情况下,向供电电路发送第二信号,以供所述供电电路根据所述第二信号将所述笔记本电脑由睡眠状态更新至工作状态;其中,所述第一信号是所述笔记本电脑的USB控制器在监控到USB外设产生触控操作的情况下生成的。FIG. 7 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG. 7, the electronic device may include: a processor (processor) 710, a communication interface (Communications Interface) 720, a memory (memory) 730, and a communication bus 740, Wherein, the processor 710 , the communication interface 720 , and the memory 730 communicate with each other through the communication bus 740 . The processor 710 can call the logic instructions in the memory 730 to execute the USB wake-up method, the method includes: when it is determined that the notebook computer is in the sleep state, receiving a first signal sent by the USB controller; if it is determined that the first signal To wake up the signal, receive the cover state detection information fed back by the first detection module; when it is determined that the cover closure identification carried by the cover state detection information is false, send a second signal to the power supply circuit for the The power supply circuit updates the notebook computer from the sleeping state to the working state according to the second signal; wherein, the first signal is that the USB controller of the notebook computer monitors that the USB peripheral device generates a touch operation generated below.
此外,上述的存储器730中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logic instructions in the memory 730 may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .
另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,计算机程序可存储在非暂态计算机可读存储介质上,所述计算机程序被处理器执行时,计算机能够执行上述各方法所提供的USB唤醒方法,该方法包括:On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can Execute the USB wake-up method provided by the above methods, the method includes:
在确定笔记本电脑处于睡眠状态的情况下,接收USB控制器发出的第一信号;When it is determined that the notebook computer is in the sleep state, receiving the first signal sent by the USB controller;
若确定所述第一信号为唤醒信号,接收第一检测模组反馈的供电状态检测信息;If it is determined that the first signal is a wake-up signal, receiving power supply state detection information fed back by the first detection module;
在确定所述供电状态检测信息所携带的供电标识为内部电池供电的情况下,通过向第二检测模组发出查询请求查询所述笔记本电脑的机盖状态检测信息;When it is determined that the power supply identification carried by the power supply state detection information is powered by an internal battery, query the cover state detection information of the notebook computer by sending a query request to the second detection module;
在确定所述第二检测模组反馈的机盖状态检测信息所携带的合盖标识为假的情况下,向供电电路发送第二信号,以供所述供电电路根据所述第二信号将所述笔记本电脑由睡眠状态更新至工作状态;When it is determined that the lid closing flag carried in the lid state detection information fed back by the second detection module is false, send a second signal to the power supply circuit, so that the power supply circuit can convert the lid according to the second signal. The notebook computer is updated from the sleeping state to the working state;
其中,所述第一信号是所述笔记本电脑的USB控制器在监控到USB外设产生触控操作的情况下生成的;所述USB外设为通过USB接口连接到笔记本电脑的有线鼠标、无线鼠标、有线键盘和无线键盘中的一种或者多种;所述供电状态检测信息是所述第一检测模组针对于电源适配器是否在位对所述笔记本电脑进行供电的方式进行判断得到的,当所述电源适配器在位时所对应的供电方式为外部电源供电,当所述电源适配器不在位时所对应的供电方式为内部电池供电;所述机盖状态检测信息是所述第二检测模组响应于所述查询请求而采集到的笔记本电脑的屏幕面和键盘面之间的相对位置关系。Wherein, the first signal is generated when the USB controller of the notebook computer monitors the touch operation of the USB peripheral; the USB peripheral is a wired mouse or a wireless mouse connected to the notebook through a USB interface One or more of a mouse, a wired keyboard, and a wireless keyboard; the power supply state detection information is obtained by the first detection module judging whether the power adapter is in place to supply power to the notebook computer, When the power adapter is in place, the corresponding power supply mode is external power supply, and when the power adapter is not in place, the corresponding power supply mode is internal battery power supply; the cover state detection information is the second detection mode The group collects the relative positional relationship between the screen surface and the keyboard surface of the notebook computer in response to the query request.
又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各方法提供的USB唤醒方法,该方法包括:In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to perform the USB wake-up method provided by the above-mentioned methods, the method comprising:
在确定笔记本电脑处于睡眠状态的情况下,接收USB控制器发出的第一信号;When it is determined that the notebook computer is in the sleep state, receiving the first signal sent by the USB controller;
若确定所述第一信号为唤醒信号,接收第一检测模组反馈的供电状态检测信息;If it is determined that the first signal is a wake-up signal, receiving power supply state detection information fed back by the first detection module;
在确定所述供电状态检测信息所携带的供电标识为内部电池供电的情况下,通过向第二检测模组发出查询请求查询所述笔记本电脑的机盖状态检测信息;When it is determined that the power supply identification carried by the power supply state detection information is powered by an internal battery, query the cover state detection information of the notebook computer by sending a query request to the second detection module;
在确定所述第二检测模组反馈的机盖状态检测信息所携带的合盖标识为假的情况下,向供电电路发送第二信号,以供所述供电电路根据所述第二信号将所述笔记本电脑由睡眠状态更新至工作状态;When it is determined that the lid closing flag carried in the lid state detection information fed back by the second detection module is false, send a second signal to the power supply circuit, so that the power supply circuit can convert the lid according to the second signal. The notebook computer is updated from the sleeping state to the working state;
其中,所述第一信号是所述笔记本电脑的USB控制器在监控到USB外设产生触控操作的情况下生成的;所述USB外设为通过USB接口连接到笔记本电脑的有线鼠标、无线鼠标、有线键盘和无线键盘中的一种或者多种;所述供电状态检测信息是所述第一检测模组针对于电源适配器是否在位对所述笔记本电脑进行供电的方式进行判断得到的,当所述电源适配器在位时所对应的供电方式为外部电源供电,当所述电源适配器不在位时所对应的供电方式为内部电池供电;所述机盖状态检测信息是所述第二检测模组响应于所述查询请求而采集到的笔记本电脑的屏幕面和键盘面之间的相对位置关系。Wherein, the first signal is generated when the USB controller of the notebook computer monitors the touch operation of the USB peripheral; the USB peripheral is a wired mouse or a wireless mouse connected to the notebook through a USB interface One or more of a mouse, a wired keyboard, and a wireless keyboard; the power supply state detection information is obtained by the first detection module judging whether the power adapter is in place to supply power to the notebook computer, When the power adapter is in place, the corresponding power supply mode is external power supply, and when the power adapter is not in place, the corresponding power supply mode is internal battery power supply; the cover state detection information is the second detection mode The group collects the relative positional relationship between the screen surface and the keyboard surface of the notebook computer in response to the query request.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit 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 can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310464672.7A CN116700465A (en) | 2023-04-26 | 2023-04-26 | USB wake-up method, device, circuit, notebook computer, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310464672.7A CN116700465A (en) | 2023-04-26 | 2023-04-26 | USB wake-up method, device, circuit, notebook computer, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116700465A true CN116700465A (en) | 2023-09-05 |
Family
ID=87842305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310464672.7A Pending CN116700465A (en) | 2023-04-26 | 2023-04-26 | USB wake-up method, device, circuit, notebook computer, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116700465A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117950737A (en) * | 2024-03-22 | 2024-04-30 | 荣耀终端有限公司 | Wakeup processing method, wakeup processing device, electronic equipment and computer readable storage medium |
-
2023
- 2023-04-26 CN CN202310464672.7A patent/CN116700465A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117950737A (en) * | 2024-03-22 | 2024-04-30 | 荣耀终端有限公司 | Wakeup processing method, wakeup processing device, electronic equipment and computer readable storage medium |
CN117950737B (en) * | 2024-03-22 | 2024-07-26 | 荣耀终端有限公司 | Wake-up processing method, device, electronic device and computer-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210271306A1 (en) | Apparatus and method for waking up a processor | |
CN103294161B (en) | Electronic device | |
US20120017101A1 (en) | Bios Controlled Peripheral Device Port Power | |
CN106886766B (en) | A kind of fingerprint identification method, fingerprint recognition circuit and mobile terminal | |
US20140181535A1 (en) | Tap-to-wake and tap-to-login near field communication (nfc) device | |
CN105225316B (en) | A kind of dormancy of electron key low-power consumption power supply plan and awakening method | |
CN107231679A (en) | A kind of data package processing method and mobile terminal | |
US9395799B2 (en) | Power management techniques for USB interfaces | |
US20180335830A1 (en) | Power management system | |
US9021143B2 (en) | Polling of I/O devices on host initiated communication transports | |
CN116700465A (en) | USB wake-up method, device, circuit, notebook computer, equipment and medium | |
CN112513869A (en) | Fingerprint sensor control based on operating conditions | |
TW202008109A (en) | Computer wake-up method and computer power saving method | |
CN103970253B (en) | Power-saving operation method and electronic device | |
US20090103404A1 (en) | Optic disk drive power management method for computer system | |
US10571992B2 (en) | Electronic device having a controller to enter a low power mode | |
CN104050427B (en) | Electronic device for preventing false touch and operation method thereof | |
US10429988B2 (en) | Touch screen support by emulating a legacy device | |
CN104348514B (en) | Integrated circuit, electronic device and operation method thereof | |
CN108132806A (en) | Information processing method and electronic equipment | |
CN110750151A (en) | Computer wake-up method and computer power saving method | |
CN101819461A (en) | Computer system with electronic book mode and method for accessing electronic book data | |
KR100704895B1 (en) | Mode management method and device of convertible computer | |
CN100394357C (en) | Power-saving mode adjusting method and logic chip and computer system applying same | |
CN118259972A (en) | Wake-up mechanism control method, electronic system and non-transitory computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |