Method and device for relieving frozen screen, electronic equipment and storage medium
By detecting the frozen screen status of the electronic device and performing operations of restarting the touch module, reloading firmware and reloading threads, the problem of the inability to quickly unfreeze the frozen screen in the prior art is solved, and the improvement of equipment performance and user experience is achieved.
Patent Information
- Application Number
- CN202311132549.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-04
- Publication Date
- 2025-03-04
AI Technical Summary
In the prior art, it is impossible to quickly and effectively remove the frozen screen state of the electronic device, resulting in poor equipment performance and poor user experience.
By detecting whether the electronic device is in a frozen screen state and performing predetermined operations in response to detecting the frozen screen state, including restarting the touch module, reloading firmware and reloading threads, to reset the relevant configurations, restore the normal operation of the touch module, firmware and threads.
Quickly remove the freeze screen status of electronic devices, ensure excellent equipment performance and improve user experience.
Smart Images

Figure CN119557139A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic equipment but is not limited to the field of electronic equipment, and in particular to a method, device, electronic equipment and storage medium for defrosting a screen. Background Art
[0002] In the related art, the touch screen supports more and more new features. At this time, more logic is added to the driver code, which increases the risk of errors and causes the electronic device to be in a frozen screen state. When the electronic device is in a frozen screen state, there is no way to quickly unfreeze the screen in the related art, resulting in poor performance of the electronic device and poor user experience. Summary of the invention
[0003] In view of this, the embodiments of the present disclosure disclose a method, device, electronic device and storage medium for defrosting the screen.
[0004] According to a first aspect of an embodiment of the present disclosure, a method for defrosting a frozen screen is provided, the method being applied to an electronic device, the method comprising:
[0005] Detecting whether the electronic device is in a frozen screen state, wherein the frozen screen state is a state in which an abnormality occurs on the touch screen of the electronic device;
[0006] In response to detecting that the electronic device is in the frozen screen state, executing a predetermined operation;
[0007] The predetermined operation includes at least one of the following:
[0008] The first operation is to restart the touch control module provided in the electronic device, wherein the touch control module is a module for controlling and processing the touch control operation acting on the touch screen;
[0009] A second operation is an operation of reloading firmware, where the firmware is firmware in the touch module for responding to the touch operation; and
[0010] The third operation is an operation of reloading a thread, the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation.
[0011] In one embodiment, the method further comprises:
[0012] In response to detecting a predetermined event, determining that the electronic device is detected to be in a frozen screen state;
[0013] The predetermined events include first-type events related to user behavior and / or second-type events related to the operating state of the electronic device.
[0014] In one embodiment, the first type of event includes at least one of the following:
[0015] The first event is an event of detecting a first operation acting on a predetermined key;
[0016] The second event is an event of detecting that the electronic device moves back and forth at the first frequency;
[0017] The third event is an event of obtaining a predetermined voice signal, wherein the predetermined voice signal indicates releasing the frozen screen state.
[0018] In one embodiment, the number of the predetermined key is single, and the first operation includes: an operation of continuously clicking the predetermined key, and / or an operation of acting on the predetermined key for a duration greater than a duration threshold;
[0019] or,
[0020] The number of the predetermined keys is at least two, and the first operation includes: an operation of alternately clicking at least two of the predetermined keys, and / or an operation of clicking at least two of the predetermined keys for a duration greater than a duration threshold.
[0021] In one embodiment, the second type of event includes at least one of the following:
[0022] A fourth event is an event in which the electronic device does not respond to the touch operation for a period longer than the first period;
[0023] The fifth event is an event that the display interface of the electronic device is not updated within a second time.
[0024] In one embodiment, the performing of a predetermined operation includes:
[0025] The predetermined operation is performed based on a preset priority; wherein the preset priority includes a priority at which the predetermined operation is performed.
[0026] In one embodiment, the priority of executing the first operation is greater than the priority of executing the second operation, and / or the priority of executing the second operation is greater than the priority of executing the third operation.
[0027] In one embodiment, performing the predetermined operation based on a preset priority includes:
[0028] Execute all the predetermined operations based on the preset priority;
[0029] and / or,
[0030] At least one of the predetermined operations is performed based on the preset priority until it is detected that the electronic device is not in the frozen screen state.
[0031] In one embodiment, performing the predetermined operation based on a preset priority includes:
[0032] Based on the predetermined time interval and the preset priority, the predetermined operation is performed; wherein the predetermined time interval is the time interval between two adjacent operations.
[0033] In one embodiment, the method further comprises:
[0034] In response to detecting that the electronic device switches from the frozen screen state to the non-frozen screen state, acquiring log information of the electronic device;
[0035] The non-frozen screen state is a state in which the touch screen of the electronic device returns to normal; and the log information includes log information related to the frozen screen state of the electronic device.
[0036] According to a second aspect of an embodiment of the present disclosure, a device for defrosting a screen is provided, the device comprising:
[0037] A detection module, used to detect whether the electronic device is in a frozen screen state, wherein the frozen screen state is a state in which the touch screen of the electronic device is working abnormally;
[0038] a processing module, configured to execute a predetermined operation in response to detecting that the electronic device is in the frozen screen state;
[0039] The predetermined operation includes at least one of the following:
[0040] The first operation is to restart the touch control module provided in the electronic device, wherein the touch control module is a module for controlling and processing the touch control operation acting on the touch screen;
[0041] A second operation is an operation of reloading firmware, where the firmware is firmware in the touch module for responding to the touch operation; and
[0042] The third operation is an operation of reloading a thread, the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation.
[0043] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising:
[0044] processor;
[0045] a memory for storing instructions executable by the processor;
[0046] The processor is configured to implement the method described in any embodiment of the present disclosure when running the executable instructions.
[0047] According to a fourth aspect of an embodiment of the present disclosure, a computer storage medium is provided, wherein the computer storage medium stores a computer executable program, and when the executable program is executed by a processor, the method described in any embodiment of the present disclosure is implemented.
[0048] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0049] In an embodiment of the present disclosure, a method for unfreezing the screen is provided, and the method is applied to an electronic device, and the method comprises: detecting whether the electronic device is in a frozen screen state, the frozen screen state being a state in which an abnormality occurs on the touch screen of the electronic device; in response to detecting that the electronic device is in the frozen screen state, performing a predetermined operation; wherein the predetermined operation comprises at least one of the following: a first operation is an operation of restarting a touch control module provided in the electronic device, the touch control module being a module for controlling and processing touch control operations acting on the touch screen; a second operation is an operation of reloading firmware, the firmware being firmware in the touch control module for responding to the touch control operations; and a third operation is an operation of reloading a thread, the thread being in an interrupted state, the thread comprising a thread for responding to the touch control operations. Here, in response to detecting that the electronic device is in a frozen screen state, a predetermined operation is performed, and the predetermined operation includes at least one of the following: an operation of restarting the touch module, an operation of reloading the firmware, and an operation of reloading the thread. Therefore, the touch module of the electronic device, the firmware for responding to the touch operation, and / or the thread for responding to the touch operation can be restarted, and the relevant configuration for responding to the touch operation in the electronic device can be reset, so that the touch module, firmware, and / or thread in the electronic device can respond to the touch operation normally, so that the touch screen returns to normal. Compared with the method that cannot effectively release the frozen screen state in the related art, the embodiment of the present disclosure can fully consider the influence of the touch module, firmware, and / or thread on the touch screen, and by restarting the touch module of the electronic device, reloading the firmware for responding to the touch operation, and / or reloading the thread for responding to the touch operation, the touch module, firmware, and thread of the electronic device are restored to normal, so that the touch screen is restored to normal, so as to quickly release the frozen screen state of the electronic device. In this way, the frozen screen state of the electronic device can be released in time, the performance of the electronic device is ensured to be good, and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0051] Figure 1 The figure is a flowchart of a method for defrosting the screen according to an exemplary embodiment;
[0052] Figure 2 is a schematic diagram of a holding posture according to an exemplary embodiment;
[0053] Figure 3 The figure is a flowchart of a method for defrosting the screen according to an exemplary embodiment;
[0054] Figure 4 The figure is a flowchart of a method for defrosting the screen according to an exemplary embodiment;
[0055] Figure 5 The figure is a flowchart of a method for defrosting the screen according to an exemplary embodiment;
[0056] Figure 6 The figure is a flowchart of a method for defrosting the screen according to an exemplary embodiment;
[0057] Figure 7 The figure is a flowchart of a method for defrosting the screen according to an exemplary embodiment;
[0058] Figure 8 The figure is a schematic structural diagram of a device for defrosting a screen according to an exemplary embodiment;
[0059] Fig. 9 The figure is a schematic diagram showing the structure of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present invention. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present invention.
[0061] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0062] In the following description, the terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first / second / third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the invention described herein can be implemented in an order other than that illustrated or described herein.
[0063] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.
[0064] like Figure 1 As shown, an embodiment of the present disclosure provides a method for defrosting the screen, the method being applied to an electronic device, the method comprising:
[0065] Step S011, detecting whether the electronic device is in a frozen screen state, wherein the frozen screen state is a state in which an abnormality occurs on the touch screen of the electronic device;
[0066] Step S012, in response to detecting that the electronic device is in the frozen screen state, executing a predetermined operation;
[0067] The predetermined operation includes at least one of the following:
[0068] The first operation is to restart the touch control module provided in the electronic device, wherein the touch control module is a module for controlling and processing the touch control operation acting on the touch screen;
[0069] A second operation is an operation of reloading firmware, where the firmware is firmware in the touch module for responding to the touch operation; and
[0070] The third operation is an operation of reloading a thread, the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation.
[0071] In one embodiment, the specific type of the electronic device may not be limited, and it is only necessary to ensure that the electronic device has a touch screen. For example, the electronic device includes but is not limited to a mobile phone, a tablet computer, a wearable device, a vehicle terminal, and a smart home device.
[0072] In one embodiment, an abnormality in the touch screen of an electronic device may refer to an abnormality in the display content on the touch screen, for example, the display content on the touch screen is paused, or the display content on the touch screen stops updating. An abnormality in the touch screen of an electronic device may also refer to an abnormality in the operation of processing a touch operation on the touch screen. Here, the operation of processing a touch operation may include an operation of detecting a touch operation and / or an operation of responding to a touch operation. At this time, an abnormality in the operation of processing a touch operation on the touch screen may refer to an inability to detect a touch operation on the touch screen and / or an inability to respond to a touch operation on the touch screen.
[0073] In one embodiment, it is detected whether the electronic device is in a frozen screen state, and the frozen screen state is a state in which the touch screen of the electronic device is abnormal; in response to detecting that the electronic device is in the frozen screen state, a first operation is performed; wherein the first operation is an operation of restarting a touch control module provided in the electronic device, and the touch control module is a module for controlling and processing touch operations acting on the touch screen. Here, since the first operation is performed when the electronic device is in a frozen screen state, and the first operation is an operation of restarting a touch control module provided in the electronic device, and the touch control module is a module for controlling and processing touch operations acting on the touch screen, therefore, in the case where the operation of the touch control module of the electronic device is abnormal and causes the touch screen to be abnormal, the relevant settings in the touch control module can be reset by restarting the touch control module of the electronic device. For example, the relevant settings that cause the touch screen to be abnormal can be reset. In this way, the touch screen can be restored to normal and the frozen screen state of the electronic device can be released.
[0074] It should be noted that the relevant settings that cause the touch screen to be abnormal may be settings related to the level output by the touch module. The level output by the touch module can be used to detect the touch operation acting on the touch screen.
[0075] In one embodiment, the touch control module may be restarted by powering off and then powering on again.
[0076] At this time, when the settings related to the output level in the touch module are abnormal, the level in the touch module can be reset by powering off and then powering on the touch module again, so that the related settings that caused the abnormality of the touch screen can be restored to normal. In this way, the touch screen can be restored to normal and the frozen screen state of the electronic device can be avoided.
[0077] In one embodiment, the touch control module may be an integrated circuit (IC) disposed in the electronic device. For example, the touch control module may be a touch control IC chip disposed in the electronic device.
[0078] In one embodiment, the control processing operation performed in the touch control module for the touch control operation acting on the touch screen may refer to that the touch control module can detect and / or respond to the touch control operation acting on the touch screen.
[0079] In one embodiment, it is detected whether the electronic device is in a frozen screen state, and the frozen screen state is a state in which the touch screen of the electronic device is abnormal; in response to detecting that the electronic device is in the frozen screen state, a second operation is performed, and the second operation is an operation of reloading firmware, and the firmware is the firmware in the touch module for responding to touch operations. Here, since the second operation is performed when the electronic device is in the frozen screen state, and the second operation is an operation of reloading firmware, and the firmware is the firmware in the touch module for responding to the touch operation, therefore, in the case where the firmware of the electronic device is abnormal and thus causes the touch screen to be abnormal, the firmware of the electronic device can be reloaded to reset the relevant settings in the firmware. For example, the relevant settings that cause the touch screen to be abnormal can be reset. In this way, the touch screen can be restored to normal and the frozen screen state of the electronic device can be released.
[0080] In one embodiment, reloading the firmware may refer to uninstalling the firmware in the touch control module and re-downloading the firmware.
[0081] In one embodiment, the firmware may be pre-burned into the touch control module, so that the touch control module can reload the firmware without being connected to the Internet.
[0082] In one embodiment, it is detected whether the electronic device is in a frozen screen state, and the frozen screen state is a state in which the touch screen of the electronic device is abnormal; in response to detecting that the electronic device is in the frozen screen state, a third operation is performed, and the third operation is an operation of reloading a thread, and the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation. Here, since the third operation is performed when the electronic device is in the frozen screen state, and the third operation is an operation of reloading a thread, the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation, therefore, in the case where the thread of the electronic device is abnormal and thus causes the touch screen to be abnormal, the settings related to the thread for responding to the touch operation can be reset by reloading the abnormal thread. For example, the thread for responding to the touch operation can be executed preferentially. In this way, the thread for responding to the touch operation can be executed in time, so that the touch screen returns to normal and the frozen screen state of the electronic device is released.
[0083] In one embodiment, the overloaded threads include threads for responding to touch operations and other threads that have not been completely executed.
[0084] In one embodiment, reloading the thread may refer to re-registering interrupt information in the operating system of the electronic device, where the interrupt information includes information about the interrupted thread, thread execution priority, and interrupt time.
[0085] In one embodiment, the process of reloading a thread includes: releasing the thread and re-registering interrupt information corresponding to the thread.
[0086] In one embodiment, reloading a thread may refer to re-executing the thread. In one embodiment, after reloading the thread, the thread for responding to the touch operation may be preferentially executed.
[0087] In one embodiment, in response to detecting that the electronic device is in a frozen screen state, the fault type of the electronic device is determined; based on the fault type, a predetermined operation corresponding to the fault type is performed; wherein the fault type is the type of abnormality of the touch screen of the electronic device, and there is a predetermined mapping relationship between the fault type and the predetermined operation, and the fault types include: a first fault type, the first fault type indicates that the touch module of the electronic device has an abnormality; a second fault type, indicating that the firmware in the touch module has an abnormality; and a third fault type, indicating that the thread has an abnormality, the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation.
[0088] Here, since the predetermined operation corresponding to the fault type can be performed based on the fault type of the electronic device, the performed predetermined operation can be adapted to the fault type of the electronic device. At this time, when the electronic device is in a frozen screen state, it is not necessary to perform all the predetermined operations to release the frozen screen state, but the corresponding predetermined operation can be performed in a targeted manner according to the fault type of the electronic device. In this way, the operations to be performed in the process of releasing the frozen screen state can be simplified, and the situation where the performance of the electronic device is impaired due to the execution of unnecessary predetermined operations can be reduced.
[0089] In one embodiment, in response to the fault type of the electronic device being a first fault type, a first operation is performed; wherein the first fault type indicates that an abnormality occurs in a touch control module of the electronic device; the first operation is to restart the operation of a touch control module provided in the electronic device, wherein the touch control module is a module for controlling and processing touch operations acting on the touch screen.
[0090] In one embodiment, in response to the fault type of the electronic device being a second fault type, a second operation is performed; wherein the second fault type indicates that an abnormality occurs in the firmware in the touch control module; the second operation is an operation of reloading firmware, and the firmware is the firmware in the touch control module used to respond to the touch control operation.
[0091] In one embodiment, in response to the fault type of the electronic device being a third fault type, a third operation is performed; wherein the third fault type indicates that a thread is abnormal, the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation. The third operation is an operation of reloading the thread, the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation.
[0092] In an embodiment of the present disclosure, a method for unfreezing the screen is provided, and the method is applied to an electronic device, and the method comprises: detecting whether the electronic device is in a frozen screen state, the frozen screen state being a state in which an abnormality occurs on the touch screen of the electronic device; in response to detecting that the electronic device is in the frozen screen state, performing a predetermined operation; wherein the predetermined operation comprises at least one of the following: a first operation is an operation of restarting a touch control module provided in the electronic device, the touch control module being a module for controlling and processing touch control operations acting on the touch screen; a second operation is an operation of reloading firmware, the firmware being firmware in the touch control module for responding to the touch control operations; and a third operation is an operation of reloading a thread, the thread being in an interrupted state, the thread comprising a thread for responding to the touch control operations. Here, in response to detecting that the electronic device is in a frozen screen state, a predetermined operation is performed, and the predetermined operation includes at least one of the following: an operation of restarting the touch module, an operation of reloading the firmware, and an operation of reloading the thread. Therefore, the touch module of the electronic device, the firmware for responding to the touch operation, and / or the thread for responding to the touch operation can be restarted, and the relevant configuration for responding to the touch operation in the electronic device can be reset, so that the touch module, firmware, and / or thread in the electronic device can respond to the touch operation normally, so that the touch screen returns to normal. Compared with the method that cannot effectively release the frozen screen state in the related art, the embodiment of the present disclosure can fully consider the influence of the touch module, firmware, and / or thread on the touch screen, and by restarting the touch module of the electronic device, reloading the firmware for responding to the touch operation, and / or reloading the thread for responding to the touch operation, the touch module, firmware, and thread of the electronic device are restored to normal, so that the touch screen is restored to normal, so as to quickly release the frozen screen state of the electronic device. In this way, the frozen screen state of the electronic device can be released in time, the performance of the electronic device is ensured to be good, and the user experience is improved.
[0093] In one embodiment, Figure 2 As shown, the method also includes:
[0094] Step S021, in response to detecting a predetermined event, determining that the electronic device is in a frozen screen state;
[0095] The predetermined events include first-type events related to user behavior and / or second-type events related to the operating state of the electronic device.
[0096] In one embodiment, it is detected whether the electronic device is in a frozen screen state, and the frozen screen state is a state in which an abnormality occurs on the touch screen of the electronic device. In response to detecting a first type of event, it is determined that the electronic device is detected to be in a frozen screen state. Wherein, the first type of event includes a first type of event related to the user's behavior. In response to detecting that the electronic device is in the frozen screen state, a predetermined operation is performed. Wherein, the predetermined operation includes at least one of the following: a first operation is an operation of restarting a touch module provided in the electronic device, and the touch module is a module for controlling and processing touch operations acting on the touch screen; a second operation is an operation of reloading firmware, and the firmware is the firmware in the touch module for responding to the touch operation; and a third operation is an operation of reloading a thread, and the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation.
[0097] Here, since it is determined that the electronic device is in a frozen screen state in response to detecting a first type of event, wherein the first type of event includes a first type of event related to the user's behavior, the detection of the electronic device being in a frozen screen state can be adapted to the first type of event related to the user's behavior. At this time, the electronic device does not need to expend resources to detect the display status of the touch screen of the electronic device, and can directly detect that the electronic device is in a frozen screen state based on the user's trigger, so as to quickly take relevant measures to release the touch screen state of the electronic device.
[0098] In one embodiment, in response to not detecting the first type of event, it is determined that the electronic device is detected not to be in a frozen screen state.
[0099] In one embodiment, it is detected whether the electronic device is in a frozen screen state, and the frozen screen state is a state in which an abnormality occurs on the touch screen of the electronic device. In response to detecting a second type of event, it is determined that the electronic device is detected to be in a frozen screen state. Wherein, the second type of event is an event related to the operating state of the electronic device. In response to detecting that the electronic device is in the frozen screen state, a predetermined operation is performed. Wherein, the predetermined operation includes at least one of the following: a first operation is an operation of restarting a touch module provided in the electronic device, and the touch module is a module for controlling and processing touch operations acting on the touch screen; a second operation is an operation of reloading firmware, and the firmware is firmware in the touch module for responding to the touch operation; and a third operation is an operation of reloading a thread, and the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation.
[0100] Here, since it is determined that the electronic device is in a frozen screen state in response to detecting the second type of event, and the second type of event is an event related to the operating state of the electronic device, the detection of the electronic device being in a frozen screen state can be adapted to the operating state of the electronic device itself. At this time, there is no need to wait for the user to manually determine that the electronic device is in a frozen screen state, and it can be automatically determined that the electronic device is in a frozen screen state based on the operating state of the electronic device itself. In this way, the degree of automation in the process of detecting whether the electronic device is in a frozen screen state can be improved.
[0101] In one embodiment, in response to not detecting the second type of event, it is determined that the electronic device is detected not to be in a frozen screen state.
[0102] In one embodiment, in response to not detecting the first type of event and the second type of event, it is determined that the electronic device is not in a frozen screen state.
[0103] In one embodiment, in response to detecting the first type of event and the second type of event, it can be determined that the electronic device is in a frozen screen state. Alternatively, in response to not detecting the first type of event and / or the second type of event, it can be determined that the electronic device is not in a frozen screen state.
[0104] Here, only when both the first and second events occur, will it be determined that the electronic device is in a frozen screen state. If neither of the first and second events occurs, it will not be determined that the electronic device is in a frozen screen state at will. In this case, the situation where the electronic device is mistakenly determined to be in a frozen screen state can be reduced, thereby improving the accuracy of determining that the electronic device is in a frozen screen state.
[0105] In one embodiment, the first type of event includes at least one of the following:
[0106] The first event is an event of detecting a first operation acting on a predetermined key;
[0107] The second event is an event of detecting that the electronic device moves back and forth at the first frequency;
[0108] The third event is an event of obtaining a predetermined voice signal, wherein the predetermined voice signal indicates releasing the frozen screen state.
[0109] In one embodiment, in response to detecting a first event, it is determined that the electronic device is in a frozen screen state; wherein the first event is an event of detecting a first operation on a predetermined key. The predetermined key may be any physical key on the electronic device. For example, the predetermined key may be a volume key on the electronic device. Here, it may be adapted to the first operation of the user on the predetermined key to quickly determine that the electronic device is in a frozen screen state.
[0110] In one embodiment, in response to detecting a second event, it is determined that the electronic device is detected to be in a frozen screen state; wherein the second event is an event in which the electronic device is detected to be moving back and forth at a first frequency. Here, the second event can also be understood as an event in which the electronic device is moving back and forth at a first frequency while being held by a user. For example, the second event can be an event in which a user holds the electronic device and shakes the electronic device. Here, it can be adapted to the event in which the electronic device is moving back and forth at a first frequency, and quickly determine that the electronic device is detected to be in a frozen screen state.
[0111] In one embodiment, the first frequency may be different from the motion frequency of the electronic device performing the reciprocating motion when the user holds the electronic device. The first frequency may be greater than the motion frequency. The first frequency may be a predetermined multiple of the motion frequency. For example, the first frequency may be twice the motion frequency.
[0112] In one embodiment, in response to detecting a third event, it is determined that the electronic device is in a frozen screen state; wherein the third event is an event of obtaining a predetermined voice signal, and the predetermined voice signal indicates that the frozen screen state is released. Here, it can be adapted to the event of obtaining a predetermined voice signal to quickly determine that the electronic device is in a frozen screen state.
[0113] In one embodiment, the predetermined voice signal is the user's voice. The predetermined voice signal may carry predetermined content for indicating that the frozen screen state is released, for example, the predetermined voice signal may carry predetermined content of "release the frozen screen state".
[0114] In one embodiment, the number of the predetermined keys is single, and the first operation includes: an operation of continuous clicking on the predetermined key, and / or an operation of acting on the predetermined key for a duration greater than a duration threshold; or, the number of the predetermined keys is at least two, and the first operation includes: an operation of alternating clicking on at least two of the predetermined keys, and / or an operation of acting on at least two of the predetermined keys for a duration greater than a duration threshold.
[0115] In one embodiment, in response to detecting a first event, it is determined that the electronic device is detected to be in a frozen screen state; wherein the first event is an event of detecting a first operation acting on a predetermined key, the number of the predetermined keys is a single one, and the first operation includes: an operation of continuously clicking the predetermined key, and / or an operation of acting on the predetermined key for a duration greater than a duration threshold. In response to detecting that the electronic device is in the frozen screen state, a predetermined operation is performed. wherein the predetermined operation includes at least one of the following: a first operation is an operation of restarting a touch module set in the electronic device, the touch module is a module for controlling and processing a touch operation acting on the touch screen; a second operation is an operation of reloading firmware, the firmware is a firmware in the touch module for responding to the touch operation; and a third operation is an operation of reloading a thread, the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation. Here, the first operation of the user acting on a single predetermined key can be used to quickly determine that the electronic device is detected to be in a frozen screen state and take relevant measures to release the frozen screen state of the electronic device.
[0116] Exemplarily, the predetermined button may be a first button for increasing the volume, and in response to detecting a continuous click operation on the first button, it is determined that the electronic device is in a frozen screen state. In response to detecting that the electronic device is in the frozen screen state, a predetermined operation is performed to release the frozen screen state.
[0117] In one embodiment, the number of the predetermined keys is single, and the first operation may include: a predetermined number of consecutive clicks on the predetermined keys. In one embodiment, the predetermined number of times may be determined based on historical click data of the user clicking the predetermined keys; the historical click data includes the historical number of times the user has continuously clicked the predetermined keys in the past, and the predetermined number of times is different from the historical number of clicks.
[0118] In one embodiment, the historical click data may be historical data of a user clicking a predetermined button when the electronic device is not in a frozen screen state.
[0119] In one embodiment, the number of the predetermined keys is single, and the first operation may include an operation of acting on the predetermined key for a duration greater than a duration threshold. For example, the duration threshold may be 3 seconds, and the first operation may include an operation of long pressing the predetermined key for 3 seconds.
[0120] In one embodiment, in response to detecting a first event, it is determined that the electronic device is detected to be in a frozen screen state; wherein the first event is an event of detecting a first operation acting on a predetermined key, the number of the predetermined keys is at least two, and the first operation includes: an operation of alternating clicks acting on at least two of the predetermined keys, and / or an operation acting on at least two of the predetermined keys for a duration greater than a duration threshold. In response to detecting that the electronic device is in the frozen screen state, a predetermined operation is performed. wherein the predetermined operation includes at least one of the following: a first operation is an operation of restarting a touch module set in the electronic device, the touch module is a module for controlling and processing a touch operation acting on the touch screen; a second operation is an operation of reloading firmware, the firmware is a firmware in the touch module for responding to the touch operation; and a third operation is an operation of reloading a thread, the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation. Here, the first operation of the user acting on at least two predetermined keys can be used to quickly determine that the electronic device is detected to be in a frozen screen state and take relevant measures to release the frozen screen state of the electronic device.
[0121] Exemplarily, the predetermined keys may include a first key for increasing the volume and a second key for decreasing the volume, and in response to detecting a first operation of the user acting on the first key and the second key, it is determined that the electronic device is in a frozen screen state. In response to detecting that the electronic device is in a frozen screen state, a predetermined operation is performed to release the frozen screen state.
[0122] In one embodiment, the number of the predetermined keys is at least two, and the first operation may include a predetermined number of consecutive clicks on at least two keys, wherein the predetermined number of clicks may be greater than or equal to a threshold number of clicks.
[0123] Exemplarily, the predetermined buttons may include a first button for increasing the volume and a second button for decreasing the volume, and the first operation may be an operation in which the user alternately clicks the first button and the second button a predetermined number of times.
[0124] For example, the number threshold may be 3, the predetermined buttons may include a first button for increasing the volume and a second button for decreasing the volume, and the first operation may be an operation in which the user alternately clicks the first button and the second button three times. For example, the first operation may be an operation in which the user sequentially clicks the first button, the second button, and the first button. Alternatively, the first operation may be an operation in which the user sequentially clicks the second button, the first button, and the second button.
[0125] In one embodiment, the number of the predetermined keys is at least two, and the first operation may include an operation of acting on at least two predetermined keys simultaneously for a duration greater than a duration threshold. Exemplarily, the time threshold may be 3 seconds, the predetermined keys may include a first key for increasing the volume and a second key for decreasing the volume, and the first operation may include an operation of a user simultaneously pressing the first key and the second key for 3 seconds.
[0126] In one embodiment, the second type of event includes at least one of the following:
[0127] A fourth event is an event in which the electronic device does not respond to the touch operation for a period longer than the first period;
[0128] The fifth event is an event that the display interface of the electronic device is not updated within a second time.
[0129] In one embodiment, in response to detecting a fourth event, it is determined that the electronic device is detected to be in a frozen screen state; wherein the fourth event is an event in which the electronic device does not respond to a touch operation for a time greater than the first time. It should be noted that when an electronic device does not respond to a touch operation for a long time, the electronic device is often in a frozen screen state. Here, by detecting the fourth event, it can be automatically and quickly determined whether the electronic device is detected to be in a frozen screen state.
[0130] In one embodiment, the first time can be determined according to a first historical time of the electronic device responding to the touch operation. The first historical time can be an average time of the electronic device responding to the touch operation in history. The first time can be greater than the first historical time.
[0131] In one embodiment, the first time may be greater than a time threshold. For example, the time threshold may be 3 seconds, and the first time may be greater than 3 seconds.
[0132] In one embodiment, in response to detecting a fifth event, it is determined that the electronic device is detected to be in a frozen screen state; wherein the fifth event is the time when the display interface of the electronic device is not updated within the second time. It should be noted that when the electronic device is in a frozen screen state, the content of the display interface in the touch screen of the electronic device is often fixed and no longer changes. At this time, it can be automatically and quickly determined whether the electronic device is detected to be in a frozen screen state by detecting the fifth event.
[0133] In one embodiment, the second time can be determined according to a second historical time when the electronic device updates the display interface. The second historical time can be an average time when the electronic device updates the display interface in history. The second time is greater than the second historical time.
[0134] In one embodiment, the second time may be less than or greater than a time threshold. For example, the time threshold may be 3 seconds, and the second time may be greater than 3 seconds.
[0135] In one embodiment, Figure 3 As shown, the executing predetermined operation includes:
[0136] Step S031, executing the predetermined operation based on a preset priority; wherein the preset priority includes a priority at which the predetermined operation is executed.
[0137] In one embodiment, it is detected whether the electronic device is in a frozen screen state, wherein the frozen screen state is a state in which the touch screen of the electronic device is abnormal; in response to detecting that the electronic device is in the frozen screen state, the predetermined operation is executed based on a preset priority; wherein the preset priority includes the priority at which the predetermined operation is executed, and the predetermined operation includes at least one of the following: a first operation is an operation of restarting a touch module provided in the electronic device, wherein the touch module is a module for controlling and processing a touch operation acting on the touch screen; a second operation is an operation of reloading firmware, wherein the firmware is firmware in the touch module for responding to the touch operation; and a third operation is an operation of reloading a thread, wherein the thread is in an interrupted state, wherein the thread includes a thread for responding to the touch operation. Here, since the predetermined operation is executed based on the preset priority; wherein the preset priority includes the priority at which the predetermined operation is executed, the predetermined operation with a high priority can be executed first, thereby quickly releasing the frozen screen state of the electronic device using the predetermined operation with a high preset priority.
[0138] In one embodiment, the preset priority can be determined based on the probability and / or time of releasing the frozen screen state corresponding to the predetermined operation. Here, the probability of releasing the frozen screen state corresponding to the predetermined operation may refer to: the probability that the frozen screen state of the electronic device is released after the predetermined operation is performed. The time of releasing the frozen screen state corresponding to the predetermined operation may refer to: the time required for the electronic device to switch from the frozen screen state to the non-frozen screen state after the predetermined operation is performed.
[0139] In one embodiment, the preset priority corresponding to the predetermined operation is positively correlated with the probability of releasing the frozen screen state corresponding to the predetermined operation, and the preset priority corresponding to the predetermined operation is negatively correlated with the time of releasing the frozen screen state corresponding to the predetermined operation.
[0140] In one embodiment, an operation type of the predetermined operation is determined; and based on the operation type of the predetermined operation, a priority at which the predetermined operation is executed is determined.
[0141] In one embodiment, the operation type includes a first operation type and a second operation type, the first operation type is used to indicate that a predetermined operation is performed on hardware, and the second operation type is used to indicate that a predetermined operation is performed on software.
[0142] In one embodiment, a priority at which a predetermined operation of the first operation type is executed is greater than a priority at which a predetermined operation of the second operation type is executed.
[0143] In one embodiment, the operation type corresponding to the first operation is the first operation type, the operation type corresponding to the second operation is the first operation type, and the operation type corresponding to the third operation is the second operation type. At this time, the priority of the first operation is greater than the priority of the third operation, and the priority of the second operation is greater than the priority of the third operation.
[0144] In one embodiment, the priority of executing the first operation is greater than the priority of executing the second operation, and / or the priority of executing the second operation is greater than the priority of executing the third operation.
[0145] In one embodiment, Figure 4 As shown, the performing of the predetermined operation based on the preset priority includes:
[0146] Step S041, executing all of the predetermined operations based on the preset priority; and / or executing at least one of the predetermined operations based on the preset priority until it is detected that the electronic device is not in the frozen screen state.
[0147] In one embodiment, it is detected whether the electronic device is in a frozen screen state, wherein the frozen screen state is a state in which an abnormality occurs on the touch screen of the electronic device. In response to detecting that the electronic device is in the frozen screen state, all of the predetermined operations are executed based on the preset priority; wherein the preset priority includes the priority at which the predetermined operation is executed, and the predetermined operation includes at least one of the following: a first operation is an operation of restarting a touch module provided in the electronic device, wherein the touch module is a module for controlling and processing touch operations acting on the touch screen; a second operation is an operation of reloading firmware, wherein the firmware is firmware in the touch module for responding to the touch operation; and a third operation is an operation of reloading a thread, wherein the thread is in an interrupted state, wherein the thread includes a thread for responding to the touch operation.
[0148] Here, since all scheduled operations will be executed based on the preset priority in response to detecting that the electronic device is in a frozen screen state, all scheduled operations can be directly executed according to the preset priority to solve all problems corresponding to the touch module, firmware, and thread that may cause the touch screen to be abnormal. At this time, there is no need to detect which part of the touch module, firmware, and thread causes the touch screen to be abnormal, nor is it necessary to determine which operation of the predetermined operation to be executed is specifically one of the predetermined operations. All problems corresponding to the touch module, firmware, and thread that may cause the touch screen to be abnormal can be directly solved. In this way, the waste of detection resources in the electronic device can be reduced, and the efficiency of removing the frozen screen state of the electronic device can be improved.
[0149] In one embodiment, it is detected whether the electronic device is in a frozen screen state, and the frozen screen state is a state in which the touch screen of the electronic device is abnormal. In response to detecting that the electronic device is in the frozen screen state, at least one of the predetermined operations is performed based on the preset priority until it is detected that the electronic device is not in the frozen screen state; wherein the preset priority includes the priority at which the predetermined operation is executed, and the predetermined operation includes at least one of the following: a first operation is an operation of restarting a touch module set in the electronic device, and the touch module is a module for controlling and processing touch operations acting on the touch screen; a second operation is an operation of reloading firmware, and the firmware is the firmware in the touch module for responding to the touch operation; and a third operation is an operation of reloading a thread, and the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation.
[0150] Here, in response to the electronic device being in a frozen screen state, a predetermined operation will be executed based on a preset priority until it is detected that the electronic device is not in a frozen screen state. Therefore, as long as it is detected that the electronic device is not in a frozen screen state, the predetermined operation can be stopped. At this time, it is not necessary to execute all the predetermined operations, and it is only necessary to ensure that the frozen screen state of the electronic device can be released after the predetermined operation is executed. In this way, while ensuring that the frozen screen state of the electronic device can be released, the number of predetermined operations to be executed can be reduced, and the waste of resources and / or poor user experience caused by the execution of unnecessary operations to be executed can be reduced.
[0151] In one embodiment, Figure 5 As shown, the performing of the predetermined operation based on the preset priority includes:
[0152] Step S051, executing the predetermined operation based on the predetermined time interval and the preset priority; wherein the predetermined time interval is the time interval between two adjacent operations.
[0153] In one embodiment, it is detected whether the electronic device is in a frozen screen state, wherein the frozen screen state is a state in which the touch screen of the electronic device is abnormal. In response to detecting that the electronic device is in the frozen screen state, a predetermined operation is performed; wherein the predetermined operation includes at least one of the following: a first operation is an operation of restarting a touch control module provided in the electronic device, wherein the touch control module is a module for controlling and processing touch control operations acting on the touch screen; a second operation is an operation of reloading firmware, wherein the firmware is firmware in the touch control module for responding to the touch control operations; and a third operation is an operation of reloading a thread, wherein the thread is in an interrupted state, wherein the thread includes a thread for responding to the touch control operations.
[0154] In one embodiment, the predetermined time interval may be determined according to the execution time of executing the predetermined operation. The predetermined time interval may be greater than or equal to the execution time of the predetermined operation.
[0155] In one embodiment, the predetermined time interval may be determined according to a detection time of detecting whether the electronic device is in a frozen screen state. The predetermined time interval may be greater than or equal to the detection time.
[0156] In one embodiment, the predetermined time interval may be determined according to the execution time of executing the predetermined operation and the detection time of detecting whether the electronic device is in a frozen screen state. In one embodiment, the predetermined time interval may be greater than or equal to the sum of the execution time and the detection time.
[0157] In one embodiment, Figure 6 As shown, the method also includes:
[0158] Step S061, in response to detecting that the electronic device switches from the frozen screen state to the non-frozen screen state, obtaining log information of the electronic device;
[0159] The non-frozen screen state is a state in which the touch screen of the electronic device returns to normal; and the log information includes log information related to the frozen screen state of the electronic device.
[0160] In one embodiment, it is detected whether the electronic device is in a frozen screen state, wherein the frozen screen state is a state in which the touch screen of the electronic device is abnormal; in response to detecting that the electronic device is in the frozen screen state, a predetermined operation is performed; wherein the predetermined operation includes at least one of the following: a first operation is an operation of restarting a touch module provided in the electronic device, wherein the touch module is a module for controlling and processing a touch operation acting on the touch screen; a second operation is an operation of reloading firmware, wherein the firmware is firmware in the touch module for responding to the touch operation; and a third operation is an operation of reloading a thread, wherein the thread is in an interrupted state, wherein the thread includes a thread for responding to the touch operation. In response to detecting that the electronic device switches from the frozen screen state to the non-frozen screen state, log information of the electronic device is obtained; wherein the non-frozen screen state is a state in which the touch screen of the electronic device returns to normal; and the log information includes log information related to the frozen screen state of the electronic device.
[0161] Here, since the electronic device can be switched from the frozen screen state to the non-frozen screen state by executing a predetermined operation, the log information of the electronic device is obtained in response to detecting that the electronic device is switched from the frozen screen state to the non-frozen screen state. Therefore, the frozen screen state of the electronic device can be released and the log information related to the frozen screen state in the electronic device can be obtained by only executing the predetermined operation. At this time, compared with the method of obtaining log information after restarting the entire electronic device in the related art, the embodiment of the present disclosure does not need to restart the entire electronic device, but only the predetermined operation can be performed, that is, only the touch module of the electronic device can be restarted, the firmware and / or the thread can be reloaded. At this time, the log information of the electronic device will not be cleared due to restarting the entire electronic device in the embodiment of the present disclosure. In this way, the integrity of the obtained log information can be ensured, and it can be ensured that accurate problem analysis can be performed on the situation where the electronic device is in the frozen screen state based on relatively complete log information.
[0162] In order to better understand the embodiments of the present disclosure, the underlying logic related to performing predetermined operations in the embodiments of the present disclosure is described below through some exemplary embodiments:
[0163] In one embodiment, before executing the predetermined operation, it includes: adding a reset function for executing the predetermined operation in a driving function of the electronic device, and the executing the predetermined operation includes: calling the reset function in the driving function.
[0164] In one embodiment, the reset function includes at least one of the following:
[0165] A first sub-function is used to restart a touch control module provided in the electronic device, wherein the touch control module is a module used to control and process a touch control operation acting on the touch screen;
[0166] A second sub-function is used to reload firmware, where the firmware is firmware in the touch module used to respond to the touch operation;
[0167] The third sub-function is used to reload a thread, where the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation.
[0168] In one embodiment, the code and related comments of the reset function may be as follows:
[0169] static void touch_doze_reset(){
[0170] / / POWER_RESET(): The first sub-function, used to restart the touch module
[0171] flush_workqueue(fts_info->event_wq);
[0172] fts_info->doze_test = 1;
[0173] queue_work(fts_info->event_wq,&fts_info->suspend_work);
[0174] queue_work(fts_info->event_wq,&fts_info->resume_work);
[0175] flush_workqueue(fts_info->event_wq);
[0176] fts_info->doze_test = 0;
[0177] msleep(100); / / The scheduled time interval is 100ms
[0178] / / RELOAD_FW(): The second sub-function, used to reload the firmware
[0179] fts_interrupt_uninstall(fts_info);
[0180] fts_fw_update(fts_info, NULL, 1);
[0181] msleep(100);
[0182] / / REGISTER_IRQ(): The third sub-function, used to reload the thread
[0183] fts_disableInterrupt();
[0184] free_irq(fts_info->client->irq, fts_info);
[0185] / / Use request_threaded_irq function to process the interrupted thread
[0186] if(request_threaded_irq(fts_info->client->irq, NULL, fts_event_handle, fts_info->board->irq_flags, "tp_doze" FTS_TS_DRV_NAME,, fts_info)) {
[0187] logError(1, "%s Request irq failed\n", tag);
[0188] }else{
[0189] fts_enableInterrupt();
[0190] }
[0191] Msleep(100);
[0192] logError(1, "%s%s doze reset done\n", tag, __func__); / / Print related statements to indicate successful reset
[0193] return;
[0194] }
[0195] Among them, touch_doze_reset() can be the reset function added in the driver function, POWER_RESET() can be the first sub-function described in any of the embodiments of the present disclosure, RELOAD_FW() can be the second sub-function described in any of the embodiments of the present disclosure, and REGISTER_IRQ() can be the third sub-function described in any of the embodiments of the present disclosure.
[0196] In one embodiment, msleep() can be used to indicate any of the predetermined time intervals described in the embodiments of the present disclosure. msleep(100) can be used to indicate that the predetermined time interval is 100 ms.
[0197] In one embodiment, an interface for calling a reset function may be added to the driver function, and the interface is used to face an interface function corresponding to an upper layer of the electronic device.
[0198] Exemplarily, the code for adding an interface for calling a reset function in a driver function may be as follows:
[0199] xiaomi_touch_interfaces.touch_doze_reset = fts_touch_doze_reset; / / Add an interface called touch_doze_reset to the driver. This interface faces an upper-level interface function.
[0200] int(*touch_doze_reset)(void) / / Need to add function declaration in header file
[0201] Among them, xiaomi_touch_interfaces.touch_doze_reset can be used to indicate the added interface for calling the reset function.
[0202] In one embodiment, enumeration variables may be added to the interface function, different enumeration variables have different values, and different enumeration variables are used to call different reset functions.
[0203] For example, the underlying code and related comments for adding enumeration variables in the interface function may be as follows:
[0204] / / Enumerate the enumeration variable values corresponding to different reset functions
[0205] enum MODE_TYPE{
[0206] / / ...
[0207] Touch_Doze_Reset=20,
[0208] / / ...
[0209] }
[0210] / / At the same time, give the definition of the reset function in the interface function
[0211] int(*touch_doze_reset)(void).
[0212] Among them, MODE_TYPE{} is used to enumerate the enumeration variable values corresponding to different reset functions.
[0213] In one embodiment, in response to detecting a first event, it is determined that the electronic device is in a frozen screen state; the first event is an event of detecting a first operation acting on a predetermined key. In response to determining that the electronic device is in a frozen screen state, the enumeration variable value is called to call a reset function.
[0214] In one embodiment, the first operation is an operation of clicking a predetermined button a predetermined number of times.
[0215] Exemplarily, the predetermined button may be a volume button, the first operation may be an operation of clicking the predetermined button three times, and the specific code for calling the reset function in response to detecting the first event is as follows:
[0216] / / Use the volume button back and forth three times to call the reset function corresponding to the enumeration variable value to trigger the frozen screen recovery
[0217] If(mTrackDumpLogKeyCodeVolumeDownTimes==3){
[0218] mTrackDumpLogKeyCodePengding=false;
[0219] MiuiInputLog.defaults("touch_doze_reset");
[0220] Slog.e(TAG, "Frozen screen repair");
[0221] int targetId=ITouchFeature.TOUCH_ID_PRIMARY;
[0222] ITouchFeature.getInstance().setTouchMode(targetId, 20(mode), 1);
[0223] }.
[0224] In one embodiment, an interface for calling a reset function may be added to a definition function for defining the function of a predetermined key.
[0225] In one embodiment, executing the predetermined operation includes: in response to detecting a first event, executing the interface function, and calling the reset function through the interface; wherein the first event is an event of detecting a first operation acting on a predetermined key.
[0226] To better understand the embodiments of the present disclosure, see Figure 7 , Figure 7 The method of releasing the frozen screen state in the embodiment of the present disclosure is exemplarily shown:
[0227] Step S701, starting the electronic device;
[0228] Step S702, using the operating system to register the thread interrupt,
[0229] Wherein, the thread includes a thread related to a touch operation acting on the touch screen;
[0230] Step S703, detecting whether the electronic device is in a frozen screen state;
[0231] Step S704, in response to detecting the first event, executing a predetermined operation; wherein the first event can indicate that the electronic device is in a frozen screen state;
[0232] The first event is an event of detecting a first operation acting on a predetermined key, and the predetermined operation includes at least one of the following: the first operation is an operation of restarting a touch control module provided in the electronic device, the touch control module is a module for controlling and processing a touch control operation acting on the touch screen; the second operation is an operation of reloading firmware, the firmware is firmware in the touch control module for responding to the touch control operation; and the third operation is an operation of reloading a thread, the thread is in an interrupted state, and the thread includes a thread for responding to the touch control operation; the predetermined keys may include at least two volume keys;
[0233] Step S704 includes the following steps S705 to S709:
[0234] Step S705, detecting a first event;
[0235] Step S706, calling a reset function;
[0236] Step S707, using the first sub-function to perform a first operation;
[0237] Step S708, using the second sub-function to perform a second operation;
[0238] Step S709, using the third sub-function to perform a third operation;
[0239] Step S710, detecting whether the electronic device is switched from the frozen screen state to a non-frozen screen state;
[0240] Wherein, the non-frozen screen state is a state in which the touch screen of the electronic device returns to normal;
[0241] Step S711, in response to detecting that the electronic device switches from the frozen screen state to the non-frozen screen state, obtaining log information of the electronic device;
[0242] The log information includes log information related to the frozen screen state of the electronic device.
[0243] It should be noted that the reset function, the first sub-function, the second sub-function and the third sub-function here can be the reset function, the first sub-function, the second sub-function and the third sub-function described in any one of the embodiments of the present disclosure.
[0244] like Figure 8 As shown, an embodiment of the present disclosure provides a device for defrosting the screen, the device comprising:
[0245] A detection module 81 is used to detect whether the electronic device is in a frozen screen state, where the frozen screen state is a state in which the touch screen of the electronic device is working abnormally;
[0246] A processing module 82, configured to execute a predetermined operation in response to detecting that the electronic device is in the frozen screen state;
[0247] The predetermined operation includes at least one of the following:
[0248] The first operation is to restart the touch control module provided in the electronic device, wherein the touch control module is a module for controlling and processing the touch control operation acting on the touch screen;
[0249] A second operation is an operation of reloading firmware, where the firmware is firmware in the touch module for responding to the touch operation; and
[0250] The third operation is an operation of reloading a thread, the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation.
[0251] In one embodiment, the detection module 81 is further used for:
[0252] In response to detecting a predetermined event, determining that the electronic device is detected to be in a frozen screen state;
[0253] The predetermined events include first-type events related to user behavior and / or second-type events related to the operating state of the electronic device.
[0254] In one embodiment, the first type of event includes at least one of the following:
[0255] The first event is an event of detecting a first operation acting on a predetermined key;
[0256] The second event is an event of detecting that the electronic device moves back and forth at the first frequency;
[0257] The third event is an event of obtaining a predetermined voice signal, wherein the predetermined voice signal indicates releasing the frozen screen state.
[0258] In one embodiment, the number of the predetermined key is single, and the first operation includes: an operation of continuously clicking the predetermined key, and / or an operation of acting on the predetermined key for a duration greater than a duration threshold;
[0259] or,
[0260] The number of the predetermined keys is at least two, and the first operation includes: an operation of alternately clicking at least two of the predetermined keys, and / or an operation of clicking at least two of the predetermined keys for a duration greater than a duration threshold.
[0261] In one embodiment, the second type of event includes at least one of the following:
[0262] A fourth event is an event in which the electronic device does not respond to the touch operation for a period longer than the first period;
[0263] The fifth event is an event that the display interface of the electronic device is not updated within a second time.
[0264] In one embodiment, the processing module 82 is further configured to:
[0265] The predetermined operation is performed based on a preset priority; wherein the preset priority includes a priority at which the predetermined operation is performed.
[0266] In one embodiment, the priority of executing the first operation is greater than the priority of executing the second operation, and / or the priority of executing the second operation is greater than the priority of executing the third operation.
[0267] In one embodiment, the processing module 82 is further configured to:
[0268] Execute all the predetermined operations based on the preset priority;
[0269] and / or,
[0270] At least one of the predetermined operations is performed based on the preset priority until it is detected that the electronic device is not in the frozen screen state.
[0271] In one embodiment, the processing module 82 is further configured to:
[0272] Based on the predetermined time interval and the preset priority, the predetermined operation is performed; wherein the predetermined time interval is the time interval between two adjacent operations.
[0273] In one embodiment, the apparatus further comprises:
[0274] An acquisition module 83, the acquisition module is used for acquiring log information of the electronic device in response to detecting that the electronic device switches from the frozen screen state to the non-frozen screen state;
[0275] The non-frozen screen state is a state in which the touch screen of the electronic device returns to normal; and the log information includes log information related to the frozen screen state of the electronic device.
[0276] Fig. 9 6 is a block diagram of an electronic device 600 according to an exemplary embodiment. The disclosed method can be applied to the electronic device.
[0277] Reference Fig. 9 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0278] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0279] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0280] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.
[0281] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0282] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operation mode, such as a call mode, a recording mode, and a voice determination mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0283] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0284] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0285] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency determination (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0286] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0287] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by the processor 820 of the electronic device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0288] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed in this disclosure.
[0289] It will be appreciated that the present invention is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.
Claims
1. A method for defrosting a screen, characterized in that: The method is applied to an electronic device, and the method comprises: Detecting whether the electronic device is in a frozen screen state, wherein the frozen screen state is a state in which an abnormality occurs on the touch screen of the electronic device; In response to detecting that the electronic device is in the frozen screen state, executing a predetermined operation; The predetermined operation includes at least one of the following: The first operation is to restart the touch control module provided in the electronic device, wherein the touch control module is a module for controlling and processing the touch control operation acting on the touch screen; A second operation is an operation of reloading firmware, where the firmware is firmware in the touch module for responding to the touch operation; and The third operation is an operation of reloading a thread, the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation.
2. The method according to claim 1, characterized in that The method further comprises: In response to detecting a predetermined event, determining that the electronic device is detected to be in a frozen screen state; The predetermined events include first-type events related to user behavior and / or second-type events related to the operating state of the electronic device.
3. The method according to claim 2, characterized in that The first type of event includes at least one of the following: The first event is an event of detecting a first operation acting on a predetermined key; The second event is an event of detecting that the electronic device moves back and forth at the first frequency; The third event is an event of obtaining a predetermined voice signal, wherein the predetermined voice signal indicates releasing the frozen screen state.
4. The method according to claim 3, characterized in that The number of the predetermined key is single, and the first operation includes: an operation of continuously clicking the predetermined key, and / or an operation of acting on the predetermined key for a duration greater than a duration threshold; or, The number of the predetermined keys is at least two, and the first operation includes: an operation of alternately clicking at least two of the predetermined keys, and / or an operation of clicking at least two of the predetermined keys for a duration greater than a duration threshold.
5. The method according to claim 2, characterized in that: The second type of events includes at least one of the following: A fourth event is an event in which the electronic device does not respond to the touch operation for a period longer than the first period; The fifth event is an event that the display interface of the electronic device is not updated within a second time.
6. The method according to claim 1, characterized in that The performing of the predetermined operation includes: The predetermined operation is performed based on a preset priority; wherein the preset priority includes a priority at which the predetermined operation is performed.
7. The method according to claim 6, characterized in that The priority of executing the first operation is greater than the priority of executing the second operation, and / or the priority of executing the second operation is greater than the priority of executing the third operation.
8. The method according to claim 7, characterized in that The performing the predetermined operation based on the preset priority includes: Execute all the predetermined operations based on the preset priority; and / or, At least one of the predetermined operations is performed based on the preset priority until it is detected that the electronic device is not in the frozen screen state.
9. The method according to claim 8, characterized in that The performing the predetermined operation based on the preset priority includes: Based on the predetermined time interval and the preset priority, the predetermined operation is performed; wherein the predetermined time interval is the time interval between two adjacent operations.
10. The method according to claim 1, characterized in that The method further comprises: In response to detecting that the electronic device switches from the frozen screen state to the non-frozen screen state, acquiring log information of the electronic device; The non-frozen screen state is a state in which the touch screen of the electronic device returns to normal; and the log information includes log information related to the frozen screen state of the electronic device.
11. A device for defrosting a screen, characterized in that: The device comprises: A detection module, used to detect whether the electronic device is in a frozen screen state, wherein the frozen screen state is a state in which the touch screen of the electronic device is working abnormally; a processing module, configured to execute a predetermined operation in response to detecting that the electronic device is in the frozen screen state; The predetermined operation includes at least one of the following: The first operation is to restart the touch control module provided in the electronic device, wherein the touch control module is a module for controlling and processing the touch control operation acting on the touch screen; A second operation is an operation of reloading firmware, where the firmware is firmware in the touch module for responding to the touch operation; and The third operation is an operation of reloading a thread, the thread is in an interrupted state, and the thread includes a thread for responding to the touch operation.
12. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: implement the method according to any one of claims 1 to 10 when running the executable instructions.
13. A computer-readable storage medium, characterized in that: The readable storage medium stores an executable program, wherein the executable program implements the method according to any one of claims 1 to 10 when executed by a processor.