WO2022257451A1 - 一种显示方法、电子设备及计算机存储介质 - Google Patents

一种显示方法、电子设备及计算机存储介质 Download PDF

Info

Publication number
WO2022257451A1
WO2022257451A1 PCT/CN2022/071281 CN2022071281W WO2022257451A1 WO 2022257451 A1 WO2022257451 A1 WO 2022257451A1 CN 2022071281 W CN2022071281 W CN 2022071281W WO 2022257451 A1 WO2022257451 A1 WO 2022257451A1
Authority
WO
WIPO (PCT)
Prior art keywords
refresh rate
electronic device
software
hardware
screen
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.)
Ceased
Application number
PCT/CN2022/071281
Other languages
English (en)
French (fr)
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 EP22819059.1A priority Critical patent/EP4220392B1/en
Priority to US18/249,625 priority patent/US12020620B2/en
Publication of WO2022257451A1 publication Critical patent/WO2022257451A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04166Details of scanning methods, e.g. sampling time, grouping of sub areas or time sharing with display driving
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0489Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using dedicated keyboard keys or combinations thereof
    • G06F3/04897Special input arrangements or commands for improving display capability
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0247Flicker reduction other than flicker reduction circuits used for single beam cathode-ray tubes
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0606Manual adjustment
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2330/00Aspects of power supply; Aspects of display protection and defect management
    • G09G2330/02Details of power systems and of start or stop of display operation
    • G09G2330/021Power management, e.g. power saving
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0407Resolution change, inclusive of the use of different resolutions for different screen areas
    • G09G2340/0435Change or adaptation of the frame rate of the video stream
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2354/00Aspects of interface with display user
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2360/00Aspects of the architecture of display systems
    • G09G2360/14Detecting light within display terminals, e.g. using a single or a plurality of photosensors
    • G09G2360/144Detecting light within display terminals, e.g. using a single or a plurality of photosensors the light being ambient light
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/22Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of characters or indicia using display control signals derived from coded signals representing the characters or indicia, e.g. with a character-code memory
    • G09G5/30Control of display attribute

