Control method of electronic equipment, electronic equipment, chip system and storage medium
By employing low-frequency EM signals for low-frequency PWM dimming in full-screen AOD mode and standby mode, the problem of high power consumption in electronic devices is solved, and battery life is improved.
Patent Information
- Application Number
- CN202410608478.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2025-11-25
AI Technical Summary
Existing electronic devices consume more power in full-screen AOD mode and standby mode, which affects battery life.
By using a lower frequency EM signal for low-frequency PWM dimming of the screen after the electronic device enters full-screen AOD mode or standby mode, power consumption is reduced.
It effectively reduces the power consumption of electronic devices in full-screen AOD mode and standby mode, thus improving battery life.
Smart Images

Figure CN121008679A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic equipment technology, and in particular to a control method for an electronic device, an electronic device, a chip system, and a storage medium. Background Technology
[0002] As electronic devices become increasingly intelligent and people's demands for them also increase, many features have emerged to improve the user experience. However, these features have also increased the power consumption of electronic devices.
[0003] Currently, full-screen AOD mode and standby mode allow electronic devices to display useful information in a low-power mode. Typically, in these modes, the screen displays information at low brightness; however, this method still consumes relatively high power, resulting in poor battery life when these features are enabled. Summary of the Invention
[0004] This application provides a control method for an electronic device, an electronic device, a chip system, and a storage medium, which can improve and reduce the power consumption of the electronic device in full-screen AOD mode and standby mode.
[0005] To achieve the above objectives, the first aspect of this application adopts the following technical solution:
[0006] The first aspect of this application provides a control method for an electronic device, applied to an electronic device that has activated a first characteristic, the method comprising:
[0007] When the electronic device is in the first mode, the screen of the electronic device displays content using an EM signal of the first frequency;
[0008] When the electronic device is in the first mode, the electronic device detects the first trigger event;
[0009] In response to the first trigger event, the electronic device enters the second mode from the first mode. When the first feature is the full-screen AOD feature, the second mode is the full-screen AOD mode. When the first feature is the standby feature, the second mode is the standby mode.
[0010] When the electronic device is in the second mode, the screen of the electronic device displays content using an EM signal at a second frequency, which is lower than the first frequency.
[0011] In this application, after the electronic device enters full-screen AOD mode or standby mode, a low-frequency EM signal (low pulse number) is used to enable low-frequency PWM dimming of the screen of the electronic device, thereby reducing the power consumption of the electronic device in full-screen AOD mode or standby mode and improving the battery life of the electronic device.
[0012] As one implementation of the first aspect, the first feature is full-screen AOD feature, the first mode is screen lock state, and the electronic device includes an outer screen and an inner screen.
[0013] Before the screen of the electronic device displays content using an EM signal of the second frequency, the method further includes:
[0014] In response to the first trigger event, the electronic device obtains the screen that is currently lit.
[0015] When the currently lit screen is the outer screen, the electronic device sets the frequency of the EM signal of the outer screen to the second frequency.
[0016] In this application, since multiple screens are set in a multi-screen electronic device, in order to avoid sending the pulse number switching instruction to other screens, the name of the currently lit screen can be obtained first when switching to full-screen AOD mode, and then the pulse number of the currently lit screen can be switched.
[0017] As one implementation of the first aspect, in response to a first triggering event, the electronic device transitions from a first mode to a second mode, including:
[0018] In response to the first trigger event, the electronic device executes the process of starting full-screen AOD and the lp1 process. The process of starting full-screen AOD includes: setting the frequency of the EM signal of the external screen to a second frequency by transmitting a first parameter to a first function; the lp1 process is used to control the screen to enter a low-power mode, and the lp1 process includes: setting the frequency of the EM signal of the external screen to a second frequency.
[0019] After executing the full-screen AOD startup process and the lp1 process, the electronic device transitions from the first mode to the second mode.
[0020] In this application, pulse counts are switched by calling functions through the LP1 process of the chip platform and the full-screen AOD service in the upper-layer application.
[0021] In practical applications, the process of switching pulse counts by calling functions in the full-screen AOD service of the upper-layer application occurs before the pulse count switching in the lp1 process. In the lp1 process, if it is determined that the pulse count has already been switched, the pulse count switching will not be performed again.
[0022] As one implementation of the first aspect, when the electronic device is in the second mode, the method further includes:
[0023] The electronic device detected a second trigger event;
[0024] In response to the second triggering event, the electronic device executes the process of destroying the full-screen AOD and the nolp process. The process of destroying the full-screen AOD includes: setting the frequency of the external screen's EM signal to a first frequency by passing a second parameter to a first function. The nolp process is used to control the screen to exit the low-power mode. When the full-screen AOD feature is enabled, the electronic device does not execute the step of setting the frequency of the external screen's EM signal to the first frequency when executing the nolp process.
[0025] After the electronic device executes the process of destroying the full-screen AOD and the nolp process, the electronic device enters the first mode from the full-screen AOD mode.
[0026] In this application, the process executed when exiting from full-screen AOD to the lock screen is the reverse of that when entering full-screen AOD mode from the lock screen. It requires setting the frequency of the EM signal to a high pulse count to improve the user's visual experience. Furthermore, since the pulse count switching operation in the nolp process may not occur during the animation period, when executing the process to destroy full-screen AOD (switching to a high pulse count), the nolp process is configured not to switch to a high pulse count in full-screen AOD mode.
[0027] As one implementation of the first aspect, when the electronic device is in full-screen AOD mode, the method further includes:
[0028] The electronic device detected a third trigger event;
[0029] In response to the third trigger event, the electronic device turns off its screen. In the screen-off state, the frequency of the EM signal on the outer screen of the electronic device is the first frequency (high pulse number).
[0030] In this application, to avoid the problem of poor user eye experience caused by the command to switch to a high pulse count being sent to the inner screen when entering the lock screen from the off screen, which fails to control the outer screen to maintain a high pulse count in the lock screen state, the outer screen can be switched to a high pulse count before entering the off screen state from the lock screen. This ensures that even if the command to switch to a high pulse count is sent to the inner screen, it will not affect the outer screen maintaining a high pulse count in the lock screen state.
[0031] As one implementation of the first aspect, in the screen-off state, the method also includes:
[0032] The electronic device detected the fourth trigger event;
[0033] In response to the fourth trigger event, the electronic device enters the locked screen state from the screen-off state;
[0034] During the process of transitioning from a screen-off state to a lock screen state, the electronic device executes a process to destroy the full-screen AOD mode.
[0035] As one implementation of the first aspect, when the outer screen is off, the method also includes:
[0036] The electronic device detected the fifth trigger event;
[0037] In response to the fifth trigger event, the electronic device resumes full-screen AOD mode from the screen-off state;
[0038] During the process of an electronic device resuming full-screen AOD mode from screen-off mode, the electronic device executes the lp1 process.
[0039] As one implementation of the first aspect, the first triggering event is a press event on the power button of the electronic device; the second triggering event is a press event on the power button; the third triggering event is that the electronic device does not detect user operation or movement of the electronic device within a first duration; the fourth triggering event is a touch operation on the screen of the electronic device; and the fifth triggering event is a press event on the power button.
[0040] As one implementation of the first aspect, the first characteristic is the standby characteristic, and the first mode is the non-standby mode. The non-standby mode includes: lock screen state, desktop state, and the display state of any application. The electronic device includes an inner screen and an outer screen. In response to a first triggering event, the electronic device enters a second mode from the first mode, including:
[0041] In response to the first trigger event, the electronic device executes the lp1 procedure, which is used to control the screen to enter a low-power mode. The lp1 procedure includes setting the frequency of the EM signal of the external screen to a second frequency (low pulse number).
[0042] After executing the lp1 process, the electronic device transitions from the first mode to the second mode.
[0043] In this application, the action of switching to a low pulse number is set in the lp1 process, in which the screen is still dark, and the flickering of switching the pulse number can be masked.
[0044] As one implementation of the first aspect, when the electronic device is in the second mode, the method further includes:
[0045] The electronic device detected the sixth trigger event;
[0046] In response to the sixth trigger event, the electronic device executes the nolp procedure, which is used to control the screen to exit the low power mode. The nolp procedure includes setting the frequency of the EM signal of the external screen to the first frequency (high pulse number).
[0047] After the electronic device executes the NOLP process, it transitions from standby mode to the first mode.
[0048] In this application, the action of switching high pulse counts is set in the nolp process. In this process, after the backlight is 0, the screen is also dark, so the flickering of switching pulse counts can be masked.
[0049] As one implementation of the first aspect, in response to the first triggering event, the method further includes:
[0050] The electronic device sets a first flag bit to a first value, which indicates that the standby mode is enabled.
[0051] When the first flag bit is set to the first value, the electronic device sets the second flag bit to the second value, which is used to indicate that it has entered standby mode.
[0052] Accordingly, the electronic device executes the lp1 process, including:
[0053] In the lp1 process, when the second flag bit is set to the second value, the frequency of the EM signal on the outer screen of the electronic device is set to the second frequency.
[0054] In this application, the first flag is used to distinguish between starting and destroying standby mode. However, the execution of the nolp process and the state of the first flag do not completely correspond. Therefore, a second flag is set to distinguish between entering or exiting standby mode. The second flag is used to determine whether to execute the lp1 process and whether to execute the nolp process.
[0055] As one implementation of the first aspect, in response to the sixth triggering event, the method also includes:
[0056] The electronic device sets the first flag to the third value, which indicates that the standby mode has been destroyed.
[0057] Accordingly, the electronic device executes the NOLP process, including:
[0058] In the NOLP process, when the second flag is set to the second value, the frequency of the EM signal on the outer screen of the electronic device is switched to the first frequency.
[0059] After the electronic device switches the frequency of the EM signal on the external screen to the first frequency, it sets the second flag bit to the fourth value, which indicates that it is exiting standby mode.
[0060] As one implementation of the first aspect, when the electronic device is in the second mode, the method further includes:
[0061] The electronic device detected the seventh trigger event;
[0062] In response to the seventh trigger event, the electronic device sets the EM signal of the external screen to the first frequency and the second flag bit to the fourth value, and the electronic device enters the screen-off state.
[0063] In this application, the nolp process is not executed when entering the lock screen (inner screen lock screen or outer screen lock screen) from standby mode, which prevents the pulse count from being switched. Therefore, when entering the screen-off state from the outer screen lock screen, the outer screen can be switched to a high pulse count first. This ensures that when entering the lock screen from the screen-off state, the outer screen can also have a high pulse count, improving the user's eye experience.
[0064] As one implementation of the first aspect, when the electronic device is in a screen-off state, the method further includes:
[0065] The electronic device detected the eighth trigger event;
[0066] In response to the eighth trigger event, if the electronic device recognizes that the first flag bit is the first value, then it sets the second flag bit to the second value;
[0067] The electronic device executes the lp1 process. During the execution of the lp1 process, when the second flag bit is the second value, the frequency of the EM signal on the outer screen of the electronic device is set to the second frequency.
[0068] As one implementation of the first aspect, when the electronic device is in a screen-off state, the method further includes:
[0069] The electronic device detected the ninth trigger event;
[0070] In response to the ninth trigger event, the electronic device sets the first flag to the third value, and the electronic device enters the locked screen state from the screen-off state.
[0071] As one implementation of the first aspect, the first triggering event is when the folding angle of the screen of the electronic device is less than a preset value and remains still for a first time; the sixth triggering event is when the folding angle of the screen of the electronic device changes to a value greater than the preset value or when movement of the electronic device is detected; the seventh triggering event is when the power button of the electronic device is pressed; the eighth triggering event is when the power button is pressed; and the ninth triggering event is when the folding angle of the screen of the electronic device changes or when movement of the electronic device is detected.
[0072] In a second aspect, an electronic device is provided, including a processor for calling a computer program stored in a memory to implement the method of any one of the first aspects of this application.
[0073] Thirdly, a chip system is provided, including a processor coupled to a memory, wherein the processor executes a computer program stored in the memory to cause an electronic device to implement the method of any one of the first aspects of this application.
[0074] Fourthly, a computer-readable storage medium is provided, which stores a computer program that, when computer instructions are executed on an electronic device, causes the electronic device to implement the method of any one of the first aspects of this application.
[0075] Fifthly, embodiments of this application provide a computer program product that, when run on a device, causes the electronic device to execute the method of any one of the first aspects of this application.
[0076] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0077] Figure 1 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0078] Figure 2 This is a schematic diagram illustrating the process of entering full-screen AOD mode from the external screen lock / on state, as provided in an embodiment of this application.
[0079] Figure 3 A schematic diagram illustrating multiple scenarios of a multi-screen electronic device in standby mode, provided for embodiments of this application;
[0080] Figure 4 This is a schematic diagram illustrating the relationship between brightness and grayscale under different gamma coefficients in the embodiments of this application;
[0081] Figure 5 The control circuit for the OLED in the screen of the electronic device provided in the embodiments of this application;
[0082] Figure 6 Gamma curves for the RGB three primary colors provided in the embodiments of this application;
[0083] Figure 7 This is a schematic diagram illustrating how the luminous intensity of an OLED is adjusted by the switching duty cycle of an EM signal, as provided in an embodiment of this application.
[0084] Figure 8 This is a schematic diagram illustrating the process of an electronic device entering and exiting full-screen AOD mode according to an embodiment of this application.
[0085] Figure 9 A schematic diagram illustrating the switching between various states when the full-screen AOD feature provided in this embodiment of the application is enabled;
[0086] Figure 10This is a schematic diagram illustrating the erroneous transmission of pulse counts to the inner screen when entering full-screen AOD mode, turning off the screen, and then entering the outer screen lock screen as provided in the embodiments of this application.
[0087] Figure 11 A schematic diagram illustrating the switching between various states when the standby feature provided in this embodiment of the application is enabled;
[0088] Figure 12 A flowchart illustrating the process of an electronic device entering and exiting standby mode as provided in an embodiment of this application;
[0089] Figure 13 A schematic diagram illustrating the process of entering full-screen AOD mode from the external screen lock state, as provided in an embodiment of this application;
[0090] Figure 14 A schematic diagram illustrating the process of exiting from full-screen AOD mode to external screen lock state, provided in an embodiment of this application;
[0091] Figure 15 The embodiments provided in this application are related to Figure 13 and Figure 14 The corresponding timing diagram;
[0092] Figure 16 A schematic diagram illustrating the process of transitioning from full-screen AOD to screen-off state, provided in an embodiment of this application;
[0093] Figure 17 A schematic diagram illustrating the process of restoring full-screen AOD mode from a screen-off state, as provided in an embodiment of this application;
[0094] Figure 18 The embodiments provided in this application and Figure 16 and Figure 17 The corresponding timing diagram;
[0095] Figure 19 This is a schematic diagram illustrating the process of entering standby mode from the external screen lock state and exiting standby mode back to the external screen lock state, as provided in an embodiment of this application.
[0096] Figure 20 A schematic diagram illustrating the process of entering the screen-off state from the standby mode and entering the standby mode from the screen-off state, provided for embodiments of this application;
[0097] Figure 21 The embodiments provided in this application are related to Figure 19 The corresponding timing diagram;
[0098] Figure 22 The embodiments provided in this application are related to Figure 20 The corresponding timing diagram;
[0099] Figure 23 This is a schematic diagram illustrating the relationship between the source signal and the TE signal provided in an embodiment of this application.
[0100] Figure 24 This is a flowchart illustrating how low pulse counts are not supported at a fixed frame rate after dimming, as provided in an embodiment of this application.
[0101] Figure 25 A schematic diagram illustrating the process of supporting low pulse count at a fixed frame rate after dimming, as provided in the embodiments of this application;
[0102] Figure 26 This is a flowchart illustrating the process of not supporting low pulse counts at a fixed frame rate before dimming, as provided in an embodiment of this application.
[0103] Figure 27 A schematic diagram illustrating the process of supporting low pulse count at a fixed frame rate before dimming, as provided in an embodiment of this application;
[0104] Figure 28 This is a schematic diagram illustrating the process between full-screen AOD animation and pulse count provided in an embodiment of this application. Detailed Implementation
[0105] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limiting purposes, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details.
[0106] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0107] It should also be understood that in the embodiments of this application, "one or more" refers to one, two, or more; "and / or" describes the relationship between the associated objects, indicating that three relationships can exist; for example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following associated objects have an "or" relationship.
[0108] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," "fourth," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0109] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0110] This application provides a control method for an electronic device. This method can be applied to electronic devices, such as tablet computers, mobile phones, wearable devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). This application does not limit the specific type of electronic device.
[0111] Figure 1 A schematic diagram of an electronic device is shown. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0112] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0113] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0114] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0115] Internal memory 121 can be used to store computer executable program code, including instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function (such as image playback). Touch sensor 180K, also called a "touch panel," can be disposed on display screen 194. Touch sensor 180K and display screen 194 together form a touch screen, also called a "touch screen." Touch sensor 180K is used to detect touch operations applied to or near it. Touch sensor can transmit the detected touch operation to application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be disposed on the surface of electronic device 100, in a different location than display screen 194.
[0116] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0117] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a minimized display, a microLED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0118] This application does not specifically limit the structure of the execution subject of a control method for an electronic device. As long as the code recording the control method of an electronic device according to this application is executed, communication can be performed according to the control method of the electronic device provided in this application. For example, the execution subject of the control method of an electronic device provided in this application can be a functional module in the electronic device capable of calling and executing programs, or a communication device applied in the electronic device, such as a chip.
[0119] Always-On Display (AOD) technology is a way to display information in a low-power manner while the screen is locked. When an electronic device is in full-screen AOD mode, it can display a clock, calendar, notifications, and more. Users can conveniently view this information at any time while the device is in full-screen AOD mode, and can even quickly access applications by clicking on their notifications.
[0120] Reference Figure 2This is a schematic diagram of the interface of an electronic device entering full-screen AOD mode from a locked screen state, as provided in an embodiment of this application. When the electronic device is in a locked screen state, it displays the lock screen wallpaper and some content at brightness 1. When the user triggers the electronic device to enter full-screen AOD mode by pressing the power button, in response to the pressing operation of the power button, the electronic device executes the animation effects for entering full-screen AOD mode: the wallpaper darkens, the color gamut cools down, and the screen brightness is lowered to 2 (brightness 2 is less than brightness 1). After the full-screen AOD animation effects end, the device enters full-screen AOD mode. Correspondingly, when the electronic device exits full-screen AOD mode and enters the locked screen state, there are also animation effects for exiting full-screen AOD mode: the wallpaper brightens, the color gamut warms up, and the screen brightens, etc.
[0121] It is understood that when an electronic device is in full-screen AOD mode, the device displays the wallpaper and the date and clock above it in a low-brightness state. Of course, the wallpaper can be completely black or completely gray. This application does not limit the animation effects when entering full-screen AOD mode, the animation effects when exiting full-screen AOD mode, or the content displayed in full-screen AOD mode.
[0122] When an electronic device enables the full-screen AOD feature, the screen displays information in a low-brightness state, but it is still considered lit. This may increase the power consumption of the electronic device. Therefore, it is necessary to reduce the power consumption of the electronic device in full-screen AOD mode.
[0123] The standby feature is a standby display feature that allows electronic devices to display useful information while in standby mode. For example, it can display a clock, date, weather, or pictures from the photo album. After enabling the standby feature on an electronic device, it can also be triggered to enter standby mode by setting specific conditions (e.g., in landscape mode, tent mode, or calendar mode, while the device is stationary). The trigger conditions for entering standby mode described above are for illustrative purposes only and are not intended to impose limitations.
[0124] Electronic devices in standby mode need to display some information, which increases their power consumption. Therefore, it is also necessary to reduce the power consumption of electronic devices in standby mode.
[0125] Reference Figure 3 This diagram illustrates some interfaces of the electronic device in standby mode according to embodiments of this application. Taking a foldable phone as an example, the foldable phone may include an inner screen and an outer screen; the relationship between the outer screen and the inner screen can be referred to... Figure 3 As shown, when the foldable phone is in laptop mode, tent mode, calendar mode and landscape mode respectively, the outer screen can be set to display the clock in standby mode.
[0126] To understand the principle behind the reduced power consumption of the electronic device provided in the embodiments of this application in full-screen AOD mode and standby mode, relevant knowledge of screen dimming is first described.
[0127] The gamma curve is used to represent the mapping relationship between grayscale and brightness. For example, brightness = (grayscale / 255) * gamma coefficient. Different gamma coefficients result in different gamma curves representing the mapping relationship between grayscale and brightness.
[0128] Reference Figure 4 The graph shows the Gamma curves for Gamma coefficients of 1 and 2.2. The horizontal axis represents the grayscale value (0-255), and the vertical axis represents the brightness value. Figure 4 It's understandable that brightness and grayscale values are related.
[0129] The screen contains multiple OLED light-emitting devices and a control circuit for controlling the OLED's luminous intensity.
[0130] Reference Figure 5 The control circuit for the OLED provided in this application embodiment is shown below. Vdata determines the conduction degree between ELVDD and ELVSS. The larger Vdata is, the greater the conduction degree of transistor T2, the greater the current through the OLED, and the brighter the OLED.
[0131] Since brightness is controlled by Vdata, the Gamma curve, which represents the mapping relationship between brightness and grayscale, can also represent the mapping relationship between Vdata and grayscale.
[0132] Reference Figure 6 The figure shows the Gamma curves for the RGB three primary colors provided in this application embodiment. These curves represent the mapping relationship between Vdata and grayscale. The horizontal axis of the Gamma curve represents the grayscale value, and the vertical axis represents Vdata. For the same Gamma curve, the higher the grayscale value, the larger the Vdata, and the brighter the OLED.
[0133] In practical applications, when adjusting the brightness of the screen, either DC (Direct Current) dimming or pulse width modulation (PWM) dimming can be used.
[0134] Taking DC dimming as an example, refer to Figure 5 The control circuit for the OLED shown shows that the larger Vdata is, the larger the current through the OLED, and the brighter the OLED becomes. Therefore, the luminous intensity of the OLED can be changed by adjusting the value of Vdata.
[0135] Taking PWM dimming as an example, refer to Figure 5 The control circuit for the OLED shown uses the EM signal to control the on / off state of the circuit containing the OLED. For example, when the EM signal is at a low voltage, the OLED emits light, and when the EM signal is at a high voltage, the OLED does not emit light. Therefore, the OLED's luminous intensity can be adjusted by regulating the duty cycle of the EM signal during the period T (screen refresh rate).
[0136] Reference Figure 7 This illustration provides an example of adjusting the luminous intensity of an OLED by controlling the duty cycle of an EM signal, as provided in this application embodiment. In this diagram, within period T, a low level occupies 2 / 3 (OLED on) and a high level occupies 1 / 3 (OLED off), meaning that within period T, 2 / 3 of the period is on and 1 / 3 is off. Therefore, within this period T, the light intensity is 66.7%.
[0137] The illustration shows an example of one high and one low level within one cycle; in practical applications, multiple alternating high and low levels can exist within one cycle. In this embodiment, the number of high or low levels within one cycle is recorded as the pulse count. Therefore, the pulse count is not used to measure the duty cycle of the EM signal, but rather to measure the frequency of the EM signal.
[0138] With the same duty cycle for the EM signal, the frequency of the EM signal can also be adjusted, i.e., the pulse count can be adjusted.
[0139] As an example, with a duty cycle of 0.8 and a frequency of 1Hz (flashes once per second), it is on for 0.8 seconds and off for 0.2 seconds;
[0140] With a duty cycle of 0.8, the frequency is 2Hz (twice per second), the light lasts for 0.4 seconds and then turns off for 0.1 seconds; the light lasts for 0.4 seconds and then turns off for 0.1 seconds.
[0141] ...
[0142] With a duty cycle of 0.8, the frequency is 1000Hz (1000 flashes per second), the light lasts for 0.0008 seconds, turns off for 0.002 seconds, and cycles 1000 times.
[0143] When the frequency is relatively high, although the OLED is also flickering on and off, the visual nerve can no longer perceive the flicker. Therefore, the higher the frequency of the EM signal, the more eye-friendly it is; the lower the frequency of the EM signal, the more harmful it is to the eyes. Of course, the higher the frequency of the EM signal, the higher the power consumption; the lower the frequency of the EM signal, the lower the power consumption.
[0144] When using DC dimming, the voltage needs to be divided into multiple segments, each corresponding to a brightness value; therefore, the voltage needs to be divided very finely. In the low-brightness area, controlling the brightness by voltage is relatively difficult. Therefore, PWM dimming can be used in the low-brightness segment, and DC dimming can be used in the high-brightness segment.
[0145] When a screen displays content, the brightness in the display driver chip used to control the content displayed on the screen can be divided into multiple levels. As an example, the screen brightness can be divided into 4096 levels, represented by levels 0-4095. The brightness value of different levels is represented by dBv. When the grayscale value is fixed, the larger the dBv, the higher the screen brightness.
[0146] In this embodiment of the application, the dBv corresponding to 90 nit (for example only) can be used as the dividing point. When it is less than the dBv corresponding to 90 nit, PWM dimming is used, and when it is greater than or equal to the dBv corresponding to 90 nit, DC dimming is used.
[0147] The brightness in the full-screen AOD mode and standby mode described in this application embodiment is in the PWM dimming segment. As mentioned above, in the PWM dimming segment, the higher the frequency of the EM signal, the more eye-friendly it is, but the higher the power consumption; the lower the frequency of the EM signal, the more harmful it is to the eyes, but the lower the power consumption. Since users are not constantly using electronic devices in full-screen AOD mode and standby mode, the frequency of the EM signal can be set to be lower (the pulse number can be reduced) in full-screen AOD mode and standby mode, thereby reducing power consumption while displaying some information through full-screen AOD mode and standby mode.
[0148] Reference Figure 8 (a) in this application is a flowchart illustrating the process of starting the full-screen AOD mode of an electronic device according to an embodiment of this application.
[0149] In practical applications, the screen refresh rate of electronic devices has the following characteristics: during image refresh, the screen refresh rate (controlled by the source signal via Vdata) is a fixed frame rate (e.g., 30Hz, 60Hz, 120Hz, etc.); during non-image refresh, the screen refresh rate adaptively adjusts to the lowest supported frame rate (e.g., 1Hz, 0.1Hz, etc.). However, during continuous screen brightness adjustment, the screen refresh rate needs to be set to a fixed frame rate before continuous dimming. Specifically, when the electronic device enters full-screen AOD mode, the screen brightness needs to be continuously adjusted to low brightness. The step of reducing the pulse count is triggered by the setpanelstatus(1) function.
[0150] Take, for example, a user pressing the power button while the screen is locked to trigger the electronic device to start full-screen AOD mode.
[0151] In response to a user's request to switch to full-screen AOD mode, the electronic device first sends a code to switch to a lower pulse number (reducing the frequency of the EM signal). Then, because the screen brightness needs to be continuously adjusted, the frame rate needs to be adjusted to a fixed frame rate (e.g., 60Hz). At this fixed frame rate, the screen brightness is gradually reduced (e.g., gradually adjusted to a low brightness value within the PWM band). After reducing the screen brightness, the frame rate is adaptively adjusted back to 1Hz. Essentially, during full-screen AOD mode, the electronic device displays information with a low pulse number and a low screen refresh rate, thereby reducing the power consumption of the electronic device during full-screen AOD mode.
[0152] It should be noted that in practical applications, before adjusting the screen brightness, the electronic device's screen frame rate may be a fixed frame rate or it may be adaptively adjusted to 1Hz due to the lack of image refresh. Therefore, during the process of switching to full-screen AOD mode, the step "the frame rate needs to be adjusted to a fixed frame rate" may be executed, or it may not be executed because the frame rate is already fixed.
[0153] Of course, in practical applications, if the electronic device itself does not need to adaptively adjust to the lowest frame rate, the step of adaptively adjusting to the lowest supported frame rate can be omitted.
[0154] Reference Figure 8 (b) in this application is a flowchart illustrating the process of an electronic device destroying its full-screen AOD mode according to an embodiment of this application.
[0155] Taking the user pressing the power button to lock the electronic device in full-screen AOD mode as an example; in response to the user's operation to exit full-screen AOD mode, the electronic device first sends out code to switch to a high pulse number; then, because the screen brightness needs to be continuously adjusted, the frame rate needs to be adjusted to a fixed frame rate (e.g., 60Hz), and the screen brightness is gradually increased at the fixed frame rate (e.g., gradually adjusting the screen brightness to the brightness corresponding to when the screen is on). After adjusting the screen brightness, the frame rate is adaptively adjusted to 1Hz. The step of switching to a high pulse number is triggered by the setpanelstatus(0) function.
[0156] When applying full-screen AOD mode to multi-screen electronic devices, such as dual-screen or triple-screen foldable phones, the full-screen AOD feature can be enabled on either the main or secondary screen of a multi-screen electronic device. Similarly, for a multi-screen electronic device with an external screen, the full-screen AOD feature can be enabled on the external screen. Once the full-screen AOD feature is enabled, the electronic device can enter full-screen AOD mode on the corresponding screen when certain conditions are met.
[0157] The following embodiments of this application take the full-screen AOD feature of the external screen in a multi-screen electronic device with an external screen as an example.
[0158] See Figure 9 This is a schematic diagram showing the switching of the full-screen AOD mode of the external screen provided in the embodiments of this application.
[0159] Before describing the specific switching process, it is necessary to distinguish some concepts.
[0160] Enable full-screen AOD features, start full-screen AOD mode, enter full-screen AOD mode; disable full-screen AOD features, destroy full-screen AOD mode, and exit full-screen AOD mode.
[0161] Electronic devices can support full-screen AOD features, standby features, etc. When a user enables full-screen AOD, the electronic device can display some information in AOD mode. When full-screen AOD is enabled, the user can trigger the start of the full-screen AOD service in the upper-layer application (start full-screen AOD mode) through a trigger operation. When starting the full-screen AOD service, the upper-layer application (e.g., the full-screen AOD service in the lock screen application) executes the setpanelstatus(1) function to lower the pulse count. Similarly, the user can also trigger the destruction of the full-screen AOD service in the upper-layer application (destroy full-screen AOD mode). When destroying the full-screen AOD service, the upper-layer application executes the setpanelstatus(0) function to raise the pulse count. Starting and destroying full-screen AOD mode are described from the perspective of the full-screen AOD service in the upper-layer application. Entering and exiting full-screen AOD mode are described from the perspective of the state of the screen itself.
[0162] For example, the process of an electronic device's screen entering full-screen AOD mode from a locked screen state: the screen state changes, and the full-screen AOD service in the upper-layer application is also started; the process of exiting full-screen AOD mode back to the locked screen state: the screen state changes, and the full-screen AOD service in the upper-layer application is also destroyed; the process of entering screen-off state from full-screen AOD mode: the screen state changes, but the full-screen AOD service in the upper-layer application remains active and is not destroyed; the process of restoring full-screen AOD mode from screen-off state: the screen state changes, and there is no process of starting or destroying the full-screen AOD service; the process of entering locked screen state from screen-off state: the screen state changes, and the full-screen AOD service also needs to be destroyed.
[0163] When starting and stopping the full-screen AOD service, the pulse count can be switched using the setpanelstatus() function.
[0164] When the screen enters full-screen AOD mode, the Lp1 process (entering doze state) needs to be executed to put the screen into a low-power mode: for example, the screen's frame rate decreases. The Lp1 process is a procedure set up on the chip platform to enter low-power mode.
[0165] When transitioning from full-screen AOD mode to lock screen mode, the nolp process needs to be executed to cause the screen to exit low-power mode.
[0166] The following describes the switching between various screen states provided in the embodiments of this application. When the electronic device is in the external screen lock state (power mode is on), and the user presses the power button, the electronic device enters full-screen AOD mode in response to the user's operation. During the process of entering full-screen AOD mode, it is necessary to activate full-screen AOD mode by reducing the pulse count using the setpanelstatus() function. It is also necessary to execute the lp1 process to put the screen into low-power mode; the pulse count can also be reduced within the lp1 process.
[0167] When an electronic device is in full-screen AOD mode, pressing the power button will cause the device to exit full-screen AOD mode and enter lock screen mode. During the process of exiting full-screen AOD mode and entering lock screen mode, the full-screen AOD mode needs to be destroyed by using the `setpanelstatus()` function to switch to a high pulse count. The `nolp` process also needs to be executed to exit low-power mode, without switching to a high pulse count during the `nolp` process.
[0168] When an electronic device is in full-screen AOD mode, after the electronic device has been idle for a period of time (for example, the electronic device has not detected any user trigger operation or movement of the electronic device for a period of time), the electronic device enters the screen-off state. This process is the screen-off state entered in full-screen AOD mode, and the process of destroying full-screen AOD mode is not executed, nor is the nolp process executed.
[0169] When the screen is off, if the user touches the touchscreen, the electronic device will resume full-screen AOD mode in response to the user's operation. When entering the screen off state from full-screen AOD mode, the process of destroying full-screen AOD mode is not executed. Therefore, the process of starting full-screen AOD mode is not executed at this time, but the lp1 process needs to be executed. In the lp1 process, the pulse number is reduced.
[0170] When the screen is off, if the user presses the power button, the electronic device switches to the lock screen state in response to the user's operation. Since the full-screen AOD mode is not destroyed when the screen is off, the full-screen AOD mode needs to be destroyed when switching from the screen off state to the external screen lock screen state. When destroying the full-screen AOD mode, the setpanelstatus() function is used to increase the pulse count.
[0171] There may be some issues when applying AOD features used in single-screen electronic devices to multi-screen electronic devices.
[0172] For example, when calling the setpanelstatus() function to start and destroy full-screen AOD mode, since there are multiple screens, it is impossible to determine which screen to send the code to switch to a low pulse number (or a high pulse number). In this embodiment, the currently lit screen can be obtained from the HAL layer (e.g., through the hwdisplay module therein), and the currently lit screen can be switched to a low pulse number (or a high pulse number). In practical applications, the name of the currently lit screen can also be set to the inner screen if it is not the outer screen.
[0173] However, this method of obtaining the currently lit screen may present new problems.
[0174] When an electronic device transitions from full-screen AOD mode on the outer screen to a screen-off state and then back to a screen-locked state (outer screen on), a situation may occur where, during the process of destroying the full-screen AOD mode, code that switches to a high pulse count is sent to the inner screen. This is because, during the transition from screen-off to screen-locked mode, the outer screen goes from off to on, but the function might execute before the outer screen turns on, making it impossible to obtain the name of the currently lit screen. If the name of the currently lit screen cannot be obtained, it will default to the inner screen. Therefore, the code that switches to a high pulse count during the destruction of the full-screen AOD mode will be sent to the inner screen.
[0175] join Figure 10In Option 1, ddic_em_pulse_0 represents the inner screen, and ddic_em_pulse_1 represents the outer screen. In full-screen AOD mode on the outer screen, the pulse count is low (ddic_em_pulse_1 = low). After the electronic device is idle for a period of time, the outer screen enters a screen-off state, and the pulse count remains low (ddic_em_pulse_1 = low). When the user presses the power button to trigger the electronic device into a locked screen state, the full-screen AOD mode needs to be destroyed. Therefore, a command to switch to a high pulse count needs to be issued. In practical applications, when the command to switch to a high pulse count is issued, since the outer screen is not yet lit, it's equivalent to both screens being off. The HAL layer cannot determine which screen is lit, and in this case, the code to switch to a high pulse count will be sent to the inner screen by default. Therefore, the pulse count of the inner screen becomes high (ddic_em_pulse_0 = high), while the pulse count of the outer screen remains low (ddic_em_pulse_1 = low). This results in the dimming method being low-frequency PWM dimming when the external screen is locked (locked and on), which is not as expected, leading to poor display quality and easy eye fatigue.
[0176] Of course, in practical applications, even if the inner screen is switched to a high pulse number, it will not affect the use of the inner screen, because the inner screen is already in a high pulse number. Even if the command to switch to a high pulse number is sent to the inner screen again, the inner screen will not switch to a high pulse number again.
[0177] Of course, to make this solution more complete, the pulse count switching action can also be prevented on the inner screen through the DTSI configuration option. That is, the pulse count switching action will only be performed when the DTSI configuration option is set. Therefore, this configuration option can be set on the outer screen, but not on the inner screen, so that the inner screen will not switch the pulse count.
[0178] This application also provides an alternative solution to address the issue of the outer screen failing to switch to a low pulse count when transitioning from a screen-off state to an outer screen lock state.
[0179] Reference Figure 10In Option 2, under full-screen AOD mode on the outer screen, the pulse count of the outer screen is low (i.e., ddic_em_pulse_1 = low). After the electronic device has been idle for a period of time, the outer screen enters a screen-off state, actively switching the pulse count of the outer screen to a high pulse count (i.e., dic_em_pulse_1 = high). When the user presses the power button to trigger the electronic device to enter the lock screen state, the full-screen AOD mode needs to be destroyed. Therefore, a command to switch to a high pulse count needs to be issued. In practical applications, when the command to switch to a high pulse count is issued, the command to switch to a high pulse count is also issued to the inner screen. However, at this time, the pulse counts of both the inner and outer screens are high, i.e., ddic_em_pulse_0 = high and ddic_em_pulse_1 = high. The pulse count of the inner screen should be high by itself. Therefore, without affecting the pulse count of the inner screen, the outer screen can also be set to a high pulse count in the lock screen state, i.e., high-frequency PWM dimming.
[0180] Currently, standby mode is mainly used in single-screen electronic devices, but it can also be applied to multi-screen electronic devices, such as setting up dual-screen foldable phones or triple-screen foldable phones. Taking a multi-screen electronic device with an external screen as an example, the external screen of the electronic device can be set to standby mode.
[0181] See Figure 11 This is a schematic diagram showing the switching of the standby mode of the external screen provided in an embodiment of this application.
[0182] The understanding of enabling standby features, starting standby mode, entering standby mode, disabling standby features, destroying standby mode, and exiting standby mode can be found in the relevant descriptions of the full-screen AOD features mentioned above.
[0183] The differences include:
[0184] In Standby mode, the `standby_mode` flag indicates whether standby mode is currently enabled. For example, `standby_mode = 1` indicates that standby mode is enabled; `standby_mode = 0` indicates that standby mode is not enabled (or has been disabled). Therefore, the `standby_mode` flag describes the state of the standby application in the upper-layer application (e.g., whether standby mode is enabled or disabled).
[0185] Of course, entering and exiting standby mode are described from the perspective of the screen's state itself.
[0186] For example, the process of an electronic device's screen entering standby mode from lock screen state: the screen state changes, and the standby application in the upper-layer application is launched simultaneously; the process of exiting standby mode back to lock screen state: the screen state changes, and the standby application in the upper-layer application is destroyed simultaneously; the process of entering screen-off state from standby mode: the screen state changes, but the standby application in the upper-layer application remains open and is not destroyed; the process of restoring standby mode from screen-off state: the screen state changes, and there is no process of launching or destroying the standby application; the process of entering lock screen state from screen-off state: the screen state changes, and the standby application also needs to be destroyed.
[0187] The status of the standby service can be indicated by the standby_mode flag when starting and stopping standby mode.
[0188] When the screen enters standby mode, the lp1 process (entering doze state) needs to be executed to put the screen into a low-power mode: for example, the screen frame rate is reduced.
[0189] When transitioning from standby mode to lock screen mode, the NOLP process needs to be executed to cause the screen to exit low-power mode.
[0190] The Enter_standby_mode_flag shown in the diagram can be found in the following description.
[0191] The following describes the switching between various screen states provided in the embodiments of this application.
[0192] When the electronic device enables the standby feature, and the screen angle is detected to be in a semi-folded state (screen angle less than 90 degrees) and has been stationary for a period of time, the electronic device screen enters standby mode. During the process of entering standby mode, the standby mode startup process (setting the standby_mode flag to 1) and the lp1 process are executed.
[0193] When the external screen of an electronic device is in standby mode, if a change in screen angle greater than 90 degrees is detected or movement of the electronic device is detected, the screen of the electronic device exits standby mode. During the exit from standby mode, the process of destroying standby mode and the nolp process are executed.
[0194] When an electronic device is in standby mode, if the user presses the power button, the external screen of the electronic device will turn off in response to the operation. This process enters the screen-off state in standby mode without executing the standby mode destruction process or the NOLP process.
[0195] When an electronic device is in screen-off mode, if the user presses the power button, the electronic device will return to standby mode in response to this operation. Since the process of destroying standby mode is not executed when the electronic device enters screen-off mode from standby mode, the electronic device will not execute the process of starting standby mode when it returns to standby mode from screen-off mode.
[0196] When the electronic device is in a screen-off state, the user changes the screen orientation of the device. The orientation determines whether the outer or inner screen lights up. For example, if the screen angle is less than 90 degrees, the outer screen lights up; if the screen angle is greater than 90 degrees, the inner screen lights up. Switching to the lock screen state requires deactivating the standby mode. Of course, the 90-degree angle in this embodiment is merely an example and not intended to be limiting. In practical applications, any value equal to the threshold can be used as one of the states.
[0197] The process of entering standby mode and exiting standby mode in the above embodiments is described in detail below.
[0198] Reference Figure 12 As shown in (a) in this application, it is a flowchart illustrating the process of starting standby mode for an electronic device provided in this embodiment.
[0199] As an example, with the standby feature of the electronic device enabled, when the user is using the electronic device, the screen orientation of the foldable screen electronic device can be adjusted to a calendar state or a tent state (e.g., ...). Figure 3 (As shown) and leave it on the desktop for a period of time, the screen of the electronic device will enter standby mode, and the standby mode will be activated.
[0200] The electronic device powers off the inner screen, sets the flag standby_mode=1 (indicating the start of standby mode), and then powers on the outer screen; in the lp1 (lower power) process, it sends out code to switch to a low pulse number; it increases the frame rate to a fixed frame rate of 60Hz, and continuously dims the screen from 0 brightness at the fixed frame rate to keep the screen low-brightness; finally, it adaptively adjusts to the lowest frame rate supported by the electronic device (e.g., 1Hz).
[0201] The above process shows that when the screen enters standby mode, the execution time for switching to a lower pulse count is set in the lp1 (lower power) process. At this time, the external screen is only powered on and has not yet been lit (not 0 backlight, it is only lit when the screen brightness is adjusted). That is, the external screen is dark, and the problem of pulse count flickering is masked.
[0202] Reference Figure 12 (b) in this application is a flowchart illustrating the process of destroying an electronic device in standby mode according to an embodiment of this application.
[0203] As an example, when an electronic device is in standby mode in calendar or tent mode, if the user unfolds the screen of the electronic device to an angle greater than 90 degrees, the electronic device will be deactivated from standby mode.
[0204] The electronic device sets the standby_mode flag to 0 (destroying standby mode) and sets the external screen backlight to 0, causing the external screen to gradually dim until it goes black during the animation. After the external screen goes black, code is sent to switch to a high pulse count, then the frame rate is adjusted to a fixed frame rate. At the fixed frame rate, the screen brightness is adjusted from 0 to the brightness corresponding to the on screen state. Finally, it adaptively adjusts to the minimum frame rate supported by the electronic device (e.g., 1Hz). As mentioned earlier, whether or not the minimum supported frame rate is adjusted depends on the electronic device's own settings and is not a mandatory step.
[0205] This method, which involves first adjusting the external screen backlight to 0 and then executing the nolp (no lower power) process to switch to a high pulse number, ensures that the external screen remains dark during the high pulse number switching process, thus masking the screen flickering issue during pulse number switching.
[0206] However, in practical applications, the following situations often occur during the process of destroying standby mode:
[0207] Electronic devices may execute the exit low-power process (nolp process) in multiple scenarios (full-screen AOD, standby, partial AOD). However, in some scenarios, it is not necessary to switch to high pulse when executing the nolp process. Therefore, in the embodiments of this application, when executing the nolp process during the destruction of standby mode, the standby_mode flag is first queried to determine that it is currently in standby mode before switching to high pulse.
[0208] Because the execution entities for issuing `standby_mode=0` and issuing the nolp switching process (switching to the high pulse number) are different, there may be uncertainties in the timing of these processes. Furthermore, based on multiple practices, it is highly likely that the upper-layer application (standby application) issues `standby_mode=0` first, followed by the PMS issuing the nolp switching process (switching to the high pulse number). This causes the `standby_mode` flag to be issued prematurely. When the PMS executes the nolp process, it determines that it is currently in non-standby mode based on the current flag (`standby_mode=0`), and therefore will not switch to the high pulse number. Consequently, when exiting standby mode, the external screen cannot switch to the high pulse number, which leads to problems.
[0209] To avoid altering the original flow, an `enter_standby_mode_flag` flag is added. This flag is set to true during the `lp1` flow and then set to false after the `nolp` flow reaches a high pulse count. During the screen-off process, it is set to false.
[0210] In this way, the value of enter_standby_mode_flag can be queried in the nolp process, and if enter_standby_mode_flag = true, the high pulse number can be switched.
[0211] In practical applications, when an electronic device transitions from standby mode to a screen-off state, it does not follow the standby destruction process, i.e., the NOLP process is not executed. As mentioned earlier, in the standby feature, the process of switching to a high pulse count is executed within the NOLP process. Therefore, without executing the NOLP process, the pulse count will remain low in the screen-off state. This application embodiment can be configured such that when the external screen transitions from standby mode to a screen-off state, similar to when transitioning from full-screen AOD mode to a screen-off state, a high pulse count is also switched.
[0212] Of course, since the outer screen in the off state has been set to a high pulse number, when entering the lock screen state from the off state (for example, changing posture), although it is the process of destroying the standby mode, the nolp process is no longer required (no need to switch to a high pulse number again).
[0213] Similarly, when the full-screen AOD feature is enabled, the outer screen is already switched to a high pulse count when transitioning from full-screen AOD mode to screen-off mode. Therefore, when resuming full-screen AOD mode from screen-off mode, since this process is not part of the full-screen AOD startup process, the full-screen AOD startup procedure is not executed (the `setpanelstatus` function is not called), and the pulse count is not switched to a low pulse count. This results in a high pulse count on the outer screen after resuming full-screen AOD mode, failing to achieve the designed reduction in power consumption under full-screen AOD mode.
[0214] To address this issue, a process for reducing the pulse count can be added when resuming full-screen AOD mode from a screen-off state. As mentioned earlier, resuming full-screen AOD mode from a screen-off state requires executing the lp1 process, which can be used to reduce the pulse count. Since the lp1 process is a low-power entry process, it can be applied not only to full-screen AOD mode but also to standby mode and partial AOD mode. Therefore, a flag can be used to determine whether to reduce the pulse count during the lp1 process. In this embodiment, it can first identify whether the full-screen AOD feature is enabled. If the full-screen AOD feature is enabled, the lp1 process reduces the pulse count. In practical applications, the flag aod_type = 1 indicates that the full-screen AOD feature is currently enabled. This flag is set to 1 when the user enables the full-screen AOD feature of the electronic device and set to 0 when the user disables the full-screen AOD feature.
[0215] Based on the above description, the lp1 and nolp processes in electronic devices that support full-screen AOD and standby features can be unified:
[0216] In the lp1 process, if aod_type=1 or enter_standby_mode_flag=true is detected, the pulse count is reduced; that is, the lp1 process in both full-screen AOD mode and standby mode reduces the pulse count.
[0217] When the full-screen AOD feature is enabled, the high pulse count is executed during the nolp process. Since the process of switching to the high pulse count is not included in the animation of exiting full-screen AOD mode (for example, there is no animation of exiting full-screen AOD when entering the lock screen state from the off screen), screen flickering may occur.
[0218] Therefore, in the NOLP process, if `enter_standby_mode_flag = false` is detected, the higher pulse count is switched. That is, in full-screen AOD mode, the NOLP process does not switch to the lower pulse count, while in standby mode, the NOLP process switches to the higher pulse count.
[0219] To better understand the switching process between the various states provided in this application, the following describes in detail the process of switching between different states of an electronic device when the full-screen AOD feature is enabled.
[0220] like Figure 13 As shown, the process of entering full-screen AOD mode from the external screen lock state includes:
[0221] Process (1): The press event on the power button is transmitted to the lock screen application in the upper layer application. The full-screen AOD service is set in the lock screen application. Of course, in actual applications, the full-screen AOD service can also be set as an independent application in the application layer.
[0222] Process (2): The setpanelstatus (1) process triggered by the upper layer application is used to set the external screen to a low pulse count;
[0223] Process (3): The lp1 process triggered by PMS, which is the process executed when the electronic device enters the low power mode.
[0224] Reference Figure 14 This is a schematic diagram illustrating the process of exiting from full-screen AOD to external screen lock state provided in an embodiment of this application.
[0225] Process (4): The press event on the power button triggers the NOLP process executed by the PMS. The NOLP process is the process executed when the electronic device enters a non-low power mode.
[0226] Process (5): The setpanelstatus(0) process triggered by the upper layer application is used to set the outer screen to a high pulse number;
[0227] Based on the above process, refer to Figure 15 The diagram shows the timing of entering full-screen AOD mode from the lock screen state and exiting from full-screen AOD mode back to the lock screen state.
[0228] First, it should be noted that after a user enables the full-screen AOD feature, the LCD driver sets `aod_type = 1` to indicate that the full-screen AOD feature is enabled. Additionally, in the locked screen state, the power mode maintained by the PMS is on. In full-screen AOD mode, the power mode is doze; in the screen-off state, the power mode is off.
[0229] Corresponding to process (1):
[0230] S101, input receives a press event from the power button.
[0231] In this embodiment of the application, when the electronic device is in the external screen lock-on state, the user can trigger the electronic device to enter the full-screen AOD mode by pressing the power button.
[0232] S102, input sends a press event on the power button to PMS.
[0233] S103, when the power mode being maintained is on and a power button press event is received from the input, the PMS sends a full-screen AOD mode switching command to the lock screen application.
[0234] Corresponding to process (2):
[0235] S104, after receiving the command to switch to full-screen AOD mode, the lock screen application sends a command to hwdisplay to switch to a low pulse count via the setpanelstatus() function interface. The parameter passed to the setpanelstatus() function interface is 1, which is used to switch the currently lit screen to a low pulse count.
[0236] S105, after receiving the call, hwdisplay obtains the currently lit screen as the outer screen.
[0237] S106, hwdisplay sends a command to the LCD driver to lower the pulse number, which carries the external screen identifier.
[0238] S107, the LCD driver sends a command to the panel (external screen) to reduce the pulse number.
[0239] Following S103, it also includes:
[0240] S108, when the lock screen application triggers the execution of animation effects to enter AOD mode, such as adjusting the color gamut, adjusting the fixed frame rate and continuously adjusting the brightness, and adaptively adjusting to 1Hz, etc.
[0241] It should be noted that the animation for entering AOD mode is triggered by the lock screen application, and the actual execution is implemented by the relevant modules inside the electronic device.
[0242] Although S108 and S104 are executed in parallel as two branches, in practical applications, the process of switching the outer screen to a low pulse number occurs during the animation process of entering the full-screen AOD mode.
[0243] Corresponding to process (3):
[0244] S109, after the lock screen application starts executing the animation to enter full-screen AOD mode, it sends a command to PMS to switch to doze state.
[0245] S110, PMS power mode is set to doze.
[0246] S111: After setting the power mode to doze, the PMS executes the lp1 process based on the current power mode to reduce the power consumption of electronic devices. Specifically, the lp1 process can be executed through SurfaceFlinger and HWC.
[0247] S112, lp1 process is transmitted to LCD driver.
[0248] S113, when the LCD is executing the lp1 process, it recognizes that aod_type = 1 and determines the number of low pulses to be executed.
[0249] S114. Since the outer screen has already been switched to a low pulse number in step S107, there is no need to repeat the step of switching to a low pulse number.
[0250] Corresponding to process (4):
[0251] S201, input receives a press event from the power button.
[0252] S202, input sends a power button press event to PMS.
[0253] S203, when the PMS is maintaining the power mode as doze and receives a power button press event sent by input, it sets the power mode to on.
[0254] S204, PMS sends a lock screen state switching command to the lock screen application when the power mode is on.
[0255] In practical applications, S203 can be executed first, and then a full-screen AOD exit command can be sent to the lock screen application based on the condition of being switched to on.
[0256] S205, with the power mode switched to on, PMS begins executing the nolp process via SurfaceFlinger and HWC.
[0257] S206, the nolp process is transmitted to the LCD driver.
[0258] S207, the LCD driver determines that the process of switching to a high pulse number will not be executed.
[0259] Following S204, it also includes:
[0260] S209, the lock screen application triggers the execution of the full-screen AOD (Always-On Display) animation. In practical applications, the full-screen AOD animation is set up with multiple modules; this embodiment uses the lock screen application as the trigger.
[0261] Corresponding to process (5):
[0262] S210: After the lock screen application starts exiting AOD animation, it sends a command to hwdisplay to switch to a high pulse count via the setpanelstatus() function interface. The parameter passed to the setpanelstatus() function interface is 0, which is used to switch the currently lit screen to a high pulse count.
[0263] S211, hwdisplay retrieves the currently lit screen: the outer screen.
[0264] S212, hwdisplay sends a command to the LCD driver to switch to a high pulse number, carrying the external screen identifier.
[0265] S213, the LCD driver sends a command to the panel to switch the external screen to a higher pulse number according to the instruction.
[0266] Reference Figure 16 This is a schematic diagram illustrating the process of transitioning from full-screen AOD to screen-off state, as provided in an embodiment of this application.
[0267] Process (6): The outer screen is switched to a high pulse count by PMS detection and trigger.
[0268] Reference Figure 17 This is a schematic diagram of the process for restoring full-screen AOD mode from a screen-off state according to an embodiment of this application.
[0269] Process (7): A touch event on the screen triggers the lp1 process executed by the PMS;
[0270] The flowchart illustrating the process of switching from a screen-off state to an external screen lock state provided in this application embodiment and Figure 14 The flow from exiting full-screen AOD mode to the external screen lock / wake state is similar.
[0271] Process (8): The NOLP process triggered by the press event on the power button; similar to process (3).
[0272] Process (9): The setpanelstatus (1) process triggered by the upper layer application is used to set the outer screen to a low pulse number; similar to process (4).
[0273] Based on the above process, refer to Figure 18 The timing diagrams for each process are shown.
[0274] Corresponding to process (6):
[0275] S301, if the PMS does not detect movement of the electronic device or user operation within a certain period of time while the power mode is in doze mode, then the power mode is set to off.
[0276] S302, when the PMS is in doze mode and has not detected any movement of electronic devices or user operation for a period of time, sends a command to the SurfaceFlinger to increase the pulse number.
[0277] S303, SurfaceFlinger sends a command to the LCD driver to switch to a high pulse number via the HWC module.
[0278] S304 After receiving the instruction to switch to a higher pulse number, the LCD driver sends the instruction to the panel to switch the external screen to a higher pulse number.
[0279] Corresponding to process (7):
[0280] S401, the input receives a touch event on the screen.
[0281] S402, input sends a touch event on the screen to PMS.
[0282] S403, when the power mode is off and a touch event is received on the screen, the PMS sets the power mode to doze and executes the lp1 process.
[0283] S404, PMS sends a message to SurfaceFlinger to execute the lp1 process.
[0284] S405, SurfaceFlinger sends information to the LCD driver via HWC to execute the lp1 process.
[0285] S406, when the LCD driver executes the lp1 process, it recognizes aod_type=1 and determines the number of low pulses to be executed.
[0286] S407, the LCD driver sends a command to the panel to reduce the pulse number.
[0287] Corresponding to process (8):
[0288] S501, input receives a press event from the power button.
[0289] S502, input sends a power button press event to PMS.
[0290] S503, PMS sets the power mode to on after receiving a press event on the power button when the power mode is off.
[0291] S504, after the power mode is switched to on, the PMS sends a full-screen AOD mode exit command to the lock screen application.
[0292] In S505, the lock screen application sends a command to hwdisplay to switch to a high pulse count via the setpanelstatus() function interface. Specifically, passing 0 as the parameter to the setpanelstatus() function interface switches the currently lit screen to a high pulse count.
[0293] S506, hwdisplay sends a command to the LCD driver to switch to a high pulse number.
[0294] Since the S304 has already set the panel pulse count to a high pulse count when entering the screen-off state, the command to switch to a high pulse count will not be sent again at this time.
[0295] The following describes in detail the process of switching between different states of an electronic device when the standby feature is enabled.
[0296] like Figure 19 As shown, the process of entering standby mode from the external screen lock state includes:
[0297] The StandbyService determines when to start the standby application based on the attitude and switches the external screen to a low pulse count through the lp1 process.
[0298] The process of exiting standby mode to the external screen lock state includes:
[0299] The StandbyService determines the standby application to be destroyed based on the attitude and switches the external screen to a high pulse number through the nolp process.
[0300] like Figure 20As shown, the process of transitioning from standby mode to screen-off state includes:
[0301] Input switches the external screen to a high pulse number based on the press event on the power button.
[0302] The process of entering standby mode from screen-off state includes:
[0303] Input switches the external screen to a low pulse number based on the press event on the power button through the lp1 process.
[0304] Additionally, the process for switching from screen-off mode to lock screen mode can be found here. Figure 19 As shown, the standby service determines the destruction of the standby application based on the attitude and switches the external screen to a high pulse number through the nolp process.
[0305] It should be noted that in practical applications, sensor data can be obtained through sensors in the hardware layer. For example, a gyroscope sensor can acquire relevant data (angular velocity, etc.) for calculating the screen posture of an electronic device. The sensor in the lake area sends the sensor data to the sensor driver in the kernel layer. The sensor driver sends the sensor data through the sensor HAL in the HAL layer. The sensor HAL sends the sensor data to the sensor service in the framework layer. The sensor service sends the sensor data to the posture algorithm recognition module in the framework layer. The posture algorithm recognition module recognizes the current posture based on the sensor data, and when a specific posture (e.g., tent posture) is recognized, it transmits the recognized posture to the standby service through the input service.
[0306] To better understand the switching between various states when the standby feature is enabled, refer to... Figure 21 and Figure 22 The timing diagram shows the transitions between the various states.
[0307] It should be noted that after the user enables the standby feature, the power mode maintained by the PMS is on when the screen is locked. In standby mode, the power mode is doze, and in the screen-off state, the power mode is off.
[0308] First, a sequence diagram is described showing the desktop entering standby mode.
[0309] S601, standbyservice receives information that determines to enable standby based on the screen orientation of the electronic device.
[0310] S602, standbyservice sends a start command to standby application.
[0311] S603, standby responds to the startup command and starts.
[0312] After S604 and standfby are started, they send a message to PMS indicating that the internal screen is powered off.
[0313] After receiving the power-off information from the internal screen, the S605 PMS sends the information to the LCD driver to set standby_mode=1.
[0314] S606: After receiving the information, the LCD driver sets standby_mode=1.
[0315] S607, after sending the setting information, the standby sends a power-on message for the external screen to the PMS.
[0316] S608, after the PMS is in power mode on and receives a power-on message from the external screen, sets the power mode to doze.
[0317] S609, after switching the power mode to doze, PMS sends a message to SurfaceFlinger to execute the lp1 process.
[0318] In the S610, SurfaceFlinger sends information to the LCD driver via HWC to execute the lp1 process.
[0319] S611, when the LCD driver is executing the lp1 process, if it detects that standby_mode = 1, it sets enter_standby_mode_flag = true. If it is determined that enter_standby_mode_flag = true, it determines the number of low pulses to be executed.
[0320] S612, the LCD driver sends a message to the panel to lower the pulse count.
[0321] S613 executes an animation to switch to standby mode after standby is started.
[0322] Below is a timing diagram of exiting from standby mode to non-standby mode (e.g., locked screen state).
[0323] S701, the standby service receives information that determines to destroy the standby based on the screen orientation of the electronic device.
[0324] S702, standbyservice sends a destroy command to standby application.
[0325] S703: After receiving the destruction command, the standby application sends information to the LCD driver to set standby_mode = 0. S704: Based on the received information, the LCD driver sets standby_mode = 0.
[0326] S705: After receiving the destruction command, the standby application executes the exit standby animation.
[0327] S706: After receiving the destruction command, the standby application sends a standby application exit message to the PMS.
[0328] After receiving the standby application exit information, the PMS of the S707 sets the power mode to on.
[0329] After the S708 PMS switches the power mode to on, it begins executing the NOLP process.
[0330] S709, PMS sends a message to SurfaceFlinger to execute the nolp process.
[0331] In the S710, SurfaceFlinger sends information to the LCD driver via HWC to execute the nolp process.
[0332] In the S711, the LCD driver detects that enter_standby_mode_flag = true during the execution of the nolp process and determines the number of high-speed pulses to execute.
[0333] S712, the LCD driver sends information about the number of high pulses to the panel.
[0334] S713, LCD driver setting enter_standby_mode_flag = false.
[0335] Below is a timing diagram of the standby mode entering the screen-off state.
[0336] S801, input receives a press event from the power button.
[0337] S802, input sends a power button press event to PMS.
[0338] S803, PMS determines the number of high-pulse events when the power mode is doze and a press event is received on the power button.
[0339] S804, PMS sends the high pulse count information to SurfaceFlinger.
[0340] S805, SurfaceFlinger sends information about the high pulse count to the LCD driver via HWC.
[0341] S806, the LCD driver sends information about the number of high pulses to the panel.
[0342] S807, after receiving the information about the high pulse count, the LCD driver sets enter_standby_mode_flag = true.
[0343] S808, following S803, sets the power mode to off.
[0344] Below is a timing diagram of the transition from screen-off state to standby mode.
[0345] S901, input receives a press event from the power button.
[0346] S902, input sends a power button press event to PMS.
[0347] S903, when the power mode is off and a press event is received on the power button, the PMS determines to execute the lp1 process.
[0348] S904, PMS sends information from the lp1 process to SurfaceFlinger.
[0349] In the S905, SurfaceFlinger sends information from the lp1 process to the LCD driver via HWC.
[0350] S906, the LCD driver recognizes standby_mode=1, sets enter_standby_mode_flag=true, and determines the number of low pulses when true.
[0351] S907, the LCD driver sends information about the number of high pulses to the panel.
[0352] The S908, following the S903, sets the power mode to doze.
[0353] The following is a timing diagram of the transition from a screen-off state to a lock screen-on state.
[0354] S1001, standbyservice receives a message indicating that standby needs to be destroyed based on the screen orientation of the electronic device.
[0355] S1002, the standby service sends a destruction command to the standby application, which carries an attitude identifier.
[0356] S1003, after receiving the destruction command, the standby application sends standby application destruction information to the PMS.
[0357] S1004, after receiving the standby application destruction information, the PMS sets the power mode to on.
[0358] S1005, PMS sends standby mode destruction information to the LCE driver.
[0359] S1009, LCD driver setting standby_mode = 0.
[0360] As can be understood from the above embodiments, the full-screen AOD and standby features can be applied to multi-screen electronic devices. Furthermore, setting the standby pulse switching time point within the lp1 and nolp processes can reduce screen flickering.
[0361] It should be noted that the full-screen AOD and standby features described above for multi-screen electronic devices can also be applied to single-screen electronic devices. When applied to single-screen electronic devices, the triggering conditions for switching between different states are different after the standby feature is enabled. For example, the triggering condition for entering standby mode from non-standby mode is that the electronic device is left in landscape mode for a period of time; the triggering condition for exiting standby mode to non-standby mode is that motion is detected on the electronic device (e.g., the user picks up the electronic device); and the triggering condition for entering non-standby mode from screen-off state is that motion is detected on the electronic device.
[0362] In practical applications, the source signal and the backlight TE signal need to be synchronized. If the backlight TE signal is sent separately, it may change the ELVSS signal, but if the source signal is not changed, there will be a screen flickering problem.
[0363] Reference Figure 23 As shown, when sending images, the source signal is updated to a fixed frame rate, so the source signal and the TE signal (fixed frame rate) are synchronized. At other times, the source signal is not updated (adaptively to the lowest frame rate), and the source signal and the TE signal are out of sync, resulting in screen flickering.
[0364] As mentioned above, the embodiments of this application can be configured to switch the frequency of the source signal to a fixed frame rate during dimming, so that the source frame rate (source signal) of the image refresh and the TE signal frequency (fixed frame rate) of the backlight are synchronized, thereby reducing screen flicker.
[0365] In practical applications, at a fixed frame rate, only high pulse counts are supported, and low pulse counts are not compatible. Furthermore, as mentioned earlier, during dimming, there are steps to switch to high pulse counts and steps to switch to low pulse counts.
[0366] If there are steps to switch to high pulse count and low pulse count during dimming, these steps need to be executed again via a delayed worker thread after dimming is complete, which delays the pulse count switching process.
[0367] The embodiments of this application have been adapted to the dimming process, so that the dimming process also supports low pulse number. During the dimming process, the steps of switching between high pulse number and low pulse number can be implemented.
[0368] Currently, in practical applications, the frame rate needs to be adjusted to a fixed frame rate before dimming. If there is a pulse number switching action under a fixed frame rate, then the pulse number can be switched during the dimming process.
[0369] The following sections compare solutions that do not support low pulse counts and solutions that support low pulse counts by examining scenarios involving entering and exiting full-screen AOD.
[0370] In practical applications, the dimming step is triggered by the upper-layer application, while the process of switching the panel to a low pulse number is triggered by the LCD driver. Furthermore, by sending down the pulse number switching code, the pulse number flag is first set to the corresponding state; when the screen actually switches frames, the flag state is checked, and only then is the flag set to the corresponding pulse number. Therefore, in practical applications, the timing of dimming and switching to a low pulse number is uncertain.
[0371] The process of lowering the pulse number on the panel and the dimming process involve the following situations:
[0372] (1) If dimming (starting from switching to a fixed frame rate) is performed before switching pulse counts.
[0373] Solutions that do not support low pulse counts at a fixed frame rate:
[0374] Reference Figure 24The system enters full-screen AOD mode (currently at a high pulse count), adjusts the frame rate to a fixed frame rate, and uses `setpanelstatus()` to switch to a low pulse count. At this point, the code has only switched to a low pulse count, but has not yet actually executed the switch. As mentioned earlier, before the actual pulse count switch is executed, since the dimming is at a fixed frame rate, a low pulse count scheme is not supported. Therefore, the pulse count cannot be switched at this time. Instead, it needs to wait for the continuous dimming under a high pulse count to end, and then adaptively adjust to the lowest frame rate before switching to a low pulse count.
[0375] Figure 24 In the dimming process, after the adaptive adjustment to the lowest frame rate ends, the pulse number is switched from high to low. Therefore, the operation of switching the pulse number does not occur during the dimming phase, which may cause screen flickering.
[0376] A solution for supporting low pulse counts at a fixed frame rate:
[0377] Reference Figure 25 The system enters full-screen AOD mode (currently with a high pulse count), increases the frame rate to a fixed frame rate, and uses setpanelstatus() to switch to a low pulse count. Since a fixed frame rate supports switching to a low pulse count, the low pulse count can be successfully switched at this point. During subsequent dimming, the low pulse count can be maintained, thereby masking screen flickering through dimming. After dimming ends, the system adaptively adjusts back to a fixed frame rate.
[0378] (2) If dimming is performed after the pulse count is cut.
[0379] Solutions that do not support low pulse counts at a fixed frame rate:
[0380] Reference Figure 26 As shown, the system initially enters full-screen AOD mode (currently at a high pulse count). The code then switches to a lower pulse count using `setpanelstatus()`, and this switch is executed. Next, dimming is required, initially at a fixed frame rate. Since a fixed frame rate doesn't support low pulse counts, the system first switches to a high pulse count and then to a fixed frame rate. Continuous dimming is then performed at both the fixed frame rate and high pulse count. After dimming, the system reverts to a low pulse count, adaptively adjusting to the lowest frame rate. However, the process of reverting to a low pulse count occurs after continuous dimming, which is why screen flickering still occurs.
[0381] A solution for supporting low pulse counts at a fixed frame rate:
[0382] Reference Figure 27As shown, the system initially enters full-screen AOD mode (currently with a high pulse count). The code then switches to a lower pulse count using `setpanelstatus()`, and this switching is executed. Next, dimming is required. Since dimming needs to be adjusted to a fixed frame rate, and a fixed frame rate supports a low pulse count, it must first be adjusted to a fixed frame rate (low pulse count). Then, continuous dimming is performed at both the fixed frame rate and low pulse count. After dimming, the system adaptively adjusts to the lowest frame rate. This process involves only one pulse count switching action from high to low. Furthermore, because the pulse count switching step via `setpanelstatus()` is triggered by the upper-layer application, and the animation process is also triggered by the upper-layer application, the high-to-low pulse count switching action, although not within the scope of continuous dimming, can mask the screen flickering that occurs during the full-screen AOD animation.
[0383] by Figure 27 The above process will be described in detail using the example shown.
[0384] Reference Figure 28 As shown, the lock screen application triggers the panel to execute animations to enter full-screen AOD mode via DMS, SurfaceFlinger, HWC, and LCD: darkening the wallpaper, adjusting the color gamut, and continuous dimming.
[0385] The lock screen application triggers the panel to execute pulse counts via Hwdisplay and LCD driver.
[0386] Since both of the above processes are triggered by the lock screen application, the lock screen application can control the issuance of pulse number switching instructions during the animation execution, thereby making the pulse number switching execution occur during the animation process and thus masking the screen flickering.
[0387] In addition, when exiting full-screen AOD mode, the frequency of the EM signal of the electronic device switching the screen is the first frequency; the electronic device adjusts the screen refresh rate to a fixed frame rate; and the electronic device increases the screen backlight under the first frequency EM signal and the fixed frame rate screen refresh rate.
[0388] As another embodiment of the control method for the electronic device provided in this application, applied to an electronic device that has activated a first characteristic, the method includes:
[0389] When the electronic device is in the first mode, the screen of the electronic device displays content using an EM signal of the first frequency;
[0390] When the electronic device is in the first mode, the electronic device detects the first trigger event;
[0391] In response to the first trigger event, the electronic device enters the second mode from the first mode. When the first feature is the full-screen AOD feature, the second mode is the full-screen AOD mode. When the first feature is the standby feature, the second mode is the standby mode.
[0392] When the electronic device is in the second mode, the screen of the electronic device displays content using an EM signal at a second frequency, which is lower than the first frequency (higher pulse number).
[0393] As another embodiment, the first feature is full-screen AOD feature, the first mode is screen lock state, and the electronic device includes an outer screen and an inner screen;
[0394] Before the screen of the electronic device displays content using an EM signal of the second frequency, the method further includes:
[0395] In response to the first trigger event, the electronic device obtains the screen that is currently lit.
[0396] When the currently lit screen is the outer screen, the electronic device sets the frequency of the EM signal of the outer screen to the second frequency.
[0397] As another embodiment, in response to a first triggering event, the electronic device transitions from a first mode to a second mode, including:
[0398] In response to the first trigger event, the electronic device executes the process of starting full-screen AOD and the lp1 process. The process of starting full-screen AOD includes: setting the frequency of the EM signal of the external screen to a second frequency by transmitting a first parameter (e.g., 1) to a first function (setpanelstatus() function); the lp1 process is used to control the screen to enter low power mode, and the lp1 process includes: setting the frequency of the EM signal of the external screen to a second frequency.
[0399] After executing the full-screen AOD startup process and the lp1 process, the electronic device transitions from the first mode to the second mode.
[0400] In another embodiment, when the electronic device is in the second mode, the method further includes:
[0401] The electronic device detected a second trigger event;
[0402] In response to the second triggering event, the electronic device executes the process of destroying the full-screen AOD and the nolp process. The process of destroying the full-screen AOD includes: setting the frequency of the external screen's EM signal to a first frequency by passing a second parameter (e.g., 0) to a first function. The nolp process is used to control the screen to exit the low-power mode. When the full-screen AOD feature is enabled, the electronic device does not execute the step of setting the frequency of the external screen's EM signal to the first frequency when executing the nolp process.
[0403] After the electronic device executes the process of destroying the full-screen AOD and the nolp process, the electronic device enters the first mode from the full-screen AOD mode.
[0404] As another embodiment, when the electronic device is in full-screen AOD mode, the method further includes:
[0405] The electronic device detected a third trigger event;
[0406] In response to the third triggering event, the electronic device turns off its screen. In the screen-off state, the frequency of the EM signal on the outer screen of the electronic device is the first frequency.
[0407] In another embodiment, when the screen is off, the method further includes:
[0408] The electronic device detected the fourth trigger event;
[0409] In response to the fourth trigger event, the electronic device enters the locked screen state from the screen-off state;
[0410] During the process of transitioning from a screen-off state to a lock screen state, the electronic device executes a process to destroy the full-screen AOD mode.
[0411] In another embodiment, when the outer screen is off, the method further includes:
[0412] The electronic device detected the fifth trigger event;
[0413] In response to the fifth trigger event, the electronic device resumes full-screen AOD mode from the screen-off state;
[0414] During the process of an electronic device resuming full-screen AOD mode from screen-off mode, the electronic device executes the lp1 process.
[0415] In another embodiment, the first triggering event is a press event on the power button of the electronic device; the second triggering event is a press event on the power button; the third triggering event is that the electronic device does not detect user operation and movement of the electronic device within a first duration; the fourth triggering event is a touch operation on the screen of the electronic device; and the fifth triggering event is a press event on the power button.
[0416] In another embodiment, the first feature is a standby feature, and the first mode is a non-standby mode. The non-standby mode includes: a lock screen state, a desktop state, and the display state of any application. The electronic device includes an inner screen and an outer screen. In response to a first trigger event, the electronic device enters a second mode from the first mode, including:
[0417] In response to the first trigger event, the electronic device executes the lp1 process, which is used to control the screen to enter a low-power mode. During the lp1 process, the external screen is off. The lp1 process includes setting the frequency of the EM signal of the external screen to a second frequency (low pulse number).
[0418] After executing the lp1 process, the electronic device transitions from the first mode to the second mode.
[0419] In another embodiment, when the electronic device is in the second mode, the method further includes:
[0420] The electronic device detected the sixth trigger event;
[0421] In response to the sixth trigger event, the electronic device executes the nolp procedure, which is used to control the screen to exit the low power mode. During the nolp procedure, the external screen is off. The nolp procedure includes setting the frequency of the EM signal of the external screen to the first frequency (high pulse number).
[0422] After the electronic device executes the NOLP process, it transitions from standby mode to the first mode.
[0423] In another embodiment, in response to a first triggering event, the method further includes:
[0424] The electronic device sets the first flag bit (standby_mode) to a first value (e.g., 1), which indicates that standby mode is enabled.
[0425] When the first flag bit is set to the first value, the electronic device sets the second flag bit (enter_standby_mode_flag) to the second value (e.g., true), which indicates that it is entering standby mode.
[0426] Accordingly, the electronic device executes the lp1 process, including:
[0427] In the lp1 process, when the second flag bit is set to the second value, the frequency of the EM signal on the outer screen of the electronic device is set to the second frequency.
[0428] In another embodiment, in response to the sixth triggering event, the method further includes:
[0429] The electronic device sets the first flag bit to the third value (e.g., 0), which indicates that the standby mode has been destroyed;
[0430] Accordingly, the electronic device executes the NOLP process, including:
[0431] In the NOLP process, when the second flag is set to the second value, the frequency of the EM signal on the outer screen of the electronic device is switched to the first frequency.
[0432] After the electronic device switches the frequency of the EM signal on the external screen to the first frequency, it sets the second flag bit to the fourth value (e.g., false), which indicates exiting standby mode.
[0433] In another embodiment, when the electronic device is in the second mode, the method further includes:
[0434] The electronic device detected the seventh trigger event;
[0435] In response to the seventh trigger event, the electronic device sets the EM signal of the external screen to the first frequency and the second flag bit to the fourth value, and the electronic device enters the screen-off state.
[0436] In another embodiment, when the electronic device is in a screen-off state, the method further includes:
[0437] The electronic device detected the eighth trigger event;
[0438] In response to the eighth trigger event, if the electronic device recognizes that the first flag bit is the first value, then it sets the second flag bit to the second value;
[0439] The electronic device executes the lp1 process. During the execution of the lp1 process, when the second flag bit is the second value, the frequency of the EM signal on the outer screen of the electronic device is set to the second frequency.
[0440] In another embodiment, when the electronic device is in a screen-off state, the method further includes:
[0441] The electronic device detected the ninth trigger event;
[0442] In response to the ninth trigger event, the electronic device sets the first flag to the third value, and the electronic device enters the locked screen state from the screen-off state.
[0443] In another embodiment, the first triggering event is when the folding angle of the screen of the electronic device is less than a preset value and remains still for a second time; the sixth triggering event is when the folding angle of the screen of the electronic device changes to a value greater than the preset value or when movement of the electronic device is detected; the seventh triggering event is when the power button of the electronic device is pressed; the eighth triggering event is when the power button is pressed; and the ninth triggering event is when the folding angle of the screen of the electronic device changes or when movement of the electronic device is detected (by a sensor inside the electronic device).
[0444] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0445] This application also provides a computer-readable storage medium storing a computer program that, when run on an electronic device, can implement the steps in the various method embodiments described above.
[0446] This application also provides a computer program product that, when run on an electronic device or a wireless router, enables the electronic device to perform the steps described in the various method embodiments above.
[0447] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying the computer program code to the first device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0448] This application also provides a chip, which includes a processor coupled to a memory. The processor calls a computer program stored in the memory to implement the steps of any method embodiment of this application. The chip can be a single chip or a chip module composed of multiple chips.
[0449] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0450] Those skilled in the art will recognize that the units and method steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0451] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A control method for an electronic device, characterized in that, Applied to an electronic device that has enabled the first characteristic, the method includes: When the electronic device is in the first mode, the screen of the electronic device displays content using an EM signal at a first frequency; When the electronic device is in the first mode, the electronic device detects a first trigger event; In response to the first triggering event, the electronic device enters a second mode from the first mode. When the first feature is a full-screen AOD feature, the second mode is a full-screen AOD mode. When the first feature is a standby feature, the second mode is a standby mode. When the electronic device is in the second mode, the screen of the electronic device displays content using an EM signal at a second frequency, which is lower than the first frequency.
2. The method as described in claim 1, characterized in that, The first feature is full-screen AOD feature, the first mode is screen lock state, and the electronic device includes an outer screen and an inner screen; Before the screen of the electronic device displays content using an EM signal at a second frequency, the method further includes: In response to the first triggering event, the electronic device obtains the screen that is currently lit. When the currently lit screen is the outer screen, the electronic device sets the frequency of the EM signal of the outer screen to a second frequency.
3. The method as described in claim 2, characterized in that, In response to the first triggering event, the electronic device transitions from the first mode to the second mode, including: In response to the first triggering event, the electronic device executes the process of starting full-screen AOD and the lp1 process. The process of starting full-screen AOD includes: setting the frequency of the EM signal of the external screen to a second frequency by transmitting a first parameter to a first function. The lp1 process is used to control the screen to enter a low-power mode. The lp1 process includes: setting the frequency of the EM signal of the external screen to the second frequency. After executing the full-screen AOD startup process and the lp1 process, the electronic device enters the second mode from the first mode.
4. The method as described in claim 3, characterized in that, When the electronic device is in the second mode, the method further includes: The electronic device detected a second trigger event; In response to the second triggering event, the electronic device executes a process to destroy the full-screen AOD and a nolp process. The process to destroy the full-screen AOD includes: setting the frequency of the EM signal of the external screen to the first frequency by passing a second parameter to the first function. The nolp process is used to control the screen to exit the low-power mode. When the full-screen AOD feature is enabled, the electronic device does not execute the step of setting the frequency of the EM signal of the external screen to the first frequency when executing the nolp process. After the electronic device executes the process of destroying the full-screen AOD and the nolp process, the electronic device enters the first mode from the full-screen AOD mode.
5. The method as described in claim 4, characterized in that, When the electronic device is in the full-screen AOD mode, the method further includes: The electronic device detected a third trigger event; In response to the third triggering event, the electronic device turns off its screen. In the screen-off state, the frequency of the EM signal of the outer screen of the electronic device is the first frequency.
6. The method as described in claim 5, characterized in that, In the screen-off state, the method further includes: The electronic device detected a fourth trigger event; In response to the fourth triggering event, the electronic device enters the locked screen state from the screen-off state; During the process of transitioning from the off-screen state to the locked-screen state, the electronic device executes a process to destroy the full-screen AOD mode.
7. The method as described in claim 6, characterized in that, When the external screen is in the off state, the method further includes: The electronic device detected a fifth trigger event; In response to the fifth triggering event, the electronic device resumes full-screen AOD mode from the screen-off state; During the process of the electronic device resuming full-screen AOD mode from screen off, the electronic device executes the lp1 process.
8. The method as described in claim 7, characterized in that, The first triggering event is a press event on the power button of the electronic device; the second triggering event is a press event on the power button; the third triggering event is when the electronic device does not detect user operation or movement of the electronic device within a first time period; the fourth triggering event is a touch operation on the screen of the electronic device; and the fifth triggering event is a press event on the power button.
9. The method as described in claim 1, characterized in that, The first characteristic is a standby characteristic, and the first mode is a non-standby mode. The non-standby mode includes: lock screen state, desktop state, and display state of any application. The electronic device includes an inner screen and an outer screen. In response to the first trigger event, the electronic device enters a second mode from the first mode, including: In response to the first triggering event, the electronic device executes the lp1 process, which is used to control the screen to enter a low-power mode. During the lp1 process, the external screen is in an off state. The lp1 process includes setting the frequency of the EM signal of the external screen to the second frequency. After executing the lp1 process, the electronic device transitions from the first mode to the second mode.
10. The method as described in claim 9, characterized in that, When the electronic device is in the second mode, the method further includes: The electronic device detected a sixth trigger event; In response to the sixth triggering event, the electronic device executes the nolp process, which is used to control the screen to exit the low power mode. During the nolp process, the external screen is in an off state. The nolp process includes setting the frequency of the EM signal of the external screen to the first frequency. After the electronic device executes the NOLP process, it enters the first mode from the standby mode.
11. The method as described in claim 10, characterized in that, In response to the first triggering event, the method further includes: The electronic device is set with a first flag bit and a first value, the first value being used to indicate that the standby mode is in the enabled state; When the first flag bit is a first value, the electronic device sets the second flag bit to a second value, which is used to indicate entering standby mode; Accordingly, the electronic device executes the lp1 process, including: In the lp1 process, when the second flag bit is the second value, the frequency of the EM signal of the outer screen of the electronic device is set to the second frequency.
12. The method as described in claim 11, characterized in that, In response to the sixth triggering event, the method further includes: The electronic device sets the first flag bit to a third value, which indicates that the standby mode has been destroyed. Accordingly, the electronic device executes the NOLP process, including: In the NOLP process, when the second flag is the second value, the frequency of the EM signal on the outer screen of the electronic device is switched to the first frequency. After the electronic device switches the frequency of the EM signal on the external screen to the first frequency, the electronic device sets the second flag bit to the fourth value, which indicates exiting standby mode.
13. The method as described in claim 12, characterized in that, When the electronic device is in the second mode, the method further includes: The electronic device detected a seventh trigger event; In response to the seventh trigger event, the electronic device sets the EM signal of the outer screen to the first frequency, sets the second flag bit to the fourth value, and the electronic device enters the screen-off state.
14. The method as described in claim 13, characterized in that, When the electronic device is in a screen-off state, the method further includes: The electronic device detected the eighth trigger event; In response to the eighth trigger event, if the electronic device recognizes the first flag bit as the first value, it sets the second flag bit to the second value. The electronic device executes the lp1 process. During the execution of the lp1 process, when the second flag bit is the second value, the frequency of the EM signal of the outer screen of the electronic device is set to the second frequency.
15. The method as described in claim 14, characterized in that, When the electronic device is in a screen-off state, the method further includes: The electronic device detected a ninth trigger event; In response to the ninth trigger event, the electronic device sets the first flag bit to the third value, and the electronic device enters the locked screen state from the screen-off state.
16. The method as described in claim 15, characterized in that, The first trigger event is when the folding angle of the screen of the electronic device is less than a preset value and remains still for a second time; the sixth trigger event is when the folding angle of the screen of the electronic device changes to a value greater than the preset value or when movement of the electronic device is detected; the seventh trigger event is when the power button of the electronic device is pressed; the eighth trigger event is when the power button is pressed; and the ninth trigger event is when the folding angle of the screen of the electronic device changes or when movement of the electronic device is detected.
17. An electronic device, characterized in that, The device includes one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store a computer program that, when executed by the one or more processors, causes the electronic device to perform the method as described in any one of claims 1-16.
18. A chip system applied to an electronic device, the chip system comprising one or more processors, characterized in that, The processor is configured to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 1-16.
19. A computer-readable storage medium comprising a computer program, characterized in that, When the computer program is run on an electronic device, it causes the electronic device to perform the method as described in any one of claims 1-16.