CN117687694A - False wake-up processing method, device and storage medium - Google Patents

False wake-up processing method, device and storage medium Download PDF

Info

Publication number
CN117687694A
CN117687694A CN202311128304.1A CN202311128304A CN117687694A CN 117687694 A CN117687694 A CN 117687694A CN 202311128304 A CN202311128304 A CN 202311128304A CN 117687694 A CN117687694 A CN 117687694A
Authority
CN
China
Prior art keywords
value
state
equipment
enters
temperature value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311128304.1A
Other languages
Chinese (zh)
Inventor
王鑫
孙媛
徐可
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311128304.1A priority Critical patent/CN117687694A/en
Publication of CN117687694A publication Critical patent/CN117687694A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

Provided are a false wake-up processing method, a false wake-up processing device and a storage medium. The method comprises the following steps: the detection equipment enters an awake state after closing the cover and entering a first time period after entering a sleep state; acquiring a first temperature value of a central processing unit of the device in a second time period and a second temperature value of an adapter of the device in the second time period; and triggering the equipment to enter a dormant state when the first temperature value is continuously greater than or equal to a first threshold value and/or the second temperature value is continuously greater than or equal to a second threshold value. By adopting the scheme, when the equipment is detected to enter the sleep state after closing the cover and is awakened by mistake, and when at least one of the continuous temperature values of the central processing unit and/or the adapter in a period of time exceeds the set threshold value, the equipment is triggered to enter the sleep state, so that the equipment is prevented from overheating, and the service life of the equipment is prolonged.

Description