Definitions

  • the present application relates to the technical field of terminal display, and in particular to a display method, electronic equipment and computer storage medium.
  • the display refresh rate supported by electronic devices is constantly increasing.
  • electronic devices can support higher refresh rates through liquid crystal displays (LCDs) or organic light-emitting diodes (OLEDs).
  • LCDs liquid crystal displays
  • OLEDs organic light-emitting diodes
  • the refresh rate increases, the energy consumption of electronic equipment will also increase.
  • the electronic device when a user views text content through an electronic device, the electronic device can work in an environment with a low refresh rate; when a user plays a game through the electronic device, the electronic device can work in an environment with a high refresh rate.
  • the electronic device when switching between different refresh rates, the user will obviously feel the change of the screen brightness of the electronic device.
  • the present application provides a display method, an electronic device and a computer storage medium, which can reduce the flickering and highlighting phenomenon of the screen.
  • the present application provides a display method, including: an electronic device acquires a first parameter, the first parameter includes ambient light brightness and/or screen brightness; the electronic device determines whether to start the display based on the first parameter
  • Software refresh rate adjustment function the software refresh rate adjustment function is the function of adjusting the software refresh rate and hardware refresh rate respectively; the electronic device receives the first operation, and the first operation is that the electronic device starts the software refresh rate
  • the touch operation received under the condition of adjusting the function; the electronic device adjusts the hardware refresh rate and/or software refresh rate based on the first operation and the current hardware refresh rate and/or software refresh rate; if the The software refresh rate is a high refresh rate, and when the electronic device does not detect a touch operation within a first period of time, the software refresh rate is switched from a high refresh rate to a low refresh rate.
  • the first operation may be an operation of the user touching the screen (for example, clicking, sliding, etc.), may also be an operation of starting or switching an application, and may also be an operation of setting a refresh rate of the screen.
  • the refresh rate is relative, and the high refresh rate is higher than the corresponding low refresh rate.
  • the electronic device switches the hardware refresh rate from a low refresh rate to a high refresh rate, that is, it can be understood that the electronic device cuts (increases or increases) the hardware refresh rate.
  • the electronic device switches the hardware refresh rate from a high refresh rate to a low refresh rate, that is, it can be understood that the electronic device cuts down (reduces or lowers) the hardware refresh rate.
  • the switching of the software refresh rate is the same, so I won’t repeat it.
  • the hardware refresh rate when the electronic device enables the software refresh rate adjustment function, the hardware refresh rate can be cut to a higher level in advance, and when the refresh rate needs to be switched later, the software refresh rate can be directly switched, thereby reducing the hardware refresh rate. switching, thereby reducing the number of screen flashes of the electronic device, thereby improving user experience.
  • the electronic device does not enable the software refresh rate adjustment function.
  • the hardware refresh rate and software refresh rate can be switched at the same time; when the software refresh rate adjustment function is enabled, the software refresh rate can be switched instead of maintaining a high refresh rate all the time. Therefore, while improving user experience, electronic devices can also reduce power Consumption, save energy.
  • the electronic device determining whether to enable the software refresh rate adjustment function based on the first parameter includes: when the electronic device detects that the brightness of the ambient light is less than or equal to a first threshold, and /or, when it is detected that the brightness of the screen is less than or equal to the second threshold, it is determined to start the software refresh rate adjustment function.
  • the electronic device can determine whether the light in which it is located is relatively dark, and/or whether the screen brightness is relatively dark, according to the ambient light conditions and the screen brightness conditions, which is beneficial for the electronic device to adapt to different ambient light conditions and screen brightness conditions. and/or screen brightness enables software refresh rate adjustments, which can reduce flickering when switching hardware refresh rates due to ambient light and/or darker screens.
  • the electronic device when the first operation is the first operation received for the first time after the software refresh rate adjustment function is enabled, the electronic device based on the first operation and the current hardware refresh rate and/or Or in the case of a software refresh rate, adjusting the hardware refresh rate and/or software refresh rate includes: when the hardware refresh rate before enabling the software refresh rate adjustment function is a low refresh rate, in response to the first operation, the The electronic device switches the hardware refresh rate from a low refresh rate to a high refresh rate.
  • the electronic device when the hardware refresh rate is low before the software refresh rate adjustment function is enabled, and the electronic device detects the user's touch operation for the first time after the software refresh rate adjustment function is enabled, the electronic device can switch to a higher hardware refresh rate.
  • Refresh rate in this way, after the software refresh rate adjustment function is enabled, the switching refresh rate can be satisfied by switching the software refresh rate, reducing the number of switching hardware refresh rates, thereby reducing the occurrence of splash screens and improving user experience.
  • the first operation is an operation of starting or switching an application
  • the electronic device includes multiple applications and refresh rates corresponding to the multiple applications
  • the electronic device is based on the first
  • adjusting the hardware refresh rate and/or software refresh rate includes: when the first operation acts on an application with a low refresh rate, and the current hardware refresh rate For a high refresh rate, when the software refresh rate is high, in response to the first operation, the electronic device switches the software refresh rate from a high refresh rate to a low refresh rate.
  • the electronic device after the electronic device enables the function of invoking the software refresh rate, when the electronic device receives the user's operation of starting or switching applications, the electronic device can adjust the refresh rate by switching the software refresh rate, thereby avoiding the flickering situation. appears to improve user experience.
  • the first operation is an operation of starting or switching an application
  • the electronic device includes multiple applications and refresh rates corresponding to the multiple applications
  • the electronic device is based on the first
  • adjusting the hardware refresh rate and/or software refresh rate includes: when the first operation acts on an application with a high refresh rate, and the current hardware refresh rate For a high refresh rate, when the software refresh rate is low, in response to the first operation, the electronic device switches the software refresh rate from a low refresh rate to a high refresh rate.
  • the electronic device after the electronic device enables the function of invoking the software refresh rate, when the electronic device receives the user's operation of starting or switching applications, the electronic device can adjust the refresh rate by switching the software refresh rate, thereby avoiding the flickering situation. appears to improve user experience.
  • the first operation is an operation of setting the refresh rate of the screen to a high refresh rate
  • the electronic device is based on the first operation and the current hardware refresh rate and/or software refresh rate.
  • adjusting the hardware refresh rate and/or software refresh rate includes: when the current hardware refresh rate is a high refresh rate and the software refresh rate is a low refresh rate, in response to the first operation, the electronic device will The above software refresh rate switches from low refresh rate to high refresh rate.
  • the electronic device when the electronic device receives the operation of setting the refresh rate, the electronic device can adjust the refresh rate by switching the software refresh rate, thereby avoiding the occurrence of the flickering screen and improving user experience.
  • the first operation is an operation of setting the refresh rate of the screen to a low refresh rate
  • the electronic device is based on the first operation and the current hardware refresh rate and/or software refresh rate.
  • adjusting the hardware refresh rate and/or software refresh rate includes: when the current hardware refresh rate is a high refresh rate and the software refresh rate is a high refresh rate, in response to the first operation, the electronic device will The above software refresh rate switches from high refresh rate to low refresh rate.
  • the electronic device when the electronic device receives the operation of setting the refresh rate, the electronic device can adjust the refresh rate by switching the software refresh rate, thereby avoiding the occurrence of the flickering screen and improving user experience.
  • the method further includes: the electronic device receives a second operation when the software refresh rate adjustment function is activated, the second operation is a non-first touch operation; the electronic device based on the A second operation switches the software refresh rate from a low refresh rate to a high refresh rate.
  • the electronic device can increase the software refresh rate according to user operations, and can reduce the software refresh rate when no touch operation is received for a period of time.
  • the software refresh rate can be increased.
  • the electronic device can switch the refresh rate only by adjusting the refresh rate of the software, thereby not only reducing the number of screen flashes, but also saving energy.
  • the stepping up the hardware refresh rate includes: when the first operation of the electronic device is When the first touch operation under the specific condition and the switching times of the hardware refresh rate within the second period of time are less than a third threshold, the hardware refresh rate is cut high.
  • the software refresh rate adjustment function when the software refresh rate adjustment function is enabled, the user will obviously experience frequent flickering when the hardware refresh rate is frequently switched. Therefore, the number of times to switch the hardware refresh rate can be limited within a certain period of time, thereby It can reduce the number of splash screens and improve user experience.
  • the switched software refresh rate is 1/N of the hardware refresh rate, where N is a positive integer.
  • the present application provides an electronic device, including: a display screen, one or more processors, and one or more memories, wherein: the processor is configured to obtain a first parameter, and the first parameter Including ambient light brightness and/or screen brightness; the processor is further configured to determine whether to enable the software refresh rate adjustment function based on the first parameter, and the software refresh rate adjustment function is to adjust the software refresh rate and the hardware refresh rate respectively function; the processor is also used to receive a first operation, the first operation is a touch operation received by the electronic device when the software refresh rate adjustment function is activated; the processor is also used to Based on the first operation and the current hardware refresh rate and/or software refresh rate, adjust the hardware refresh rate and/or software refresh rate; the processor is also configured to refresh if the software refresh rate is high rate, and when the electronic device detects no touch operation within the first time period, switch the software refresh rate from a high refresh rate to a low refresh rate.
  • the processor is configured to obtain a first parameter, and the first parameter Including ambient light brightness and/or screen brightness
  • the first operation may be an operation of the user touching the screen (for example, clicking, sliding, etc.), may also be an operation of starting or switching an application, and may also be an operation of setting a refresh rate of the screen.
  • the refresh rate is relative, the high refresh rate is higher than the corresponding low refresh rate.
  • the electronic device switches the hardware refresh rate from a low refresh rate to a high refresh rate, that is, it can be understood that the electronic device cuts (increases or increases) the hardware refresh rate.
  • the electronic device switches the hardware refresh rate from a high refresh rate to a low refresh rate, that is, it can be understood that the electronic device cuts down (reduces or lowers) the hardware refresh rate.
  • the switching of the software refresh rate is the same, so I won’t repeat it.
  • the hardware refresh rate when the electronic device enables the software refresh rate adjustment function, the hardware refresh rate can be cut to a higher level in advance, and when the refresh rate needs to be switched later, the software refresh rate can be directly switched, thereby reducing the hardware refresh rate. switching, thereby reducing the number of screen flashes of the electronic device, thereby improving user experience.
  • the electronic device does not enable the software refresh rate adjustment function.
  • the hardware refresh rate and software refresh rate can be switched at the same time; when the software refresh rate adjustment function is enabled, the software refresh rate can be switched instead of maintaining a high refresh rate all the time. Therefore, while improving user experience, electronic devices can also reduce power Consumption, save energy.
  • the determining by the processor whether to enable the software refresh rate adjustment function based on the first parameter includes: when it is detected that the brightness of the ambient light is less than or equal to a first threshold, and/or, when When it is detected that the brightness of the screen is less than or equal to the second threshold, it is determined to start the software refresh rate adjustment function.
  • the electronic device can determine whether the light in which it is located is relatively dark, and/or whether the screen brightness is relatively dark, according to the ambient light conditions and the screen brightness conditions, which is beneficial for the electronic device to adapt to different ambient light conditions and screen brightness conditions. and/or screen brightness enables software refresh rate adjustments, which can reduce flickering when switching hardware refresh rates due to ambient light and/or darker screens.
  • the processor bases the first operation on the current hardware refresh rate and/or Or in the case of a software refresh rate, adjusting the hardware refresh rate and/or software refresh rate includes: when the hardware refresh rate before enabling the software refresh rate adjustment function is a low refresh rate, in response to the first operation, setting The hardware refresh rate switches from a low refresh rate to a high refresh rate.
  • the electronic device when the hardware refresh rate is low before the software refresh rate adjustment function is enabled, and the electronic device detects the user's touch operation for the first time after the software refresh rate adjustment function is enabled, the electronic device can switch to a higher hardware refresh rate.
  • Refresh rate in this way, after the software refresh rate adjustment function is enabled, the switching refresh rate can be satisfied by switching the software refresh rate, reducing the number of switching hardware refresh rates, thereby reducing the occurrence of splash screens and improving user experience.
  • the first operation is an operation of starting or switching an application
  • the electronic device includes multiple applications and refresh rates corresponding to the multiple applications
  • the processor based on the first
  • adjusting the hardware refresh rate and/or software refresh rate includes: when the first operation acts on an application with a low refresh rate, and the current hardware refresh rate For a high refresh rate, when the software refresh rate is high, in response to the first operation, switch the software refresh rate from a high refresh rate to a low refresh rate.
  • the electronic device after the electronic device enables the function of invoking the software refresh rate, when the electronic device receives the user's operation of starting or switching applications, the electronic device can adjust the refresh rate by switching the software refresh rate, thereby avoiding the flickering situation. appears to improve user experience.
  • the first operation is an operation of starting or switching an application
  • the electronic device includes multiple applications and refresh rates corresponding to the multiple applications
  • the processor based on the first
  • adjusting the hardware refresh rate and/or software refresh rate includes: when the first operation acts on an application with a high refresh rate, and the current hardware refresh rate When the refresh rate is high and the refresh rate of the software is low, the refresh rate of the software is switched from the low refresh rate to the high refresh rate in response to the first operation.
  • the electronic device after the electronic device enables the function of invoking the software refresh rate, when the electronic device receives the user's operation of starting or switching applications, the electronic device can adjust the refresh rate by switching the software refresh rate, thereby avoiding the flickering situation. appears to improve user experience.
  • the first operation is an operation of setting the refresh rate of the screen to a high refresh rate
  • the processor is based on the first operation and the current hardware refresh rate and/or software refresh rate
  • adjusting the hardware refresh rate and/or software refresh rate includes: when the current hardware refresh rate is a high refresh rate and the software refresh rate is a low refresh rate, in response to the first operation, changing the software refresh rate to Switch from low refresh rate to high refresh rate.
  • the electronic device when the electronic device receives the operation of setting the refresh rate, the electronic device can adjust the refresh rate by switching the software refresh rate, thereby avoiding the occurrence of the flickering screen and improving user experience.
  • the first operation is an operation of setting the refresh rate of the screen to a low refresh rate
  • the processor is based on the first operation and the current hardware refresh rate and/or software refresh rate.
  • adjusting the hardware refresh rate and/or software refresh rate includes: when the current hardware refresh rate is a high refresh rate and the software refresh rate is a high refresh rate, in response to the first operation, changing the software refresh rate to Switch from high refresh rate to low refresh rate.
  • the electronic device when the electronic device receives the operation of setting the refresh rate, the electronic device can adjust the refresh rate by switching the software refresh rate, thereby avoiding the occurrence of the flickering screen and improving user experience.
  • the software refresh rate is a high refresh rate
  • the processor when the processor does not detect a touch operation within a first period of time, the software refresh rate is changed from a high refresh rate to a high refresh rate.
  • the processor is further configured to receive a second operation when the software refresh rate adjustment function is activated, the second operation being a non-first touch operation; the processor is also configured to receive a second operation based on The second operation switches the software refresh rate from a low refresh rate to a high refresh rate.
  • the electronic device when the electronic device receives the operation of setting the refresh rate, the electronic device can adjust the refresh rate by switching the software refresh rate, thereby avoiding the occurrence of the flickering screen and improving user experience.
  • increasing the hardware refresh rate includes: when the first operation is the specific condition When the first touch operation is under and the switching times of the hardware refresh rate within the second duration is less than the third threshold, the hardware refresh rate is switched to a higher value.
  • the software refresh rate adjustment function when the software refresh rate adjustment function is enabled, the user will obviously experience frequent flickering when the hardware refresh rate is frequently switched. Therefore, the number of times to switch the hardware refresh rate can be limited within a certain period of time, thereby It can reduce the number of splash screens and improve user experience.
  • the switched software refresh rate is 1/N of the hardware refresh rate, where N is a positive integer.
  • the present application provides an electronic device, including: one or more functional modules.
  • One or more functional modules are used to execute the display method in any possible implementation manner of any of the above aspects.
  • an embodiment of the present application provides a computer storage medium, including computer instructions.
  • the communication device is caused to execute the display method in any possible implementation manner of any one of the above aspects.
  • an embodiment of the present application provides a computer program product, which, when the computer program product is run on a computer, causes the computer to execute the display method in any possible implementation manner of any one of the above aspects.
  • FIG. 1 is a schematic diagram of an image display process provided by an embodiment of the present application.
  • Fig. 2a is a schematic diagram of a change curve of light brightness perceived by human eyes under different ambient light brightness provided by the embodiment of the present application;
  • Fig. 2b is a schematic diagram of a gamma Gamma curve provided by the embodiment of the present application.
  • FIG. 3 is a schematic diagram of a set of interfaces provided by the embodiment of the present application.
  • Fig. 4 is another set of interface diagrams provided by the embodiment of the present application.
  • Fig. 5 is another set of interface diagrams provided by the embodiment of the present application.
  • Fig. 6 is another set of interface diagrams provided by the embodiment of the present application.
  • Fig. 7 is another set of interface diagrams provided by the embodiment of the present application.
  • FIG. 8 is a schematic flowchart of a display method provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another image display process provided by the embodiment of the present application.
  • FIG. 10 is a schematic flowchart of another display method provided by the embodiment of the present application.
  • FIG. 11 is a schematic flowchart of another display method provided by the embodiment of the present application.
  • FIG. 12 is a schematic flowchart of another display method provided by the embodiment of the present application.
  • FIG. 13 is a schematic flowchart of another display method provided by the embodiment of the present application.
  • FIG. 14 is a schematic flowchart of another display method provided by the embodiment of the present application.
  • FIG. 15 is a schematic diagram of a hardware structure provided by an embodiment of the present application.
  • FIG. 16 is a schematic diagram of another hardware structure provided by the embodiment of the present application.
  • FIG. 17 is a schematic diagram of a software architecture provided by an embodiment of the present application.
  • FIG. 18 is a schematic flowchart of another display method provided by the embodiment of the present application.
  • first and second are used for descriptive purposes only, and cannot be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, the “multiple” The meaning is two or more.
  • the vertical scanning (Vsync) mechanism is a top-to-bottom refresh mechanism.
  • the electronic device can periodically generate a vertical synchronization signal. That is, the display driving interval of the electronic device generates a vertical synchronization signal at the same time interval.
  • the vertical synchronization signal can trigger electronic equipment to calculate, render and synthesize image data.
  • a processor for example, a central processing unit (CPU) and a graphics processing unit (GPU)
  • the image synthesizer (SurfaceFlinger) of the electronic device receives the vertical synchronization signal, it can perform system synthesis on the rendered image data.
  • the display of the electronic device After the display of the electronic device receives the vertical synchronization signal, it can display the image data synthesized by the system.
  • the electronic device can sequentially render, system synthesize and display the image data according to the "rhythm" of the vertical synchronization signal, but the rendering, system synthesize and display are different.
  • the electronic device performs one rendering, one system synthesis and one display of the image data. For example, as shown in FIG. 1 , image processing and display processes are performed during the vertical synchronous signal period of 4 adjacent periods.
  • the CPU of the electronic device can calculate the image data 3
  • the GPU of the electronic device can render the image data 3
  • the SurfaceFlinger of the electronic device can render the image data obtained during the period of the vertical synchronization signal t1 2 to perform system synthesis
  • the display of the electronic device can display the image data 1 obtained by system synthesis within the period of the vertical synchronous signal t1.
  • the processing and display process of an image data needs to be completed within multiple periods of the vertical synchronization signal. For example, for the image data 2, calculation and rendering are performed within the period of the vertical synchronous signal t1; system synthesis is performed within the period of the vertical synchronous signal t2; and display is performed within the period of the vertical synchronous signal t3.
  • the software refresh rate that is, the frame rate, which is the actual operating frequency of the system synthesizer and system application
  • the hardware refresh rate often refers to the display (screen) refresh rate.
  • FIG. 2a shows the change curve of the brightness perceived by human eyes under different ambient brightness.
  • the curve in Figure 2a approximates the Gamma curve.
  • the value of Gamma is less than 1
  • the abscissa x represents the brightness incident to the human eye in nature
  • the ordinate y represents the brightness perceived by humans. From Figure 2a, it can be concluded that the brightness incident on the human eye in nature changes nonlinearly with the brightness perceived by humans.
  • the brightness in the natural world is dark (the brightness input to the human eye is small)
  • the slight increase in brightness will significantly increase the brightness perceived by people; when the brightness in the natural world reaches a certain value, the brightness change perceived by people will gradually decrease.
  • the input voltage of the display and the output brightness of the screen have a linear relationship. Therefore, the curve relationship between the input voltage of the electronic equipment and the brightness perceived by humans is similar to the Gamma curve (convex shape) with a Gamma value less than 1 .
  • the display of the electronic device can correct the mapping relationship between the input voltage and the output brightness, that is, through the Gamma curve with a Gamma value greater than 1. Correct. After correction, the input voltage of the electronic device display and the brightness perceived by humans can be close to a linear relationship.
  • FIG. 2b is a schematic diagram of a Gamma curve disclosed in the embodiment of the present application.
  • the abscissa of the Gamma curve is the input voltage of the display of the electronic device, and the ordinate is the brightness perceived by people.
  • the Gamma curve between the input voltage of an electronic device and the brightness perceived by humans is a curve with a Gamma of 1/2.2.
  • the Gamma curve between the input voltage of an electronic device and the brightness perceived by humans is close to a straight line with a Gamma of 1.
  • Scenario 1 The electronic device can adjust the hardware refresh rate according to user settings.
  • the user actively sets to switch the screen refresh rate.
  • the refresh rate can be switched. Users can choose a higher refresh rate or a lower refresh rate through the controls on the screen.
  • the electronic device may switch the hardware refresh rate of the screen, thereby completing the switching of the refresh rate.
  • Fig. 3 shows a set of interface diagrams.
  • FIG. 3 shows the user interface 300 of the mobile phone.
  • the user interface 300 may include at least one application program icon, and each application program icon has a corresponding application program name below it.
  • the positions of the icon of the application program and the name of the corresponding application program can be adjusted according to the preference of the user, which is not limited in this embodiment of the present application.
  • the user may click on the settings icon 301 .
  • the mobile phone can display a user interface 310 .
  • FIG. 3 shows the user interface 310 of the mobile phone.
  • the user interface 310 may include controls such as a WLAN control, a Bluetooth control, a mobile network control, and a display control 311 .
  • the user may click on display control 311 .
  • the mobile phone may display a user interface 320 .
  • FIG. 3 shows the user interface 320 of the mobile phone.
  • the user interface 320 may include controls such as an automatic screen brightness adjustment control, a screen color temperature control, a screen resolution control, and a screen refresh rate control.
  • the user may click on the screen refresh rate control 321 .
  • the mobile phone may display a user interface 330 .
  • the user interface 330 of the mobile phone is shown in (d) of FIG. 3 .
  • the user interface 330 may include smart controls and custom controls (screen refresh rate), wherein the custom controls may include a low control 331 , a medium control 332 and a high control 333 .
  • the smart control 331 can automatically reduce the switching refresh rate, which is helpful to save power.
  • the low screen refresh rate of the custom control is 60Hz
  • the medium screen refresh rate is 90Hz
  • the high screen refresh rate is 120Hz.
  • the user may click on the screen refresh rate control 332 .
  • the mobile phone may display a user interface 340 .
  • the user interface 340 of the mobile phone is shown in (e) of FIG. 3 .
  • the refresh rate in the user interface 330 has been switched to 90Hz.
  • FIG. 3 is an exemplary display of the embodiment of the present application, and the schematic diagram of the interface of the electronic device may also be in other styles, which is not limited in the embodiment of the present application.
  • Fig. 4 shows another set of interface diagrams.
  • FIG. 4 shows the specific operation process of the user's screen refresh rate on the mobile phone.
  • (a)-(e) in FIG. 4 may refer to the descriptions in (a)-(e) in FIG. 3 , respectively, and details are not repeated here.
  • FIG. 4 shows the user interface 430 of the mobile phone.
  • the description of the user interface 430 may refer to the high refresh rate of the current mobile phone, that is, 120 Hz, and the user clicks on a control with a low refresh rate on the screen.
  • the mobile phone may display a user interface 440 .
  • the phone can switch the screen refresh rate to 60Hz.
  • schematic interface diagram of the electronic device shown in FIG. 4 is an exemplary display of the embodiment of the present application, and the schematic interface diagram of the electronic device may also be in other styles, which is not limited in the embodiment of the present application.
  • Scenario 2 The electronic device can also intelligently adjust the hardware refresh rate according to the user's touch operation or the operation on the button.
  • the electronic device When the electronic device detects an operation on the screen (for example, the user clicks on the screen, etc.) or an operation on the button, it can switch the current hardware refresh rate and software refresh rate from a low refresh rate to a high refresh rate, or maintain a high refresh rate rate; and when the screen of the electronic device is not touched, the current hardware refresh rate can be switched from a high refresh rate to a low refresh rate, or the low refresh rate can be maintained.
  • Fig. 5 shows another set of interface diagrams.
  • FIG. 5 shows the application interface 500 of mobile phone WeChat.
  • the electronic device when the electronic device turns on the function of intelligently adjusting the refresh rate, it can automatically adjust the hardware refresh rate according to the user's operation. , which is the screen refresh rate.
  • the user clicks a control on the application interface 500 in response to the user's click operation, the mobile phone can increase the screen refresh rate, for example, 120Hz.
  • the above operations may be other operations, for example, long press, pull down, left swipe, right swipe, double click, etc.
  • FIG. 5 shows an application interface 510
  • the application interface 510 may include at least one application program icon, and each application program icon has a corresponding application program name below it.
  • the positions of the icon of the application program and the name of the corresponding application program can be adjusted according to the preference of the user, which is not limited in this embodiment of the present application.
  • the electronic device can increase the hardware refresh rate, such as 120Hz.
  • the electronic device may adjust the hardware refresh rate to a lower screen refresh rate.
  • the screen refresh rate can be switched to 120Hz. After 2s, the electronic device still does not detect the user operation, and the electronic device can be switched to 120Hz. The device's refresh rate switches to a lower refresh rate, such as 60Hz.
  • Scenario 3 The electronic device can also adjust the hardware refresh rate according to the application running in the foreground.
  • the electronic device may determine different refresh rates for different application types (for example, video applications, etc.) or application packages, that is, the electronic device may determine the corresponding relationship between application types or application packages and refresh rates.
  • the electronic device detects that it is running or starts a certain application software, it can switch the refresh rate to a corresponding refresh rate according to the above correspondence.
  • Fig. 6 shows another set of interface diagrams.
  • FIG. 6 shows a user interface 640 of the electronic device, and the user interface 610 may be a user interface for a user to read. User interface 610 may include textual content.
  • FIG. 6 shows a user interface 640 of the electronic device.
  • the user interface 640 may be used as a user interface for live shopping of users.
  • User interface 640 may include a live broadcast screen (for example, character screen, XiaoMin live broadcast room, etc.) and shopping links (for example, glasses 379.9 yuan, pants 139.9 yuan and hat 49.9 yuan, and three items correspond to "grab now" controls).
  • Electronic devices can start and run multiple applications at the same time to provide users with different services or functions.
  • the electronic device running multiple applications at the same time means that the electronic device has started multiple applications, the multiple applications have not been closed, and the electronic device has not deleted the memory and other resources occupied by the multiple applications. At the same time, it occupies resources such as memory in the background; it does not require multiple applications to interact with the user in the foreground at the same time. For example, the electronic device successively starts two application programs of reading and Taobao, and runs these two application programs at the same time.
  • the electronic device When the user is using an application, if the application is switched or jumps to the desktop for operation, the electronic device will not kill the previously used application, but will keep the previously used application as a background application in the multitasking queue.
  • the electronic device When the electronic device runs multiple application programs at the same time, it can generate a card corresponding to each application program according to the multiple application programs in the multitasking queue.
  • Multiple cards on the multitasking interface are arranged horizontally side by side according to the preset sequence strategy. For example, in a sequential strategy, the electronic device arranges cards corresponding to different application programs according to the time sequence in which different application programs are run.
  • the electronic device After the electronic device detects a user operation indicating to open the multitasking interface 620 , it displays the multitasking interface 620 .
  • the multitasking interface 620 includes cards corresponding to multiple application programs running on the electronic device. Among them, there may be various user operations for instructing to open the multitasking interface.
  • the electronic device when the electronic device detects an upward sliding operation on the bottom of the electronic device, in response to the operation, as shown in (b) of FIG. 6 , the electronic device displays a multitasking interface 620 .
  • the multitasking interface 620 may include: a card 621 , a card 622 , a delete icon 623 and a switching menu 624 .
  • the card 621 is fully displayed
  • the card 622 is partially displayed
  • the switching menu 624 includes a reading icon and a Taobao icon.
  • the delete icon 623 can be used to close the application corresponding to the complete card displayed in the current multitasking interface 620 .
  • Closing here refers to deleting resources such as memory occupied by the application program.
  • the delete icon 623 can be used to close the applications corresponding to all cards in the current multitasking interface 620 .
  • the accompanying drawings are only schematic illustrations, and the multitasking interface 620 shown in the accompanying drawings refers to the interface displayed on the touch screen within the frame of the electronic device, and the part of the card within the frame of the electronic device can be displayed on the touch screen of the electronic device , the part of the card outside the frame of the electronic device cannot be displayed by the touch screen of the electronic device.
  • the electronic device When the electronic device detects a user operation on the bottom left side of the electronic device, or when the electronic device detects a user operation on the bottom right side of the electronic device, the electronic device displays the user operation as shown in (b) in Figure 6 Interface 620.
  • the user can switch and display cards by sliding left and right on the multitasking interface 620 .
  • the electronic device detects a sliding operation to the left on the multitasking interface 620
  • the cards on the multitasking interface 620 move to the left in turn, and at this time the electronic device can display the user interface 630, that is, complete Card 622 is displayed, and card 621 is partially displayed.
  • the user can click the card 622 in the task interface 630 to switch the application to the application interface corresponding to the card 622 .
  • the electronic device may display a user interface 640 .
  • the electronic device may determine that the screen refresh rate of the application corresponding to the card 621 is different from the screen refresh rate of the application corresponding to the card 622 .
  • the screen refresh rate of the application corresponding to card 621 is 60Hz
  • the screen refresh rate of the application corresponding to card 622 is 120Hz. Therefore, when the electronic device detects that the user switches the application corresponding to card 621 to the application corresponding to card 622, the electronic device can switch the The refresh rate is adjusted to 120Hz.
  • Fig. 7 shows another set of interface diagrams.
  • (a)-(d) in FIG. 7 shows the specific operation process for the user to switch the application interface.
  • the description corresponding to (a)-(d) in FIG. 6 here I won't repeat them here.
  • the user can switch and display cards by sliding left and right on the multitasking interface 720 .
  • the electronic device detects a sliding operation to the right on the multitasking interface 720
  • the cards on the multitasking interface 720 move to the right in turn, and the electronic device can display the user interface 730 at this time, that is, the user interface 730 can be completely displayed.
  • Card 721 is displayed, and card 722 is partially displayed.
  • the user can click the card 721 in the task interface 730 to switch the application to the application interface corresponding to the card 721 .
  • the electronic device may display a user interface 740 .
  • the electronic device may determine that the screen refresh rate of the application corresponding to the card 721 is different from the screen refresh rate of the application corresponding to the card 722 .
  • the screen refresh rate of the application corresponding to the card 721 is 60 Hz
  • the screen refresh rate of the application corresponding to the card 722 is 120 Hz.
  • FIG. 6 and FIG. 7 are exemplary representations of the embodiment of the present application, and the schematic diagram of the interface of the electronic device may also be in other styles, which is not limited in the embodiment of the present application.
  • the display of an electronic device emits light by charging and discharging the electronic components of the pixels on the screen. Due to different hardware refresh rates, the charging and discharging time of the electronic components is different, resulting in different charging currents and/or voltages of the light emitting components. Furthermore, the difference in current and/or voltage of different hardware refresh rates will lead to a difference in the brightness of the display. When switching between different hardware refresh rates, the screen brightness of electronic devices will change suddenly.
  • Fig. 2a shows the change curve of the luminance perceived by human eyes under different ambient luminances, and the curve can be approximated as the Gamma curve shown in Fig. 2a.
  • the abscissa x represents the brightness incident on human eyes in nature
  • the ordinate y represents the brightness perceived by humans.
  • brightness may be represented by grayscale. From Figure 2a, it can be concluded that the brightness incident on the human eye in nature changes nonlinearly with the brightness perceived by humans. When the brightness in the natural world is dark (the brightness input to the human eye is small), the slight increase in brightness can significantly increase the brightness perceived by people; when the brightness in the natural world reaches a certain value, the brightness change value perceived by people gradually decreases.
  • the sensitivity of the human eye to the change of screen brightness is different in bright light environment and dark light environment.
  • the human eye is more sensitive to the change of brightness.
  • Perceive changes in brightness when the brightness is low, the human eye is more sensitive to changes in brightness, and can perceive sudden changes in screen brightness.
  • the hardware refresh rate is switched, the brightness of the display changes, dark Under light conditions, the brightness perceived by the human eye changes greatly, but the Gamma curve used for correction remains unchanged. Therefore, under dark light conditions, the input voltage of displays with different hardware refresh rates and the brightness curve perceived by the human eye are different. .
  • the current screen refresh rate When the current screen refresh rate is adjusted, the environment in which the user is located is not taken into account when the adjustment is made. When the user is in a dark situation, adjusting the hardware refresh rate will cause the user to perceive the flickering and brightening of the screen. If the refresh rate of the hardware and the refresh rate of the software are kept constant, the power consumption of the electronic device will be high.
  • the electronic device determines whether the hardware refresh rate needs to be adjusted by judging the current environment of the user. For example, when the electronic device is determined to be in a dark situation and encounters a scene where the hardware refresh rate needs to be switched from a high refresh rate to a low refresh rate, the hardware refresh rate will not be changed, but the software refresh rate will be switched to a low refresh rate. However, if the electronic device is determined to be in a bright light condition, the hardware refresh rate and the software refresh rate may be switched at the same time. This can not only save the power consumption of the electronic device, but also ensure that the user will not see the flickering highlight, thereby improving the user experience.
  • step S101 The electronic device determines whether a specific condition is met. If yes, execute step S102; otherwise, execute step S103.
  • the specific condition may be the ambient light condition described by the electronic device, may also be the screen brightness condition, may also be the time, may also be the location condition, etc., which are not limited here.
  • Embodiment 1 The electronic device determines whether a dark light condition is met based on ambient light brightness and/or screen brightness.
  • the specific condition may be a dark light condition, and the dark light condition refers to that the environment where the electronic device is located is relatively dark or the brightness of the screen is relatively dark.
  • the dark light condition refers to that the environment where the electronic device is located is relatively dark or the brightness of the screen is relatively dark.
  • the electronic device meets the dark light condition.
  • the value range of the first threshold may be 200-400 lux (lux); the value range of the second threshold may be 100-400 nits (nit).
  • the electronic device may collect ambient light brightness through an ambient light sensor.
  • the ambient light brightness collected by electronic equipment depends on many specific situations. As the specific environmental conditions change, the ambient light brightness will also change. For example, the lights in the room where the electronic equipment is located are turned off or on; the ambient light of the electronic equipment is blocked, etc. , the brightness of ambient light collected by the ambient light sensor will be low. At this time, the value of the ambient light brightness collected by the electronic device will decrease, and in this scene, it may be judged to be in a dark light condition.
  • the electronic device can simultaneously determine whether the ambient light brightness and the screen brightness meet the conditions. For example, when the ambient light brightness is greater than the first threshold and the screen brightness is less than or equal to the second threshold, the electronic device determines that the dark light condition is met.
  • the electronic device may also separately determine whether the ambient light brightness and the screen brightness meet the conditions. For example, whether the ambient light brightness of the electronic device is greater than the first threshold. If the ambient light brightness is greater than the first threshold, the electronic device determines that the dark light condition is not satisfied, otherwise the dark light condition is satisfied. The electronic device can also determine whether the brightness of the screen is greater than the second threshold. If yes, the electronic device determines that the dim light condition is satisfied; otherwise, the dim light condition is not satisfied.
  • step S102 When the electronic device determines that the dark light condition is satisfied, step S102 is performed. If the electronic device determines that the dark light condition is not satisfied, step S103 is executed.
  • Embodiment 2 The electronic device detects whether it is in a specific condition based on the current time.
  • the electronic device can determine whether it is day or night based on the current time, and when the current time is night, it can be determined to be in a specific condition. For example, the electronic device can obtain its own current time (the first time) as 22:22, and can determine whether the current time is night in Beijing time, so it can determine that it is currently in a specific condition.
  • Embodiment 3 The electronic device detects whether it is in a specific condition based on the current location.
  • the electronic device may determine that the current location of the electronic device is under a specific condition based on the location. For example, an electronic device may obtain its current location as a movie theater through a global positioning system (GPS). Since the brightness of the movie theater environment is very low, it can be determined that it is currently in a specific condition.
  • GPS global positioning system
  • step S102 When the electronic device determines that a specific condition is met, step S102 is executed. If the electronic device determines that the specific condition is not satisfied, step S103 is executed.
  • the electronic device can also determine whether it is in a specific condition through the current time and current location, which will not be repeated here.
  • the electronic device can detect whether a specific condition is met in real time, and can also determine whether a specific condition is met when a user operation is detected or when the refresh rate needs to be switched. This embodiment of the present application does not limit it.
  • Different conditions can trigger the electronic device to start detecting whether certain conditions are met.
  • the electronic device may determine whether a specific condition is met according to the aforementioned changes in ambient light brightness, screen brightness, time, and location. For example, when the ambient light level changes, the electronic device can be triggered to start determining whether a certain condition is met.
  • the electronic device can also periodically detect whether a specific condition is met. For example, each 5s electronic device checks once if a certain condition is met. In another case, when the screen of the electronic device is off, it is not necessary to detect whether a specific condition is satisfied; otherwise, it may be detected whether a specific condition is satisfied.
  • the electronic device may determine whether a specific condition is met based on at least one parameter among ambient light brightness, screen brightness, current time, and current location.
  • the electronic device enables a software refresh rate adjustment function.
  • the software refresh rate adjustment function means that when an electronic device adjusts the screen refresh rate, it can only adjust the software refresh rate according to different situations, without adjusting the hardware refresh rate.
  • the electronic device when the electronic device detects that a specific condition is satisfied, the current hardware refresh rate remains unchanged.
  • the screen refresh rate needs to be switched such as the three situations described above that require switching the screen refresh rate.
  • the electronic device only switches the software refresh rate, leaving the hardware refresh rate unchanged.
  • the method of switching the software refresh rate reference may be made to the method described in FIG. 9 , which will not be repeated here.
  • the electronic device may determine whether to adjust the screen refresh rate according to the user's operation and the hardware refresh rate before a specific condition is met. For example, when the hardware refresh rate before certain conditions are met is a high refresh rate, and the user operates the electronic device under dark light conditions, the electronic device maintains a high refresh rate of both the hardware refresh rate and the software refresh rate. When the user finishes the operation under dark light conditions, the electronic device will switch the software refresh rate to a low refresh rate, for example, reduce it to 1/n of the hardware refresh rate, where n is a positive integer. At the same time, the electronic device maintains a hardware refresh rate with a high refresh rate.
  • the hardware refresh rate before a specific condition is met is a low refresh rate
  • the user operates to switch the hardware refresh rate and software refresh rate to a high refresh rate.
  • the electronic device will switch the software refresh rate to a low refresh rate, for example, reduce it to 1/n of the hardware refresh rate, where n is a positive integer.
  • the electronic device maintains a hardware refresh rate with a high refresh rate.
  • the software refresh rate when the electronic device needs to switch the current refresh rate, the software refresh rate can be switched to the target refresh rate, and the current hardware refresh rate remains unchanged.
  • the target refresh rate is a refresh rate that the electronic device needs to switch to.
  • the current hardware refresh rate and software refresh rate are both 120Hz, and when the target refresh rate is 60Hz, the software refresh rate is switched to 60Hz, and the hardware refresh rate remains unchanged at 120Hz.
  • the current hardware refresh rate is 120Hz, and the software refresh rate is 60Hz.
  • the target refresh rate is 120Hz
  • the current hardware refresh rate is 120Hz, and the software refresh rate is 60Hz.
  • the software refresh rate is switched to 120Hz, and the hardware refresh rate remains unchanged at 120Hz.
  • the current hardware refresh rate is 120Hz
  • the software refresh rate is 120Hz.
  • the target refresh rate is 240Hz, keep the software refresh rate at 120Hz and the hardware refresh rate at 120Hz.
  • the electronic device can first determine the software refresh rate and the target refresh rate, and then cut the software refresh rate to 1/N of the value of the hardware refresh rate, and the switched software refresh rate is equal to or close to the target refresh rate.
  • N is a positive integer.
  • N may be fixed or variable. In one case, the electronic device can set the value of N.
  • the electronic device may also determine the value of N between the hardware refresh rate and the target refresh rate, and then determine the first value according to N.
  • the current hardware refresh rate is 240Hz
  • the target refresh rate of the electronic device is 60Hz
  • the value of N can be determined by rounding up or taking a lower number.
  • switching the software refresh rate may be to increase the software refresh rate, or may be to decrease the software refresh rate.
  • FIG. 9 shows a software refresh rate adjustment method.
  • the electronic device may first determine a period of time corresponding to a hardware refresh rate (frequency of vertical refresh) as the first time interval.
  • N the electronic device can determine that the second time interval is twice the first time interval (the time interval between two adjacent vertical synchronization signals), and it can also determine that the software refresh rate is twice the hardware refresh rate. one-third. That is, the electronic device can generate a vertical synchronization signal every first time interval through the display driver, and when the electronic device receives two vertical synchronization signals, it can sequentially calculate, render, system synthesize and display the image data.
  • N the screen of the electronic device is refreshed by hardware at every first time interval, and is refreshed by software at every two first time intervals.
  • the first refresh rate is 120 Hz
  • the second refresh rate may be determined to be 60 Hz.
  • the electronic device when the electronic device does not meet a specific condition (for example, when a light is turned on), and the refresh rate of the hardware is low.
  • a specific condition for example, when a light is turned on
  • the refresh rate of the hardware is low.
  • the electronic device detects that the specific condition is not satisfied to meet (such as when the light in the environment where the electronic device is located is turned off)
  • the electronic device detects the user's touch screen operation for the first time (for example, after the light is turned on, the user's first When the screen is tapped once)
  • the electronic device switches the hardware refresh rate from a low refresh rate to a high refresh rate.
  • the electronic device when the electronic device does not meet a specific condition (for example, when a light is turned on), and the refresh rate of the hardware is high.
  • a specific condition for example, when a light is turned on
  • the refresh rate of the hardware is high.
  • the electronic device detects that the specific condition is not satisfied to meet (such as when the light in the environment where the electronic device is located is turned off)
  • the electronic device detects the user's touch screen operation for the first time (for example, after the light is turned on, the user's first When the screen is tapped once)
  • the electronic device keeps the hardware refresh rate unchanged at a high refresh rate.
  • the electronic device when specific conditions are met, and the hardware refresh rate of the electronic device is high and the software refresh rate is low, as in scenario 3, when an operation of starting or switching an application is detected, and this When operating an application with a high refresh rate (for example, switching from a reading application to a live broadcast application), the electronic device can switch the software refresh rate from a low refresh rate to a high refresh rate.
  • the electronic device when specific conditions are met, and the hardware refresh rate of the electronic device is high, and the software refresh rate is high, as in scenario 3, when an operation of starting or switching an application is detected, and this When operating an application with a low refresh rate (for example, switching from a live broadcast application to a reading application), the electronic device can switch the software refresh rate from a high refresh rate to a low refresh rate.
  • the electronic device can set the hardware refresh rate to a high refresh rate , when the screen is on, the display of the electronic device is performed at a high hardware refresh rate.
  • the electronic device when the electronic device satisfies certain conditions, and the refresh rate of the hardware and the refresh rate of the software are both high, no touch operation by the user is detected after a period of time (for example, the user clicks, swipes, or clicks on the screen). moving, double-clicking, etc.), the electronic device can switch the software refresh rate to a low refresh rate. At this time, when the electronic device detects a touch operation again, the software refresh rate may be switched to a high refresh rate.
  • a period of time for example, the user clicks, swipes, or clicks on the screen. moving, double-clicking, etc.
  • the electronic device when specific conditions are met, and the hardware refresh rate of the electronic device is high, and the software refresh rate is high, as in scenario 1, when the refresh rate of the screen is detected to be set to a low refresh rate For operation, the electronic device can switch the software refresh rate from a high refresh rate to a low refresh rate.
  • the electronic device does not enable the software refresh rate adjustment function.
  • the hardware refresh rate and the software refresh rate can be adjusted at the same time.
  • the current hardware refresh rate is 60Hz and the target refresh rate is 120Hz
  • immediately switch both the hardware refresh rate and the software refresh rate to 120Hz.
  • the hardware refresh rate may be switched to the target refresh rate.
  • the electronic device detects that it is in a dark light condition, it can immediately increase the hardware refresh rate, so that the hardware refresh rate has been increased, and it can avoid switching the hardware refresh rate again under this dark light condition, so that further improvement can be achieved. Reduce the number of sudden changes in screen brightness and improve user experience. Due to the reduction in the number of refresh rate switching, the smoothness of the screen can be improved.
  • the electronic device may be a terminal device with a display function, and the type of the electronic device is not specifically limited.
  • the electronic device in the embodiment of the present application may be a mobile phone, a wearable device (for example, a smart bracelet), a tablet computer, a laptop computer (laptop), a handheld computer, a computer, a super mobile personal computer ( Ultra-mobile personal computer (UMPC), cellular phone, personal digital assistant (personal digital assistant, PDA), augmented reality (augmented reality, AR) ⁇ virtual reality (virtual reality, VR) equipment and other portable devices. It may also be equipment such as a television, a vehicle-mounted device, and a projector. Exemplary embodiments of electronic devices include, but are not limited to Or electronic devices with other operating systems.
  • the electronic device when the electronic device determines that certain conditions are met and the hardware refresh rate is low, the electronic device may switch to a higher hardware refresh rate in advance.
  • step S201 The electronic device determines whether a specific condition is met. If yes, execute step S202; otherwise, execute step S203.
  • step S201 reference may be made to step S101, and details are not repeated.
  • Electronic devices can increase the hardware refresh rate and software refresh rate at the same time; they can also increase the hardware refresh rate and keep the software refresh rate unchanged.
  • the electronic device may increase the hardware refresh rate and the software refresh rate.
  • the refresh rate of the electronic device is equal to its hardware refresh rate and software refresh rate.
  • the hardware refresh rate and software refresh rate of the current electronic device are both 60Hz, and when it is detected that the specific condition is not met to meet the specific condition, the electronic device can switch both the hardware refresh rate and the software refresh rate to 120Hz.
  • the electronic device may increase the hardware refresh rate and keep the software refresh rate unchanged.
  • the hardware refresh rate and software refresh rate of the current electronic device are 60Hz.
  • the electronic device detects that the specific condition has changed from not meeting the specific condition, the electronic device can switch the hardware refresh rate to 120Hz, and the software refresh rate remains unchanged at 60Hz. .
  • the electronic device can determine whether the refresh rate of the hardware is low. When the hardware refresh rate is low, switch the hardware refresh rate; otherwise, do not switch.
  • the electronic device may determine whether the initial hardware refresh rate is greater than or equal to the third threshold when a specific condition is met. When it is greater than the third threshold, the hardware refresh rate can be kept unchanged; otherwise, the hardware refresh rate is cut high.
  • the third threshold is not limited.
  • the third threshold is 120Hz
  • the hardware refresh rate of the electronic device is 60Hz
  • when the bright light environment enters the dark light environment, (120>60) can determine that the hardware refresh rate of the electronic device enters a specific condition from a high refresh rate.
  • the third threshold is 120Hz
  • the hardware refresh rate of the electronic device is 120Hz, and when the brightness of the screen changes from bright to dark,
  • the hardware refresh rate of the electronic device may be determined that the hardware refresh rate of the electronic device satisfies a specific condition from a low refresh rate. For example, when the electronic device changes from not meeting the specific condition to meeting the specific condition, the hardware refresh rate may be cut higher according to the current refresh rate of the electronic device.
  • the electronic device may switch the hardware refresh rate according to the refresh rate gear.
  • the current hardware refresh rate selection range is 60Hz and 120Hz.
  • the high-cut hardware refresh rate is 120Hz.
  • the hardware refresh rate is 60 Hz
  • the software refresh rate is also 60 Hz (low refresh rate).
  • the electronic device may increase the current hardware refresh rate to 120Hz.
  • the current hardware refresh rate and software refresh rate of the electronic device are both 60Hz (low refresh rate), when the user dims the brightness of the mobile phone (the electronic device changes from a non-specific condition to a specific condition), the electronic The device can increase the current hardware refresh rate and software refresh rate to 120Hz.
  • the hardware refresh rate may be set to a high refresh rate. For example, a high refresh rate of 120Hz.
  • the hardware refresh rate may be set to a high refresh rate.
  • the electronic device detects a touch operation, it can directly display according to the set high refresh rate.
  • the electronic device when the screen of the electronic device is on and the refresh rate of the hardware is high, it detects that the brightness of the ambient light or the brightness of the screen is dark, and when it is detected that the user has not touched the touch for a period of time (and may be other needs Operations that reduce the user's refresh rate, such as setting the refresh rate of the screen to a low refresh rate, and switching or starting applications with a low refresh rate), the electronic device can keep the hardware refresh rate unchanged at a high refresh rate.
  • the electronic device does not enable the function of invoking a software refresh rate.
  • step S203 reference may be made to step S103, and details are not repeated.
  • the electronic device enables a software refresh rate adjustment function.
  • step S204 reference may be made to step S102, and details are not repeated.
  • the electronic device when the electronic device detects that it is under a specific condition and the hardware refresh rate is low, the electronic device does not increase the hardware refresh rate in advance, and then determines whether to increase the hardware refresh rate according to user operations.
  • the electronic device determines whether a specific condition is met. If yes, execute step S302; otherwise, execute step S303.
  • step S301 reference may be made to step S101, and details are not repeated.
  • the electronic device enables a software refresh rate adjustment function.
  • step S302 reference may be made to step S102, and details are not repeated.
  • the electronic device does not enable the software refresh rate adjustment function.
  • step S303 reference may be made to step S103, and details are not repeated.
  • the electronic device starts a hardware refresh rate adjustment function in response to the first operation.
  • the first operation may be a user operation in the above scenario. That is, the first operation may be an operation in which the user actively switches the refresh rate in scene 1; it may also be an operation in which the user touches the screen in scene 2; or it may be an operation in which the user switches applications in scene 3. Other operations may also be required, which are not limited here.
  • Embodiment 1 The electronic device switches the hardware refresh rate based on the application.
  • the electronic device may determine whether to switch the hardware refresh rate to the hardware refresh rate corresponding to the application according to the switched application. Wherein, the hardware refresh rate corresponding to this application is greater than the current hardware refresh rate. For example, when switching from reading (60Hz) hardware to an application corresponding to ticket grabbing (for example, 12306, etc.), the electronic device may set the hardware refresh rate to 120Hz. When switching from the reading (60Hz) hardware to the application corresponding to the live broadcast (120Hz), the electronic device can keep the hardware refresh rate unchanged at 60Hz.
  • Embodiment 2 The electronic device switches the hardware refresh rate based on a touch operation.
  • the hardware refresh rate may be switched according to the specific operation. For example, when the electronic device detects that the user clicks the image control to open an application, it can keep the current hardware refresh rate unchanged; rate switch to a high refresh rate.
  • Embodiment 3 The electronic device switches the hardware refresh rate based on the priority of the switching refresh rate scene.
  • the electronic device can first establish a priority mapping relationship for different switching refresh rate scenarios, then determine the corresponding priority for a specific switching scene, and determine whether to switch the hardware refresh rate according to the priority. For example, in Scenario 1, the electronic device detects that the operation for switching the screen refresh rate may be regarded as a high-priority scenario; in Scenario 3, the electronic device detects that the operation for switching applications may be regarded as a low-priority scenario. Therefore, when the refresh rate of the hardware of the electronic device is low, the electronic device may increase the refresh rate of the hardware in response to an operation to increase the refresh rate of the screen. When the hardware refresh rate of the electronic device is low, the electronic device may keep the hardware refresh rate constant in response to an operation for switching applications.
  • the electronic device determines whether a specific condition is met. If yes, enable the software refresh rate adjustment function, that is, execute step S403; otherwise, execute step S402.
  • step S401 reference may be made to step S101, and details are not repeated.
  • the electronic device does not enable a software refresh rate adjustment function.
  • the electronic device can normally switch the refresh rate, that is, the electronic device can switch according to the existing method for switching the refresh rate. That is, when the electronic device needs to switch the refresh rate, it can simultaneously switch the hardware refresh rate and the software refresh rate according to user operations. At this time, the electronic device does not limit the switching of the refresh rate.
  • step S402 reference may be made to step S103, and details are not repeated.
  • the electronic device may determine whether to increase the software refresh rate according to the current user operation. For user operations, please refer to the relevant content of scenarios 1, 2 and 3 above.
  • the electronic device detects an operation that requires switching to a higher refresh rate, it can determine that the software refresh rate needs to be increased.
  • the electronic device may receive a switching instruction, and the switching instruction may indicate to increase the software refresh rate, for example, "01" indicates that the software refresh rate is increased, “10” indicates that the software refresh rate is decreased, and "00" indicates that the software refresh rate is increased. Indicates to maintain the software refresh rate.
  • the electronic device may determine whether to increase the software refresh rate according to the identifier of the switching instruction, or determine whether to decrease the software refresh rate.
  • the electronic device may switch the software refresh rate according to the target refresh rate.
  • the target refresh rate is greater than the current software refresh rate, it can be determined that the switching instruction indicates to increase the software refresh rate; when the target refresh rate is less than the current software refresh rate, it can be determined that the switching instruction indicates that the software refresh rate is reduced; when the target refresh rate is equal to the current
  • the software refresh rate is specified, it can be determined that the switching instruction indicates to keep the software refresh rate constant.
  • the electronic device cuts down the software refresh rate according to the hardware refresh rate, and keeps the hardware refresh rate unchanged.
  • step S404 reference may be made to the description of step S102, and details are not repeated.
  • the software refresh rate can be switched to keep the hardware refresh rate unchanged. Changes in brightness of the screen of the electronic device can be avoided, thereby improving user experience.
  • the electronic device judges whether to increase the refresh rate of the hardware, and if so, executes S406; otherwise, executes S407.
  • the electronic device may determine whether the hardware refresh rate is not less than the target refresh rate. When the value of the hardware refresh rate is greater than or equal to (not less than) the value of the target refresh rate, the electronic device may determine that the current hardware refresh rate has reached the refresh rate requirement that needs to be switched, and executes step S406. When the value of the first refresh rate is less than the value of the target refresh rate, the electronic device may determine that the current hardware refresh rate has not reached the refresh rate requirement, and perform step S407.
  • the electronic device may start a hardware refresh adjustment function in response to the first operation.
  • the electronic device may start a hardware refresh adjustment function in response to the first operation.
  • the electronic device increases the software refresh rate, and keeps the hardware refresh rate unchanged.
  • step S406 reference may be made to the relevant description of step S102, and details are not repeated.
  • the electronic device switches between a software refresh rate and a hardware refresh rate.
  • step S103 For the process of switching the hardware refresh rate and software refresh rate of the electronic device, reference may be made to step S103.
  • the electronic device may determine whether, under certain conditions, the number of switching times of the hardware refresh rate within a third time interval is greater than a third threshold, and if so, the electronic device may keep both the software refresh rate and the hardware refresh rate unchanged; Otherwise, the electronic device can switch the software refresh rate and hardware refresh rate.
  • the third time interval may be a recent time interval of a specific time length of the electronic device, and the third time interval may be, for example, 10s, 20s, and so on.
  • the third threshold may be a threshold at which the electronic device can determine the number of switching times of the hardware refresh rate under dark light conditions. For example 10 times.
  • the electronic device when the electronic device detects a user operation (one or more of scenarios 1, 2, and 3), the software refresh rate and hardware refresh rate are both 60 Hz, and within the third time interval, the electronic device switches 4 times, and the third threshold is 5 times (4 ⁇ 5), then the electronic device can switch both the software refresh rate and the hardware refresh rate to 120 Hz.
  • the above-mentioned third threshold is to restrict the electronic device from switching frequently under certain conditions, and does not limit the specific value of the above-mentioned third threshold.
  • the electronic device determines whether a specific condition is met, and if yes, enables a software refresh rate adjustment function, that is, executes step S503; otherwise, executes step S502.
  • step S501 reference may be made to step S101, and details are not repeated.
  • the electronic device may increase the refresh rate of the hardware.
  • the electronic device may increase the refresh rate of the hardware.
  • the S502 electronic device does not enable the software refresh rate adjustment function.
  • step S502 reference may be made to step S103, and details are not repeated.
  • step S503 The electronic device judges whether to switch the hardware refresh rate. If yes, execute step S504; otherwise, execute step S505.
  • step S503 reference may be made to step S304 and step S405, and details are not repeated.
  • the electronic device switches the software refresh rate, and keeps the hardware refresh rate unchanged.
  • step S504 reference may be made to step S102 and step S406, and details are not repeated.
  • the electronic device switches between a software refresh rate and a hardware refresh rate.
  • step S505 reference may be made to step S103 and step S407, and details are not repeated.
  • the electronic device determines whether a specific condition is met. If yes, enable the software refresh rate adjustment function, that is, execute S603; otherwise, do not enable the software refresh rate adjustment function, that is, execute S602.
  • step S601 reference may be made to step S101, and details are not repeated.
  • the electronic device does not enable the software refresh rate adjustment function.
  • step S602 reference may be made to step S103, and details are not repeated.
  • the electronic device determines whether the operation is a first operation under a specific condition. If yes, execute S604; otherwise, execute S605.
  • the electronic device can detect the operation on the touch screen, and then the electronic device can determine whether this operation is the first operation under certain conditions.
  • the first operation is the first time that the electronic device detects the operation of the touch screen under the dark light condition.
  • the hardware refresh rate of the electronic device is low, and when the lights in the room where the electronic device is located are turned off, the electronic device changes from not satisfying a specific condition to satisfying a specific condition.
  • the electronic device detects that the user touches the screen, the electronic device can switch the hardware refresh rate from a low refresh rate to a high refresh rate, and switch the software refresh rate to a high refresh rate.
  • the electronic device does not detect the operation of the user's touch screen, and the electronic device can switch the software refresh rate from a high refresh rate to a low refresh rate.
  • the user taps the screen the electronic device detects the touch operation of tapping the screen, and the electronic device can switch the software refresh rate from a low refresh rate to a high refresh rate.
  • the electronic device when the hardware refresh rate is high before the software refresh rate adjustment function is enabled, and the light in the room where the electronic device is located is turned off, the electronic device changes from not satisfying the specific condition to satisfying the specific condition.
  • the electronic device detects the operation of the user touching the screen, the electronic device can keep the hardware refresh rate and the software refresh rate unchanged.
  • the electronic device does not detect the operation of the user's touch screen, and the electronic device can switch the software refresh rate from a high refresh rate to a low refresh rate.
  • the user taps the screen the electronic device detects the touch operation of tapping the screen, and the electronic device can switch the software refresh rate from a low refresh rate to a high refresh rate.
  • the light in the room where the electronic device is located is turned off when the user is browsing a certain social application (from not meeting the specific condition to meeting the specific condition).
  • the electronic device detects that the user switches from a social application (low refresh rate) to a live broadcast application (high refresh rate), in order to ensure the flow field diagram of the page, the electronic device can keep the hardware refresh rate unchanged, and switch to a high refresh rate.
  • Software refresh rate When the electronic device detects that the live broadcast application is switched back to the social application, since the live broadcast application is still running, in order to improve user experience, the electronic device may keep the software refresh rate and the hardware refresh rate unchanged.
  • the electronic device switches to a higher hardware refresh rate.
  • the electronic device cuts up the refresh rate of the hardware and keeps the refresh rate of the software unchanged.
  • the electronic device simultaneously cuts up the hardware refresh rate and the software refresh rate.
  • step S604 reference may be made to the content of switching the hardware refresh rate in steps S202 and S304, and details are not repeated here.
  • the electronic device switches to a higher software refresh rate.
  • step S605 may refer to step S102, and details are not repeated.
  • the electronic device when the electronic device does not detect the above-mentioned operation acting on the touch screen (scenario 2), it can be determined that the operation acting on the touch screen ends; when the electronic device detects the above-mentioned operation acting on the touch screen During the operation, it can be determined that the operation on the touch screen has not ended.
  • the running applications of the electronic device include applications with a high refresh rate
  • the user touches to end the operation of running the application with a high refresh rate it may be determined that the operation on the touch screen ends.
  • the applications running on the electronic device include social applications (low refresh rate) and game applications (high refresh rate)
  • the user clicks to end the operation of the game application that is, the electronic device can determine that the operation on the touch screen ends.
  • the applications that may be running on the electronic device at this time may include applications corresponding to a low refresh rate, or may not include applications corresponding to a low refresh rate.
  • the electronic device cuts down the software refresh rate.
  • the electronic device may maintain the current hardware refresh rate and software refresh rate for a fourth time interval.
  • the fourth time interval may be fixed or variable.
  • the electronic device may set a certain length of time as the fourth time interval, for example, 2s, 4s, 5s and so on.
  • the electronic device may also determine the fourth time interval according to the above specific operations acting on the touch screen. For example, when the above operation is a touch operation of clicking, the electronic device may determine that the fourth time interval is 2s, and when the above operation is a touch operation such as a list or text, the electronic device may determine that the fourth time interval is 5s.
  • the electronic device may cut down the software refresh rate according to the hardware refresh rate and keep the hardware refresh rate unchanged.
  • step S607 the software refresh rate is cut down, for details, reference may be made to step S102, which will not be repeated here.
  • the electronic device keeps the hardware refresh rate and the software refresh rate unchanged.
  • the electronic device may keep the current hardware refresh rate and software refresh rate unchanged.
  • the electronic device When the electronic device is in non-dark light conditions, when the electronic device switches the hardware refresh rate, the human eye basically cannot perceive the change of the screen brightness. Therefore, when the electronic device switches the value of the first refresh rate, it will basically not affect the visual experience of the human eye. At this time, the electronic device may not limit switching of the first refresh rate.
  • the electronic device can cut down the value of the first refresh rate and the value of the second refresh rate in order to save energy, or can freely cut up the value of the first refresh rate and the value of the second refresh rate for user experience.
  • the electronic device When the electronic device is in a dark condition, when the electronic device switches the hardware refresh rate, the human eye can perceive the change of the screen brightness, so when the electronic device switches the first refresh rate, it will affect the visual experience of the human eye. At this time, the electronic device needs to limit switching of the first refresh rate. Further, in order to save energy consumption, when the electronic device needs to cut down the refresh rate, it can keep the first refresh rate unchanged and cut down the second refresh rate.
  • FIG. 15 shows a schematic structural diagram of the electronic device 100 .
  • the electronic device 100 shown in FIG. 15 is merely an example, and that the electronic device 100 may have more or fewer components than those shown in FIG. 11 , two or more components may be combined, or Different component configurations are possible.
  • the various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, And a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in 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 use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface 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 transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • WLAN wireless local area networks
  • WLAN wireless local area networks
  • Wi-Fi wireless Fidelity
  • BT Bluetooth
  • global navigation satellite etc.
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 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 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the receiver 170B can be placed close to the human ear to receive the voice.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • the electronic device 100 determines the intensity of pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of the electronic device 100 around three axes may be determined by the gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
  • the electronic device 100 when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the distance sensor 180F is used to measure the distance.
  • the electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also known as "touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • FIG. 16 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
  • an electronic device 1100 includes a processor 1110 , a sensor 1120 , a touch panel 1130 and a display screen 1140 .
  • the electronic device 1100 may further include a memory 1150 and a power supply 1160 .
  • the processor 1110 and the memory 1150 can communicate with each other through an internal connection path to transmit control and/or data signals, the memory 1150 is used to store computer programs, and the processor 1110 is used to call and run the computer program from the memory 1150 Computer program.
  • the display screen 1140 may include a display screen, and the touch panel 1130 may include a touch screen.
  • the above-mentioned processor 1110 and the memory 1150 can be combined into a processing device, more commonly they are components independent of each other, and the processor 1110 is used to execute the program codes stored in the memory 1150 to realize the above-mentioned functions.
  • the memory 1150 may also be integrated in the processor 1110 , or be independent of the processor 1110 .
  • the power supply 1160 is used to supply power to the above-mentioned modules or devices.
  • the processor 1110 may include, but not limited to, modules such as a sensor driver 1111 , a touch driver 1112 , and a display driver 1113 .
  • the sensor driver 1111 is used to drive the sensor 1120
  • the sensor driver 1111 can receive ambient light brightness from the sensor 1120 .
  • the touch driver 1112 is used to drive the touch panel 1130 , and the touch driver 1112 can receive a touch operation from the touch panel 1130 .
  • the display driver 1113 is used to drive the display screen 1140 , and the display driver 1113 can receive screen brightness from the display screen 1140 .
  • the sensor 1120 refer to the description of the ambient light sensor in FIG. 14, for the touch panel, refer to the description of the touch sensor in FIG. 14, and for the display screen, refer to the description of the display screen in FIG.
  • Fig. 17 shows a block diagram of the software structure of the electronic device according to the embodiment of the present application.
  • the software framework of the electronic equipment involved in the present application may include an application program layer, an application program framework layer (framework, FWK), a system library, an Android runtime, a hardware abstraction layer (hardware abstraction layer, HAL) and a kernel layer (kernel).
  • an application program layer an application program framework layer (framework, FWK)
  • FWK application program framework layer
  • system library an application program framework layer
  • Android runtime an Android runtime
  • HAL hardware abstraction layer
  • kernel layer kernel layer
  • the application layer may include a series of application packages, such as lock screen application, desktop application, sharing, Bluetooth, voice interaction application, address book, gallery, file manager, browser, contacts and other applications.
  • application packages such as lock screen application, desktop application, sharing, Bluetooth, voice interaction application, address book, gallery, file manager, browser, contacts and other applications.
  • the application on the portable device can be a native application (such as the application installed in the portable device when the operating system is installed before the portable device leaves the factory), or a third-party application (such as the user downloads and installs the application through the application store) application), which is not limited by the embodiment of this application.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer can include window manager, package management server, view, animation, broadcast receiver, power manager, font manager, database, input manager and screen manager, etc.
  • the screen manager is used to receive touch events detected by the screen driver
  • the input manager is used to receive key input events.
  • the system library and the Android runtime include the functions that the FWK needs to call, the Android core library, and the Android virtual machine.
  • a system library can include multiple function modules. For example: browser kernel, three-dimensional (3dimensional, 3D) graphics, font library, etc.
  • the hardware abstraction layer is an abstract interface driven by the device kernel, which is used to provide an application programming interface for accessing the underlying device to a higher-level Java API framework.
  • HAL contains multiple library modules such as camera, touch screen, sensor, display, bluetooth, audio, etc. Each of these library modules implements an interface for a specific type of hardware component.
  • the Android operating system will load the library module for the hardware component.
  • the kernel layer is the foundation of the Android operating system, and the final functions of the Android operating system are all completed through the kernel layer.
  • the kernel layer can include camera driver, display driver, Bluetooth driver, ultra wideband (Ultra Wideband, UWB) driver, audio driver, sensor driver and touch screen driver, etc.
  • the interface language between the kernel layer and the hardware abstraction layer is a hardware abstraction layer interface description language (HAL interface definition language, HIDL).
  • HAL interface definition language, HIDL hardware abstraction layer interface description language
  • the sensor driver is used to collect the ambient brightness data of the portable device
  • the display driver is used to collect the screen brightness data of the portable device, so as to detect the dark light condition of the electronic device.
  • the touch screen driver is used to detect touch screen events. For specific touch events, please refer to the description of the above-mentioned scene 1-scene 3, which will not be repeated here.
  • FIG. 18 provides a schematic flowchart of a display method.
  • the method may include step 1801 to step 1808 .
  • the sensor driver of the kernel driver layer collects ambient light brightness.
  • the sensor driving may drive the sensor (that is, the above-mentioned ambient light sensor) to obtain the ambient light brightness, and then the sensor is driven to obtain the above-mentioned ambient light brightness.
  • the sensor driver can collect the ambient light brightness periodically, for example, the sensor driver collects the ambient light brightness every two seconds.
  • the sensor driver of the kernel driver layer sends the ambient light brightness to the screen manager of the application framework layer.
  • the sensor driver can collect ambient light brightness.
  • the sensor driver can send the detected ambient light brightness to the screen manager.
  • the screen manager can receive the ambient light level from the sensor driver.
  • the display driver of the kernel driver layer collects screen brightness.
  • the display driver can periodically collect screen brightness.
  • the display driver of the kernel driver layer sends the screen brightness to the screen manager of the application framework layer.
  • the display driver can collect screen brightness.
  • the display driver can send the detected screen brightness to the screen manager.
  • the screen manager can receive screen brightness from the display driver.
  • the display driver can detect that the newly detected screen brightness is 120nit, the previous screen brightness is 230nit, and the screen brightness obtained last time and the screen brightness obtained this time have changed. Therefore, the display driver can report to the application framework layer The screen manager sends the acquired screen brightness of 120nit.
  • the screen manager of the application framework layer determines whether the electronic device is in a dim light condition according to ambient light brightness and/or screen brightness.
  • step 1805 reference may be made to S101, and details are not repeated.
  • the touch screen driver of the kernel driver layer detects the first operation.
  • the first operation may be a corresponding operation in scenario 1, scenario 2, and scenario 3, which will not be described in detail.
  • the touch screen driver of the kernel driver layer sends the first operation to the screen manager.
  • the touch screen driver When the touch screen driver detects the first operation, it can send the first operation to the screen manager.
  • the screen manager determines a software refresh rate and a hardware refresh rate according to the first operation and the dim light condition.
  • the screen manager can determine the software refresh rate and hardware refresh rate as usual.
  • the screen manager can determine the software refresh rate and hardware refresh rate according to the corresponding methods in Figure 8, Figure 10, Figure 11, Figure 12, Figure 13, and Figure 14.
  • the specific determination method please refer to the above description. Without further ado.
  • the screen manager sends the hardware refresh rate to the display driver.
  • the screen manager After the screen manager determines the hardware refresh rate this time, it can directly send the hardware refresh rate to the display driver.
  • the display driver drives the display screen to display image data according to the hardware refresh rate.
  • the display driver can drive the display screen to display (refresh) image data according to the hardware refresh rate.
  • the screen manager sends the software refresh rate to the application layer.
  • the screen manager After the screen manager determines the current software refresh rate, it can directly send the software refresh rate to the application layer.
  • the screen manager may first determine the application software corresponding to the software refresh rate, and then may send the software refresh rate to the application software corresponding to the application program layer.
  • Application software can be video, clock, gallery, application store and so on.
  • the application layer renders the image data according to the software refresh rate.
  • the application layer After the application layer receives the software refresh rate, it can process the image data according to the software refresh rate. That is, the application software can render, system synthesize and display the image data according to the frequency of the software refresh rate. For example, when the image application receives a software refresh rate of 60 Hz, the image application renders the image data at a frequency of 60 Hz.
  • the screen manager systematically synthesizes image data according to the software refresh rate.
  • the screen manager may include a system synthesizer, and after receiving the software refresh rate, the system synthesizer may systematically synthesize image data according to the software refresh rate.
  • step 1809 the screen manager executes step 1809 , step 1811 and step 1813 is not limited.
  • the portable device includes corresponding hardware structures and/or software modules for performing various functions.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and method steps described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • the portable device may be divided into functional modules.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other division methods in actual implementation.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state hard disk), etc.
  • the processes can be completed by computer programs to instruct related hardware.
  • the programs can be stored in computer-readable storage media.
  • When the programs are executed may include the processes of the foregoing method embodiments.
  • the aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk, and other various media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例公开一种显示方法、电子设备及计算机存储介质,包括:电子设备获取第一参数,第一参数包括环境光亮度和/或屏幕亮度;电子设备根据第一参数确定是否启动软件刷新率调整功能,软件刷新率调整功能为分别调整软件刷新率和硬件刷新率的功能;电子设备接收第一操作,第一操作为电子设备在启动软件刷新率调整功能的情况下接收的触控操作;电子设备根据第一操作和当前硬件刷新率和/或软件刷新率的情况,调整硬件刷新率和/或软件刷新率;若软件刷新率为高刷新率,当电子设备在第一时长内未检测到触控操作,则将软件刷新率从高刷新率切换为低刷新率。本申请实施例,可以减少屏幕的闪高亮现象。

Description

一种显示方法、电子设备及计算机存储介质
本申请要求于2021年06月10日提交中国专利局、申请号为202110650483.X、申请名称为“一种显示方法、电子设备及计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端显示技术领域,尤其涉及一种显示方法、电子设备及计算机存储介质。
背景技术
为了追求更流畅的画面,提高用户的观看体验,电子设备的能够支持的显示刷新率在不断地提升。例如,电子设备可以通过液晶显示器(liquid crystal display,LCD)或者有机电激光显示(organic light-emitting diode,OLED)支持的更高的刷新率。然而,随时刷新率的提升,电子设备的能耗也会越来越大。目前,人们提出了通过切换刷新率来兼顾用户体验和电子设备的能耗问题。
例如,在用户通过电子设备查看文字内容时,电子设备可以在刷新率较低的环境下进行工作,在用户通过电子设备玩游戏时,电子设备可以在刷新率较高的环境下进行工作。然而,在不同刷新率之间进行切换时,用户会明显地感受到电子设备屏幕亮度的变化。
发明内容
本申请提供了一种显示方法、电子设备及计算机存储介质,可以减少屏幕的闪高亮现象。
第一方面,本申请提供了一种显示方法,包括:电子设备获取第一参数,所述第一参数包括环境光亮度和/或屏幕亮度;所述电子设备基于所述第一参数确定是否启动软件刷新率调整功能,所述软件刷新率调整功能为分别调整软件刷新率和硬件刷新率的功能;所述电子设备接收第一操作,所述第一操作为所述电子设备在启动软件刷新率调整功能的情况下接收的触控操作;所述电子设备基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率;若所述软件刷新率为高刷新率,当所述电子设备在第一时长内未检测到触控操作,则将所述软件刷新率从高刷新率切换为低刷新率。
其中,第一操作可以是用户触控屏幕的操作(例如,点击、滑动等),也可以是启动或切换应用的操作,还可以是设置屏幕的刷新率的操作。刷新率的高低之间是相对的,高刷新率比与之对应的低刷新率的刷新率值高。电子设备将硬件刷新率从低刷新率切换为高刷新率,即可以理解为,电子设备切高(提高或调高)硬件刷新率。电子设备将硬件刷新率从高刷新率切换为低刷新率,即可以理解为,电子设备切低(降低或调低)硬件刷新率。软件刷新率的切换同理,不加赘述。
在本申请实施例中,电子设备在启用软件刷新率调节功能的情况下,可以提前将硬件刷新率切高,之后需要切换刷新率时,可以直接切换软件刷新率,从而可以减小硬件刷新率的切换,由此能够降低电子设备的闪屏次数,从而可以提高用户体验。此外,由于电子设备在不启用软件刷新率调节功能时。可以同时切换硬件刷新率和软件刷新率;在启用软 件刷新率调节功能时,可以切换软件刷新率,而不是一直保持较高的刷新率,因此,电子设备在提高用户体验的同样,能够降低功耗,节约能源。
在一种可能的实现方式中,所述电子设备基于所述第一参数确定是否启用软件刷新率调整功能包括:所述电子设备在检测到所述环境光亮度小于或等于第一阈值时,和/或,在检测到所述屏幕亮度小于或等于第二阈值时,确定启动软件刷新率调整功能。
在本申请实施例中,电子设备可以环境的光线条件以及屏幕亮度条件,确定自身所处的光线是否较暗,和/或,屏幕亮度是否较暗,有利于电子设备针对不同的环境光条件和/或屏幕亮度启用软件刷新率调整功能,从而可以减少由于环境光线暗和/或屏幕较暗切换硬件刷新率的闪屏情况。
在一种可能的实现方式中,所述第一操作为启用所述软件刷新率调整功能后首次接收到的第一操作时,所述电子设备基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率包括:当启用所述软件刷新率调整功能之前的硬件刷新率为低刷新率时,响应于所述第一操作,所述电子设备将所述硬件刷新率从低刷新率切换为高刷新率。
在本申请实施例中,当启用软件刷新率调整功能之前的硬件刷新率为低刷新率,且启用软件刷新率调整功能之后电子设备首次检测到用户的触控操作时,电子设备可以切高硬件刷新率,这样,启用软件刷新率调整功能之后的切换刷新率均可以通过切换软件刷新率满足,减少了切换硬件刷新率的次数,从而可以减少闪屏情况的出现,提高用户体验。
在一种可能的实现方式中,所述第一操作为启动或切换应用的操作,所述电子设备包括多个应用和所述多个应用分别对应的刷新率,所述电子设备基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率包括:当所述第一操作作用于低刷新率的应用,且当前的硬件刷新率为高刷新率,软件刷新率为高刷新率时,响应于所述第一操作,所述电子设备将所述软件刷新率从高刷新率切换为低刷新率。
在本申请实施例中,当电子设备启用软件刷新率调用功能之后,电子设备接收到用户启动或切换应用的操作时,电子设备可以通过切换软件刷新率调整刷新率,从而可以避免闪屏情况的出现,从而可以提高用户体验。
在一种可能的实现方式中,所述第一操作为启动或切换应用的操作,所述电子设备包括多个应用和所述多个应用分别对应的刷新率,所述电子设备基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率包括:当所述第一操作作用于高刷新率的应用,且当前的硬件刷新率为高刷新率,软件刷新率为低刷新率时,响应于所述第一操作,所述电子设备将所述软件刷新率从低刷新率切换为高刷新率。
在本申请实施例中,当电子设备启用软件刷新率调用功能之后,电子设备接收到用户启动或切换应用的操作时,电子设备可以通过切换软件刷新率调整刷新率,从而可以避免闪屏情况的出现,从而可以提高用户体验。
在一种可能的实现方式中,所述第一操作为将屏幕的刷新率设置为高刷新率的操作,所述电子设备基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率包括:在当前的硬件刷新率为高刷新率,软件刷新率为低刷新率时,响应于所述第一操作,所述电子设备将所述软件刷新率从低刷新率切换为高刷新率。
在本申请实施例中,当电子设备接收到设置刷新率的操作时,电子设备可以通过切换软件刷新率调整刷新率,从而可以避免闪屏情况的出现,从而可以提高用户体验。
在一种可能的实现方式中,所述第一操作为将屏幕的刷新率设置为低刷新率的操作,所述电子设备基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率包括:在当前的硬件刷新率为高刷新率,软件刷新率为高刷新率时,响应于所述第一操作,所述电子设备将所述软件刷新率从高刷新率切换为低刷新率。
在本申请实施例中,当电子设备接收到设置刷新率的操作时,电子设备可以通过切换软件刷新率调整刷新率,从而可以避免闪屏情况的出现,从而可以提高用户体验。
在一种可能的实现方式中,所述若所述软件刷新率为高刷新率,当所述电子设备在第一时长内未检测到触控操作,则将所述软件刷新率从高刷新率切换为低刷新率之后,所述方法还包括:所述电子设备在启动软件刷新率调整功能的情况下接收第二操作,所述第二操作是非首次触控操作;所述电子设备基于所述第二操作将所述软件刷新率从低刷新率切换为高刷新率。
在本申请实施例中,当电子设备启用软件刷新率调整功能之后,电子设备可以根据用户操作切高软件刷新率,当一段时间内没有接收到触控操作时,可以降低软件刷新率,当再一次接收到触控操作时,可以提高软件刷新率。上述的用户的触控操作过程中,电子设备可以仅仅通过调整软件刷新率,实现刷新率的切换,从而不但可以减少闪高屏的次数,而且可以节约能高。
在一种可能的实现方式中,所述电子设备在所述第一操作为所述特定条件下的首次触控操作时,切高硬件刷新率包括:所述电子设备在所述第一操作为所述特定条件下的首次触控操作下且第二时长内所述硬件刷新率的切换次数小于第三阈值时,切高硬件刷新率。
在本申请实施例中,在启用软件刷新率调整功能时,硬件刷新率频繁切换时,用户会明显感受到频繁的闪屏现象,因此,可以在一定时间内限制切换硬件刷新率的次数,从而可以减少闪屏次数,提高用户体验。
在一种可能的实现方式中,切换后的软件刷新率为所述硬件刷新率的1/N,所述N为正整数。
第二方面,本申请提供了一种电子设备,包括:显示屏、一个或多个处理器和一个或多个存储器,其中:所述处理器,用于获取第一参数,所述第一参数包括环境光亮度和/或屏幕亮度;所述处理器,还用于基于所述第一参数确定是否启用软件刷新率调整功能,所述软件刷新率调整功能为分别调整软件刷新率和硬件刷新率的功能;所述处理器,还用于接收第一操作,所述第一操作为所述电子设备在启动软件刷新率调整功能的情况下接收的触控操作;所述处理器,还用于基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率;所述处理器,还用于若所述软件刷新率为高刷新率,当所述电子设备在第一时长内未检测到触控操作,则将所述软件刷新率从高刷新率切换为低刷新率。
其中,第一操作可以是用户触控屏幕的操作(例如,点击、滑动等),也可以是启动或切换应用的操作,还可以是设置屏幕的刷新率的操作。刷新率的高低之间是相对的,高 刷新率比与之对应的低刷新率的刷新率值高。电子设备将硬件刷新率从低刷新率切换为高刷新率,即可以理解为,电子设备切高(提高或调高)硬件刷新率。电子设备将硬件刷新率从高刷新率切换为低刷新率,即可以理解为,电子设备切低(降低或调低)硬件刷新率。软件刷新率的切换同理,不加赘述。
在本申请实施例中,电子设备在启用软件刷新率调节功能的情况下,可以提前将硬件刷新率切高,之后需要切换刷新率时,可以直接切换软件刷新率,从而可以减小硬件刷新率的切换,由此能够降低电子设备的闪屏次数,从而可以提高用户体验。此外,由于电子设备在不启用软件刷新率调节功能时。可以同时切换硬件刷新率和软件刷新率;在启用软件刷新率调节功能时,可以切换软件刷新率,而不是一直保持较高的刷新率,因此,电子设备在提高用户体验的同样,能够降低功耗,节约能源。
在一种可能的实现方式中,所述处理器基于所述第一参数确定是否启用软件刷新率调整功能包括:在检测到所述环境光亮度小于或等于第一阈值时,和/或,在检测到所述屏幕亮度小于或等于第二阈值时,确定启动软件刷新率调整功能。
在本申请实施例中,电子设备可以环境的光线条件以及屏幕亮度条件,确定自身所处的光线是否较暗,和/或,屏幕亮度是否较暗,有利于电子设备针对不同的环境光条件和/或屏幕亮度启用软件刷新率调整功能,从而可以减少由于环境光线暗和/或屏幕较暗切换硬件刷新率的闪屏情况。
在一种可能的实现方式中,所述第一操作为启用所述软件刷新率调整功能后首次接收到的第一操作时,所述处理器基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率包括:当启用所述软件刷新率调整功能之前的硬件刷新率为低刷新率时,响应于所述第一操作,将所述硬件刷新率从低刷新率切换为高刷新率。
在本申请实施例中,当启用软件刷新率调整功能之前的硬件刷新率为低刷新率,且启用软件刷新率调整功能之后电子设备首次检测到用户的触控操作时,电子设备可以切高硬件刷新率,这样,启用软件刷新率调整功能之后的切换刷新率均可以通过切换软件刷新率满足,减少了切换硬件刷新率的次数,从而可以减少闪屏情况的出现,提高用户体验。
在一种可能的实现方式中,所述第一操作为启动或切换应用的操作,所述电子设备包括多个应用和所述多个应用分别对应的刷新率,所述处理器基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率包括:当所述第一操作作用于低刷新率的应用,且当前的硬件刷新率为高刷新率,软件刷新率为高刷新率时,响应于所述第一操作,将所述软件刷新率从高刷新率切换为低刷新率。
在本申请实施例中,当电子设备启用软件刷新率调用功能之后,电子设备接收到用户启动或切换应用的操作时,电子设备可以通过切换软件刷新率调整刷新率,从而可以避免闪屏情况的出现,从而可以提高用户体验。
在一种可能的实现方式中,所述第一操作为启动或切换应用的操作,所述电子设备包括多个应用和所述多个应用分别对应的刷新率,所述处理器基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率包括:当所述第一操作作用于高刷新率的应用,且当前的硬件刷新率为高刷新率,软件刷新率为低刷新率时,响应于所述第一操作,将所述软件刷新率从低刷新率切换为高刷新率。
在本申请实施例中,当电子设备启用软件刷新率调用功能之后,电子设备接收到用户启动或切换应用的操作时,电子设备可以通过切换软件刷新率调整刷新率,从而可以避免闪屏情况的出现,从而可以提高用户体验。
在一种可能的实现方式中,所述第一操作为将屏幕的刷新率设置为高刷新率的操作,所述处理器基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率包括:在当前的硬件刷新率为高刷新率,软件刷新率为低刷新率时,响应于所述第一操作,将所述软件刷新率从低刷新率切换为高刷新率。
在本申请实施例中,当电子设备接收到设置刷新率的操作时,电子设备可以通过切换软件刷新率调整刷新率,从而可以避免闪屏情况的出现,从而可以提高用户体验。
在一种可能的实现方式中,所述第一操作为将屏幕的刷新率设置为低刷新率的操作,所述处理器基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率包括:在当前的硬件刷新率为高刷新率,软件刷新率为高刷新率时,响应于所述第一操作,将所述软件刷新率从高刷新率切换为低刷新率。
在本申请实施例中,当电子设备接收到设置刷新率的操作时,电子设备可以通过切换软件刷新率调整刷新率,从而可以避免闪屏情况的出现,从而可以提高用户体验。
在一种可能的实现方式中,所述若所述软件刷新率为高刷新率,当所述处理器在第一时长内未检测到触控操作,则将所述软件刷新率从高刷新率切换为低刷新率之后,所述处理器,还用于在启动软件刷新率调整功能的情况下接收第二操作,所述第二操作是非首次触控操作;所述处理器,还用于基于所述第二操作将所述软件刷新率从低刷新率切换为高刷新率。
在本申请实施例中,当电子设备接收到设置刷新率的操作时,电子设备可以通过切换软件刷新率调整刷新率,从而可以避免闪屏情况的出现,从而可以提高用户体验。
在一种可能的实现方式中,所述处理器在所述第一操作为所述特定条件下的首次触控操作时,切高硬件刷新率包括:在所述第一操作为所述特定条件下的首次触控操作下且第二时长内所述硬件刷新率的切换次数小于第三阈值时,切高硬件刷新率。
在本申请实施例中,在启用软件刷新率调整功能时,硬件刷新率频繁切换时,用户会明显感受到频繁的闪屏现象,因此,可以在一定时间内限制切换硬件刷新率的次数,从而可以减少闪屏次数,提高用户体验。
在一种可能的实现方式中,切换后的软件刷新率为所述硬件刷新率的1/N,所述N为正整数。
第三方面,本申请提供了一种电子设备,包括:一个或多个功能模块。一个或多个功能模块用于执行上述任一方面任一项可能的实现方式中的显示方法。
第四方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得通信装置执行上述任一方面任一项可能的实现方式中的显示方法。
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述任一方面任一项可能的实现方式中的显示方法。
附图说明
图1为本申请实施例提供的一种图像显示流程的示意图;
图2a为本申请实施例提供的一种人眼处于不同的环境光亮度下感知到的光亮度的变化曲线的示意图;
图2b为本申请实施例提供的一种伽马Gamma曲线的示意图;
图3为本申请实施例提供的一组界面示意图;
图4为本申请实施例提供的另一组界面示意图;
图5为本申请实施例提供的又一组界面示意图;
图6为本申请实施例提供的又一组界面示意图;
图7为本申请实施例提供的又一组界面示意图;
图8为本申请实施例提供的一种显示方法的流程示意图;
图9为本申请实施例提供的另一种图像显示流程的示意图;
图10为本申请实施例提供的另一种显示方法的流程示意图;
图11为本申请实施例提供的又一种显示方法的流程示意图;
图12为本申请实施例提供的又一种显示方法的流程示意图;
图13为本申请实施例提供的又一种显示方法的流程示意图;
图14为本申请实施例提供的又一种显示方法的流程示意图;
图15为本申请实施例提供的一种硬件结构示意图;
图16为本申请实施例提供的另一种硬件结构示意图;
图17为本申请实施例提供的一种软件架构示意图;
图18为本申请实施例提供的又一种显示方法的流程示意图。
具体实施方式
下面将结合附图对本申请实施例中的技术方案进行地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
首先,结合附图介绍本申请实施例中与电子设备显示相关的一些概念,包括垂直刷新(vertical scanning,Vsync)机制、硬件刷新率、软件刷新率和伽马Gamma曲线。
(1)垂直刷新机制
垂直刷新(vertical scanning,Vsync)机制为从上到下的刷新机制。在垂直刷新机制中,电子设备可以周期性地产生垂直同步信号。即电子设备的显示驱动间隔相同的时间间隔生成一个垂直同步信号。垂直同步信号可以触发电子设备对图像数据进行计算、渲染和合成。具体地,当电子设备的处理器(例如,中央处理器(central processing unit,CPU)和图形处理器(graphics processing unit,GPU))接收到垂直同步信号之后可以对图像数据进行计算和渲染。当电子设备的图像合成器(SurfaceFlinger)接收到垂直同步信号之后,可以对渲染之后的图像数据进行系统合成。当电子设备的显示器接收到垂直同步信号之后,可以对系统合成之后的图像数据进行显示。电子设备可以根据垂直同步信号的“节奏”依次对图像数据进行渲染、系统合成和显示,但是进行渲染、系统合成和显示是不同的。其中,在一个垂直同步信号的周期内,电子设备对图像数据进行一次渲染、一次系统合成和一次显示。例如,如图1所示,在相邻的4个周期的垂直同步信号期间,图像的处理和显示过程。垂直同步信号t2的周期内,电子设备的CPU可以对图像数据3进行计算,电子设备的GPU可以对图像数据3进行渲染,电子设备的SurfaceFlinger可以对垂直同步信号t1的周期内渲染得到的图像数据2进行系统合成,以及电子设备的显示器可以对垂直同步信号t1的周期内系统合成得到的图像数据1进行显示。一个图像数据的处理和显示过程需要在多个周期的垂直同步信号内完成。例如,针对图像数据2,在垂直同步信号t1的周期内进行计算和渲染;在垂直同步信号t2的周期内进行系统合成;在垂直同步信号t3的周期内进行显示。
(2)硬件刷新率和软件刷新率
对于电子设备的显示刷新可以有两个层面的刷新率,一是软件刷新率,即帧率,为系统合成器、系统应用的实际工作频率;二是硬件刷新率,硬件刷新率往往是指显示器(屏幕)的刷新率。
(3)伽马Gamma曲线
请参阅图2a,图2a示出了人眼处于不同的环境光亮度下感知到的光亮度的变化曲线。图2a中的曲线近似与Gamma曲线。伽马曲线为y=x Gamma的曲线。其中Gamma的值小于1,横坐标x表示自然界入射到人眼的亮度,纵坐标y表示人感知到的亮度。从图2a可以得出,自然界入射人眼的亮度与人感知到的亮度呈非线性变化。当自然界亮度较暗(输入人眼的亮度较小)时,微小的亮度增长使得人感知到的亮度显著提升;当自然界的达到一定值时,人感知到的亮度变化逐渐变小。
在电子设备的显示过程中,显示器的输入电压与屏幕的输出亮度呈线性关系,因此,电子设备的输入电压与人感知亮度之间的曲线关系近似于Gamma值小于1的Gamma曲线(凸形)。为了使人感知到的亮度与显示器的输入电压接近线性关系,即Gamma为1,电子设备的显示器可以对输入电压与输出亮度映射关系进行校正,即通过Gamma值大于1的Gamma曲线进行校正。经过校正,电子设备显示器的输入电压与人感知到的亮度能够接近线性关系。
请参阅图2b,图2b是本申请实施例公开的一种Gamma曲线的示意图。如图2b所示,Gamma曲线横坐标为电子设备的显示器的输入电压,纵坐标为人感知亮度。假设,电子设 备输入电压与人感知亮度的Gamma曲线为Gamma为1/2.2的曲线,经过Gamma为2.2的Gamma曲线校正之后,电子设备输入电压与人感知亮度的Gamma曲线接近Gamma为1的直线。
下面介绍本申请实施例涉及的应用场景。
下面说明屏幕刷新率调整的一些场景。
场景1:电子设备可以根据用户设置调整硬件刷新率。
用户主动设置切换屏幕刷新率。当电子设备检测到针对用于切换刷新率的控件的触控操作时,可以对刷新率进行切换。用户可以通过屏幕的控件选择更高的刷新率或者更低的刷新率。响应于用户切换刷新率的操作,电子设备可以对屏幕的硬件刷新率进行切换,从而可以完成刷新率的切换。
图3示出了一组界面示意图。
图3中的(a)示出了手机的用户界面300。用户界面300中可以包括至少一个应用程序的图标,每个应用程序的图标下方具有相应的应用程序的名称。例如,微信图标、QQ图标、备忘录图标、邮箱图标、云共享图标、支付宝图标、图库图、设置图标301、电话图标、短信图标和相机图标。其中,应用程序的图标以及相应的应用程序的名称的位置可以根据用户的喜好进行调整,本申请实施例对此不作限定。用户可以点击设置图标301。响应于该用户操作,手机可以显示用户界面310。
图3中的(b)示出了手机的用户界面310。用户界面310中可以包括WLAN控件、蓝牙控件、移动网络控件和显示控件311等控件。用户可以点击显示控件311。响应于该用户操作,手机可以显示用户界面320。
图3中的(c)示出了手机的用户界面320。用户界面320中可以包括自动调节屏幕亮度控件、屏幕色温控件、屏幕分辨率控件和屏幕刷新率控件等控件。用户可以点击屏幕刷新率控件321。响应于该用户操作,手机可以显示用户界面330。
图3中的(d)中示出了手机的用户界面330。用户界面330中可以包括智能控件、自定义(屏幕刷新率)控件,其中,自定义控件可以包括低控件331、中控件332和高控件333。其中,智能控件331可以自动降低切换刷新率,有助于省电,自定义控件中低屏幕刷新率为60Hz,中屏幕刷新率为90Hz和高屏幕刷新率为120Hz。用户可以点击中屏幕刷新率控件332。响应于该用户操作,手机可以显示用户界面340。
图3中的(e)中示出了手机的用户界面340。用户界面330中刷新率已经切换为90Hz。
需要说明的是,图3所示的电子设备的界面示意图为本申请实施例的示例性的展示,电子设备的界面示意图也可以为其他样式,本申请实施例对此不作限定。
图4示出了另一组界面示意图。
图4示出了用户在手机屏幕刷新率的具体操作过程。图4中的(a)-(e)可以分别参考上述图3中的(a)-(e)中的描述,此处不再赘述。
图4中的(d)示出了手机的用户界面430。用户界面430的描述可以参考当前的手机刷新率为高刷新率,即120Hz,用户点击屏幕刷新率低控件。响应于该用户操作,手机可以显示用户界面440。手机可以将屏幕刷新率切换为60Hz。
需要说明的是,图4所示的电子设备的界面示意图为本申请实施例的示例性的展示,电子设备的界面示意图也可以为其他样式,本申请实施例对此不作限定。
场景2:电子设备也可以根据用户的触控操作或者作用于按键的操作智能调整硬件刷新率。
电子设备检测作用于屏幕的操作时(例如,用户点击屏幕等)或作用于按键的操作时,可以将当前的硬件刷新率和软件刷新率从低刷新率切换到高刷新率,或者维持高刷新率;而电子设备未屏幕被触控时,可以将当前的硬件刷新率从高刷新率切换到低刷新率,或者维持低刷新率。
图5示出了又一组界面示意图。
在一种实施方式中,图5中的(a)示出了手机微信的应用界面500,如上所述,当电子设备开启智能调整刷新率的功能时,可以根据用户的操作自动调整硬件刷新率,即屏幕刷新率。当用户点击应用界面500的控件时,响应于用户的点击操作,手机可以调高屏幕刷新率,例如,120Hz。应理解上述操作可以是其它操作,例如,长按、下拉、左划、右划、双击等。
在另一种实施方式中,图5中的(b)示出了一种应用界面510,应用界面510可以包括至少一个应用程序的图标,每个应用程序的图标下方具有相应的应用程序的名称,例如:天气、股票、计算器、图库511和相机等。其中,应用程序的图标以及相应的应用程序的名称的位置可以根据用户的喜好进行调整,本申请实施例对此不作限定。当用户触控图库图标时,响应于该操作,电子设备可以调高硬件刷新率,如120Hz。
在又一种实施方式中,当经过一段时间间隔未检测到用户的上述操作时,电子设备可以将硬件刷新率率调整为较低的屏幕刷新率。当经过图5中的(a)或图5中的(b)所示的用户操作电子设备可以将屏幕刷新率切换为120Hz,,经过2s后,电子设备依然未检测到用户操作,可以将电子设备的刷新率切换为较低的刷新率,如60Hz。
需要说明的是,图5中的(a)和图5中的(b)所示的电子设备的界面示意图为本申请实施例的示例性的展示,电子设备的界面示意图也可以为其他样式,本申请实施例对此不作限定。
场景3:电子设备还可以根据前台运行的应用调整硬件刷新率。
基于应用类型来切换刷新率。电子设备可以针对不同的应用类型(例如,视频类应用等)或应用包确定不同的刷新率,即电子设备可以确定应用类型或应用包与刷新率的对应关系。当电子设备检测到正在运行或者启动某一应用软件时,可以根据上述的对应关系将刷新率切换至对应的刷新率大小。
图6示出了又一组界面示意图。
图6中的(a)示出了电子设备的用户界面640,用户界面610可以为用户用于阅读的用户界面。用户界面610可以包括文字内容。图6中的(d)示出了电子设备的用户界面640。用户界面640可以用于用户直播购物的用户界面。用户界面640可以包括直播画面(例如,人物画面、XiaoMin直播间等)和购物链接(例如,眼镜379.9元、裤子139.9元和帽 子49.9元,以及三个物品对应“马上抢”的控件)。
电子设备可以启动并同时运行多个应用程序,为用户提供不同的服务或功能。其中,电子设备同时运行多个应用程序是指,电子设备已启动多个应用程序,该多个应用程序未关闭,且电子设未删除该多个应用程序占用的内存等资源,多个应用程序同时在后台占用内存等资源;而并不要求多个应用程序同时在前台与用户交互。例如,电子设备先后启动了阅读和淘宝这两个应用程序,并同时运行这两个应用程序。
用户在使用某个应用程序时,若发生应用程序的切换或跳转至桌面进行操作,则电子设备不会杀死用户之前使用的应用程序,而是将之前使用的应用程序作为后台应用程序保留在多任务队列中。
电子设备在同时运行多个应用程序的情况下,可以根据多任务队列中的多个应用程序,生成与每个应用程序分别对应的卡片。多任务界面上的多张卡片按照预设的顺序策略横向并列设置。例如,在一种顺序策略中,电子设备按照运行不同应用程序的时间先后顺序,排列不同应用程序对应的卡片。
电子设备在检测到指示打开多任务界面620的用户操作后,显示多任务界面620。该多任务界面620包括电子设备正在运行的多个应用程序分别对应的卡片。其中,指示打开多任务界面的用户操作可以有多种。
示例性的,当电子设备检测到针对于电子设备的底部的向上滑动操作时,响应于该操作,如图6中的(b)所示,电子设备显示多任务界面620。
多任务界面620可包括:卡片621、卡片622、删除图标623和切换菜单624。其中,卡片621被全部显示,卡片622被部分显示,切换菜单624包括阅读图标和淘宝图标。
删除图标623可以用于关闭当前多任务界面620中显示完整的卡片对应的应用程序。这里的关闭指删除该应用程序占用的内存等资源。一些实施例中,删除图标623可以用于关闭当前多任务界面620中所有卡片对应的应用程序。
需要说明的是,附图仅是示意性说明,附图所示的多任务界面620是指电子设备的边框内触摸屏上显示的界面,卡片在电子设备边框内的部分能够被电子设备的触摸屏显示,卡片在电子设备边框外的部分不能被电子设备的触摸屏显示。
当电子设备检测到针对于电子设备的底部左侧的用户操作,或者当电子设备检测到针对于电子设备的底部右侧的用户操作,电子设备显示如图6中的(b)所示的用户界面620。
在上述多任务界面620中,用户可以通过在多任务界面620上左右滑动的方式,对卡片进行切换显示。例如,当电子设备检测到在多任务界面620上的向左滑动操作时,响应于该操作,多任务界面620上的卡片依次向左移动,此时电子设备可以显示用户界面630,即可以完整显示卡片622,部分显示卡片621。用户可以点击任务界面630中的卡片622,将应用切换为卡片622对应的应用界面。响应于上述操作,电子设备可以显示用户界面640。
电子设备可以确定卡片621对应应用的屏幕刷新率与卡片622对应应用的屏幕刷新率不同。例如,卡片621对应应用的屏幕刷新率为60Hz,卡片622对应应用的屏幕刷新率为120Hz,因此,当电子设备检测到用户将卡片621对应应用切换到卡片622对应应用时,电子设备可以将硬件刷新率调整为120Hz。
图7示出了又一组界面示意图。
另一种情况下,图7中的(a)-(d)示出了用户切换应用界面的具体操作过程,详细描述可以分别参考图6中的(a)-(d)对应的描述,此处不加赘述。
在上述多任务界面720中,用户可以通过在多任务界面720上左右滑动的方式,对卡片进行切换显示。例如,当电子设备检测到在多任务界面720上的向右滑动操作时,响应于该操作,多任务界面720上的卡片依次向右移动,此时电子设备可以显示用户界面730,即可以完整显示卡片721,部分显示卡片722。用户可以点击任务界面730中的卡片721,将应用切换为卡片721对应的应用界面。响应于上述操作,电子设备可以显示用户界面740。
电子设备可以确定卡片721对应应用的屏幕刷新率与卡片722对应应用的屏幕刷新率不同。例如,卡片721对应应用的屏幕刷新率为60Hz,卡片722对应应用的屏幕刷新率为120Hz。
需要说明的是,图6和图7所示的电子设备的界面示意图为本申请实施例的示例性的展示,电子设备的界面示意图也可以为其他样式,本申请实施例对此不作限定。
电子设备的显示器通过屏幕上像素点的电子元件充放电发光。由于在不同硬件刷新率下,电子元件的充放电的时间不同,从而导致发光元件的充电电流和/或电压均有不同。进一步地,不同硬件刷新率的电流和/或电压的差异,会导致显示器的亮度产生差异。在不同硬件刷新率之间进行切换时,电子设备屏幕亮度会发生的突变。
研究发现,图2a示出了人眼处于不同的环境光亮度下感知到的光亮度的变化曲线,该曲线可以近似为如图2a所示的Gamma曲线。其中,横坐标x表示自然界入射到人眼的亮度,纵坐标y表示人感知到的亮度。其中,亮度可以用灰阶表示。从图2a可以得出,自然界入射人眼的亮度与人感知到的亮度呈非线性变化。当自然界亮度较暗(输入人眼的亮度较小)时,微小的亮度增长使得人感知到的亮度显著提升;当自然界的达到一定值时,人感知到的亮度变化值逐渐变小。可见,人眼在亮光环境中和暗光环境中对屏幕亮度变化的敏感度不同,当亮度较高时,人眼对亮度的变化较为顿感,即屏幕的刷新率切换时,人眼不容易察觉亮度发生变化;而当亮度较低时,人眼对亮度的变化较为敏感,可以感知屏幕亮度的突变。
当不切换硬件刷新率时,经过Gamma曲线矫正之后,显示器的输入电压和人眼感知到的亮度成正比(即Gamma=1),然而,当切换硬件刷新率时,显示器的亮度产生变化,暗光条件下,人眼感知到的亮度变化较大,而用于矫正的Gamma曲线不变,因此,暗光条件下,不同硬件刷新率显示器的输入电压和人眼感知到的亮度曲线有所差异。
现有屏幕刷新率调整时,没有考虑到调整时候用户所处的环境。当用户处在暗光情况下,调整硬件刷新率会导致用户感知到屏幕闪烁高亮的情况。如果一直维持硬件刷新率和软件刷新率不变,则又会导致电子设备功耗较高。
本申请实施例中,在需要切换屏幕刷新率的情况下,电子设备通过判断用户当前所处的环境,确定是否需要调整硬件刷新率。例如,当电子设备确定处于暗光情况下,遇到需要将硬件刷新率从高刷新率切换到低刷新率的场景,不会改变硬件刷新率,而是将软件刷新率切换至低刷新率。而如果电子设备确定处于亮光情况,则可以同时切换硬件刷新率和软件刷新率。这样既能节省电子设备的功耗,又能保证用户不会看到闪烁高亮的情况,从 而提高用户体验。
下面通过图8的实施例对本申请实施例公开的显示方法进行详细描述。
S101、电子设备确定是否满足特定条件。如果是,执行步骤S102;否则,执行步骤S103。
其中,特定条件可以是电子设备所述的环境光条件,也可以是屏幕亮度条件,还可以是时间,还可以是地点条件等,此处不加限定。
实施方式1:电子设备基于环境光亮度和/或屏幕亮度确定是否处于满足暗光条件。
特定条件可以为暗光条件,暗光条件是指电子设备所处环境较暗或者屏幕亮度较暗。例如,当环境光亮度小于或等于第一阈值时,或者,屏幕亮度小于或等于第二阈值,则电子设备满足暗光条件。示例性的,第一阈值的取值范围可以为200~400勒克斯(lux);第二阈值的取值范围可以为100~400尼特(nit)。
在一些实施例中,电子设备可以通过环境光传感器采集环境光亮度。电子设备采集到的环境光亮度由很多具体情况,随着具体环境情况的变化,环境光亮度也会改变,例如,电子设备所在的房间的灯被关或打开;电子设备环境光线被遮挡等等,环境光传感器采集环境光亮度会偏低。此时,电子设备采集到的环境光亮度的值会降低,这个场景下,就可能被判定为处暗光条件。
在一些实施例中,电子设备可以同时判断环境光亮度和屏幕亮度是否满足条件。例如,当环境光亮度大于第一阈值且屏幕亮度小于或等于第二阈值,电子设备确定满足暗光条件。
在另一些实施例中,电子设备也可以分别判断环境光亮度和屏幕亮度是否满足条件。例如,电子设备环境光亮度是否大于第一阈值。若环境光亮度大于第一阈值,则电子设备确定不满足暗光条件,否则满足暗光条件。电子设备还可以判断屏幕亮度是否大于第二阈值。如果是,则电子设备确定满足暗光条件;否则,不满足暗光条件。
当电子设备确定满足暗光条件,则执行步骤S102。若电子设备确定不满足暗光条件,则执行步骤S103。
实施方式2:电子设备基于当前时间检测是否处于特定条件。
电子设备可以基于当前时间确定当前是白天还是晚上,当前时间为晚上的时候,可以确定处于特定条件。例如,电子设备可以获取自身当前的时间(第一时间)为22:22,可以判断当前时间是否为北京时间的夜晚,因此可以确定当前处于特定条件。
实施方式3:电子设备基于当前地点检测是否处于特定条件。
当前的电子设备所处的地点或位置为环境亮度较低时,电子设备可以基于地点确定当前的自身位置处于特定条件。例如,电子设备可以通过全球定位系统(global positioning system,GPS)获取自身当前的位置为某一电影院,由于电影院的环境来亮度很低,可以确定当前处于特定条件。
当电子设备确定满足特定条件,则执行步骤S102。若电子设备确定不满足特定条件,则执行步骤S103。
在一些实施例中,电子设备还可以通过当前时间和当前地点确定是否处于特定条件,不加赘述。
需要说明的是,电子设备可以实时检测是否满足特定条件,也可以当检测到用户操作 时,或者需要切换刷新率的时候再判断是否满足特定条件。本申请实施例对此不做限定。
不同条件可以触发电子设备开始检测是否满足特定条件。一种情况下,电子设备可以根据上述环境光亮度、屏幕亮度、时间和地点的变换情况确定是否满足特定条件。例如,当环境光亮度发生变化时,可以触发电子设备开始确定是否满足特定条件。另一种情况下,电子设备还可以周期性地检测是否满足特定条件。例如,每个5s电子设备检测一次是否满足特定条件。又一种情况下,当电子设备的息屏时,可以不检测是否满足特定条件;否则,可以检测是否满足特定条件。
需要说明的是,在上述实施例中,电子设备可以基于环境光亮度、屏幕亮度、当前时间和当前地点至少其中的一种参数确定是否满足特定条件。
S102、电子设备启用软件刷新率调整功能。
软件刷新率调整功能指电子设备在调整屏幕刷新率时,可以根据不同的情况只调整软件刷新率,而不调整硬件刷新率。
在一些实施例中,当电子设备检测到满足特定条件,则保持当前的硬件刷新率不变。当遇到需要切换屏幕刷新率的场景,例如上文所述的三种需要切换屏幕刷新率的情况。电子设备只切换软件刷新率,而保持硬件刷新率不变。切换软件刷新率的方式可以参考图9所述的方法,在此不做赘述。
在另一些实施例中,电子设备可以根据用户的操作和满足特定条件前的硬件刷新率确定是否调整屏幕刷新率。例如,当满足特定条件前的硬件刷新率是高刷新率,用户在暗光条件下操作电子设备,电子设备维持硬件刷新率和软件刷新率都是高刷新率。当用户在暗光条件下结束操作,则电子设备将软件刷新率切换为低刷新率,例如降为硬件刷新率的1/n,n为正整数。同时电子设备维持硬件刷新率为高刷新率。又例如,当满足特定条件前的硬件刷新率是低刷新率,用户操作时将硬件刷新率和软件刷新率切换为高刷新率。当用户在暗光条件下结束操作,则电子设备将软件刷新率切换为低刷新率,例如降为硬件刷新率的1/n,n为正整数。同时电子设备维持硬件刷新率为高刷新率。
在又一些实施例中,当电子设备需要切换当前的刷新率时,可以将软件刷新率切换为目标刷新率,且保持当前的硬件刷新率不变。其中,目标刷新率为电子设备需要切换到的刷新率。例如,当前的硬件刷新率和软件刷新率均为120Hz,目标刷新率为60Hz时,将软件刷新率切换为60Hz,硬件刷新率保持120Hz不变。当前的硬件刷新率为120Hz,软件刷新率均为60Hz,目标刷新率为120Hz时,将软件刷新率切换为120Hz,硬件刷新率保持120Hz不变。当前的硬件刷新率为120Hz,软件刷新率均为60Hz,目标刷新率为240Hz时,将软件刷新率切换为120Hz,硬件刷新率保持120Hz不变。当前的硬件刷新率为120Hz,软件刷新率均为120Hz,目标刷新率为240Hz时,将软件刷新率保持120Hz,硬件刷新率保持120Hz不变。电子设备可以先确定软件刷新率和目标刷新率,之后可以将软件刷新率切低为硬件刷新率的值的1/N,切换后的软件刷新率等于或接近目标刷新率。其中,N为正整数。其中,N可以是固定的,也可以是变化的。一种情况下,电子设备可以设定N的值。例如,电子设备可以设定N为2,当硬件刷新率和软件刷新率均为120Hz时,可以确定第一值为120/2=60Hz,电子设备可以将软件刷新率切低为60Hz。另一种情况下,电子设备也可以硬件刷新率和目标刷新率的N的值,之后可以根据N确定第一值。例如,当前的 硬件刷新率的值为240Hz,而电子设备的目标刷新率为60Hz,电子设备可以确定N为240/60=4,第一值为240/4=60Hz。此时,当N不是整数时,可以通过上取整或下取证确定N的值。上述仅是举例说明,不构成限定。其中,切换软件刷新率可以是提高软件刷新率,也可以是降低软件刷新率。
图9示出了一种软件刷新率调整方式。
如图9所示,电子设备可以先确定硬件刷新率(垂直刷新的频率)对应的一个周期的时间长度为第一时间间隔。当N为2时,电子设备可以确定第二时间间隔为第一时间间隔(两个相邻垂直同步信号之间的时间间隔)的两倍,也就可以确定软件刷新率为硬件刷新率的二分之一。即电子设备可以通过显示驱动每间隔第一时间间隔生成一个垂直同步信号,当电子设备每接收到两个垂直同步信号之后,可以对图像数据进行依次计算,渲染、系统合成和显示。当N为2时,电子设备的屏幕每隔一个第一时间间隔硬件刷新一次,且每隔两个第一时间间隔软件刷新一次。例如,当第一刷新率为120Hz时,第二刷新率可以确定为60Hz。具体描述可以参考图1对应的相关描述,此处不加赘述。
结合具体场景,说明软件刷新率调整功能如下:
一种实施方式中,当电子设备不满足特定条件(如开灯时),且硬件刷新率为低刷新率时。电子设备检测到从不满足特定条件到满足(如当电子设备所处环境的灯被关闭时)之后,当电子设备首次检测到用户触控屏幕的操作时(例如,灯被打开后,用户第一次点击屏幕时),电子设备将硬件刷新率从低刷新率切换为高刷新率。
另一种实施方式中,当电子设备不满足特定条件(如开灯时),且硬件刷新率为高刷新率时。电子设备检测到从不满足特定条件到满足(如当电子设备所处环境的灯被关闭时)之后,当电子设备首次检测到用户触控屏幕的操作时(例如,灯被打开后,用户第一次点击屏幕时),电子设备保持硬件刷新率为高刷新率不变。
又一种实施方式中,在满足特定条件,且电子设备的硬件刷新率为高刷新率,软件刷新率为低刷新率时,如场景3中,当检测到启动或切换应用的操作,且这一操作用于高刷新率的应用时(例如,从阅读应用切换到直播应用),电子设备可以将软件刷新率从低刷新率切换为高刷新率。
又一种实施方式中,在满足特定条件,且电子设备的硬件刷新率为高刷新率,软件刷新率为高刷新率时,如场景3中,当检测到启动或切换应用的操作,且这一操作用于低刷新率的应用时(例如,从直播应用切换到阅读应用),电子设备可以将软件刷新率从高刷新率切换为低刷新率。
又一种实施方式中,若屏幕处于息屏状态,电子设备检测到从不满足特定条件到满足之后(电子设备所处房间的灯被关闭),电子设备可以将硬件刷新率设置为高刷新率,当屏幕亮屏时,电子设备的按照高硬件刷新率进行显示。
又一种实施方式中,电子设备满足特定条件,且硬件刷新率和软件刷新率均为高刷新率时,经过一段时间均没有检测到用户的触控操作(例如,用户对屏幕进行点击、划动、双击等),电子设备可以将软件刷新率切换为低刷新率。此时,当电子设备又检测到触控操作时,可以将软件刷新率切换为高刷新率。
又一种实施方式中,在满足特定条件,且电子设备的硬件刷新率为高刷新率,软件刷 新率为低刷新率时,如场景1中,当检测将屏幕的刷新率设置为高刷新率的操作,电子设备可以将软件刷新率从低刷新率切换为高刷新率。
又一种实施方式中,在满足特定条件,且电子设备的硬件刷新率为高刷新率,软件刷新率为高刷新率时,如场景1中,当检测将屏幕的刷新率设置为低刷新率的操作,电子设备可以将软件刷新率从高刷新率切换为低刷新率。
应理解,上述的情况仅是举例说明,更多的情况可以参考步骤S202、S304、S403、S405、S407和S603的描述,不加赘述。
S103、电子设备不启用软件刷新率调整功能。
电子设备在需要调整屏幕刷新率的时候,可以同时调整硬件刷新率和软件刷新率。
例如,当前硬件刷新率为60Hz,目标刷新率为120Hz时,立即将硬件刷新率和软件刷新率均切换为120Hz。
应理解,当不同通过仅切换软件刷新率的方法使得软件刷新率达到目标刷新率时,可以将硬件刷新率切换为目标刷新率。但是,为了限时切换硬件刷新率的频次,使得切换次数不要过于频繁,可以加入切换的条件,保证硬件的切换频次在一定的范围内,从而可以减少硬件刷新率的切换次数,进而可以减少闪屏次数,提高用户体验。此外,当电子设备检测到自身处于暗光条件时,便可以立即将硬件刷新率切高,这样可以硬件刷新率已经提高,在本次暗光条件下可以避免再次切换硬件刷新率,从而可以进一步减少屏幕亮度突变的次数,提高用户体验。上述由于减少了刷新率切换的次数,从而可以提高屏幕的流畅性。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。
在本申请中,电子设备可以为终端设备,具有显示功能,电子设备的类型不做具体限定。在一些实施例中,本申请实施例中的电子设备可以是手机、可穿戴设备(例如,智能手环)、平板电脑、膝上型计算机(laptop)、手持计算机、电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等便携设备。还可以是电视机、车载设备、投影仪等设备。电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2022071281-appb-000001
或者其它操作系统的电子设备。
下面通过图10的实施例对本申请实施例公开的显示方法进行详细描述。
本实施例中,电子设备确定满足特定条件下时,且硬件刷新率为低刷新率时,电子设备可以提前切高硬件刷新率。
S201、电子设备确定是否满足特定条件。如果是,执行步骤S202;否则,执行步骤S203。
其中,步骤S201可以参考步骤S101,不加赘述。
S202、当进入特定条件时的硬件刷新率较低时,切高硬件刷新率。
电子设备可以同时切高硬件刷新率和软件刷新率;也可以切高硬件刷新率,并保持软件刷新率不变。
在一些实施例中,当满足特定条件时的硬件刷新率较低时,电子设备可以切高硬件刷新率和软件刷新率。此时,电子设备的刷新率等于其硬件刷新率和软件刷新率。例如,当前电子设备的硬件刷新率和软件刷新率均为60Hz,并检测到从不满足特定条件变为满足特 定条件时,电子设备可以将硬件刷新率和软件刷新率均切换为120Hz。
在另一些实施例中,当满足特定条件时的硬件刷新率较低时,电子设备可以切高硬件刷新率,保持软件刷新率不变。例如,当前电子设备的硬件刷新率和软件刷新率为60Hz,电子设备检测到从不满足特定条件变为满足特定条件时,电子设备可以将硬件刷新率切换为120Hz,软件刷新率维持60Hz不变。
当电子设备检测到满足特定条件时,电子设备可以判断硬件刷新率是否较低。当硬件刷新率较低时,切换硬件刷新率;否则,不切换。
在一些实施例中,电子设备可以判断满足特定条件下时初始的硬件刷新率是否大于或等于第三阈值。当大于第三阈值时,可以保持硬件刷新率不变;否则,切高硬件刷新率。其中,第三阈值不做限定。例如,第三阈值为120Hz,电子设备硬件刷新率为60Hz,且从亮光环境进入暗光环境时,(120>60)可以确定电子设备的硬件刷新率从高刷新率进入特定条件。第三阈值为120Hz,电子设备硬件刷新率为120Hz,且屏幕亮度从亮到暗时,
(120=120)可以确定电子设备的硬件刷新率从低刷新率满足特定条件。例如,电子设备从不满足特定条件变为满足特定条件时,可以根据当前电子设备的刷新率切高硬件刷新率。
在另一些实施例中,电子设备可以根据刷新率为档位切换硬件刷新率。例如,当前硬件刷新率选的范围为60Hz和120Hz。当硬件刷新率为60Hz时,切高硬件刷新率为120Hz。
以下通过几种可能的情形说明电子设备提前切换硬件刷新率的操作:
一种可能的情况下,在场景2中,用户在操作电子设备屏幕时(电子设备当前的硬件刷新率和软件刷新率均为120Hz),且电子设备所处环境的灯被关闭(电子设备进入特定条件),电子设备可以维持当前的硬件刷新率为120Hz。
另一种可能的情况下,用户通过电子设备观看视频,此时的硬件刷新率为60Hz,软件刷新率也为60Hz(低刷新率)。当电子设备的确定当前的位置为电影院时(用户边看小说边走入电影院时,电子设备从不满足特定条件变为满足特定条件),电子设备可以将当前的硬件刷新率切高为120Hz。
又一种可能的情况下,电子设备当前的硬件刷新率和软件刷新率均为60Hz(低刷新率),用户将手机的亮度调暗时(电子设备从非特定条件变为特定条件),电子设备可以将当前的硬件刷新率和软件刷新率均切高为120Hz。
又一种可能的情况下,当电子设备的显示屏息屏,且确定满足特定条件的情况下,电子设备在亮屏时,可以将硬件刷新率设置为高刷新率。例如,高刷新率为120Hz。一种情况下,当电子设备处于息屏状态时,当检测到环境光亮度或屏幕亮度较暗,可以将硬件刷新率设置为高刷新率。当电子设备检测到触控操作时,可以直接按照设置的高刷新率进行显示。另一种情况下,电子设备亮屏,且硬件刷新率为高刷新率时,检测到环境光亮度或屏幕亮度较暗,当检测到用户一段时间没有触控操作之后(还有可能是其它需要降低用户刷新率的操作,例如,设置屏幕的刷新率为低刷新率的操作,以及作用于切换或启动低刷新率应用的操作),电子设备可以保持硬件刷新率为高刷新率不变。
需要说明的是,上述仅仅是举例说明,并不构成限定。更多的情况可以参考步骤S102、S304、S403、S405、S407和S603的相关描述,不加赘述。
S203、电子设备不启用软件刷新率调用功能。
其中,步骤S203可以参考步骤S103,不加赘述。
S204、电子设备启用软件刷新率调整功能。
其中,步骤S204可以参考步骤S102,不加赘述。
下面通过图11的实施例对本申请实施例公开的显示方法进行详细描述。
本实施例中,电子设备检测到处于特定条件下时,且硬件刷新率为低刷新率时,电子设备不提前切高硬件刷新率,之后根据用户操作确定的是否需要切高硬件刷新率。
S301、电子设备确定是否满足特定条件。如果是,执行步骤S302;否则,执行步骤S303。
其中,步骤S301可以参考步骤S101,不加赘述。
S302、电子设备启用软件刷新率调整功能。
其中,步骤S302可以参考步骤S102,不加赘述。
S303、电子设备不启用软件刷新率调整功能。
其中,步骤S303可以参考步骤S103,不加赘述。
S304、电子设备响应于第一操作,启动硬件刷新率调整功能。
其中,第一操作可以是上文中场景中的用户操作。即,第一操作可以是场景1中用户主动切换刷新率的操作;也可以是场景2中用户触控屏幕的操作;还可以是场景3中用户切换应用的操作。还可以是需要其他操作,此处不加限定。
实施方式1:电子设备基于应用切换硬件刷新率。
如场景3中所描述的,当电子设备检测到作用于切换应用的操作时,电子设备可以根据切换后的应用确定是否需要将硬件刷新率切换到这一应用对应的硬件刷新率。其中,这一应用对应的硬件刷新率大于当前的硬件刷新率。例如,当从阅读(60Hz)硬件切换到抢票对应的应用(例如,12306等)时,电子设备可以将硬件刷新切高为120Hz。当从阅读(60Hz)硬件切换到直播对应的应用(120Hz)时,电子设备可以保持硬件刷新率为60Hz不变。
实施方式2:电子设备基于触控操作切换硬件刷新率。
当电子设备检测到作用于屏幕的触控操作时(场景2),可以根据具体的操作切换硬件刷新率。例如,当电子设备检测到用户点击图像控件的操作,打开某一应用时,可以保持当前的硬件刷新率不变,当电子设备检测到用户下拉页面的操作,可以将当前硬件刷新率从低刷新率切换为高刷新率。
实施方式3:电子设备基于切换刷新率场景的优先级切换硬件刷新率。
电子设备可以先对不同切换刷新率场景建立优先级的映射关系,之后针对特定的切换场景确定对应优先级,并根据优先级确定是否切换硬件刷新率。例如,场景1中,电子设备检测到作用于切换屏幕刷新率的操作可以作为高优先级场景;场景3中,电子设备检测到作用于切换应用的操作可以作为低优先级场景。因此,当电子设备硬件刷新率为低刷新率时,可以响应于作用于切高屏幕刷新率的操作,电子设备可以切高硬件刷新率。当电子设备硬件刷新率为低刷新率时,可以响应于作用于切换应用的操作,电子设备可以保持硬件刷新率不变。
应理解,上述判断是否需要切换硬件刷新率的过程是在需要切换电子设备的刷新率时执行的。上述为举例说明,不加限定。更多的情况可以参考步骤S102、S202、S403、S405、 S407和S603的相关描述,不加赘述。
下面通过图12的实施例对本申请实施例公开的显示方法进行详细描述。
S401、电子设备确定是否满足特定条件。如果是,启用软件刷新率调整功能,即执行步骤S403;否则,执行步骤S402。
其中,步骤S401可以参考步骤S101,不加赘述。
S402、电子设备不启用软件刷新率调整功能。
当电子设备不满足特定条件时,电子设备可以正常切换刷新率,即电子设备可以按照现有的切换刷新率的方法进行切换。即电子设备需要切换刷新率时,可以根据用户操作同时切换硬件刷新率和软件刷新率。此时,电子设备并不会限制对刷新率的切换。
其中,步骤S402可以参考步骤S103,不加赘述。
S403、电子设备判断是否提高软件刷新率。如果是,则执行S404;否则,执行S405。
在一种实施方式中,电子设备可以根据当前的用户操作判断是否提高软件刷新率。用户操作可以参考上文中场景1、2和3的相关内容。当电子设备检测检测到需要切高刷新率的操作时,即可以确定需要提高软件刷新率。
在另一种实施方式中,电子设备可以接收到切换指令,切换指令可以指示提高软件刷新率,例如,“01”标识为提高软件刷新率,“10”标识降低软件刷新率,“00”标识表示保持软件刷新率。响应于该切换指令,电子设备可以根据切换指令的标识判断是否提高软件刷新率,也可以判断是否降低软件刷新率。
在又一种实施方式中,电子设备可以根据目标刷新率切换软件刷新率。当目标刷新率大于当前的软件刷新率时,可以确定切换指令指示提高软件刷新率;当目标刷新率小于当前的软件刷新率时,可以确定切换指令指示降低软件刷新率;当目标刷新率等于当前的软件刷新率时,可以确定切换指令指示保持软件刷新率不变。
上述的情况仅仅是举例说明,更多的情况可以参考步骤S102、S202、S304、S405、S407和S603的相关描述,不加赘述。
S404、电子设备根据硬件刷新率切低软件刷新率,保持硬件刷新率不变。
其中,步骤S404具体可以参考步骤S102的描述,不加赘述。
当在特定条件下,电子设备需要向低切换软件刷新率时,可以切换软件刷新率,保持硬件刷新率不变。可以避免电子设备的屏幕亮度发生变化,从而可以提高用户体验。
S405、电子设备判断是否要切高硬件刷新率,如果是,执行S406;否则,执行S407。
在一种实施方式中,当电子设备确定需要切高自身的刷新率时,电子设备可以判断硬件刷新率是否不小于目标刷新率。当硬件刷新率的值大于或等于(不小于)目标刷新率的值时,电子设备可以确定当前的硬件刷新率已经能够达到需要切换的刷新率要求,执行步骤S406。当第一刷新率的值小于目标刷新率的值时,电子设备可以确定当前的硬件刷新率尚未达到刷新率要求,执行步骤S407。
在另一种实施方式中,电子设备可以响应于第一操作,启动硬件刷新调整功能。具体可以参考步骤S304的表述,不加赘述。
上述举例说明几种可能,更多的情况可以参考步骤S102、S202、S304、S403、S407 和S603的相关描述,不加赘述。
S406、电子设备切高软件刷新率,保持硬件刷新率不变。
其中,步骤S406具体可以参考步骤S102的相关描述,不加赘述。
S407、电子设备切换软件刷新率和硬件刷新率。
电子设备切换硬件刷新率和软件刷新率的过程可以参考步骤S103。
在一种实施方式中,电子设备可以确定特定条件下,第三时间间隔内硬件刷新率的切换次数是否大于第三阈值,如果是,电子设备可以保持软件刷新率和硬件刷新率均不变;否则,电子设备可以切换软件刷新率和硬件刷新率。其中,第三时间间隔可以为电子设备最近的一段特定时间长度的时间间隔,第三时间间隔可以,例如10s,20s等。第三阈值可以为电子设备可以确定暗光条件下,硬件刷新率切换次数的阈值。例如10次。具体地,电子设备检测到用户操作时(场景1、2和3其中的一种或几种),软件刷新率和硬件刷新率均为60Hz,在第三时间间隔内,特定条件下电子设备切换了4次,第三阈值为5次(4<5),则电子设备可以将软件刷新率和硬件刷新率均切换为120Hz。
需要说明的是,上述第三阈值是为了限制电子设备在特定条件下,不要频繁的切换,并不对上述的第三阈值的具体数值进行限定。更多的情况可以参考步骤S102、S202、S304、S403、S407和S603的相关描述,不加赘述。
下面通过图13的实施例对本申请实施例公开的显示方法进行详细描述。
S501、电子设备确定是否满足特定条件,如果是,启用软件刷新率调整功能,即执行步骤S503;否则,执行步骤S502。
其中,步骤S501可以参考步骤S101,不加赘述。
可选地,当确定是否满足特定条件时,电子设备可以切高硬件刷新率,具体可以参考步骤图10中的步骤S202的描述,不加赘述。
S502电子设备不启用软件刷新率调整功能。
其中,步骤S502可以参考步骤S103,不加赘述。
S503、电子设备判断是否切换硬件刷新率。如果是,执行步骤S504;否则,执行步骤S505。
其中,步骤S503可以参考步骤S304和步骤S405,不加赘述。
S504、电子设备切换软件刷新率,保持硬件刷新率不变。
其中,步骤S504可以参考步骤S102和步骤S406,不加赘述。
S505、电子设备切换软件刷新率和硬件刷新率。
其中,步骤S505可以参考步骤S103和步骤S407,不加赘述。
下面通过图14的实施例对本申请实施例公开的显示方法进行详细描述。
S601、电子设备确定是否满足特定条件。如果是,启用软件刷新率调整功能,即执行S603;否则,不启用软件刷新率调整功能,即执行S602。
其中,步骤S601可以参考步骤S101,不加赘述。
S602、电子设备不启用软件刷新率调整功能。
其中,步骤S602可以参考步骤S103,不加赘述。
S603、当检测到作用于触控屏幕的操作时,电子设备判断该操作是否为特定条件下的首次操作。如果是,执行S604;否则,执行S605。
当用户触控电子设备的屏幕时(场景2),电子设备可以检测到作用于触控屏幕的操作,之后电子设备可以判断此次操作是否为特定条件下的首次操作。首次操作是在本次暗光条件下,电子设备第一次检测到触控屏幕的操作。
以下说明启用软件刷新率调整功能之后的几种可能情况:
在一些实施例中,在启用软件刷新率调节功能之前,电子设备的硬件刷新率为低刷新率,电子设备所处的房间的灯被关闭时,电子设备从不满足特定条件进入满足特定条件。当电子设备检测到用户触控屏幕的操作时,电子设备可以将硬件刷新率从低刷新率切换为高刷新率,且将软件刷新率也切换为高刷新率。之后经过第一时间,电子设备均未检测到用户触控屏幕的操作,电子设备可以将软件刷新率从高刷新率切换为低刷新率。随后用户点击屏幕,电子设备检测到点击屏幕的触控操作,电子设备可以将软件刷新率从低刷新率切换为高刷新率。
在另一些实施例中,在启用软件刷新率调节功能之前的硬件刷新率为高刷新率时,电子设备所处的房间的灯被关闭时,电子设备从不满足特定条件进入满足特定条件。当电子设备检测到用户触控屏幕的操作时,电子设备可以保持硬件刷新率和软件刷新率不变。之后经过第一时间,电子设备均未检测到用户触控屏幕的操作,电子设备可以将软件刷新率从高刷新率切换为低刷新率。随后用户点击屏幕,电子设备检测到点击屏幕的触控操作,电子设备可以将软件刷新率从低刷新率切换为高刷新率。
在又一些实施例中,当电子设备处于不满足特定条件时,用户在浏览某一社交应用时,电子设备所处房间的灯关了(从不满足特定条件到满足特定条件)。此时,当电子设备检测到用户从社交应用(低刷新率)切换到直播应用(高刷新率)的操作时,为了保证页面的流场图,电子设备可以保持硬件刷新率不变,切高软件刷新率。当电子设备检测到从直播应用切换回社交应用时,由于直播应用尚且运行,为了提高用户的体验,电子设备可以保持软件刷新率和硬件刷新率不变。
应理解,上述的情况仅是举例说明,更多的情况可以参考步骤S102、S202、S304、S403、S405、S407的相关描述,不加赘述。
S604、电子设备切高硬件刷新率。
在一种实施方式中,电子设备切高硬件刷新率,保持软件刷新率不变。
在另一种实施方式中,电子设备同时切高硬件刷新率和软件刷新率。
其中,步骤S604可以参考步骤S202和S304中切换硬件刷新率的内容,不加赘述。
S605、电子设备切高软件刷新率。
其中,步骤S605可以参考步骤S102,不加赘述。
S606、电子设备判断作用于触控屏幕的操作是否结束。如果是,执行S607;否则,执行S608。
在一种实施方式中,当电子设备未检测到上述作用于触控屏幕的操作时(场景2),可以确定作用于触控屏幕的操作结束;当电子设备检测到上述作用于触控屏幕的操作时, 可以确定作用于触控屏幕的操作尚未结束。
在另一些实施方式中,电子设备正在运行的应用包括高刷新率的应用时,用户触控结束运行高刷新率的应用的操作时,可以确定作用于触控屏幕的操作结束。例如,当电子设备正在运行的应用有社交类应用(低刷新率)和游戏类应用(高刷新率),用户点击结束游戏应用的操作,即电子设备可以确定作用于触控屏幕的操作结束。应理解,此时电子设备可以正在运行的应用可以包括低刷新率对应的应用,也可以不包括低刷新率对应的应用。
S607、电子设备切低软件刷新率。
在一种实施方式中,当S606中的作用于触控屏幕的操作结束时,电子设备可以保持当前的硬件刷新率和软件刷新率第四时间间隔。第四时间间隔可以是固定的,也可以是变化的。电子设备可以设定某一时间长度为第四时间间隔,例如,2s,4s,5s等。电子设备还可以根据上述作用于触控屏幕的具体操作确定第四时间间隔。例如,当上述操作为点击的触控操作时,电子设备可以确定第四时间间隔为2s,当上述操作为下划清单或文本等触控操作时,电子设备可以确定第四时间间隔为5s。上述仅仅是举例说明不同的第四时间间隔的长短,不构成限定。经过第四时间间隔之后,电子设备可以根据硬件刷新率切低软件刷新率,保持硬件刷新率不变。
其中,步骤S607中切低软件刷新率,具体可以参考步骤S102,不加赘述。
S608、电子设备保持硬件刷新率和软件刷新率不变。
当S606中的用户操作尚未结束时,电子设备可以保持当前的硬件刷新率和软件刷新率不变。
在电子设备处于非暗光条件下,电子设备切换硬件刷新率时,人眼基本感知不到屏幕亮度发生的变化。所以电子设备切换第一刷新率的值时,基本不会影响人眼的视觉体验。此时,电子设备可以不限制第一刷新率的切换。电子设备可以为了节约能耗切低第一刷新率的值和第二刷新率的值,也可以为了用户体验,自由地切高第一刷新率的值和第二刷新率的值。
在电子设备处于暗光条件下,电子设备切换硬件刷新率时,人眼能够感知到屏幕亮度发生变化,因此电子设备切换第一刷新率时,会影响人眼的视觉体验。此时,电子设备需要限制第一刷新率的切换。进一步为了节约能耗,电子设备需要切低刷新率时,可以保持第一刷新率不变,并切低第二刷新率。
图15示出了电子设备100的结构示意图。
下面以电子设备100为例对实施例进行具体说明。应该理解的是,图15所示电子设备100仅是一个范例,并且电子设备100可以具有比图11中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A, 受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖 单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,
FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图 形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此 外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
图16为本申请实施例提供的另一种电子设备的结构示意图,如图16所示,电子设备1100包括处理器1110、传感器1120、触摸面板1130和显示屏1140。可选地,该电子设备1100还可以包括存储器1150和电源1160。其中,处理器1110和存储器1150之间可以通过内部连接通路互相通信,传递控制和/或数据信号,该存储器1150用于存储计算机程序,该处理器1110用于从该存储器1150中调用并运行该计算机程序。显示屏1140可以包括显示屏,触摸面板1130可以包括触摸屏。
上述处理器1110可以和存储器1150可以合成一个处理装置,更常见的是彼此独立的部件,处理器1110用于执行存储器1150中存储的程序代码来实现上述功能。具体实现时,该存储器1150也可以集成在处理器1110中,或者,独立于处理器1110。
可选地,电源1160用于为上述各个模块或者器件供电。
处理器1110可以包括不限于传感器驱动1111、触摸驱动1112和显示驱动1113等模块。其中,传感器驱动1111用于驱动传感器1120,传感器驱动1111可以接收到来自于传感器1120的环境光亮度。触摸驱动1112用于驱动触摸面板1130,触摸驱动1112可以接收来自触摸面板1130的触控操作。显示驱动1113用于驱动显示屏1140,显示驱动1113可以接收来自显示屏1140的屏幕亮度。
传感器1120可以参考图14中环境光传感器的描述,触摸面板可以参考图14中触摸传感器的描述,显示屏可以参考图14中显示屏的描述,不加赘述。
存储器1150可以参考图14对应的存储器,不加赘述。
图17示出了本申请实施例的电子设备的软件结构框图。
如图17所示,本申请涉及的电子设备的软件框架可以包括应用程序层,应用程序框架层(framework,FWK)、系统库、安卓运行时、硬件抽象层(hardware abstraction layer,HAL)和内核层(kernel)。
其中,应用程序层可以包括一系列应用程序包,例如锁屏应用、桌面应用、分享、蓝牙、语音交互应用、通信录、图库、文件管理器、浏览器、联系人等应用程序。其中,在本申请中,关于应用程序层的应用,可以参考常规技术中的介绍和说明,本申请不做赘述。在本申请中,便携设备上的应用可以是原生的应用(如在便携设备出厂前,安装操作系统时安装在便携设备中的应用),也可以是第三方应用(如用户通过应用商店下载安装的应用),本申请实施例不予限定。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。如图17所示,应用程序框架层可以包括窗口管理器,打包管理服务器,视图,动画,广播接收器,电源管理器,字体管理器,数据库,输入管理器和屏幕管理器等。其中,在本申请中,屏幕管理器用于接收屏幕驱动检测到的触控事件,输入管理器用于接收按键的输入事件。
系统库和安卓运行时包含FWK所需要调用的功能函数,Android的核心库,以及Android虚拟机。系统库可以包括多个功能模块。例如:浏览器内核,三维(3dimensional,3D)图形,字体库等。
硬件抽象层是设备内核驱动的抽象接口,用于实现向更高级别的Java API框架提供访问底层设备的应用编程接口。HAL包含多个库模块,例如相机、触摸屏、传感器、显示屏、蓝牙、音频等。其中每个库模块都为特定类型的硬件组件实现一个接口。当系统框架层API要求访问便携设备的硬件时,Android操作系统将为该硬件组件加载库模块。
内核层是Android操作系统的基础,Android操作系统最终的功能都是通过内核层完成。内核层可以包含摄像头驱动,显示驱动,蓝牙驱动,超宽带(Ultra Wideband,UWB)驱动,音频驱动,传感器驱动和触屏驱动等。例如,内核层与硬件抽象层之间的接口语言为硬件抽象层接口描述语言(HAL interface definition language,HIDL)。其中,传感器驱动用于采集便携设备的环境亮度数据,显示驱动用于采集便携设备的屏幕亮度数据,以便在电子设备检测其所处暗光条件。触屏驱动用于当检测触屏事件,具体触控事件可以参考上述场景1-场景3的描述,此处不加赘述。
需要说明的是,本申请提供的图17所示结构的便携设备的软件结构示意图仅作为一种示例,并不限定Android操作系统不同分层中的具体模块划分,具体可以参考常规技术中对Android操作系统软件结构的介绍。另外,本申请提供的一种电子设备的显示方法还可以基于其他操作系统实现,本申请不再一一举例。以下实施例以图17所示结构的便携设备的软件结构为例,对本申请实施例提供的技术方案进行具体阐述。
结合图17示出的电子设备的软件框架示意图,图18提供了一种显示方法的流程示意性。该方法可以包括步骤1801至步骤1808。
以下以特定条件为暗光条件进行说明。
1801、内核驱动层的传感器驱动采集环境光亮度。
传感器驱动可以驱动传感器(即上述的环境光传感器)获取环境光亮度,之后传感器驱动获取上述环境光亮度。
传感器驱动可以周期性地采集环境光亮度,例如,传感器驱动每两秒采集一次环境光亮度。
1802、内核驱动层的传感器驱动向应用程序框架层的屏幕管理器发送环境光亮度。
传感器驱动可以采集环境光亮度。当环境光亮度发生变化时,传感器驱动可以将检测到的环境光亮度发送给屏幕管理器。对应地,屏幕管理器可以接收来自传感器驱动的环境光亮度。
1803、内核驱动层的显示驱动采集屏幕亮度。
显示驱动可以周期性地采集屏幕亮度。
1804、内核驱动层的显示驱动向应用程序框架层的屏幕管理器发送屏幕亮度。
显示驱动可以采集屏幕亮度。当屏幕亮度发生变化时,显示驱动可以将检测到的屏幕亮度发送给屏幕管理器。对应地,屏幕管理器可以接收来自显示驱动的屏幕亮度。例如,显示驱动可以检测到新检测到的屏幕亮度为120nit,之前的屏幕亮度为230nit,上一次获取的屏幕亮度和此次获取的屏幕亮度发生变化,因此,显示驱动可以向应用程序框架层的屏幕管理器发送此次获取的屏幕亮度120nit。
1805、应用程序框架层的屏幕管理器根据环境光亮度和/或屏幕亮度确定电子设备是否处于暗光条件。
其中,步骤1805的具体描述可以参考S101,不加赘述。
1806、内核驱动层的触屏驱动检测第一操作。
第一操作可以是场景1、场景2和场景3中对应的操作,不加赘述。
1807、内核驱动层的触屏驱动向屏幕管理器发送第一操作。
当触屏驱动检测到第一操作时,可以向屏幕管理器发送第一操作。
1808、屏幕管理器根据第一操作和暗光条件确定软件刷新率和硬件刷新率。
第一操作可以参考上述场景对应的用户操作,不加赘述。
当处于亮光条件下,屏幕管理器可以照常确定软件刷新率和硬件刷新率。
当处于暗光条件下,屏幕管理器可以根据图8、图10、图11、图12、图13和图14中对应的方法确定软件刷新率和硬件刷新率,具体确定方法请参考上述描述,不加赘述。
1809、屏幕管理器向显示驱动发送硬件刷新率。
当屏幕管理器确定此次的硬件刷新率之后,可以直接向显示驱动发送硬件刷新率。
1810、显示驱动根据硬件刷新率驱动显示屏显示图像数据。
显示驱动可以驱动显示屏按照硬件刷新率显示(刷新)图像数据。
1811、屏幕管理器向应用程序层发送软件刷新率。
当屏幕管理器确定此次的软件刷新率之后,可以直接向应用程序层发送软件刷新率。
屏幕管理器可以先确定软件刷新率对应的应用软件,之后可以向应用程序层对应的应用软件发送软件刷新率。应用软件可以为视频、时钟、图库、应用商店等等。
1812、应用程序层根据软件刷新率渲染图像数据。
当应用程序层接收到软件刷新率之后,可以根据软件刷新率处理图像数据。即应用软件可以按照软件刷新率的频率对图像数据进行渲染、系统合成和显示。例如,当图片应用接收到软件刷新率为60Hz时,图片应用便按照60Hz的频率对图像数据进行渲染。
1813、屏幕管理器根据软件刷新率系统合成图像数据。
屏幕管理器可以包括系统合成器,当系统合成器接收到软件刷新率之后,可以按照软件刷新率系统合成图像数据。
应理解,屏幕管理器执行步骤1809、步骤1811和步骤1813的先后顺序不进行限定。
其中,图18对应具体方法流程可以参考上述图8、图10、图11、图12、图13和图14中的相关描述,此处不加赘述。
可以理解的是,便携设备为了实现上述任一个实施例的功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及方法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以对便携设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。

Claims (12)

  1. 一种显示方法,其特征在于,所述方法包括:
    电子设备获取第一参数,所述第一参数包括环境光亮度和/或屏幕亮度;
    所述电子设备基于所述第一参数确定是否启用软件刷新率调整功能,所述软件刷新率调整功能为分别调整软件刷新率和硬件刷新率的功能;
    所述电子设备接收第一操作,所述第一操作为所述电子设备在启动软件刷新率调整功能的情况下接收的触控操作;
    所述电子设备基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率;
    若所述软件刷新率为高刷新率,当所述电子设备在第一时长内未检测到触控操作,则将所述软件刷新率从高刷新率切换为低刷新率。
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备基于所述第一参数确定是否启用软件刷新率调整功能包括:
    所述电子设备在检测到所述环境光亮度小于或等于第一阈值时,和/或,在检测到所述屏幕亮度小于或等于第二阈值时,确定启动软件刷新率调整功能。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一操作为启用所述软件刷新率调整功能后首次接收到的第一操作时,所述电子设备基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率包括:
    当启用所述软件刷新率调整功能之前的硬件刷新率为低刷新率时,响应于所述第一操作,所述电子设备将所述硬件刷新率从低刷新率切换为高刷新率。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一操作为启动或切换应用的操作,所述电子设备包括多个应用和所述多个应用分别对应的刷新率,所述电子设备基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率包括:
    当所述第一操作作用于低刷新率的应用,且当前的硬件刷新率为高刷新率,软件刷新率为高刷新率时,响应于所述第一操作,所述电子设备将所述软件刷新率从高刷新率切换为低刷新率。
  5. 根据权利要求4所述的方法,其特征在于,所述第一操作为启动或切换应用的操作,所述电子设备包括多个应用和所述多个应用分别对应的刷新率,所述电子设备基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率包括:
    当所述第一操作作用于高刷新率的应用,且当前的硬件刷新率为高刷新率,软件刷新率为低刷新率时,响应于所述第一操作,所述电子设备将所述软件刷新率从低刷新率切换 为高刷新率。
  6. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一操作为将屏幕的刷新率设置为高刷新率的操作,所述电子设备基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率包括:
    在当前的硬件刷新率为高刷新率,软件刷新率为低刷新率时,响应于所述第一操作,所述电子设备将所述软件刷新率从低刷新率切换为高刷新率。
  7. 根据权利要求6所述的方法,其特征在于,所述第一操作为将屏幕的刷新率设置为低刷新率的操作,所述电子设备基于所述第一操作和当前硬件刷新率和/或软件刷新率的情况,调整所述硬件刷新率和/或软件刷新率包括:
    在当前的硬件刷新率为高刷新率,软件刷新率为高刷新率时,响应于所述第一操作,所述电子设备将所述软件刷新率从高刷新率切换为低刷新率。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述若所述软件刷新率为高刷新率,当所述电子设备在第一时长内未检测到触控操作,则将所述软件刷新率从高刷新率切换为低刷新率之后,所述方法还包括:
    所述电子设备在启动软件刷新率调整功能的情况下接收第二操作,所述第二操作是非首次触控操作;
    所述电子设备基于所述第二操作将所述软件刷新率从低刷新率切换为高刷新率。
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述电子设备在所述第一操作为所述特定条件下的首次触控操作时,切高硬件刷新率包括:
    所述电子设备在所述第一操作为所述特定条件下的首次触控操作下且第二时长内所述硬件刷新率的切换次数小于第三阈值时,切高硬件刷新率。
  10. 根据权利要求1-9任一项所述的方法,其特征在于,切换后的软件刷新率为所述硬件刷新率的1/N,所述N为正整数。
  11. 一种电子设备,其特征在于,包括:显示屏、一个或多个处理器和一个或多个存储器;所述一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备执行如权利要求1-10中的任一项所述的方法。
  12. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-10中任一项所述的方法。
PCT/CN2022/071281 2021-06-10 2022-01-11 一种显示方法、电子设备及计算机存储介质 Ceased WO2022257451A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP22819059.1A EP4220392B1 (en) 2021-06-10 2022-01-11 Display method, electronic device and computer storage medium
US18/249,625 US12020620B2 (en) 2021-06-10 2022-01-11 Display method, electronic device, and computer storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110650483.X 2021-06-10
CN202110650483.XA CN113722030B (zh) 2021-06-10 2021-06-10 一种显示方法、电子设备及计算机存储介质

Publications (1)

Publication Number Publication Date
WO2022257451A1 true WO2022257451A1 (zh) 2022-12-15

Family

ID=78672882

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/071281 Ceased WO2022257451A1 (zh) 2021-06-10 2022-01-11 一种显示方法、电子设备及计算机存储介质

Country Status (4)

Country Link
US (1) US12020620B2 (zh)
EP (1) EP4220392B1 (zh)
CN (2) CN115794287A (zh)
WO (1) WO2022257451A1 (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102826330B1 (ko) * 2021-03-17 2025-06-30 삼성전자주식회사 복수의 주사율들에 기반하여 컨텐트를 표시하는 전자 장치 및 그 동작 방법
CN115794287A (zh) 2021-06-10 2023-03-14 荣耀终端有限公司 一种显示方法、电子设备及计算机存储介质
CN116257235B (zh) * 2021-12-10 2024-09-17 华为技术有限公司 绘制方法及电子设备
CN116661724A (zh) * 2022-02-21 2023-08-29 荣耀终端有限公司 屏幕刷新率的切换方法、电子设备和计算机可读存储介质
CN117198214A (zh) * 2022-02-25 2023-12-08 荣耀终端有限公司 一种刷新率切换方法、电子设备及存储介质
CN117472483A (zh) * 2022-07-21 2024-01-30 荣耀终端有限公司 图像显示方法和相关装置
CN117711356B (zh) * 2022-08-24 2024-08-06 荣耀终端有限公司 一种屏幕刷新率切换方法及电子设备
WO2025029328A1 (en) * 2023-08-03 2025-02-06 Qualcomm Incorporated Dynamic frames-per-second (fps) based on touch events and display luminance
CN117687526A (zh) * 2023-11-16 2024-03-12 安徽曦合微电子有限公司 触控检测方法、系统、计算机设备和存储介质
CN118331524B (zh) * 2024-03-18 2025-03-21 荣耀终端股份有限公司 屏幕刷新率的设置方法及电子设备
CN120766634A (zh) * 2024-06-28 2025-10-10 荣耀终端股份有限公司 刷新率切换方法、软件程序产品、电子设备和存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8207977B1 (en) * 2007-10-04 2012-06-26 Nvidia Corporation System, method, and computer program product for changing a refresh rate based on an identified hardware aspect of a display system
CN106875925A (zh) * 2017-03-31 2017-06-20 北京小米移动软件有限公司 屏幕的刷新率调整方法和装置
CN111610848A (zh) * 2020-05-29 2020-09-01 Oppo广东移动通信有限公司 屏幕刷新率的调整方法、装置、电子设备和存储介质
CN111782458A (zh) * 2020-06-01 2020-10-16 Oppo(重庆)智能科技有限公司 屏幕刷新率调节方法、装置、存储介质与电子设备
CN112667340A (zh) * 2020-12-31 2021-04-16 努比亚技术有限公司 屏幕刷新控制方法、移动终端及计算机可读存储介质
CN113722030A (zh) * 2021-06-10 2021-11-30 荣耀终端有限公司 一种显示方法、电子设备及计算机存储介质

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI336453B (en) * 2006-12-18 2011-01-21 Asustek Comp Inc Method for adjusting working frequency of chip
US20100332981A1 (en) * 2009-06-30 2010-12-30 Daniel Lipton Providing Media Settings Discovery in a Media Processing Application
US9720527B2 (en) * 2012-08-06 2017-08-01 Tracfone Wireless, Inc. Evolutionary touch-based graphical user interface for electronic devices
CN103677538A (zh) * 2012-09-07 2014-03-26 腾讯科技(深圳)有限公司 多窗口显示方法及装置
CN105094272A (zh) 2014-05-14 2015-11-25 中兴通讯股份有限公司 一种终端的硬件刷新率的调节方法及装置
CN106708496B (zh) * 2015-11-18 2020-03-17 腾讯科技(深圳)有限公司 图形界面中标签页的处理方法和装置
CN106095417B (zh) * 2016-05-31 2019-04-05 Oppo广东移动通信有限公司 一种前景应用程序界面刷新同步方法及系统
US10433484B2 (en) * 2016-05-31 2019-10-08 Nexgen Ag, LLC Independent frequency control of the shaker head of a harvester
CN108243349A (zh) * 2016-12-26 2018-07-03 中科创达软件股份有限公司 一种信息处理方法及装置
CN106791212B (zh) * 2017-03-10 2019-07-02 Oppo广东移动通信有限公司 一种移动终端刷新率的控制方法、装置及移动终端
CN109147714A (zh) * 2017-06-16 2019-01-04 北京小米移动软件有限公司 屏幕的刷新率调整方法及装置、计算机可读存储介质
CN108762652B (zh) * 2018-03-27 2020-08-21 Oppo广东移动通信有限公司 智能终端的显示控制方法、装置、存储介质及智能终端
US20190378564A1 (en) * 2018-06-11 2019-12-12 Nanya Technology Corporation Memory device and operating method thereof
CN110134319A (zh) * 2019-05-16 2019-08-16 成都品果科技有限公司 一种基于android系统的图像显示方法及装置
CN110377251A (zh) * 2019-06-06 2019-10-25 努比亚技术有限公司 一种屏幕刷新率调整方法、终端及计算机可读存储介质
KR102911260B1 (ko) * 2019-10-04 2026-01-13 구글 엘엘씨 다수의 디스플레이 리프레시 레이트에 대한 심리스 전환
CN110619860B (zh) * 2019-10-15 2022-11-29 Oppo广东移动通信有限公司 屏幕刷新率的调整方法、装置、存储介质及电子设备
KR102740551B1 (ko) * 2020-08-04 2024-12-11 삼성전자주식회사 디스플레이를 포함하는 전자 장치 및 그의 동작 방법
CN112256219B (zh) 2020-10-13 2024-12-31 北京小米移动软件有限公司 显示方法及装置、终端及存储介质
CN112269702B (zh) * 2020-11-12 2023-04-18 三星电子(中国)研发中心 屏幕亮度调节方法、装置、电子设备及计算机可读介质
CN112363641B (zh) * 2020-11-24 2024-06-21 Oppo广东移动通信有限公司 触控扫描方法、tpic芯片、ddic芯片及模组
US11497852B2 (en) * 2020-12-21 2022-11-15 Beta Bionics, Inc. Ambulatory medicament device with power saving mode

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8207977B1 (en) * 2007-10-04 2012-06-26 Nvidia Corporation System, method, and computer program product for changing a refresh rate based on an identified hardware aspect of a display system
CN106875925A (zh) * 2017-03-31 2017-06-20 北京小米移动软件有限公司 屏幕的刷新率调整方法和装置
CN111610848A (zh) * 2020-05-29 2020-09-01 Oppo广东移动通信有限公司 屏幕刷新率的调整方法、装置、电子设备和存储介质
CN111782458A (zh) * 2020-06-01 2020-10-16 Oppo(重庆)智能科技有限公司 屏幕刷新率调节方法、装置、存储介质与电子设备
CN112667340A (zh) * 2020-12-31 2021-04-16 努比亚技术有限公司 屏幕刷新控制方法、移动终端及计算机可读存储介质
CN113722030A (zh) * 2021-06-10 2021-11-30 荣耀终端有限公司 一种显示方法、电子设备及计算机存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4220392A4

Also Published As

Publication number Publication date
US12020620B2 (en) 2024-06-25
EP4220392A4 (en) 2024-05-01
EP4220392B1 (en) 2025-04-09
CN115794287A (zh) 2023-03-14
US20230386382A1 (en) 2023-11-30
CN113722030A (zh) 2021-11-30
CN113722030B (zh) 2022-12-16
EP4220392A1 (en) 2023-08-02

Similar Documents

Publication Publication Date Title
CN113722030B (zh) 一种显示方法、电子设备及计算机存储介质
US12468430B2 (en) Displaying interfaces in different display areas based on activities
CN113362783B (zh) 刷新率切换方法和电子设备
CN113630572B (zh) 帧率切换方法和相关装置
KR102577396B1 (ko) 녹화 프레임 레이트 제어 방법 및 관련 장치
CN113625860B (zh) 模式切换方法、装置、电子设备及芯片系统
CN113961157B (zh) 显示交互系统、显示方法及设备
CN115016869B (zh) 帧率调整方法、终端设备及帧率调整系统
CN113963659A (zh) 显示设备的调整方法及显示设备
CN117198214A (zh) 一种刷新率切换方法、电子设备及存储介质
WO2023030168A1 (zh) 界面显示方法和电子设备
CN115686403A (zh) 显示参数的调整方法、电子设备、芯片及可读存储介质
WO2024066834A9 (zh) Vsync信号的控制方法、电子设备、存储介质及芯片
CN115480680A (zh) 多设备协同控制方法、终端设备及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22819059

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18249625

Country of ref document: US

ENP Entry into the national phase

Ref document number: 2022819059

Country of ref document: EP

Effective date: 20230425

NENP Non-entry into the national phase

Ref country code: DE

WWG Wipo information: grant in national office

Ref document number: 2022819059

Country of ref document: EP