CN117812181A - Display screen switching method and electronic equipment - Google Patents

Display screen switching method and electronic equipment Download PDF

Info

Publication number
CN117812181A
CN117812181A CN202211209641.9A CN202211209641A CN117812181A CN 117812181 A CN117812181 A CN 117812181A CN 202211209641 A CN202211209641 A CN 202211209641A CN 117812181 A CN117812181 A CN 117812181A
Authority
CN
China
Prior art keywords
display screen
information
screen
hwc
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211209641.9A
Other languages
Chinese (zh)
Inventor
程垄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211209641.9A priority Critical patent/CN117812181A/en
Priority to PCT/CN2023/118950 priority patent/WO2024067149A1/en
Publication of CN117812181A publication Critical patent/CN117812181A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a display screen switching method and electronic equipment, wherein the method is applied to the electronic equipment, and the electronic equipment comprises a first display screen and a second display screen; the method comprises the following steps: when switching from a first display screen to a second display screen, controlling the first display screen to start a power-on flow; and before the lower current process of the first display screen is completed, controlling the second display screen to start the power-on process. The switching speed of the display screen can be improved.

Description

Display screen switching method and electronic equipment
Technical Field
The application relates to the technical field of display screen switching, in particular to a display screen switching method and electronic equipment.
Background
Currently, if 2 or more than 2 display screens are provided on an electronic device, the electronic device may need to switch the display screens during the interface display process. The display switching may include a process from on to off of one display and from off to on of the other display.
At present, the switching speed of the display screen is low, and the user experience is affected.
Disclosure of Invention
The application provides a display screen switching method and electronic equipment, which can improve the switching speed of a display screen.
In a first aspect, an embodiment of the present application provides a display screen switching method, where the method is applied to an electronic device, and the electronic device includes a first display screen and a second display screen; the method comprises the following steps: when switching from the first display screen to the second display screen, controlling the first display screen to start a power-on flow; and before the lower current process of the first display screen is completed, controlling the second display screen to start the power-on process. According to the method, after the first display screen is controlled to start the lower current process, and before the lower current process of the first display screen is finished, the second display screen is controlled to start the upper current process, so that the upper current process of the second display screen is started without waiting for the completion of the lower current process of the first display screen, the switching time from the first display screen to the second display screen is shortened, and the switching speed of the display screens is improved.
In one possible implementation manner, controlling the first display screen to start the power-down process includes: the HWC receives first information, wherein the first information is used for indicating power-down of a first display screen; in response to the first information, the HWC sends second information to the first display screen driver, the second information is used for indicating the first display screen driver to start a power-down flow of the first display screen, and the first display screen driver is used for driving the first display screen;
before the completion of the down-current process of the first display screen, the method comprises the following steps: before the HWC receives third information sent by the first display screen driver, the third information is sent after the first display screen driver finishes powering down the first display screen, and the third information is used for indicating that the first display screen is powered down to be finished to the HWC.
In one possible implementation, controlling the second display to start the current process includes: the HWC sends fourth information to the second display screen driver, the fourth information is used for indicating the second display screen driver to start a power-on flow of the second display screen, and the second display screen driver is used for driving the second display screen.
In one possible implementation, the first information is sent by a display manager to control the second display to start the current process, and further includes: the HWC responds to the first information and sends fifth information to the display screen manager, wherein the fifth information is used for indicating that the first display screen is powered down; the HWC receives a sixth message sent by the display manager, the sixth message being used to instruct the HWC to power up the second display.
In one possible implementation, the method further includes: the HWC receives seventh information sent by the second display screen driver, the seventh information is sent after the second display screen driver finishes powering up the second display screen, and the seventh information is used for indicating the completion of powering up the second display screen to the HWC; the HWC transmits eighth information to the display manager in response to the seventh information, the eighth information being used to indicate to the display manager that the second display is powered up.
In one possible implementation, the information transferred between the HWC and the display manager is forwarded through a surfacefeldger.
In one possible implementation, the method further includes: the HWC updates the state of the second display in the HWC to the powered-on state in response to the seventh information.
In one possible implementation, the method further includes: after the HWC receives the third information, the state of the first display screen in the HWC is updated to be the power-down state.
In one possible implementation, the electronic device is a foldable device; the first display screen is an inner screen of the foldable device, and the second display screen is an outer screen of the foldable device; the method further comprises the steps of: and when the folding angle of the electronic equipment is gradually changed from being greater than or equal to a first threshold value to being smaller than the first threshold value, determining to switch from the first display screen to the second display screen.
In one possible implementation, the electronic device is a foldable device; the first display screen is an outer screen of the foldable device, and the second display screen is an inner screen of the foldable device; the method further comprises the steps of: and when the folding angle of the electronic equipment is gradually changed from less than or equal to the second threshold value to more than the second threshold value, determining to switch from the first display screen to the second display screen.
In a second aspect, an embodiment of the present application provides an electronic device, including: a first display screen; a second display screen; a processor; a memory; and one or more computer programs, wherein the computer programs are stored in the memory and when executed by the processor cause the electronic device to perform the method of any of the first aspects.
In a third aspect, embodiments of the present application provide a computer-readable storage medium having a computer program stored therein, which when run on a computer, causes the computer to perform the method of any one of the first or second aspects.
In a fourth aspect, the present application provides a computer program for performing the method of any one of the first aspects when the computer program is executed by a computer.
In one possible design, the program in the fourth aspect may be stored in whole or in part on a storage medium packaged with the processor, or in part or in whole on a memory not packaged with the processor.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a software architecture of an electronic device according to an embodiment of the present application;
FIG. 3A is a schematic diagram of a folding process of a foldable device according to an embodiment of the present application;
FIG. 3B is a schematic view of the arrangement positions of the inner and outer screens on the foldable device according to the embodiment of the present application;
fig. 4 is a schematic flow chart of a display screen switching method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another structure of an electronic device according to an embodiment of the present application;
fig. 6 is another flow chart of a display screen switching method according to an embodiment of the present application based on the structure shown in fig. 5;
fig. 7A is a schematic diagram illustrating a folding process of a foldable mobile phone according to an embodiment of the present application;
fig. 7B is a schematic diagram illustrating an unfolding process of the foldable mobile phone according to an embodiment of the present application.
Detailed Description
The terminology used in the description section of the present application is for the purpose of describing particular embodiments of the present application only and is not intended to be limiting of the present application.
Taking the electronic equipment as the foldable equipment as an example, when the user uses the foldable equipment, the user can select the foldable equipment to be in a folded state or an unfolded state according to different use scenes, so that the user experience can be greatly improved.
Taking a foldable mobile phone provided with an inner screen and an outer screen as an example, the foldable mobile phone can trigger the switching of the display screen on the foldable mobile phone in the folding or unfolding process, specifically, the foldable mobile phone can switch the display screen of the display interface from the inner screen to the outer screen in the folding process, at the moment, the inner screen is switched from the bright screen to the off screen, the outer screen is switched from the off screen to the bright screen, the display screen of the display interface can be switched from the outer screen to the inner screen in the unfolding process, at the moment, the inner screen is switched from the off screen to the bright screen, and the outer screen is switched from the bright screen to the off screen.
In one example, the switching of the display screens is performed after the execution of the lower current process of one display screen, and the switching of the display screens is completed after the completion of the upper current process of the other display screen. However, in this example, there may be a large time interval from one display screen to another display screen being off and on, thereby affecting the user's experience.
The display screen switching method and the electronic device can improve the switching speed of the display screen.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application, as shown in fig. 1, an electronic device 100 may include: a processor 110, an internal memory 120, a display 130, a folding angle detecting section 140, and the like.
It should be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The electronic device 100 implements display functions through a GPU, a display screen 130, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 130 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 130 is used to display images, videos, and the like. The display 130 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, electronic device 100 may include 1 or N display screens 130, N being a positive integer greater than 1.
The internal memory 120 may be used to store computer executable program code including instructions. The internal memory 120 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 120 may include a high-speed random access memory, and may also include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 120 and/or instructions stored in a memory provided in the processor.
A folding angle detecting section 140 for detecting a folding angle of the electronic device. Alternatively, the folding angle detecting part 140 may be implemented by an angle detecting sensor.
Fig. 2 is a block diagram of a software structure of an electronic device according to an embodiment of the present application. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In the embodiment of the application, an Android (Android) system is taken as an example, and a software structure of an electronic device of the Android system is described. In some embodiments, the Android system is divided into five layers, from top to bottom, an application layer, an application framework layer (also called a system framework layer), a system library and Android runtime layer, a hardware abstraction layer (hardware abstraction layer, HAL), and a kernel layer, respectively.
The application layer may include several applications (hereinafter simply referred to as applications), such as cameras, gallery, calendars, WLANs, etc.
The application framework layer provides an application programming interface (Application Programming Interface, API) and programming framework for applications of the application layer, including various components and services to support the android development of the developer. The application framework layer also includes some predefined functions. In an embodiment of the present application, the application framework layer may include: display manager, layer assembler (SurfaceFlinger), etc.
The display screen manager is used for managing the display screen.
The surface eFlinger is used for synthesizing a Layer (Layer) needing GPU processing, and sending the synthesized Layer and the Layer needing HWC processing to the HWC.
The system library and Android Runtime layer includes a system library and an Android Runtime (Android run). The system library may include a plurality of functional modules. For example: surface manager, two-dimensional graphics engine, three-dimensional graphics processing library (e.g., openGL ES), etc. The two-dimensional graphic engine is used for realizing two-dimensional graphic drawing, image rendering, synthesis, layer processing and the like; the three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like. The android running process is responsible for scheduling and managing an android system and specifically comprises a core library and a virtual machine. The core library comprises two parts: one part is a function required to be called by java language, and the other part is a core library of android; the virtual machine is used for running Android applications developed by using java language.
The HAL layer is an interface layer between the operating system kernel and the hardware circuitry. HAL layers include, but are not limited to: hardware synthesizer (HWC). The HWC is used for synthesizing the layers and providing hardware support for the SurfaceFlinger service.
The kernel layer is a layer between hardware and software. The kernel layer may include: display screen driving, folding angle detection driving, and the like. The display screen drive is used to drive the display screen. The HWC may instruct the display driver to power up or power down the display. For example, the HWC may send a blank command to the display driver to indicate that the display is powered down or an unblank command to indicate that the display is powered down. The folding angle detection drive is used for driving the folding angle detection component.
In the following embodiments, a method for switching a display screen according to the embodiments of the present application will be described in detail with reference to a software structure of the electronic device.
The display screen switching method can be applied to electronic equipment provided with at least 2 display screens. The electronic device may be, for example, a foldable device provided with at least 2 display screens, such as a foldable mobile phone provided with an inner screen and an outer screen.
In one embodiment, as shown in fig. 3A, the foldable device may include a first part 101 and a second part 102, the first part 101 and the second part 102 being connected by a folding part 100, and the folding part 100 may support the first part 101 and the second part 102 to be folded or unfolded about the folding part 100. Based on the folding angle θ of the first member 101 and the second member 102, the foldable apparatus is divided into three states, in other words, the positional relationship of the first member 101 and the second member 102 can be divided into three states, respectively:
a fully unfolded state in which the folding angle θ of the first member 101 and the second member 102 is 180 degrees;
an incompletely folded state in which the folding angle θ of the first member 101 and the second member 102 is less than 180 degrees and greater than 0 degrees;
in the fully folded state, the folding angle θ of the first member 101 and the second member 102 is 0 degrees.
The surface of the foldable device may be divided into an outer surface and an inner surface based on whether the user is visible when the foldable device is in the fully folded state. The outer surface refers to a surface that is viewable by a user of the foldable device in the fully folded state, and may include a front, a back, and a side that are viewable by the user of the foldable device in the fully folded state, in terms of viewing and use by the user. The inner surface refers to a surface that is not visible to a user when the foldable device is in a fully folded state. The front, back and side surfaces described above may be considered to be the front, back and side surfaces from the perspective of a user's view and use.
Wherein the inner surface of the foldable device may comprise: a first surface of the first part 101 and a second surface of the second part 102. The first surface of the first part 101 is a surface of the foldable device that is not visible to a user in the surface of the first part 101 in the fully folded state and the second surface of the second part 102 is a surface of the foldable device that is not visible to a user in the surface of the second part 102 in the fully folded state.
Take the example of a foldable device provided with 2 display screens.
The outer surface of the foldable device may be provided with a display screen, called the outer screen, and the inner surface of the foldable device may be provided with a display screen, called the inner screen.
The outer screen may be a foldable screen or a non-foldable screen. The location of the outer screen on the outer surface is not limited in this embodiment. For example, the number of the cells to be processed,
if the outer screen is a non-foldable screen, the outer screen may be disposed on the front or back of the foldable device in a fully folded state;
if the outer screen is a foldable screen, the outer screen may be disposed on the front and back of the foldable device in a fully folded state, such that the outer screen folds or unfolds with the folding or unfolding of the first and second members 101, 102.
The inner screen may be a foldable screen or a non-foldable screen. The location of the placement of the inner screen on the inner surface is not limited in this embodiment. For example, the number of the cells to be processed,
if the inner screen is a non-foldable screen, the inner screen may be disposed on a first surface of the first component 101 or may be disposed on a second surface of the second component 102;
if the inner screen is a foldable screen, the inner screen may be disposed on the first surface of the first member 101 and the second surface of the second member 102 such that as the first member 101 and the second member 102 are folded or unfolded, the inner screen is folded or unfolded.
For example, in the foldable device shown in fig. 3B, the outer screen 1011 of the foldable device is provided on the front surface of the foldable device in the fully folded state, the inner screen 1021 is a foldable screen, and is provided on the first surface of the first member 101 and the second surface of the second member 102, and as the first member 101 and the second member 102 are folded or unfolded about the folding member 100, the inner screen 1021 is folded or unfolded accordingly. In some embodiments, the foldable device shown in fig. 3B may be a foldable cellular phone.
The dimensions of the outer screen 1011 and the inner screen 1021 are not limited in the embodiment of the present application.
It should be noted that, in the above embodiment, the electronic device includes 2 display screens as an example, and in other embodiments of the present application, the electronic device, for example, the foldable device, may further include display screens other than the external screen and the internal screen, which is not limited in the embodiments of the present application.
In the embodiment of the present application, a foldable device including an outer screen and an inner screen is illustrated in fig. 3B as an example.
Fig. 4 is a schematic flow chart of a display screen switching method according to an embodiment of the present application, which may be applicable to an electronic device including 2 or more display screens provided in an embodiment of the present application, for example, the above-mentioned foldable device shown in fig. 3A and fig. 3B, etc.
In fig. 4 it is assumed that the electronic device comprises a first display screen and a second display screen. The first display screen may be the external screen or the internal screen described above, and the second display screen may be the internal screen if the first display screen is the external screen, and the second display screen may be the external screen if the first display screen is the internal screen.
As shown in fig. 4, the method may include:
step 401: when switching from the first display screen to the second display screen, controlling the first display screen to start a power-on flow;
step 402: and before the lower current process of the first display screen is completed, controlling the second display screen to start the power-on process.
Alternatively, steps 401 and 402 described above may be performed by a HWC in an electronic device.
In the display screen switching method shown in fig. 4, after the first display screen is controlled to start the down current process, the second display screen is controlled to start the power-on process before the down current process of the first display screen is completed, so that the second display screen is controlled to start the power-on process without waiting for the completion of the down current process of the first display screen, thereby shortening the switching time from the first display screen to the second display screen and improving the switching speed of the display screens.
Fig. 5 is a schematic structural diagram of another embodiment of an electronic device according to the present application, where the electronic device is a foldable mobile phone including an inner screen and an outer screen shown in fig. 3B, and the structure of the electronic device may be used to implement the display screen switching method shown in fig. 4. As shown in fig. 5, includes:
and the display screen manager is used for managing the display screen for displaying the user interface based on the folding angle and the like of the electronic equipment.
Surfaceflinger for layer synthesis.
And HWC, which is used for carrying out layer merging according to the display screen of the display user interface.
And the inner screen drive is used for driving the inner screen.
And the outer screen drive is used for driving the outer screen.
And a folding angle detection drive for driving the folding angle detection means.
The display manager and Surfacefling may be provided at an application framework layer of the electronic device. The HWC may be disposed in a HAL layer of the electronic device, and the inner screen driver, the outer screen driver, and the fold angle detection driver may be disposed in a kernel layer of the electronic device.
It should be noted that the structure shown in fig. 5 is merely an example, and in other embodiments provided in the present application, modules in the above structure may be combined or split, or a layer where the modules are located may also be adaptively adjusted based on a software structure of the electronic device, or the like.
The implementation of the display screen switching method shown in fig. 4 is exemplarily described below based on the electronic device structure shown in fig. 5.
Fig. 6 is a schematic flow chart of another display screen switching method according to an embodiment of the present application, where the electronic device is a foldable mobile phone, and the foldable mobile phone includes an inner screen and an outer screen.
Step 601: the display screen manager receives the detection data of the folding angle, which is sent by the angle detection component drive.
The angle detection component driver may periodically send the detected folding angle to the display manager, and the specific value of the period is not limited in the embodiments of the present application.
It should be noted that, the smaller the period value, the higher the accuracy of the angle detection component driving for detecting the folding angle, and correspondingly, the more accurate the display screen manager determines the trigger timing of the subsequent display screen switching.
Step 602: and the display screen manager determines that the first switching condition of the display screen from the inner screen to the outer screen is met according to the detection data of the folding angle, and determines that the display screen is switched from the inner screen to the outer screen.
Alternatively, the switching of the display screen may be triggered during folding or unfolding of the electronic device.
For the folding process of the electronic device, as shown in fig. 7A, when the electronic device is in a fully unfolded state, the first component and the second component move towards each other, and the folding angle gradually decreases from 180 degrees until finally decreasing to 0 degrees, and the electronic device becomes the fully folded state, in this folding process, the display screen may be switched from the inner screen to the outer screen, that is, the inner screen is powered down, and the outer screen is powered up, specifically, a first angle threshold θ1 may be preset, in the folding process, when the folding angle changes from greater than or equal to θ1 to less than θ1, that is, when the folding angle changes from 180 degrees to the folding angle θ1 shown in the middle drawing in fig. 7A, and then continues to fold, the display screen is triggered to switch from the inner screen to the outer screen, where in this implementation, the first switching condition is that the folding angle changes from greater than or equal to θ1 to less than θ1.
For the unfolding process of the electronic device, as shown in fig. 7B, when the electronic device is in a fully folded state, the first component and the second component move away, the folding angle gradually increases from 0 degrees until finally increasing to 180 degrees, and the electronic device becomes the fully unfolded state, in this unfolding process, the display screen can be switched from the outer screen to the inner screen, that is, the outer screen is powered down, and the inner screen is powered on, specifically, a second angle threshold θ2 can be preset, in the unfolding process, when the folding angle is changed from θ2 to be greater than θ2, that is, when the folding angle is unfolded from 0 degrees to θ2 shown in the middle drawing in fig. 7B, and then folding is continued, the display screen is triggered to be switched from the outer screen to the inner screen, and in this implementation, the second switching condition for switching from the outer screen to the inner screen is that the folding angle is changed from θ2 to be greater than θ2.
Wherein θ1 and θ2 may be equal or unequal, and the embodiments of the present application are not limited.
Step 603: the display screen manager sends first indication information to the surfaefolinger, wherein the first indication information is used for indicating the power-down of the inner screen.
Step 604: the Surfaceflinger sends second indication information to the HWC, wherein the second indication information is used for indicating the power-down of the inner screen.
Step 605: the HWC sends a third indication message to the inner screen driver, where the third indication message is used to instruct the inner screen driver to power down the inner screen, and step 606 is executed; the HWC sends first feedback information to the surfaefolinger, where the first feedback information is used to indicate to the surfaefolinger that the on-screen power down is complete, and step 608 is performed.
The third indication information may be a blank command, for example.
In other embodiments, after the HWC sends the third indication information to the inner screen driver, after the inner screen driver needs to wait for the inner screen driver to complete the inner screen power down process, the HWC feeds back the second feedback information to instruct the inner screen driver to complete the inner screen power down process, and after the HWC receives the second feedback information, the HWC sends the first feedback information to the surfaefolinger, in the embodiment shown in fig. 6, after the HWC receives the third indication information, the HWC can send the first feedback information to the surfaefolinger, so that compared with the other embodiments, in the step, before the HWC receives the second feedback information fed back by the inner screen driver, the HWC can send the first feedback information to the surfaefolinger, thereby saving the time that the HWC waits for the inner screen driver to control the inner screen to execute the power down process and send the first feedback information to the HWC, shortening the time that the inner screen power down process and the outer screen power up process, and also shortening the display screen switching time and improving the display screen switching speed.
Optionally, a thread may be preset and used to send feedback information that the power-down of the display screen is completed to the Surfaceflinger, and in this step, the HWC may call the thread and send the first feedback information to the Surfaceflinger through the thread.
The execution sequence between the steps of the HWC sending the third indication information to the internal screen driver and the HWC sending the first feedback information to the Surfaceflinger is not limited in the embodiment of the present application, as long as the step of the HWC sending the first feedback information to the Surfaceflinger is executed before the HWC receives the second feedback information sent by the internal screen driver.
Optionally, after the HWC receives the second instruction information, the HWC may directly send the first feedback information to the surfaefolinger without waiting, so as to reduce the time for the HWC to wait for the internal screen to drive and control the internal screen to execute the power-down flow and send the first feedback information to the HWC, and shorten the switching time of the display screen.
Step 606: the inner screen drive starts the power-down flow of the inner screen, after the power-down flow is executed, the second feedback information is sent to the HWC, the second feedback information is used for indicating the completion of the power-down flow of the inner screen to the HWC, and step 607 is executed;
the display screen driving controls the powering up and powering down of the display screen to have corresponding processes, and different display screens may have different powering up and powering down processes, for example, the powering down process of the display screen driving may include: the backlight IC power-down, bias IC power-down, MIPI power-down, display panel (e.g., LCD) power-down, etc., the display screen power-down process is completed,
for example, the process of controlling power down of the internal screen by the internal screen driver may include, but is not limited to: the backlight IC is powered down, the bias IC is powered down, the MIPI is powered down, the LCD is powered down, etc. are sequentially performed.
Step 607: the HWC updates the internal screen to be in a power-down state, and the branching flow is ended.
The HWC may store the power-on and power-off states of the display screens, and may specifically be implemented by setting corresponding power-on and power-off state parameters for each display screen, where different parameter values of the power-on and power-off state parameters may respectively identify that the display screen is in a power-on state (for example, the parameter value is 0) or a power-off state (for example, the parameter value is 1).
For example, before the HWC receives the second feedback information, the power on/off state parameters of the display screen in the HWC may be: an inner screen: 0, outer screen: 1, a step of; after receiving the second feedback information, the up-down electrical state parameters of the display screen in the HWC may be: an inner screen: 1, outer screen: 1.
step 608: the surfaefolinger updates the internal screen to be in a power-down state, and sends third feedback information to the display screen manager, wherein the third feedback information is used for indicating that the power-down of the internal screen is completed to the display screen manager.
The power-on and power-off state of the display screen can be stored in the surfaefolinger, specifically, the power-on and power-off state can be realized by setting corresponding power-on and power-off state parameters for each display screen, and different parameter values are used for identifying whether the display screen is in the power-on state (for example, the parameter value is 0) or the power-off state (for example, the parameter value is 1).
For example, before the third feedback information is received, the power on and power off state parameters of the display screen in the surfacefelder may be: an inner screen: 0, outer screen: 1, a step of; after receiving the third feedback information, the up-down electric state parameters of the display screen in the surfaefolinger may be: an inner screen: 1, outer screen: 1.
step 609: the display screen manager sends fourth indication information to the surfaefolinger, wherein the fourth indication information is used for indicating the power-on of the external screen.
Step 610: the Surfaceflinger sends fifth indication information to the HWC, the fifth indication information being used to indicate that the external screen is powered on.
Step 611: the HWC sends sixth indication information to the external screen driver, wherein the sixth indication information is used for indicating the external screen driver to power on the external screen.
Step 612: the external screen drive starts the external screen power-on flow, and after the power-on flow is completed, fourth feedback information is sent to the HWC, and the fourth feedback information is used for indicating that the external screen power-on is completed to the HWC.
Step 613: the HWC updates the external screen to be in a power-on state, and sends fifth feedback information to the surfaefolinger, wherein the fifth feedback information is used for indicating that the power-on of the external screen is completed to the surfaefolinger.
For example, before the HWC receives the fifth feedback information, the power on/off state parameters of the display screen in the HWC may be: an inner screen: 1, outer screen: 1, a step of; after receiving the fifth feedback information, the up-down electrical state parameters of the display screen in the HWC may be: an inner screen: 1, outer screen: 0.
step 614: the external screen is updated to be in a power-on state by the surfeflinger, and sixth feedback information is sent to the display screen manager and used for indicating that power-on of the external screen is completed to the display screen manager.
For example, before the sixth feedback information is received, the power on and power off state parameters of the display screen in the Surfaceflinger may be: an inner screen: 1, outer screen: 1, a step of; after receiving the sixth feedback information, the up-down electrical state parameters of the display screen in the Surfaceflinger may be: an inner screen: 1, outer screen: 0.
to this end, the switching from the inner screen to the outer screen triggered by the display screen manager is completed.
The embodiment of the application also provides electronic equipment, which comprises a first display screen, a second display screen, a processor and a memory, wherein the processor is used for executing the method provided by any embodiment of the application.
The embodiment of the application also provides an electronic device, which comprises a storage medium and a central processing unit, wherein the storage medium can be a nonvolatile storage medium, a computer executable program is stored in the storage medium, and the central processing unit is connected with the nonvolatile storage medium and executes the computer executable program to realize the method provided by any embodiment of the application.
Embodiments of the present application also provide a computer-readable storage medium having a computer program stored therein, which when run on a computer, causes the computer to perform the method provided by any of the embodiments of the present application.
Embodiments of the present application also provide a computer program product comprising a computer program which, when run on a computer, causes the computer to perform the method provided by any of the embodiments shown in the present application.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relation of association objects, and indicates that there may be three kinds of relations, for example, a and/or B, and may indicate that a alone exists, a and B together, and B alone exists. Wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of the following" and the like means any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, wherein a, b and c can be single or multiple.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in the embodiments disclosed herein can be implemented as a combination of electronic hardware, computer software, and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In several embodiments provided herein, any of the functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (hereinafter referred to as ROM), a random access Memory (Random Access Memory) and various media capable of storing program codes such as a magnetic disk or an optical disk.
The foregoing is merely specific embodiments of the present application, and any changes or substitutions that may be easily contemplated by those skilled in the art within the technical scope of the present application are intended to be included in the scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. The display screen switching method is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a first display screen and a second display screen; the method comprises the following steps:
when switching from a first display screen to a second display screen, controlling the first display screen to start a power-on flow;
and before the lower current process of the first display screen is completed, controlling the second display screen to start the power-on process.
2. The method of claim 1, wherein controlling the first display to initiate a power down procedure comprises:
the HWC receives first information, wherein the first information is used for indicating the first display screen to be powered down;
responding to the first information, the HWC sends second information to a first display screen driver, wherein the second information is used for indicating the first display screen driver to start a power-down flow of the first display screen, and the first display screen driver is used for driving the first display screen;
before the completion of the down current process of the first display screen, the method comprises the following steps:
before the HWC receives third information sent by the first display screen driver, the third information is sent after the first display screen is powered down by the first display screen driver, and the third information is used for indicating the first display screen to be powered down to be completed to the HWC.
3. The method of claim 2, wherein controlling the second display to initiate an up current process comprises:
the HWC sends fourth information to a second display screen driver, the fourth information is used for indicating the second display screen driver to start an upper current process of the second display screen, and the second display screen driver is used for driving the second display screen.
4. The method of claim 3, wherein the first information is sent by a display manager, the controlling the second display to initiate an up-current pass, further comprising:
the HWC responds to the first information and sends fifth information to the display screen manager, wherein the fifth information is used for indicating that the first display screen is powered down;
and the HWC receives sixth information sent by the display screen manager, wherein the sixth information is used for indicating the HWC to power on the second display screen.
5. The method according to claim 4, wherein the method further comprises:
the HWC receives seventh information sent by the second display screen driver, the seventh information is sent after the second display screen is powered on by the second display screen driver, and the seventh information is used for indicating the completion of the second display screen power on to the HWC;
and the HWC responds to the seventh information and sends eighth information to the display screen manager, wherein the eighth information is used for indicating the second display screen to be powered on to be completed to the display screen manager.
6. The method of claim 4 or 5, wherein information transferred between the HWC and the display manager is forwarded by a Surfaceflinger.
7. The method of claim 5, wherein the method further comprises:
and the HWC responds to the seventh information, and the state of the second display screen in the HWC is updated to be a power-on state.
8. The method according to any one of claims 2 to 5, further comprising:
and after the HWC receives the third information, updating the state of the first display screen in the HWC to be a power-down state.
9. The method of any one of claims 1 to 8, wherein the electronic device is a foldable device; the first display screen is an inner screen of the foldable device, and the second display screen is an outer screen of the foldable device; the method further comprises the steps of:
and when the folding angle of the electronic equipment is gradually changed from a first threshold value to a second threshold value, determining to switch from the first display screen to the second display screen.
10. The method of any one of claims 1 to 8, wherein the electronic device is a foldable device; the first display screen is an outer screen of the foldable device, and the second display screen is an inner screen of the foldable device; the method further comprises the steps of:
and when the folding angle of the electronic equipment is gradually changed from less than or equal to a second threshold value to more than the second threshold value, determining to switch from the first display screen to the second display screen.
11. An electronic device, comprising: a first display screen; a second display screen; a processor; a memory; and one or more computer programs, wherein the computer programs are stored in the memory, which when executed by the processor, cause the electronic device to perform the method of any of claims 1-10.
12. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to perform the method of any of claims 1 to 10.
CN202211209641.9A 2022-09-30 2022-09-30 Display screen switching method and electronic equipment Pending CN117812181A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211209641.9A CN117812181A (en) 2022-09-30 2022-09-30 Display screen switching method and electronic equipment
PCT/CN2023/118950 WO2024067149A1 (en) 2022-09-30 2023-09-15 Display screen switching method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211209641.9A CN117812181A (en) 2022-09-30 2022-09-30 Display screen switching method and electronic equipment