False wake-up processing method, device and storage medium
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a method and apparatus for processing false wake-up, and a storage medium.
Background
After the user uses the electronic device (e.g., personal computer (personal computer, PC)), the electronic device is covered but not turned off, and the electronic device is found to be severely heated at the next turn-on. Analysis from the sleep report shows that the electronic device enters a sleep state (MS) (also called S3 state) after being covered, but is awakened by mistake to enter S0 state, which causes serious heat generation of the electronic device.
In view of this, how to prevent the electronic device from being awakened by mistake after the cover is closed and enters a sleep state, which leads to overheating of the electronic device and increases the service life of the electronic device is a problem to be solved.
Disclosure of Invention
The application provides a false wake-up processing method, a false wake-up processing device and a storage medium, which are used for preventing electronic equipment from being awakened by mistake after the electronic equipment is covered and enters a sleep state, so that the electronic equipment is overheated, and the service life of the electronic equipment is prolonged.
In a first aspect, a method for processing false wake-up is provided, where the method may be executed by an electronic device, or may also be executed by a chip or a circuit configured in the electronic device, or may also be executed by a logic module or software capable of implementing all or part of functions of the electronic device. The present application is not limited in this regard.
The method comprises the following steps: the detection equipment enters an awake state after closing the cover and entering a first time period after entering a sleep state; acquiring a first temperature value of a central processing unit of the device in a second time period and a second temperature value of an adapter of the device in the second time period; and triggering the equipment to enter a dormant state when the first temperature value is continuously greater than or equal to a first threshold value and/or the second temperature value is continuously greater than or equal to a second threshold value. In the aspect, when the equipment is detected to enter the sleep state and is awakened by mistake, and at least one of the continuous temperature values of the central processing unit and/or the adapter in a period of time exceeds a set threshold value, the equipment is triggered to enter the sleep state, so that the equipment is prevented from overheating, and the service life of the equipment is prolonged.
In one possible implementation, the detecting device enters the wake-up state after a first period of time after entering the sleep state after closing the cover, including: reading a first flag bit of the equipment; and the value of the first flag bit is a first value, and the equipment is determined to be awakened after the equipment is covered and enters a sleep state. In the implementation, the state of the device can be accurately judged by setting the first flag bit for identifying whether the device is awakened after the cover is closed to enter the sleep state.
In another possible implementation, the method further includes: and when the first temperature value is detected to be continuously greater than or equal to a first threshold value and/or the second temperature value is detected to be continuously greater than or equal to a second threshold value, setting a second flag bit of the equipment to be a second value, wherein the second flag bit is used for indicating that the temperature of the central processing unit or the adapter is too high, and the equipment enters a dormant state. In this implementation, by setting the second flag bit to identify that the temperature of the central processing unit or the adapter is continuously too high in the second period of time, the device can accurately determine that the device should enter the sleep state.
In yet another possible implementation, after the device door enters the awake state, the method further includes: and clearing the value of the first flag bit. In this implementation, the state of the device has changed, and when the lid has been opened to enter the awake state, the value of the first flag bit is cleared, identifying that the device is no longer in the lid-closed and awake state.
In yet another possible implementation, after the device door enters the awake state, the method further includes: and clearing the value of the second flag bit. In the implementation, the state of the equipment is changed, when the cover is opened to enter the awakening state, the value of the second flag bit is cleared, the equipment is not in a state with continuously high temperature, and the equipment is not required to trigger to enter the dormant state.
In yet another possible implementation, before the triggering the device to enter the sleep state, the method further includes: and transferring the data in the memory of the equipment to a hard disk of the equipment. In the implementation, when the equipment enters the dormant state, the main component of the equipment is powered down, so that before the equipment is triggered to enter the dormant state, the data in the memory of the equipment is transferred to the hard disk of the equipment, the reliability of the data can be improved, and the data loss is prevented.
In yet another possible implementation, after the device door enters the awake state, the method further includes: and reading the stored data from the hard disk and storing the data into the memory. In the implementation, after the equipment is uncapped and enters the wake-up state, the data stored in the hard disk during dormancy are read into the memory again, so that the working state before dormancy can be quickly restored.
In a second aspect, a false wake-up processing device is provided, for implementing the method in the first aspect or any implementation of the first aspect. The apparatus may be an electronic device, a module (e.g., a processor, a chip, or a system-on-a-chip) applied to the electronic device, or a logic node, a logic module, or software that can implement all or part of the functions of the electronic device.
In one possible implementation, the apparatus includes: the detection unit is used for detecting that the device enters an awake state after a first time period after the device is covered and enters a sleep state; an acquisition unit for acquiring a first temperature value of a central processing unit of the device in a second period of time and a second temperature value of an adapter of the device in the second period of time; and the triggering unit is used for triggering the device to enter a dormant state when the first temperature value is continuously greater than or equal to a first threshold value and/or the second temperature value is continuously greater than or equal to a second threshold value.
Optionally, the detection unit includes: the reading unit is used for reading a first zone bit of the device; and the determining unit is used for determining that the value of the first flag bit is a first value and is awakened after the device is closed and enters a sleep state.
Optionally, the apparatus further comprises: the setting unit is used for setting a second flag bit of the device to be a second value when the detection unit detects that the first temperature value is continuously greater than or equal to a first threshold value and/or the second temperature value is continuously greater than or equal to a second threshold value, wherein the second flag bit is used for indicating that the temperature of the central processing unit or the adapter is too high, and the device enters a dormant state.
Optionally, the apparatus further comprises: and the clearing unit is used for clearing the value of the first zone bit and/or the second zone bit after the device is opened and enters the awakening state.
Optionally, the apparatus further comprises: and the first storage unit is used for transferring the data in the internal memory of the device to the hard disk of the device before the triggering unit triggers the device to enter the dormant state.
Optionally, the apparatus further comprises: and the second storage unit is used for reading the stored data from the hard disk and storing the data into the memory after the device is opened and enters the awakening state.
In another possible implementation manner, the apparatus in the second aspect or any implementation manner of the second aspect includes a processor; the processor is configured to implement the apparatus to perform the corresponding functions in the above-described method. Optionally, a memory is also included, the memory being for coupling with the processor, which holds the programs (instructions) and/or data necessary for the device. Optionally, the apparatus may further comprise an input interface and an output interface for enabling communication between the apparatus and other apparatuses. Alternatively, the memory may be located inside the device or outside the device.
In a third aspect, a computer readable storage medium is provided, in which a computer program or instructions is stored which, when executed, implement any one of the above-mentioned first aspects or the method of the first aspect.
In a fourth aspect, there is provided a computer program product comprising instructions which, when run on an apparatus, cause the apparatus to perform any one of the above-described first aspects or the first aspect to carry out the method.
Drawings
Fig. 1 is a flow chart of a false wake-up processing method provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of the inside of a PC according to an embodiment of the present application;
fig. 3 is a schematic flow chart of waking up a PC cover after entering a sleep state according to an embodiment of the present application;
fig. 4 is a schematic flow chart of triggering to enter a sleep state after a PC is closed and awakened according to an embodiment of the present application;
fig. 5 is a schematic diagram of temperature monitoring after a PC lid enters a sleep state and is awakened;
fig. 6 is a schematic structural diagram of a false wake-up processing device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another wake-up error processing device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the accompanying drawings in the embodiments of the present application.
At least one (item) referred to herein below indicates one (item) or more (items). Plural (items) means two (items) or more than two (items). "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. In addition, it should be understood that, although the terms first, second, etc. may be used in this application to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another.
The terms "comprising," "having," and any variations thereof, as used in the following description, are intended to cover a non-exclusive inclusion. Such as a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or apparatus. In this application, the terms "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any method or design described herein as "exemplary" or "such as" is not necessarily to be construed as preferred or advantageous over other methods or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
The following describes a false wake-up processing method provided in the embodiment of the present application. The method may be performed by an electronic device, or may be performed by a chip or circuit configured in an electronic device, or may be performed by logic modules or software that implement all or part of the functionality of an electronic device. The present application is not limited in this regard. When detecting that the equipment is covered and enters a sleep state and is awakened by mistake, and when detecting that at least one of continuous temperature values of the central processing unit and/or the adapter in a period of time exceeds a set threshold value, triggering the equipment to enter the sleep state so as to prevent the equipment from overheating and prolong the service life of the equipment.
Fig. 1 is a schematic flow chart of a false wake-up processing method according to an embodiment of the present application. Illustratively, the method may include the steps of:
s101, detecting equipment covers and enters an awake state after entering a first time period after entering a sleep state.
When the device is closed, the closing event may be detected. After the cover closing event is detected, the equipment enters a sleep state so as to save the power consumption of the equipment.
However, after a period of time (e.g., a first period of time) after the device is closed and put into a sleep state, the device may be awakened by a universal serial bus (universal serial bus, USB) wake source such as a mouse or other wake source by mistake, and put into an awake state.
The device is covered and enters an awake state without the user knowing that if it is in that state for a longer period of time, it can cause the device to heat up severely and shut down or damage the device.
For example, a first Flag bit (for example, wake_flag) may be set in the device, and the device periodically reads the first Flag bit, and if the value of the first Flag bit is a first value, it is determined that the device is woken up after the device is covered and enters a sleep state. By setting the first flag bit, the state of the device can be accurately judged by identifying whether the device is awakened after the device is covered and enters the sleep state.
S102, acquiring a first temperature value of a central processing unit of the device in a second time period and a second temperature value of an adapter (charge) of the device in the second time period.
After the device detects that the cover is closed and is in the awakening state, continuously monitoring the temperature of the CPU and the temperature of the adapter of the device in a second time period to obtain a first temperature value in the second time period and a second temperature value of the adapter of the device in the second time period. Among these, the CPU and adapter are critical components of the device, which if they heat up too much, would damage the device or cause the device to shut down.
For example, a second Flag bit (e.g., hogbag_flag) may be set that is set to a second value when the first temperature value is detected to be continuously greater than or equal to the first threshold value, and/or the second temperature value is detected to be continuously greater than or equal to the second threshold value. The second flag bit is used to indicate that the central processing unit or the adapter is too hot and the device should enter a sleep state. By setting the second flag bit, which is used for identifying that the temperature of the central processing unit or the adapter is continuously too high in the second time period, the device can accurately judge that the device should enter the sleep state.
S103, triggering the equipment to enter a dormant state when the first temperature value is continuously greater than or equal to a first threshold value and/or the second temperature value is continuously greater than or equal to a second threshold value.
When the temperature of the CPU and/or the temperature of the adapter are/is detected to be continuously overhigh, the equipment is triggered to enter a dormant state, and all components or main components of the equipment are powered down, so that the power consumption of the equipment is reduced, and the equipment is prevented from heating.
Further, before the trigger device enters the sleep state, the data in the memory of the device may be transferred to the hard disk of the device. After the equipment is opened and enters an awake state, the stored data is read from the hard disk and stored in the memory. For example, when a PC goes to sleep, all data (e.g., the context of a process) processed in memory is transferred to a sleep file on the hard disk, and power is cut off to all components. The PC will read the dormant file into the memory directly again when it wakes up next time, and resume the working state before dormancy.
Further, after the equipment uncaps and enters the wake-up state, the value of the first flag bit is cleared. The state of the device has changed, and the device is opened to enter the wake-up state, the value of the first flag bit is cleared, and the device is not closed any more and is in the wake-up state.
Further, after the equipment uncaps and enters the wake-up state, the value of the second flag bit is cleared. The state of the equipment is changed, when the cover is opened to enter the awakening state, the value of the second flag bit is cleared, the equipment is not in a state with continuously high temperature, and the equipment is not required to be triggered to enter the dormant state.
For example, since the temperature value and Flag (Flag) stored in the memory still satisfy the PC to enter sleep will cause the PC to enter sleep again when the PC wakes up next time, the value stored in the register is cleared (hottag_flag=0, wake_flag=0) before the temperature value is reported to the OS, so as to avoid entering sleep again when waking up.
According to the false wake-up processing method provided by the embodiment of the application, when the fact that the equipment is covered and enters the sleep state and is awakened by the false is detected, and when the fact that at least one of continuous temperature values of the central processing unit and/or the adapter in a period of time exceeds a set threshold value is detected, the equipment is triggered to enter the sleep state, so that the equipment is prevented from being overheated, and the service life of the equipment is prolonged.
The internal working principle of the device is described in detail below by taking the above device as a PC as an example.
Fig. 2 is a schematic diagram of the internal structure of a PC according to an embodiment of the present application. The PC upper layer includes an Operating System (OS) 201, and the lower layer includes hardware 203. Also included is basic input output system (basic input output system, BIOS) firmware 202.
Wherein the OS201 is a set of interrelated system software programs that host and control the PC to operate, exercise and run hardware, software resources, and provide common services to organize user interactions. In a PC, the OS is the basic system software whose most basic and most important.
The BIOS firmware 202 is the first software loaded at the start-up of the PC, and is a set of programs that are solidified onto a read-only memory (ROM) chip on the motherboard in the computer, which holds the most important basic input and output programs of the computer, the post-start self-test programs, and the system self-start programs, and which can read and write specific information of the system settings from the complementary metal oxide semiconductor (complementary metal oxide semiconductor, CMOS). Its main function is to provide the lowest, most direct hardware setup and control for the computer.
Hardware 203 refers to the physical device of the PC. The hardware of the present embodiment includes an embedded controller (embedded controller, EC), among others. EC is a dedicated micro-control unit (micro control unit, MCU) for x86 architecture mobile portable embedded applications, mainly applied in mobile computer systems and embedded computer systems, such computers providing system management functions. The main tasks are CPU time sequence management, battery management, thermal management and keyboard management. In short, when a PC is used in daily life, the operations of battery charge and discharge, keyboard scanning, cover opening and closing detection, fan control, indicator light control, core data reporting operation system and the like are all the processing of EC in the back silently. The EC is a 16-bit singlechip, and a flash memory (flash) with a certain capacity is also arranged in the EC to store codes of the EC. In the power-off state, the EC keeps running all the time and waits for the power-on information of the user. After the power-on, the EC is used as a control of devices such as a keyboard controller, a mouse, a touch pad, a charging indicator lamp, a fan and the like, and even controls the standby state, the dormant state and the like of the system.
As shown in fig. 3, a schematic flow chart of a process of waking up a PC after closing a cover and entering a sleep state is provided in the embodiment of the present application, a user closes the cover after using the PC but does not shut down the machine, and finds that the machine heats seriously when opening next time, and analyzes from a sleep report that the machine enters the sleep state after closing the cover, but wakes up by mistake to enter the S0 state. Illustratively, the process may include the steps of:
s301.EC notifies OS that there is a capping event.
After the user uses the PC, the EC may perform open/close detection, detect the open/close event, and notify the OS of the open/close event.
S302, after the OS receives the capping event, the OS calls the_GPE event of the BIOS.
S303.bios notifies EC, LID object change status.
After receiving the OS call, the BIOS notifies the EC that the LID object is in a changed state.
The LID object in ec tells OS that the LID is closed.
After the LID object in the EC changes state, the LID object in the EC informs the OS that the LID is closed.
S305. the os causes the device driver to sleep.
After the OS receives the notification that the LID of the EC is closed, the LID object in the EC makes the device drive to enter a sleep state.
S306. the os instructs the CPU to enter a sleep state.
Further, the OS may store the context of the process into memory before instructing the CPU to enter a sleep state, and the user may wake up the PC by clicking a keyboard or operating a mouse.
S307.cpu pulls down slp_s3 pin.
The CPU pulls down the SLP_S3 pin to enter a sleep state.
S308. the cpu informs the EC to mark the MS with position 1.
The MS flag is set to 1 indicating that the device enters a sleep state.
S309.bios informs CPU of the presence of USB wakeup source.
Since a USB wake-up source such as a mouse or other wake-up sources wake up the PC under the condition of closing the cover, the BIOS detects the wake-up source and notifies the CPU of the presence of the wake-up source.
S310.bios informs EC to mark MS with position 0.
The BIOS detects the wake source and further informs the EC to mark the MS as 0. The MS flag position 0 indicates that the device is closed but enters the awake state.
S311.cpu pulls up slp_s3 pin.
The CPU pulls up the SLP_S3 pin and enters the wake-up state.
S312. The CPU notifies the OS to exit the sleep state.
S313.os resumes the device driver.
It can be seen that after the user uses the PC, the user closes the cover without turning off the device, and enters a sleep state, but is awakened by mistake to enter an awake state, so that the device generates heat. Without the knowledge of the user, the PC may be severely heated without being powered off.
Therefore, the scheme that the PC enters into dormancy after being awakened by mistake can be used, so that the PC is prevented from being seriously heated:
fig. 4 is a schematic flow chart of triggering to enter a sleep state after a PC is closed and awakened according to an embodiment of the present application. Illustratively, the process may include the steps of:
s401.ec detects a capping event.
The EC may perform the open-close detection, and after the PC is closed, the EC may detect the close event.
S402, the device enters a sleep state.
The PC is covered and then smoothly enters a sleep state.
S403, the EC is awakened after detecting that the cover is closed, and a Flag bit WakeClose_flag is set to be 1.
Because of USB wake-up source such as mouse or other wake-up source, wake up PC under the condition of closing the cover, PC enters wake-up state (S0 state). The EC is awakened after detecting closing the cover, and a Flag bit WakeClose_Flag is set to be 1, so that the PC is identified to be closed and awakened.
S404. The EC is awakened after detecting that the cover is closed, and the detected temperature is continuously greater than (or equal to) a threshold value for 10s, and a Flag bit HogBag_flag is set to be 1.
When licgloseafterms=1, it is determined that the PC is capped and awakened, and the temperature of the CPU and the adapter (charge) is monitored (reading the values of tchagre_temp and tcpuntc_temp) for 10 consecutive seconds (for example only). When the temperature continuation 10s of the CPU is detected to be greater than (or equal to) a first threshold (e.g., 43 degrees), and/or the temperature continuation 10s of the adapter is detected to be greater than (or equal to) a second threshold (e.g., 48 degrees), the Flag bit hogbag_flag is set to 1, and the temperature of the CPU and/or the adapter for identifying the PC is continuously higher.
EC writes the above temperature values to ECRam.
S405.ec sends a system control interrupt (system control interrupt, SCI) interrupt to BIOS.
The SCI interrupt is a Qevent, numbered Q39.
After the EC sends the SCI interrupt to the BIOS, a Flag WakeClose_Flag may be set to 0.
The EC may also report the temperature of the CPU and/or adapter to the BIOS.
S406, after receiving the SCI interrupt, the BIOS reads the temperature value in the EC and the value of the Flag bit HogBag_flag.
S407.bios notifies the OS.
The BIOS determines that the temperature value in EC is 50, greater than the first threshold 42, and hogbag_flag=1, and sends a notification to the OS.
Illustratively, the BIOS reports the OS through Notify (thermal_zone, 0x 80) after receiving the Qevent, and is used for notifying the OSPM that the temperature of the hot zone has changed:
the notification includes the EC measured temperature value. That is, when the BIOS is in the Notify OS, the BIOS needs to report the NTC temperature value uploaded by the EC to the OS, and trigger the Thermal zone mechanism to make the PC go to sleep. The temperature value may be a value obtained by processing the temperature value in the read EC by the BIOS, for example, the temperature value reported by the EC is 50, and the temperature value reported by the BIOS to the OS is 60.
Illustratively, the BIOS may also write a threshold (e.g., 48) for sleep temperature (HOT) in an advanced configuration power interface (advanced configuration power interface, ACPI) temperature region (thermal zone), i.e., set the thermal zone of ACPI to enter sleep temperature.
S408. The OS performs temperature comparison, triggering the device to enter a sleep state (S4 state).
After receiving the Notify, the OS uses a temperature zone (Thermal zone) mechanism to trigger the PC to enter a sleep state (pull down the slp_s4 pin of the CPU) by comparing the temperature value reported by the BIOS with a threshold (e.g., 60 > 48) of the sleep temperature (_hot) to prevent the PC from being shutdown due to excessive temperature.
Further, when the PC goes to sleep, all the data (e.g., the context of the process) processed in the memory is transferred to a sleep file on the hard disk, and then power is cut off to all the components. The PC will read the dormant file into the memory directly again when it wakes up next time, and resume the working state before dormancy.
After the PC enters a dormant state, the data processed in the memory is transferred to the hard disk, and a user needs to press a Power key to wake up.
S409, the device is powered off (S5 state), or the EC detects that the cover is opened and the device enters S0 state, and clears the value of the Flag bit HogBag_Flag and the temperature value on ECRam (the detected temperature is not reported).
Because the temperature value and Flag (Flag) stored in the memory still meet the condition that the PC enters the sleep state again when the PC wakes up next time, the value stored in the register is removed (hottag_flag=0 and temperature value) before the temperature value is reported to the OS, so that the PC is prevented from entering the sleep again when the PC wakes up.
As shown in fig. 5, a schematic diagram of temperature monitoring that a PC cover is awakened after entering a sleep state is shown in fig. 5, and after 09:52:44PC cover is closed and enters a sleep state, the temperature of the CPU is monitored (T CPUNTC ) And the temperature of the adapter (T charge ) Lower; at 09:54:48PC capped but awakened, the CPU temperature and adapter temperature gradually increased; at 10:20:42PC is shut down due to excessive temperature, the temperature of CPU and the temperature of the adapter become low; after 10:20:42, the PC is powered on to enter an awake state, and the temperature of the CPU and the temperature of the adapter gradually rise. Therefore, when the PC is in a sleep state, the PC is in a heating state all the time due to false awakening, and finally the PC is in a sleep stateAnd the device is shut down when serious heat is generated.
By adopting the scheme, when the PC cover is detected to enter the sleep state and is awakened by mistake, and when at least one of the continuous temperature values of the central processing unit and/or the adapter in a period of time exceeds the set threshold, the PC is triggered to enter the sleep state, so that the PC is prevented from overheating, and the service life of the equipment is prolonged.
It will be appreciated that, in order to implement the functions in the above embodiments, the above apparatus includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and method steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application scenario and design constraints imposed on the solution.
Based on the same conception of the false wake-up processing method, the embodiment of the application also provides a false wake-up processing device.
Fig. 6 is a schematic structural diagram of a false wake-up processing device according to an embodiment of the present application. The apparatus 6000 comprises:
the detecting unit 601 is configured to detect that the device enters an awake state after a first period of time after the device is covered and enters a sleep state;
an acquisition unit 602 configured to acquire a first temperature value of a central processing unit of the device during a second period of time and a second temperature value of an adapter of the device during the second period of time; and
and the triggering unit 603 is configured to trigger the device to enter the sleep state when the first temperature value is continuously greater than or equal to a first threshold value and/or the second temperature value is continuously greater than or equal to a second threshold value.
Optionally, the detection unit 601 includes (not shown in the figure): the reading unit is used for reading a first zone bit of the device; and the determining unit is used for determining that the value of the first flag bit is a first value and is awakened after the device is closed and enters a sleep state.
Optionally, the device 6000 further comprises (indicated by a dashed line in the figure): and a setting unit 604, configured to set a second flag bit of the device to a second value when the detecting unit detects that the first temperature value is continuously greater than or equal to a first threshold value and/or the second temperature value is continuously greater than or equal to a second threshold value, where the second flag bit is used to indicate that the central processing unit or the adapter is too high, and the device enters a sleep state.
Optionally, the apparatus further comprises (indicated by a dashed line in the figure): and the first storage unit 605 is configured to transfer the data in the memory of the device to the hard disk of the device before the triggering unit triggers the device to enter the sleep state.
Optionally, the apparatus further comprises (indicated by a dashed line in the figure): and the second storage unit 606 is configured to read the stored data from the hard disk and store the data in the memory after the device is opened and enters the wake-up state.
Optionally, the apparatus further comprises (indicated by a dashed line in the figure): and a clearing unit 607, configured to clear the value of the first flag bit and/or the second flag bit after the device is opened and enters the awake state.
For the specific implementation of each unit, reference may be made to the description in the above method embodiment, and no further description is given here.
According to the false wake-up processing device provided by the embodiment of the application, when the situation that the device is covered and enters the sleep state and is false wake-up is detected, and when at least one of continuous temperature values of the central processing unit and/or the adapter in a period of time exceeds a set threshold value, the trigger device enters the sleep state, so that the device is prevented from being overheated, and the service life of the device is prolonged.
Fig. 7 is a schematic structural diagram of another wake-up error processing device according to an embodiment of the present application. The apparatus 7000 may include:
the processors 701 (the number of processors 701 in the apparatus may be one or more, one processor being taken as an example in fig. 7). The apparatus may further comprise a memory 702, an input interface 703 and an output interface 704 (shown in dashed lines). In some embodiments of the present application, the memory 702 may optionally be located inside the device or outside the device. In some embodiments of the present application, the memory 702, the input interface 703, the output interface 704, and the processor 701 may be connected by a bus or other means, where a bus connection is exemplified in fig. 7.
Wherein the processor 701 is configured to perform the following steps:
the detection device enters an awake state after closing the cover and entering a sleep state for a first period of time;
acquiring a first temperature value of a central processing unit of the device in a second time period and a second temperature value of an adapter of the device in the second time period;
and triggering the device to enter a sleep state when the first temperature value is continuously greater than or equal to a first threshold value and/or the second temperature value is continuously greater than or equal to a second threshold value.
Optionally, the processor 701 performs the step of entering the wake-up state after a first period of time after the detection device covers the sleep state, including:
reading a first flag bit of the device;
and the value of the first flag bit is a first value, and the device is determined to be awakened after the device is covered and enters a sleep state.
Optionally, the processor 701 is further configured to perform the following steps:
and when the first temperature value is detected to be continuously greater than or equal to a first threshold value and/or the second temperature value is detected to be continuously greater than or equal to a second threshold value, setting a second flag bit of the device to be a second value, wherein the second flag bit is used for indicating that the central processing unit or the adapter is too high in temperature, and the device enters a dormant state.
Optionally, the processor 701 is further configured to perform the following steps:
and after the device is uncapped and enters an awake state, the values of the first flag bit and/or the second flag bit are cleared.
Optionally, the processor 701 is further configured to perform the following steps:
and before the device is triggered to enter a dormant state, data in a memory of the device is transferred to a hard disk of the device.
Optionally, the processor 701 is further configured to perform the following steps:
and after the device is uncapped and enters an awake state, reading the stored data from the hard disk and storing the data into the memory.
According to the false wake-up processing device provided by the embodiment of the application, when the situation that the device is covered and enters the sleep state and is false wake-up is detected, and when at least one of continuous temperature values of the central processing unit and/or the adapter in a period of time exceeds a set threshold value, the trigger device enters the sleep state, so that the device is prevented from being overheated, and the service life of the device is prolonged.
It is to be appreciated that the processor in embodiments of the present application may be a CPU, but may also be other general purpose processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate arrays (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general purpose processor may be a microprocessor, but in the alternative, it may be any conventional processor.
The present application also provides a computer readable storage medium, in which a computer program or an instruction is stored, which when executed, implements the method in the method embodiment described above.
Embodiments of the present application also provide a computer program product comprising instructions which, when run on the above-described apparatus, cause the apparatus to perform the method of the above-described method embodiments.
The method steps in the embodiments of the present application may be implemented by hardware, or may be implemented by a processor executing software instructions. The software instructions may be comprised of corresponding software modules that may be stored in random access memory, flash memory, read only memory, programmable read only memory, erasable programmable read only memory, electrically erasable programmable read only memory, registers, hard disk, removable disk, compact disk-read only memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. In addition, the ASIC may be located in the apparatus described above. The processor and the storage medium may reside as discrete components in the apparatus described above.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the layers or functions described in the embodiments of the present application are fully or partially executed. The computer may be a general purpose computer, a special purpose computer, a computer network, a network device, a user device, or other programmable apparatus. The computer program or instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer program or instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center by wired or wireless means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that integrates one or more available media. The usable medium may be a magnetic medium, e.g., floppy disk, hard disk, tape; but also optical media such as digital video discs; but also semiconductor media such as solid state disks.
In the various embodiments of the application, if there is no specific description or logical conflict, terms and/or descriptions between the various embodiments are consistent and may reference each other, and features of the various embodiments may be combined to form new embodiments according to their inherent logical relationships.
In the present application, "at least one" means one or more, and "a plurality" means two or more. "at least one of: … … "or the like, means any one of the listed items or any number of combinations of such items, e.g.," at least one of: A. b and C ", or" at least one of: A. b or C ", each of which may represent: cases where A alone, B alone, C alone, A and B together, B and C together, A and C together, and A, B and C together exist, where A, B, C may be singular or plural. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. In the text description of the present application, the character "/", generally indicates that the associated object is an or relationship; in the formulas of the present application, the character "/" indicates that the front and rear associated objects are a "division" relationship.
It will be appreciated that the various numerical numbers referred to in the embodiments of the present application are merely for ease of description and are not intended to limit the scope of the embodiments of the present application. The sequence number of each process does not mean the sequence of the execution sequence, and the execution sequence of each process should be determined according to the function and the internal logic.

Claims (15)

1. A false wake-up processing method, the method comprising:
the detection equipment enters an awake state after closing the cover and entering a first time period after entering a sleep state;
acquiring a first temperature value of a central processing unit of the device in a second time period and a second temperature value of an adapter of the device in the second time period;
and triggering the equipment to enter a dormant state when the first temperature value is continuously greater than or equal to a first threshold value and/or the second temperature value is continuously greater than or equal to a second threshold value.
2. The method of claim 1, wherein the detecting device entering the awake state after a first period of time after closing the cover to enter the sleep state comprises:
reading a first flag bit of the equipment;
and the value of the first flag bit is a first value, and the equipment is determined to be awakened after the equipment is covered and enters a sleep state.
3. The method of claim 2, wherein the method further comprises:
and when the first temperature value is detected to be continuously greater than or equal to a first threshold value and/or the second temperature value is detected to be continuously greater than or equal to a second threshold value, setting a second flag bit of the equipment to be a second value, wherein the second flag bit is used for indicating that the temperature of the central processing unit or the adapter is too high, and the equipment enters a dormant state.
4. The method of claim 3, wherein after the device is uncapped into the awake state, the method further comprises:
and clearing the value of the first zone bit and/or the second zone bit.
5. The method of any of claims 1-4, wherein prior to the triggering the device to enter a sleep state, the method further comprises:
and transferring the data in the memory of the equipment to a hard disk of the equipment.
6. The method of claim 5, wherein after the device is uncapped into the awake state, the method further comprises:
and reading the stored data from the hard disk and storing the data into the memory.
7. A false wake-up processing device, the device comprising:
the detection unit is used for detecting that the device enters an awake state after a first time period after the device is covered and enters a sleep state;
an acquisition unit for acquiring a first temperature value of a central processing unit of the device in a second period of time and a second temperature value of an adapter of the device in the second period of time;
and the triggering unit is used for triggering the device to enter a dormant state when the first temperature value is continuously greater than or equal to a first threshold value and/or the second temperature value is continuously greater than or equal to a second threshold value.
8. The apparatus of claim 7, wherein the detection unit comprises:
the reading unit is used for reading a first zone bit of the device;
and the determining unit is used for determining that the value of the first flag bit is a first value and awakening the device after the device is covered and enters a sleep state.
9. The apparatus of claim 8, wherein the apparatus further comprises:
the setting unit is used for setting a second flag bit of the device to be a second value when the detection unit detects that the first temperature value is continuously greater than or equal to a first threshold value and/or the second temperature value is continuously greater than or equal to a second threshold value, wherein the second flag bit is used for indicating that the temperature of the central processing unit or the adapter is too high, and the device enters a dormant state.
10. The apparatus of claim 9, wherein the apparatus further comprises:
and the clearing unit is used for clearing the value of the first zone bit and/or the second zone bit after the device is opened and enters the awakening state.
11. The apparatus according to any one of claims 7-10, wherein the apparatus further comprises:
and the first storage unit is used for transferring the data in the internal memory of the device to the hard disk of the device before the triggering unit triggers the device to enter the dormant state.
12. The apparatus of claim 11, wherein the apparatus further comprises:
and the second storage unit is used for reading the stored data from the hard disk and storing the data into the memory after the device is opened and enters the awakening state.
13. A false wake-up processing device, comprising: a processor for executing a program stored in a memory, which when executed causes the apparatus to perform the method of any one of claims 1-6.
14. The apparatus of claim 13, wherein the memory is located external to the apparatus.
15. A computer readable storage medium comprising instructions which, when run on a computer, perform the method of any of claims 1-6.
CN202311128304.1A 2023-08-31 2023-08-31 False wake-up processing method, device and storage medium Pending CN117687694A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311128304.1A CN117687694A (en) 2023-08-31 2023-08-31 False wake-up processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311128304.1A CN117687694A (en) 2023-08-31 2023-08-31 False wake-up processing method, device and storage medium

Publications (1)

Publication Number Publication Date
CN117687694A true CN117687694A (en) 2024-03-12

Family

ID=90127270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311128304.1A Pending CN117687694A (en) 2023-08-31 2023-08-31 False wake-up processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN117687694A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101943942A (en) * 2010-08-24 2011-01-12 鸿富锦精密工业(深圳)有限公司 Electronic device with sleep function and method for wakening same
CN108509020A (en) * 2018-03-30 2018-09-07 联想(北京)有限公司 A kind of information processing method, electronic equipment and readable storage medium storing program for executing
CN113703799A (en) * 2020-05-21 2021-11-26 华为技术有限公司 Computing device and BIOS updating method and medium thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101943942A (en) * 2010-08-24 2011-01-12 鸿富锦精密工业(深圳)有限公司 Electronic device with sleep function and method for wakening same
CN108509020A (en) * 2018-03-30 2018-09-07 联想(北京)有限公司 A kind of information processing method, electronic equipment and readable storage medium storing program for executing
CN113703799A (en) * 2020-05-21 2021-11-26 华为技术有限公司 Computing device and BIOS updating method and medium thereof

Cited By (1)

* Cited by examiner, † Cited by third party
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

Similar Documents

Publication Publication Date Title
US6134667A (en) Computer system and its cooling control method
TWI515549B (en) Method for providing over-temperature protection of a target device, apparatus for providing over-temperature protection, and information processing system thereof
JP3075957B2 (en) Computer system
CN101105711B (en) System and method for distributing processing function between main processor and assistant processor
US9043627B2 (en) Methods and apparatuses for controlling the temperature of a data processing system
US7437575B2 (en) Low power mode for device power management
CN103294161B (en) Electronic device
KR100488088B1 (en) The power management method of portable computer
KR20020050270A (en) Dynamically adjusting a processor's operational parameters according to its environment
JP3974510B2 (en) Computer apparatus, power management method, and program
US20040268174A1 (en) Operating system coordinated thermal management
US7406612B2 (en) Information handling system including standby/wakeup feature dependent on sensed conditions
EP3274787B1 (en) Technologies for managing power of an embedded controller during a low-power state
US7152013B2 (en) Heat dissipating method
JP2002006991A (en) Rotation number control method for cooling fan of computer system
CN117687694A (en) False wake-up processing method, device and storage medium
CN103064799A (en) Electronic system and method and apparatus for saving data thereof
CN103282854A (en) System and method for power management
KR20050075397A (en) Low voltage detection system
EP2972826B1 (en) Multi-core binary translation task processing
JP2002168926A (en) Method of calculating capacity of intelligent battery, intelligent battery, and mobile electronic equipment
TWI601009B (en) Thermal sensor dynamic shutdown
CN101281416A (en) Method for ensuring system closedown completion
CN103970253B (en) Power-saving operation method and electronic device
JP5670967B2 (en) Method for controlling power state of portable information terminal device, computer program, and portable information terminal device

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