Publications (1)

Publication Number Publication Date
CN117812181A true CN117812181A (en) 2024-04-02

Family

ID=90420461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211209641.9A Pending CN117812181A (en) 2022-09-30 2022-09-30 Display screen switching method and electronic equipment

Country Status (2)

Country Link
CN (1) CN117812181A (en)
WO (1) WO2024067149A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144441B (en) * 2018-06-29 2021-07-20 努比亚技术有限公司 Screen adjusting method, terminal and computer readable storage medium
CN110134471B (en) * 2019-04-01 2022-09-06 徐州视达坦诚文化发展有限公司 Screen switching animation control method, terminal and computer readable storage medium
KR102639610B1 (en) * 2019-08-30 2024-02-23 엘지전자 주식회사 Mobile terminal, electronic device equipped with mobile terminal, and method of controlling the electronic device
CN114257671B (en) * 2022-02-28 2022-07-19 荣耀终端有限公司 Image display method and electronic equipment

Also Published As

Publication number Publication date
WO2024067149A1 (en) 2024-04-04

Similar Documents

Publication Publication Date Title
US20210335325A1 (en) Apparatus and method for driving display based on frequency operation cycle set differently according to frequency
CN108292491B (en) Display device and control method thereof
US20220130308A1 (en) Method for controlling display and electronic device supporting the same
US10275012B2 (en) Operating method for display corresponding to luminance, driving circuit, and electronic device supporting the same
CN108369793B (en) Display module, display device, control method thereof, and recording medium
US11158290B2 (en) Electronic device and method of controlling the same
US20110090234A1 (en) Apparatus and method for control of multiple displays from a single virtual frame buffer
US20220044607A1 (en) Method for reducing deterioration of display of electronic device, and foldable electronic device using method
CN111937063A (en) Electronic device and method for controlling output timing of signal
US7308565B2 (en) Saving/restoring task state data from/to device controller host interface upon command from host processor to handle task interruptions
CN110020300B (en) Browser page synthesis method and terminal
US20230178001A1 (en) Electronic device and method for quickly updating partial region of screen
KR20210101684A (en) Electronic device for providing execution screen of application and method for operating thereof
US11651750B2 (en) Foldable electronic device and multi-window operation method using same
US11611708B2 (en) Apparatus for stabilizing digital image, operating method thereof, and electronic device having the same
JP2008060815A (en) Portable electronic apparatus, image data output device, and program
CN108984259B (en) Interface display method and device and terminal
US20200402445A1 (en) Software Based Partial Display Dimming
KR20190134370A (en) Electronic device and method for displaying content of application through display
CN109710352B (en) Display method and device of boot animation
CN117812181A (en) Display screen switching method and electronic equipment
CN115079854B (en) State switching method, device, electronic equipment and storage medium
JP2006171274A (en) Application drawing terminal, method for displaying application drawing and application drawing program
CN111512357A (en) Electronic device and method for moving content display position based on coordinate information stored in display driving circuit
CN112925654B (en) Picture decoding method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination