CN117316084B - Screen-off display method and electronic equipment - Google Patents

Screen-off display method and electronic equipment Download PDF

Info

Publication number
CN117316084B
CN117316084B CN202311214648.4A CN202311214648A CN117316084B CN 117316084 B CN117316084 B CN 117316084B CN 202311214648 A CN202311214648 A CN 202311214648A CN 117316084 B CN117316084 B CN 117316084B
Authority
CN
China
Prior art keywords
screen
display
display brightness
brightness
time
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.)
Active
Application number
CN202311214648.4A
Other languages
Chinese (zh)
Other versions
CN117316084A (en
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 CN202311214648.4A priority Critical patent/CN117316084B/en
Publication of CN117316084A publication Critical patent/CN117316084A/en
Application granted granted Critical
Publication of CN117316084B publication Critical patent/CN117316084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/03Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes specially adapted for displays having non-planar surfaces, e.g. curved displays
    • G09G3/035Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes specially adapted for displays having non-planar surfaces, e.g. curved displays for flexible display surfaces
    • 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/0626Adjustment of display parameters for control of overall brightness
    • 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
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to the field of terminal display, in particular to a screen-off display method and electronic equipment. The method is applied to the electronic equipment, the electronic equipment is provided with a folding screen, the folding screen comprises a main screen and a secondary screen, the folding screen is in a folding state, and the method comprises the following steps: when the display state of the folding screen is monitored to be switched from bright screen display to off screen display, determining second display brightness according to the first display brightness and the first time, wherein the second display brightness represents the display brightness of the off screen display of the auxiliary screen; and controlling the auxiliary screen to display according to the second display brightness. By the method, the display brightness of the auxiliary screen can be adaptively saved, and unnecessary power consumption expenditure of screen display is saved while the use of a user is not influenced.

Description

Screen-off display method and electronic equipment
Technical Field
The application relates to the field of terminal display, in particular to a screen-off display method and electronic equipment.
Background
With the development of electronic technology, electronic devices are becoming more and more diversified. Currently, the market for folding screen devices is increasing. The folding screen device refers to an electronic device with a folding screen. Taking a folding screen mobile phone as an example, a display screen can be displayed through a bright screen when a user uses the folding screen mobile phone, so that a display function is provided for the user. When the user does not need to use the folding screen mobile phone, the display screen can automatically enter a screen-off (or screen-off) state under the operation of the user or after a preset time length so as to save the power consumption of the mobile phone.
At present, the brightness of the screen display after screen extinction can be adaptively adjusted according to the ambient light brightness. Taking an external folding screen mobile phone as an example, a photosensitive element on a display screen is usually arranged on a main screen, and the display brightness of the secondary screen off-screen display is adjusted through the ambient light information sensed by the photosensitive element on the main screen. In some scenes, if the external folding screen mobile phone is in a folded state and the auxiliary screen of the display screen is placed upwards, the auxiliary screen of the display screen cannot sense the information of the ambient light brightness, so that the external folding screen mobile phone cannot adaptively adjust the display brightness of the off screen. In other words, in the related art, the screen-off scheme is not intelligent enough, which may cause waste of power consumption.
Disclosure of Invention
The application provides a screen-off display method and electronic equipment, which solve the problems that a screen-off scheme in the prior art is not intelligent enough and power consumption waste is easy to cause.
In order to achieve the above purpose, the application adopts the following technical scheme:
In a first aspect, a method for displaying a screen in a screen quenching manner is provided, and the method is applied to an electronic device, wherein the electronic device is provided with a folding screen, the folding screen comprises a main screen and a secondary screen, and the folding screen is in a folded state, and the method comprises:
When the display state of the folding screen is monitored to be switched from bright screen display to off screen display, acquiring first display brightness and first moment, wherein the first display brightness is the display brightness of the bright screen display of the main screen before off screen, and the first moment is the off screen moment;
Determining second display brightness according to the first display brightness and the first time, wherein the second display brightness represents display brightness of the auxiliary screen off display;
And controlling the auxiliary screen to display according to the second display brightness.
In the embodiment of the application, the main screen can also be called an inner screen, and the auxiliary screen can also be called a back screen, an auxiliary screen, an outer screen and the like.
Taking an external folding screen mobile phone as an example, when the included angle between the main screen and the auxiliary screen is 180 degrees, the folding screen mobile phone is in an unfolding state (or called a full unfolding state). When the included angle between the main screen and the auxiliary screen is larger than 180 degrees and smaller than 270 degrees, the folding screen mobile phone is in a semi-folding state (or called a bracket state, a desk calendar state and the like). When the included angle between the main screen and the auxiliary screen is equal to 270 degrees, the folding screen mobile phone is in a folding state (or a fully folding state, etc.).
It should be noted that the main screen and the auxiliary screen may display one display interface together, or may display different display interfaces respectively.
In some implementations, the off-screen display application of the application layer registers for listening with a power management service module of the application framework layer; when the display state of the folding screen is switched from bright screen display to off screen display, the power management service module responds to the change of the display state of the screen, and notifies the display state of the current screen of the off screen display application by using a callback function, and pulls up the off screen display application. After the off-screen display application is pulled up, the off-screen display application obtains first display brightness and first time from the device state management service module of the application program framework layer.
In some implementations, the off-screen display application may issue an instruction to the folding screen management server module of the application framework layer to off-screen display, where the instruction may include a second display brightness; the instruction can be processed through the folding screen management service module, and the instruction is downwards transmitted to the auxiliary screen by calling the display driver in the kernel layer, so that the auxiliary screen is displayed in a second display brightness in a screen-off mode.
In the embodiment of the application, the display brightness and the time stamp (screen-off time) of the main screen bright screen display before screen off are comprehensively considered, and the correct environment light information of the current environment of the mobile phone can be accurately obtained, so that the auxiliary screen off display brightness is adaptively adjusted according to the correct environment light information, the use of a user is not influenced, and the unnecessary power consumption expenditure of screen display is saved.
In an implementation manner of the first aspect, the determining, according to the first display brightness and the first time, a second display brightness includes:
If the first moment is in the first time interval, determining the second display brightness as a first preset value;
and if the first moment is not in the first time interval, determining second display brightness according to the first display brightness and the first moment.
In some implementations, the display brightness of the display screen may include several options that are preset. For example, the display luminance includes a low-grade and a high-grade, wherein the display luminance of the high-grade is higher than that of the low-grade, and the values of the display luminances of the low-grade and the high-grade, respectively, are fixed. In this implementation, the display brightness of the display screen is switched between the high and low levels.
In other implementations, the display brightness of the display screen may include any value within a predetermined range. In this implementation, the display brightness of the display screen is switched within a preset range.
In general, the frequency of using the mobile phone by most users in the first time interval (such as daytime or 07:00-22:00) in a day is high, and the brightness of the environment in the time interval is relatively high, so that the display brightness of the secondary screen off display in the time interval is set to a first preset value, which is more in accordance with the use habit of most users. And the difference of the use habits of different users in the second time interval (such as night or 22:00-07:00) is larger, so that the display brightness of the secondary screen off display is determined according to the first display brightness and the first time in the second time interval, which is equivalent to the targeted setting for different users, has stronger adaptability and is beneficial to improving the user experience.
In an implementation manner of the first aspect, the determining, according to the first display brightness and the first time, a second display brightness includes:
Detecting whether the first display brightness is effective or not according to the first moment;
if the first display brightness is effective, determining the second display brightness according to the first display brightness;
And if the first display brightness is invalid, determining the second display brightness according to the screen gesture of the electronic equipment.
In some implementations, determining the second display brightness according to the first display brightness may be setting the second display brightness to the first display brightness, that is, setting the display brightness of the sub-screen off-screen display to the display brightness of the main screen bright-screen display before off-screen.
In the embodiment of the application, the screen gesture can refer to the relative position of the main screen and the auxiliary screen. For example, when the external folding screen mobile phone is in a folded state, the screen gesture may be that the main screen is upward, the auxiliary screen is downward, the main screen is downward, the auxiliary screen is upward, and so on. Here, upward and downward are relative terms, and for example, downward may refer to the same direction as gravity, and upward may refer to the opposite direction to gravity.
In an implementation manner of the first aspect, the detecting whether the first display brightness is valid according to the first time includes:
If the time interval between the first time and the current time is smaller than a first preset duration, judging that the first display brightness is effective;
And if the time interval between the first time and the current time is greater than a first preset duration, judging that the first display brightness is invalid.
In the embodiment of the application, before determining the second display brightness, whether the first display brightness is effective is detected according to the first time. By the mode, under the condition that the brightness of the environment light changes greatly after the screen is turned off for a period of time, the screen-off display brightness can be adjusted in a self-adaptive mode, the condition that the high screen-off display brightness is always maintained is effectively reduced, the use requirement of a user is met, and meanwhile, the power consumption of the mobile phone is saved.
If the first display brightness is invalid, which means that a longer time is elapsed from the moment of screen extinction at the moment, the screen gesture may change during the time interval, for example, the main screen is turned upwards to the main screen downwards, or the main screen is turned downwards to the main screen upwards, and the different gestures of the screen affect the perception of the ambient light brightness by the photosensitive element, so as to affect the determination of the brightness of the secondary screen extinction display. Based on the above, under the condition that the first display brightness is invalid, the brightness of the secondary screen off display is determined according to the screen gesture of the electronic equipment, so that the brightness of the secondary screen off display can be effectively and adaptively adjusted, the secondary screen off display is closer to the use environment of a user, and the user experience is improved.
In an implementation manner of the first aspect, the determining the second display brightness according to the screen gesture of the electronic device includes:
And setting the second display brightness to a second preset value under the condition that the current screen posture of the electronic equipment is that the auxiliary screen is upward.
In some implementations, the first preset value and the second preset value may be the same. For example, if the first preset value is the brightness corresponding to the high-grade, if the first moment is in the first time interval, the second display brightness is set as the brightness corresponding to the high-grade; if the first time is not in the first time interval, setting the second display brightness to be the brightness corresponding to the high-grade under the condition that the current screen posture of the electronic equipment is that the auxiliary screen is upward.
In an implementation manner of the first aspect, the determining the second display brightness according to the first display brightness and the screen gesture of the electronic device includes:
Monitoring the screen gesture of the electronic equipment under the condition that the current screen gesture of the electronic equipment is that a main screen faces upwards;
When the screen gesture of the electronic equipment is switched from a main screen to a sub-screen, acquiring first brightness data, wherein the first brightness data comprises display brightness of main screen off-screen display corresponding to N times before a second time, and the second time is when the screen gesture of the electronic equipment is switched to the sub-screen;
and determining the second display brightness according to the first brightness data.
It should be noted that, in some implementations, the first luminance data may also include the second time and the display luminance of the main screen off display corresponding to each of N times before the second time. It will be appreciated that such implementations are also within the scope of embodiments of the present application.
In some implementations, when the screen gesture of the electronic device is that the main screen is upward, the light sensing sensor module of the hardware abstraction layer can monitor the ambient light brightness in real time and report the ambient light brightness to the device state management service module of the application framework layer; and the equipment state management service module calculates the display brightness of the main screen extinguishing display according to the ambient light brightness, records the time stamp and stores the display brightness and the corresponding time stamp as brightness data. The screen-off display application monitors that the screen gesture of the electronic equipment is switched from a main screen to a secondary screen, and requests information to the equipment state management service module; correspondingly, after receiving the request information, the equipment state management service module returns the current brightness data to the off-screen display application. In other implementations, the device state management service module may also report the luminance data to the off-screen display application in real time, where the luminance data is stored by the off-screen display application.
In some implementations, the off-screen display application may obtain, through the device state management service module, gesture data detected by the gesture sensor service module in the hardware abstraction layer, and determine a current screen state of the electronic device according to the gesture data. For example, the gesture data may include vertical acceleration. When the vertical acceleration is opposite to the gravity direction, judging that the main screen faces downwards and the auxiliary screen faces upwards; and when the vertical acceleration is the same as the gravity direction, judging that the main screen is upward and the auxiliary screen is downward. It should be noted that, the above is an example of judging the screen state according to the gesture data, and other sensor data may be used to judge the screen state, for example, the gesture angle, which is not limited in particular in the embodiment of the present application.
According to the embodiment of the application, the brightness of the secondary screen off display is determined according to the screen gesture of the electronic equipment, in this way, under the condition that the screen is turned over after off, the brightness of the secondary screen off display can be adjusted in a self-adaptive manner, the occurrence of the condition that the secondary screen off display brightness is lower is effectively reduced, and the user experience is improved.
In an implementation manner of the first aspect, the determining the second display brightness according to the first brightness data includes:
sequentially comparing the display brightness in the first brightness data with third display brightness according to the reverse time sequence, wherein the third display brightness is the last display brightness in the first brightness data in time sequence;
And when fourth display brightness different from the third display brightness is detected for the first time, determining the second display brightness according to the second time and a third time corresponding to the fourth display brightness.
In an implementation manner of the first aspect, the determining the second display brightness according to the second time and a third time corresponding to the fourth display brightness includes:
If the time interval between the second time and the third time is smaller than a second preset duration, determining the second display brightness according to the fourth display brightness;
And if the time interval between the second time and the third time is greater than or equal to a second preset duration, determining the second display brightness according to the third display brightness.
In an implementation manner of the first aspect, after comparing, in reverse order in time, display luminance in the first luminance data with third display luminance in sequence, the method further includes:
And if fourth display brightness different from the third display brightness is not detected, determining the second display brightness according to the third display brightness.
In some cases, the display brightness of the main screen is not necessarily updated when the screen gesture is switched to the sub-screen upward, and thus, the display brightness corresponding to the previous time of the second time may be compared with the display brightness as a reference.
In the embodiment of the application, the first brightness data can reflect the change condition of the brightness of the main screen off display in the process of changing the screen gesture, so that the second display brightness is determined according to the first brightness data, which is equivalent to the determination of the second display brightness according to the brightness of the main screen off display in the process of changing the screen gesture. By the mode, under the condition that the screen is turned over after the screen is turned off, the brightness of the secondary screen off display can be adjusted in a self-adaptive mode, the condition that the secondary screen off display brightness is low is effectively reduced, and the user experience is improved.
In one implementation manner of the first aspect, the method further includes:
and under the condition that the first moment is not in the first time interval, if the duration of the secondary screen display according to the second display brightness is up to a third preset duration, controlling the secondary screen to display according to a fifth display brightness, wherein the fifth display brightness is lower than the second display brightness.
For example, in the case where the display brightness of the display screen includes several options set in advance, such as a high-grade and a low-grade, the second display brightness may be a high-grade, and the fifth display brightness may be a low-grade. In the case where the display luminance of the display screen includes any value of the preset range, the fifth display luminance may be any value lower than the second display luminance within the preset range.
In the embodiment of the application, the display brightness of the screen-off display is reduced after the screen is turned off for a period of time. In this way, the power consumption of the screen can be effectively reduced.
In one implementation manner of the first aspect, the method further includes:
And under the condition that the auxiliary screen is displayed according to the fifth display brightness, if the current time is monitored to be in the first time interval, controlling the auxiliary screen to be displayed according to the sixth display brightness, wherein the sixth display brightness is higher than the fifth display brightness.
For example, in the case where the display brightness of the display screen includes several options set in advance, such as a high-level and a low-level, the second display brightness may be a high-level, the fifth display brightness may be a low-level, and the sixth display brightness may be a high-level, i.e., the sixth display brightness is the same as the second display brightness. In the case where the display luminance of the display screen includes any value of the preset range, the sixth display luminance may be any value higher than the fifth display luminance within the preset range, and the sixth display luminance may be the same as or different from the second display luminance.
In the embodiment of the application, the display brightness of the off-screen display is correspondingly adjusted according to the time change. And when the user is in the period of the peak period of using the electronic equipment, the display brightness of the off-screen display is improved. Through the mode, user experience is improved.
In one implementation manner of the first aspect, the method further includes:
If the secondary screen is displayed according to the fifth display brightness, if the screen posture of the electronic equipment is monitored to change, second brightness data are obtained, wherein the second brightness data comprise the display brightness of the primary screen display corresponding to each of M moments before a fourth moment, and the fourth moment is the moment when the screen posture of the electronic equipment stops changing;
determining a seventh display luminance according to the second luminance data;
And controlling the auxiliary screen to display according to the seventh display brightness.
For example, in the case where the display brightness of the display screen includes several options set in advance, such as a high-level and a low-level, the second display brightness may be a high-level, the fifth display brightness may be a low-level, and the seventh display brightness may be a high-level or a low-level. In the case where the display luminance of the display screen includes any value in the preset range, the seventh display luminance may be a value in the preset range.
It should be noted that, the execution sequence of the implementation manner is not specifically limited in the embodiment of the present application. For example, the steps of judging whether the screen gesture and the first time belong to the first time interval may be performed in parallel or in series. For another example, the judging step of judging whether the screen-off display duration reaches the third preset duration and the judging step of judging whether the current time belongs to the first time interval may be performed in parallel or may be performed in series.
In some implementations, the priority of judgment is that the screen gesture > timestamp > primary screen brightness before screen locking > primary screen brightness before turning over, namely, whether the screen gesture is the secondary screen upwards is judged first, whether the timestamp accords with a first time interval is judged, whether the primary screen brightness before screen locking is effective is judged, and when the primary screen is upwards, late night and the primary screen brightness before screen locking is ineffective, the primary screen brightness before turning over is calculated according to the primary screen brightness before turning over.
In other implementations, the priority of judgment is that the timestamp is the luminance of the main screen before screen locking and the screen gesture is the luminance of the main screen before turning over, namely, whether the timestamp accords with a first time interval is judged, whether the luminance before screen locking is effective is judged, whether the screen gesture is the upward side screen is judged, and when the main screen is upward, late night and the luminance before screen locking is invalid, the luminance is calculated according to the luminance of the main screen before turning over.
For the first implementation, if the priority of the screen gesture is higher than the timestamp, then the screen gesture needs to be monitored for any scene, and may also need to be monitored multiple times. For the second implementation, the priority of the timestamp and the brightness of the main screen before screen locking is higher than that of the screen gesture, so that the screen gesture only needs to be monitored in one scene. Compared with the prior art, the interaction flow of the second implementation mode is simpler, the interaction steps among the screen-off display application in the application layer, the equipment state management service module in the application framework layer and the attitude sensor service module in the hardware abstraction layer are reduced, and the power consumption is saved.
In the embodiment of the application, the monitoring screen gesture is kept in the process of screen-off display, and when the screen gesture changes, the display brightness of the secondary screen-off display is determined again. Due to the fact that the change of the screen posture possibly causes the perception accuracy of the photosensitive element to the ambient light, the situation that the display brightness of the auxiliary screen is not adaptively adjusted due to the fact that the perception of the ambient light is inaccurate can be effectively reduced, and the user experience is improved.
In a second aspect, there is provided an electronic device comprising a processor for executing a computer program stored in a memory, implementing the method of any one of the first aspects of the application.
In a third aspect, there is provided a system on a chip comprising a processor coupled to a memory, the processor executing a computer program stored in the memory to implement the method of any of the first aspects of the application.
In a fourth aspect, there is provided a computer readable storage medium storing a computer program which when executed by one or more processors performs the method of any of the first aspects of the application.
In a fifth aspect, the application provides a computer program product for causing a device to perform the method of any of the first aspects of the application when the computer program product is run on the device.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic diagram of different forms of an external folding screen mobile phone according to an embodiment of the present application;
Fig. 3 is a software block diagram of the electronic device 100 according to the embodiment of the present application;
fig. 4 is a schematic diagram of an application scene of screen quenching provided by an embodiment of the present application;
fig. 5 is a schematic view of a scene with darkened ambient brightness after screen extinction according to an embodiment of the present application;
Fig. 6 is a schematic diagram of a mobile phone turning scene after screen extinction according to an embodiment of the present application;
fig. 7 is a schematic flow chart of a screen-off display method according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a luminance data timeline according to an embodiment of the present application;
FIG. 9 is an interactive flow diagram of a method for displaying a screen on a screen according to an embodiment of the present application;
FIG. 10 is an interactive flow diagram of a method for displaying a screen on a screen according to an embodiment of the present application;
FIG. 11 is an interactive flow diagram of a method for displaying a screen on a screen according to an embodiment of the present application;
fig. 12 is an interactive flow chart of a screen-off display method according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that in embodiments of the present application, "one or more" means one, two, or more than two; "and/or", describes an association relationship of the association object, indicating that three relationships may exist; for example, a and/or B may represent: a alone, a and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Furthermore, in the description of the present specification and the appended claims, the terms "first," "second," "third," "fourth," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The method of the embodiment of the application can be applied to equipment with a folding screen. In the embodiment of the application, the "device with a folding screen" may also be simply referred to as a "foldable electronic device", "folding screen device" or "electronic device", etc. For convenience of description, the electronic device described in the following embodiments refers to a device having a folding screen, that is, an electronic device in which a display screen can be folded.
The electronic device in the embodiment of the application may be a personal computer (personal computer, PC) (such as a desktop computer, a notebook computer, a mini notebook computer, or an ultra-notebook computer), a tablet computer (abbreviated as tablet) and a mobile phone. The embodiment of the application does not limit the specific form of the terminal equipment. For convenience of explanation, the following embodiments will be described by taking a mobile phone as an example.
Exemplary, referring to fig. 1, a schematic structural diagram of an electronic device according to an embodiment of the present application is shown.
As shown in fig. 1, 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 charge management module 140, a power management module 140A, a battery 140B, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
The processor 110 may include one or more processing units, wherein different processing units may be separate devices or may be integrated in one or more processors.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge an electronic device, or may be used to transfer data between the electronic device and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also provide power to the electronic device through the power management module 140A while charging the battery 140B.
The wireless communication function of the electronic device 100 may be implemented 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.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to 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), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 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 194 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) screen (liquid CRYSTAL DISPLAY), an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), miniled, micrOLED, micro-OLED, a quantum dot LIGHT EMITTING diodes (QLED), or the like. In some embodiments, the electronic device 100 displays a user interface through the display 194.
The display 194 of the electronic device 100 may be configured as a foldable display, simply referred to as a folding screen. The folding screen can adopt an integrally formed flexible display screen, can also adopt a plurality of flexible display screens and a spliced display screen formed by hinges between every two flexible display screens, and can also adopt a plurality of rigid screens and a spliced display screen formed by hinges between every two rigid screens. The embodiment of the present application is not limited thereto.
Optionally, the display 194 includes a first screen area and a second screen area. In an embodiment of the present application, the electronic device 100 may be provided for an external folding screen device or an internal folding screen device. For convenience of explanation, the embodiment of the present application will be described by taking an example of a folding screen device.
For example, when the electronic device 100 is an out-folding screen device, a first screen area of the display screen 194 may be referred to as a main screen (or inner screen, etc.) of the electronic device 100, and a second screen area of the display screen 194 may be referred to as a sub-screen (or back screen, auxiliary screen, outer screen, etc.) of the electronic device 100. The first screen area and the second screen area may display one display interface together, or may display different display interfaces separately.
And determining the form or the gesture of the folding screen mobile phone according to the included angle between the first screen area and the second screen area. Referring to fig. 2, a schematic diagram of different forms of an external folding screen mobile phone according to an embodiment of the present application is shown. As shown in fig. 2 (a), when the angle between the first screen area 201 and the second screen area 202 is 180 °, that is, the first screen area 201 and the second screen area 202 are in the same plane, the folding screen mobile phone is in an unfolded state (or called a fully unfolded state). As shown in fig. 2b, when the folding screen mobile phone is folded outward in the arrow direction of fig. 2a, the angle α between the first screen area 201 and the second screen area 202 is greater than 180 ° and less than 270 °, and the folding screen mobile phone is in a semi-folded state (or stand state, calendar state, etc.). As shown in fig. 2 (c), when the angle between the first screen area 201 and the second screen area 202 is 270 °, the folding screen mobile phone is in a folded state (or called a fully folded state, etc.). It should be noted that, in the above examples, the description of the magnitude of the included angle between the first screen area 201 and the second screen area 202 of the folding-screen mobile phone in the unfolded state, the semi-folded state and the folded state is only an example, and the embodiment of the present application is not limited thereto. In addition, the folding screen is a folding screen mobile phone in an unfolded state, a semi-folded state or a folded state, and can also be called that the folding screen mobile phone is in an unfolded state, a semi-folded state or a folded state.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The camera 193 is used to capture still images or video. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1. For example, in the electronic device 100 shown in fig. 2, a front camera may be disposed on the first screen area 201 of the display screen 194, and a rear camera may be disposed on the area 203, which does not belong to the second screen area 202, of the back surface of the electronic device 100.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, the electronic device 100 stores the card punching data of the user in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an operating system, an application program required for at least one function, and the like. The storage data area may store data created during use of the electronic device 100 (e.g., interface information corresponding to a user interface, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
It should be understood that fig. 1 is only a structural example of an electronic device 100, and shows some modules related to a split screen display method according to an embodiment of the present application, and the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, a cloud architecture, or the like. The embodiment of the application takes an Android system with a layered architecture as an example, and illustrates a software structure of the electronic device 100.
Referring to fig. 3, a software block diagram of an electronic device 100 according to an embodiment of the present application is provided.
The layered architecture of the electronic device 100 divides the software into several layers, each with distinct roles and divisions. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into five layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun rows (Android runtime) and system libraries, a hardware abstraction layer (hardware abstraction layer, HAL), and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in fig. 3, the applications may include weather, clock, music, video applications, and off screen display (always on display, AOD) applications, among others. The off-screen application is used for realizing the self-adaptive adjustment of the off-screen display brightness through the off-screen display method provided by the embodiment of the application when the electronic equipment is in the off-screen state.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for the application of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 3, the application framework layer may include an application running management service module, a device state management service module, a folding screen management service module, a power management service module, and the like. The application operation management service module is used for realizing management of application program operation. The device state management service module is used for realizing management of the device state, for example, the current state of the device can be sent to an upper application program, and the device state can be the device posture, the display brightness of a display screen and the like. The folding screen management service module is used for realizing management of the gesture or display brightness of the folding screen, such as determining whether the folding screen is currently in an unfolded state, a folded state or a semi-folded state. The power management service module is used for realizing management of the display state of the screen, such as determining that the screen is in a state of being off or in a state of being on.
An Zhuoyun rows and system libraries include system libraries and An Zhuoyun rows. The android running process comprises a core library and a virtual machine and is responsible for scheduling and management of an android system. The core library comprises a function required to be called by JAVA language and a core library of android. The application layer and the application framework layer run in a virtual machine. The virtual machine executes JAVA files of the application layer and the application framework layer as binary files. The virtual machine is used for executing functions such as management of object life cycle, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules such as an expression manager, a media library, and a gesture manager, etc. The expression manager is used for managing the display subsystem and providing fusion of the 2D and 3D layers for a plurality of application programs. Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The gesture manager is to detect a gesture change of the electronic device. Taking an electronic device as a folding screen mobile phone as an example, the gesture manager can detect gesture changes of a folding screen of the folding screen mobile phone.
The hardware abstraction layer is located at an interface layer between the operating system kernel and the hardware circuitry. The hardware abstraction layer includes, but is not limited to, a light sensing sensor service module and a gesture sensor service module. The light sensing sensor service module is used for providing brightness data of the display screen. The gesture sensor service module is used for providing gesture data of the electronic device.
The kernel layer is a layer between hardware and software. The kernel layer includes, but is not limited to, display drivers, camera drivers, audio drivers, sensor drivers, and the like. The display driver may include a main screen display driver and a sub-screen display driver. The sensor drive may include a drive corresponding to a gyro sensor, an acceleration sensor for enabling detection of a change in posture of the electronic device.
It will be appreciated that the layers and the inclusion of layers in the software architecture shown in fig. 3 are not intended to constitute a particular limitation to the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer layers than shown and may include more or fewer components per layer, as the application is not limited.
It will be appreciated that, in order to implement the off-screen display method of the present application, the electronic device includes corresponding hardware and/or software modules that perform the respective functions. The steps of an algorithm for each example described in connection with the embodiments disclosed herein may be embodied in hardware or in a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different methods for each particular application in conjunction with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.
In the process of using the folding screen mobile phone, the display screen can be displayed through the bright screen, and a display function is provided for the user. When the user does not need to use the folding screen mobile phone, the display screen can automatically enter a screen-off (or screen-off) state under the operation of the user or after a preset time length so as to save the power consumption of the mobile phone.
In the embodiment of the present application, the screen-off state may also refer to that the corresponding screen does not display any screen, or only a small number of identifiers (such as time, date, etc.) are displayed on the screen to realize the screen-off display function. It can be understood that, compared with the bright screen state, the screen in the off-screen state basically does not need to be displayed, so that the power consumption caused by screen display can be saved.
Taking an external folding screen mobile phone as an example, in a folding state, since the main screen and the auxiliary screen are arranged oppositely, a display function is generally provided for a user through the main screen. For the secondary screen, a screen off state may be entered in some cases. Referring to fig. 4, a schematic diagram of an application scene of screen quenching is provided in an embodiment of the present application.
In the first scene, under the condition that the auxiliary screen is on, if no operation input by a user is received within a preset time period, the auxiliary screen can enter a screen-off state. For example, the sub-screen may display a desktop interface as shown in (a) of fig. 4 when displayed on a bright screen. If the operation input by the user is not received all the time, the auxiliary screen can enter the screen-off state after the preset time length is reached. For example, after entering the off-screen state, the secondary screen may not be displayed at all, entering the rest state (e.g., the power-on state) until the user enters other operation to illuminate the screen. As another example, as shown in (c) of fig. 4, the sub-screen may not be displayed in most areas of the display screen, and only a small amount of information such as time, date, and day of the week is displayed in the display area 41. In some implementations, the display content within the display area 41 may be selected and set among "off screen display" function options in a folding screen phone.
In the second scenario, when the secondary screen is on, after the user inputs the screen-off operation, the folding screen mobile phone enters the screen-off state (both the primary screen and the secondary screen enter the screen-off state) in response to the screen-off operation. For example, as shown in (b) of fig. 4, the off screen operation may be an operation in which the user presses the off key 42. And responding to the screen-off operation, and enabling the folding screen mobile phone to enter a screen-off state, wherein a screen-off display interface of the auxiliary screen can be shown as (c) in fig. 4.
The brightness of the screen display after screen extinction can be adaptively adjusted according to the ambient light brightness. For example, when the ambient light level is high, the off-screen display brightness is also high; when the ambient light level is low, the off-screen display brightness is also low. Typically the photosensitive element is disposed on the display of the cell phone. While for some out-folded screen handsets, the photosensitive element on the display screen is typically disposed on the main screen. When the external folding screen mobile phone is in a folded state and the secondary screen (the second screen area 202 shown in fig. 2) of the display screen is placed upwards, the secondary screen of the display screen cannot sense the ambient light brightness information, so that the external folding screen mobile phone cannot adaptively adjust the display brightness of the off screen. In other words, in the related art, the screen-off scheme is not intelligent enough, which may cause waste of power consumption.
In some application scenarios, referring to fig. 5, a schematic view of a scene with darkened ambient brightness after screen extinction is provided in an embodiment of the present application. As shown in fig. 5 (a), in the case of turning on and lighting, the ambient light is high, and at this time, the main screen 51 of the external folding screen mobile phone is placed upward, the sub-screen 52 is placed downward, and the photosensitive element 53 on the screen is disposed on the main screen 51, and in this case, the ambient light perceived by the photosensitive element 53 is the brightness of the main screen lighting display. As shown in fig. 5 (b), in the case of turning on the light, the main screen 51 of the external folding screen mobile phone is placed downward, and the sub-screen 52 is placed upward, in which case the ambient light brightness currently detected by the photosensitive element 53 on the screen is almost 0, and if the off-screen display brightness of the sub-screen 52 is adjusted by using the ambient light brightness, the adjusted off-screen display brightness of the sub-screen 52 may be low, affecting the user experience.
If the off-screen display brightness of the sub-screen 52 is adjusted by using the perceived ambient light level (the brightness of the main-screen bright-screen display) before the off-screen, the following problems may occur: if the light is turned off after a period of time of turning off the screen, as shown in fig. 5 (c), the brightness of the ambient light changes at this time, but since the brightness of the bright screen of the main screen before turning off is used to adjust the off-screen display brightness of the auxiliary screen 52, the adjusted auxiliary screen 52 may always maintain a higher brightness, and the off-screen display brightness cannot be adaptively adjusted, resulting in higher power consumption of the mobile phone.
In other application scenarios, referring to fig. 6, a schematic diagram of a mobile phone turning after screen extinction is provided in an embodiment of the present application. As shown in fig. 6, after the external folding screen mobile phone is turned off, the mobile phone turns from the posture 1 to the posture 7 along the arrow direction. When the mobile phone is in the posture 1, the main screen 51 is placed upwards, the auxiliary screen 52 is placed downwards, and the photosensitive element 53 is placed upwards. When the mobile phone is in the posture 7, the main screen 51 is placed downwards, the auxiliary screen 52 is placed upwards, and the photosensitive element 53 is placed downwards. During the turning process of the mobile phone, the photosensitive element 53 is always working, and the brightness of the environment sensed by the photosensitive element 53 changes from high to low along with the turning of the mobile phone. When the mobile phone is in the posture 7, the brightness of the environment sensed by the photosensitive element 53 is almost 0, that is, the brightness of the environment cannot be sensed correctly. The off-screen display brightness of the secondary screen 52 may be adjusted to be low according to the ambient light level sensed by the photosensitive element 53 at this time, affecting the user experience. Of course, if the ambient light level sensed by the photosensitive element 53 is almost 0, the off-screen display brightness of the sub-screen 52 may be adjusted by using the ambient light level sensed by the photosensitive element 53 in the previous posture (e.g., posture 6). However, due to the effect of turning over the mobile phone, the ambient light brightness sensed by the photosensitive element 53 at the gesture 6 is still not the correct ambient light brightness, and the adjusted off-screen display brightness of the secondary screen 52 may still be low, which affects the user experience.
In other application scenarios, only time information is considered, i.e. the off-screen display brightness is set according to time. For example, during daytime, such as 07:00-20:00, the off-screen brightness is set to a higher brightness; at night, such as 20:00-07:00, the off-screen brightness is set to a lower brightness. The self-adaption degree of the method is low, and the display brightness of the auxiliary screen can not be adjusted in a self-adaption mode under the condition that the user sleeps late or sleeps early, so that the user experience is affected.
As shown in the application scene, the off-screen display brightness of the secondary screen of the external folding screen mobile phone cannot be reasonably and adaptively adjusted to be proper brightness, so that the user experience is affected, and the power consumption of the mobile phone is also affected.
Based on the above, the embodiment of the application provides a screen-off display method. By the method, the correct environment light information of the current environment of the mobile phone can be accurately obtained based on the information of the time stamp, the brightness of the main screen before the screen is turned off and the brightness of the main screen before the mobile phone is turned over, so that the display brightness of the auxiliary screen is adjusted in a self-adaptive mode according to the correct environment light information, the use of a user is not affected, and meanwhile, unnecessary power consumption expenditure of screen display is saved.
The method for displaying the screen in a quenching mode is described in the following.
Referring to fig. 7, a flow chart of a screen-off display method according to an embodiment of the present application is shown. By way of example and not limitation, as shown in fig. 7, the off-screen display method may include the steps of:
S101, when the display state of the folding screen is monitored to be switched from bright screen display to off screen display, acquiring first display brightness and first moment.
The first display brightness is the display brightness of the bright screen display of the main screen before the screen is turned off, and the first moment is the screen turning off moment.
In some implementations, the off-screen display application of the application layer registers for listening with a power management service module of the application framework layer; when the display state of the folding screen is switched from bright screen display to off screen display, the power management service module responds to the change of the display state of the screen, and notifies the display state of the current screen of the off screen display application by using a callback function, and pulls up the off screen display application.
And after the off-screen display application is pulled up, the off-screen display application acquires the first display brightness and the first moment. In some implementations, the off-screen display application obtains a first display brightness and a first time from a device state management service module of an application framework layer.
It will be appreciated that there may be a variety of ways in which the state may be returned for some module/service interactions. In one implementation, a module that wants to acquire other modules/services may send a corresponding status return manner when registering with other modules/services, so that the peer module/service may perform status return according to the specified return manner. For example, when the off-screen display application registers monitoring with the power management service, executing state return when the state is indicated to change; accordingly, the power management service module returns the display state of the current screen to the off-screen display application in response to the change of the display state of the screen.
In another implementation, status information of other modules/services may be obtained by sending request information (or query messages). For example, after the off-screen display application is pulled up, request information is sent to the device state management service module; correspondingly, after receiving the request information, the equipment state management service module returns the first display brightness and the first moment to the off-screen display application.
It should be noted that in some embodiments, each module disposed in the framework layer may correspond to one or more processes/threads during system operation. For example, after the off-screen display application is pulled up, a process corresponding to the off-screen display application is initiated; in the course of an off-screen display application, multiple threads may be initiated for implementing different functions. For example, the function of the device state management service module in the embodiment of the application is realized by initiating a device state management thread; the function of the folding screen management service module in the embodiment of the application is realized by initiating a folding screen management thread; the power supply service thread is initiated to realize the functions of the power supply service module in the embodiment of the application. These threads may be processed in parallel or may be pulled up as needed.
S102, determining second display brightness according to the first display brightness and the first time.
And the second display brightness represents the display brightness of the secondary screen off display.
Step S102 is performed by the off-screen display application. Details are described in the examples below.
S103, controlling the auxiliary screen to display according to the second display brightness.
In some implementations, the off-screen display application may issue an instruction to the folding screen management server module of the application framework layer to off-screen display, where the instruction may include a second display brightness; the instruction can be processed through the folding screen management service module, and the instruction is downwards transmitted to the auxiliary screen by calling the display driver in the kernel layer, so that the auxiliary screen is displayed in a second display brightness in a screen-off mode.
In the embodiment of the application, the display brightness and the time stamp (screen-off time) of the main screen bright screen display before screen off are comprehensively considered, and the correct environment light information of the current environment of the mobile phone can be accurately obtained, so that the auxiliary screen off display brightness is adaptively adjusted according to the correct environment light information, the use of a user is not influenced, and the unnecessary power consumption expenditure of screen display is saved.
In some embodiments, step S102 may include:
S201, if the first moment is in the first time interval, determining the second display brightness as a first preset value.
S202, if the first time is not in the first time interval, determining second display brightness according to the first display brightness and the first time.
In some implementations, the display brightness of the display screen may include several options that are preset. For example, the display luminance includes a low-grade and a high-grade, wherein the display luminance of the high-grade is higher than that of the low-grade, and the values of the display luminances of the low-grade and the high-grade, respectively, are fixed. In this implementation, the display brightness of the display screen is switched between a high level and a low level, for example, the first preset value is a high level or a low level; and determining the second display brightness from the high grade and the low grade according to the first display brightness and the first moment. For example, assume a first time interval of 07:00-22:00 and a second time interval of 22:00-07:00. When the first time belongs to 07:00-22:00, determining the second display brightness as a high grade; and when the first time belongs to 22:00-07:00, determining the second display brightness from the high-grade and low-grade according to the first display brightness and the first time.
In other implementations, the display brightness of the display screen may include any value within a predetermined range. In this implementation manner, the display brightness of the display screen is switched within a preset range, for example, the first preset value is a certain value within the preset range; and determining the second display brightness from the preset range according to the first display brightness and the first moment. For example, assume a first time interval of 07:00-22:00 and a second time interval of 22:00-07:00. When the first time belongs to 07:00-22:00, determining the second display brightness as a first preset value, wherein the first preset value is a certain value in a preset range; and when the first time belongs to 22:00-07:00, determining the second display brightness from the preset range according to the first display brightness and the first time.
In general, the frequency of using the mobile phone by most users in the first time interval (such as daytime or 07:00-22:00) in a day is high, and the brightness of the environment in the time interval is relatively high, so that the display brightness of the secondary screen off display in the time interval is set to a first preset value, which is more in accordance with the use habit of most users. And the difference of the use habits of different users in the second time interval (such as night or 22:00-07:00) is larger, so that the display brightness of the secondary screen off display is determined according to the first display brightness and the first time in the second time interval, which is equivalent to the targeted setting for different users, has stronger adaptability and is beneficial to improving the user experience.
In some embodiments, the step of determining the second display brightness according to the first display brightness and the first time in S202 may include:
S301, detecting whether the first display brightness is effective or not according to the first time.
S302, if the first display brightness is effective, determining the second display brightness according to the first display brightness.
And S303, if the first display brightness is invalid, determining the second display brightness according to the screen gesture of the electronic equipment.
In some implementations, the step of detecting whether the first display brightness is valid according to the first time in S301 may include: if the time interval between the first time and the current time is smaller than a first preset duration, judging that the first display brightness is effective; and if the time interval between the first time and the current time is greater than a first preset duration, judging that the first display brightness is invalid.
The first preset duration may be preset according to experience, or obtained through learning according to a use habit of the user.
In some implementations, determining the second display brightness according to the first display brightness in S302 may be setting the second display brightness to the first display brightness, that is, setting the display brightness of the sub-screen off-screen display to the display brightness of the main-screen bright-screen display before off-screen.
In the embodiment of the application, before determining the second display brightness, whether the first display brightness is effective is detected according to the first time. By the method, under the condition that the brightness of the environment light changes greatly after the screen is turned off for a period of time, the screen-off display brightness can be adjusted in a self-adaptive mode, the condition that the high screen-off display brightness is always maintained in an application scene as shown in fig. 5 is effectively reduced, and the power consumption of the mobile phone is saved while the use requirement of a user is met.
If the first display brightness is invalid, which means that a longer time is elapsed from the moment of screen extinction at the moment, the screen gesture may change during the time interval, for example, the main screen is turned upwards to the main screen downwards, or the main screen is turned downwards to the main screen upwards, and the different gestures of the screen affect the perception of the ambient light brightness by the photosensitive element, so as to affect the determination of the brightness of the secondary screen extinction display. Based on the above, under the condition that the first display brightness is invalid, the brightness of the secondary screen off display is determined according to the screen gesture of the electronic equipment, so that the brightness of the secondary screen off display can be effectively and adaptively adjusted, the secondary screen off display is closer to the use environment of a user, and the user experience is improved.
In the embodiment of the application, the screen gesture can refer to the relative position of the main screen and the auxiliary screen. For example, when the external folding screen mobile phone is in a folded state, the screen gesture may be that the main screen is upward, the auxiliary screen is downward, the main screen is downward, the auxiliary screen is upward, and so on. Here, upward and downward are relative terms, and for example, downward may refer to the same direction as gravity, and upward may refer to the opposite direction to gravity.
In some embodiments, the step of determining the second display brightness according to the screen gesture of the electronic device in S303 may include:
S401, setting the second display brightness to a second preset value under the condition that the current screen posture of the electronic equipment is that the auxiliary screen faces upwards.
S402, monitoring the screen gesture of the electronic equipment under the condition that the current screen gesture of the electronic equipment is that a main screen faces upwards; when the screen gesture of the electronic equipment is switched from a main screen to a secondary screen, acquiring first brightness data; and determining the second display brightness according to the first brightness data.
The first brightness data comprise display brightness of main screen off display corresponding to N times before a second time, and the second time is when the screen gesture of the electronic equipment is switched to the time when the auxiliary screen is upward. It should be noted that, in some implementations, the first luminance data may also include the second time and the display luminance of the main screen off display corresponding to each of N times before the second time. It will be appreciated that such implementations are also within the scope of embodiments of the present application.
In some implementations, when the screen gesture of the electronic device is that the main screen is upward, the light sensing sensor module of the hardware abstraction layer can monitor the ambient light brightness in real time and report the ambient light brightness to the device state management service module of the application framework layer; and the equipment state management service module calculates the display brightness of the main screen extinguishing display according to the ambient light brightness, records the time stamp and stores the display brightness and the corresponding time stamp as brightness data. The screen-off display application monitors that the screen gesture of the electronic equipment is switched from a main screen to a secondary screen, and requests information to the equipment state management service module; correspondingly, after receiving the request information, the equipment state management service module returns the current brightness data to the off-screen display application. In other implementations, the device state management service module may also report the luminance data to the off-screen display application in real time, where the luminance data is stored by the off-screen display application.
It should be noted that, the luminance data may be stored in a stack, the stack length is limited, and after the latest luminance data is pushed in, the luminance data with the longest storage time is played. Of course, the luminance data may also be stored in other forms, such as a matrix, a number of columns, etc., which are not particularly limited in the embodiment of the present application.
In some implementations, the off-screen display application may obtain, through the device state management service module, gesture data detected by the gesture sensor service module in the hardware abstraction layer, and determine a current screen state of the electronic device according to the gesture data. For example, the gesture data may include vertical acceleration. When the vertical acceleration is opposite to the gravity direction, judging that the main screen faces downwards and the auxiliary screen faces upwards; and when the vertical acceleration is the same as the gravity direction, judging that the main screen is upward and the auxiliary screen is downward. It should be noted that, the above is an example of judging the screen state according to the gesture data, and other sensor data may be used to judge the screen state, for example, the gesture angle, which is not limited in particular in the embodiment of the present application.
In some implementations, the first preset value and the second preset value may be the same. For example, if the first preset value is the brightness corresponding to the high-grade, if the first moment is in the first time interval, the second display brightness is set as the brightness corresponding to the high-grade; if the first time is not in the first time interval, setting the second display brightness to be the brightness corresponding to the high-grade under the condition that the current screen posture of the electronic equipment is that the auxiliary screen is upward.
According to the embodiment of the application, the brightness of the secondary screen off display is determined according to the screen gesture of the electronic equipment, in this way, under the condition that the screen is turned over after off, the brightness of the secondary screen off display can be adjusted in a self-adaptive manner, the occurrence of the condition that the secondary screen off display brightness is lower in an application scene as shown in fig. 6 is effectively reduced, and the user experience is improved.
In some implementations, the step of determining the second display luminance according to the first luminance data in S402 may include:
sequentially comparing the display brightness in the first brightness data with third display brightness according to the reverse time sequence, wherein the third display brightness is the last display brightness in the first brightness data in time sequence;
when fourth display brightness different from the third display brightness is detected for the first time, determining the second display brightness according to the second moment and a third moment corresponding to the fourth display brightness;
And if fourth display brightness different from the third display brightness is not detected, determining the second display brightness according to the third display brightness.
Optionally, if the time interval between the second time and the third time is smaller than a second preset duration, determining the second display brightness according to the fourth display brightness; and if the time interval between the second time and the third time is greater than or equal to a second preset duration, determining the second display brightness according to the third display brightness.
Exemplary, referring to fig. 8, a schematic diagram of a luminance data time axis according to an embodiment of the present application is shown. As shown in fig. 8, in the time axis direction, the first brightness data comprises 6 parts in sequence 6, 36, 63, 3. Wherein 6 and 3 respectively correspond to a luminance value of the main screen extinguishing display. And T1 is a second moment, namely, a moment when the screen gesture of the electronic equipment is switched to the side-up state. At this time, the third display luminance is a display luminance corresponding to the time T2. According to the time reversal sequence, respectively corresponding display brightness at two moments of T2 and T3 are compared, and are 3 and the same; continuously comparing the display brightness corresponding to each of the T2 and the T4 moments, wherein the display brightness is 3 and the same; and continuously comparing the display brightness corresponding to the two moments T2 and T5 respectively, wherein the display brightness is 3 and the same. And continuously comparing the display brightness corresponding to the T2 and the T6 respectively, wherein one is 3, the other is 6, the display brightness corresponding to the T6 is a value which is detected for the first time and is different from the display brightness corresponding to the T2, and the display brightness at the T6 is marked as fourth display brightness. Calculating a time interval between T1 and T6, and if the time interval is smaller than a second preset duration, determining the display brightness corresponding to the 6 as second display brightness; if the time interval is greater than or equal to the second preset duration, determining the display brightness corresponding to 3 as the second display brightness. If the current first brightness data is 3, that is, the fourth display brightness different from the third display brightness cannot be detected, and the display brightness corresponding to 3 is determined as the second display brightness.
In some cases, the display brightness of the main screen is not necessarily updated at the time when the screen posture is switched to the sub-screen upward, and thus, as shown in fig. 8, the display brightness corresponding to the update time (T2) immediately before T1 is compared with the display brightness as a reference.
In the embodiment of the application, the first brightness data can reflect the change condition of the brightness of the main screen off display in the process of changing the screen gesture, so that the second display brightness is determined according to the first brightness data, which is equivalent to the determination of the second display brightness according to the brightness of the main screen off display in the process of changing the screen gesture. By the method, under the condition that the screen is turned over after the screen is turned off, the brightness of the secondary screen off display can be adjusted in a self-adaptive mode, the condition that the secondary screen off display brightness is low in an application scene as shown in fig. 6 is effectively reduced, and the user experience is improved.
In some embodiments, after S202, the method further comprises:
and step I, under the condition that the first moment is not in the first time interval, if the duration of the secondary screen display according to the second display brightness is up to a third preset duration, controlling the secondary screen display according to a fifth display brightness, wherein the fifth display brightness is lower than the second display brightness.
For example, in the case where the display brightness of the display screen includes several options set in advance, such as a high-grade and a low-grade, the second display brightness may be a high-grade, and the fifth display brightness may be a low-grade. In the case where the display luminance of the display screen includes any value of the preset range, the fifth display luminance may be any value lower than the second display luminance within the preset range.
In the embodiment of the application, the display brightness of the screen-off display is reduced after the screen is turned off for a period of time. In this way, the power consumption of the screen can be effectively reduced.
In some embodiments, the method further comprises:
And II, controlling the auxiliary screen to display according to the sixth display brightness if the current time is monitored to be in the first time interval under the condition that the auxiliary screen is displayed according to the fifth display brightness, wherein the sixth display brightness is higher than the fifth display brightness.
For example, in the case where the display brightness of the display screen includes several options set in advance, such as a high-level and a low-level, the second display brightness may be a high-level, the fifth display brightness may be a low-level, and the sixth display brightness may be a high-level, i.e., the sixth display brightness is the same as the second display brightness. In the case where the display luminance of the display screen includes any value of the preset range, the sixth display luminance may be any value higher than the fifth display luminance within the preset range, and the sixth display luminance may be the same as or different from the second display luminance.
In the embodiment of the application, the display brightness of the off-screen display is correspondingly adjusted according to the time change. And when the user is in the period of the peak period of using the electronic equipment, the display brightness of the off-screen display is improved. Through the mode, user experience is improved.
In some embodiments, the method further comprises:
III, under the condition that the auxiliary screen is turned off according to the fifth display brightness, if the screen gesture of the electronic equipment is monitored to change, obtaining second brightness data; determining a seventh display luminance according to the second luminance data; and controlling the auxiliary screen to display according to the seventh display brightness.
The second brightness data comprise display brightness of main screen off display corresponding to M times before a fourth time, and the fourth time is when the screen posture of the electronic equipment stops changing. It should be noted that, in the embodiment of the present application, N and M are positive integers greater than 1. Wherein M and N may be the same or different.
In the embodiment of the present application, the manner of acquiring the second luminance data is the same as the manner of acquiring the first luminance data, and specifically, the description of acquiring the first luminance data may be referred to, which is not described herein. The method for determining the seventh display luminance according to the second luminance data is the same as the principle of the method for determining the second display luminance according to the first luminance data, and specifically, reference may be made to the description in the foregoing embodiment, which is not repeated herein.
For example, in the case where the display brightness of the display screen includes several options set in advance, such as a high-level and a low-level, the second display brightness may be a high-level, the fifth display brightness may be a low-level, and the seventh display brightness may be a high-level or a low-level. In the case where the display luminance of the display screen includes any value in the preset range, the seventh display luminance may be a value in the preset range.
In the embodiment of the application, the monitoring screen gesture is kept in the process of screen-off display, and when the screen gesture changes, the display brightness of the secondary screen-off display is determined again. Due to the fact that the change of the screen posture possibly causes the perception accuracy of the photosensitive element to the ambient light, the situation that the display brightness of the auxiliary screen is not adaptively adjusted due to the fact that the perception of the ambient light is inaccurate can be effectively reduced, and the user experience is improved.
In the embodiment of the application, the adjustment of the display brightness of the secondary screen off display in different scenes is considered. For example, it is assumed that the display brightness of the off-screen display of the display screen includes a high level and a low level, and under this assumption, the adjustment results of the display brightness of the off-screen display of the sub-screen corresponding to different scenes are shown in the following table:
As shown in the table above, the first time interval is 7:00-22:00, and the second time interval is 22:00-07:00. The third preset time period is two hours.
It should be noted that the foregoing is merely an example of a scene, and in other application scenarios, the display brightness of the display screen may also include a middle level and a low level, or a low level, a middle level and a high level, or other grading manners (such as by digital grading). Different settings may also be used for the first time interval, the second time interval, and the third preset duration. The foregoing examples are merely for convenience of description of the following embodiments, and the parameter settings in the examples are not specifically limited in the embodiments of the present application.
In order to clearly illustrate the off-screen display method provided by the embodiment of the application, the implementation manner of the off-screen display method in different scenes is described below in combination with examples in the table.
As an example of an application scenario in which a main screen is turned upwards and then turned downwards and brightness is effective before screen locking, refer to fig. 9, which is an interactive flow diagram of a screen-off display method provided by an embodiment of the present application. As shown in fig. 9, the interactive flow of the off-screen display method may include the following steps:
And S901, registering monitoring by the off-screen display application to the power management service module.
S902, the power management service module pulls up the off-screen display application in response to the change of the display state of the screen.
S903, the off-screen display application acquires display brightness B0 (first display brightness) and a time stamp t0 (first moment) of the main screen before screen locking from the device state management service module.
The implementation of steps S901-S903 can be seen from the description in the embodiment of S101.
S904, the attitude sensor service module provides attitude data to the device state management service module.
S905, the equipment state management service module detects whether the current screen gesture is upward with the gesture data, and sends the detection result to the off-screen display application.
Correspondingly, the off-screen display application receives the detection result.
The implementation of step S904 may be referred to the description of the implementation of judging the screen state in the embodiment of S402.
S906, if the current screen gesture is not that the secondary screen is upward, the off-screen display application detects whether the current screen gesture belongs to a first time interval according to t 0.
And S907, if the display request currently belongs to the daytime (the first time interval is 7:00-22:00), the screen-off display application sends a first instruction to the folding screen management service module so that the folding screen management service module sets the display brightness (second display brightness) of the secondary screen-off display to be high-grade (first preset value).
The implementation of steps S906-S907 can be seen from the description in the embodiments of S201-S202.
If the current day (first time interval 7:00-22:00) is not present, S908, the off-screen display application detects whether B0 is valid.
The implementation of step S908 can be seen from the description in the embodiment of S301.
If B0 is valid, the screen-off display application sends a second instruction to the folded screen management service module, so that the folded screen management service module sets the display brightness (second display brightness) of the secondary screen-off display to B0, and records the current timestamp t1.
The implementation of step S909 can be seen from the description in the embodiment of S302.
S910, the off-screen display application monitors whether the duration of the off-screen display of the sub-screen in B0 reaches two hours (third preset duration).
And S911, if the two hours are reached, the screen-off display application sends a third instruction to the folding screen management service module so that the folding screen management service module sets the display brightness of the secondary screen-off display to be in a low grade (fifth display brightness).
S912, the off-screen display application monitors whether it is currently in the daytime.
And S913, if the display request belongs to the daytime, the screen-off display application sends a fourth instruction to the folding screen management service module so that the folding screen management service module sets the display brightness of the secondary screen-off display to be high-grade (sixth display brightness).
The implementation of steps S910-S913 can be seen from the description of the embodiments of steps I-II above.
It should be noted that the judging steps of S910 and S912 may be performed in parallel, regardless of the order.
In the above embodiment, the steps S905 to S906 may be performed in parallel or may be performed in series. In the case of parallel processing, step S907 is that if the current screen gesture belongs to the daytime and the current screen gesture is not the sub-screen facing upwards, the off-screen display application sends a first instruction to the folded screen management service module. In the case of the serial processing, S906 may be executed first, and S905 may be executed next.
As an example of an application scenario in which the main screen is turned up and then turned down, and the brightness is invalid before screen locking, refer to fig. 10, which is an interactive flow diagram of the screen-off display method provided by the embodiment of the application. As shown in fig. 10, the interactive flow of the off-screen display method may include the following steps:
S1001, the off-screen display application registers monitoring with the power management service module.
S1002, the power management service module pulls up the off-screen display application in response to the change of the display state of the screen.
S1003, the off-screen display application acquires display brightness B0 (first display brightness) and a time stamp t0 (first moment) of the main screen before screen locking from the equipment state management service module.
S1004, the gesture sensor service module provides gesture data to the device state management service module.
S1005, the equipment state management service module detects whether the current screen gesture is the upward side screen according to the gesture data, and sends the detection result to the off-screen display application.
Correspondingly, the off-screen display application receives the detection result.
S1006, if the current screen gesture is not that the secondary screen is facing upwards, the off-screen display application detects whether the current screen gesture belongs to the first time interval according to t 0.
And S1007, if the current day (the first time interval 7:00-22:00) is the daytime, the screen-off display application sends a first instruction to the folding screen management service module so that the folding screen management service module sets the display brightness (the second display brightness) of the secondary screen-off display to be high-grade (a first preset value).
If the current day (first time interval 7:00-22:00) is not in the daytime, S1008, the off-screen display application detects whether B0 is valid.
The implementation manner of steps S1001 to S1008 is the same as S901 to S908, and will not be described here again.
S1009, if B0 is invalid, the screen-off display application monitors the screen gesture through the device state management service module.
S1010, when the screen gesture is switched from the primary screen to the secondary screen, the off-screen display application acquires first brightness data from the photosensitive sensor service module through the equipment state management service module.
S1011, the off-screen display application determines display brightness B1 of the sub-screen off-screen display according to the first brightness data.
The implementation of S1009-S1011 may be described in the embodiment of S402, and will not be described here.
S1012, the screen-off display application sends a fifth instruction to the folding screen management service module so that the folding screen management service module sets the display brightness (second display brightness) of the secondary screen-off display to be B1, and records the current time stamp t2.
The off-screen display application monitors whether the duration of the off-screen display of the sub-screen in B1 reaches two hours (third preset duration) or not S1013.
And S1014, if the two hours are reached, the screen-off display application sends a sixth instruction to the folding screen management service module so that the folding screen management service module sets the display brightness of the secondary screen-off display to be a low grade (fifth display brightness).
S1015, the off-screen display application monitors whether the current day belongs to the daytime.
S1016, if the display request belongs to the daytime, the off-screen display application sends a seventh instruction to the folding screen management service module so that the folding screen management service module sets the display brightness of the off-screen display of the auxiliary screen to be high-grade (sixth display brightness).
Steps S1013 to S1016 are the same as steps S910 to S913, and are not described here.
As an example of an application scenario with an up secondary screen, refer to fig. 11, which is an interactive flow diagram of a screen-off display method provided by an embodiment of the present application. As shown in fig. 11, the interactive flow of the off-screen display method may include the following steps:
s1101, the off-screen display application registers monitoring with the power management service module.
S1102, the power management service module pulls up the off-screen display application in response to the change of the display state of the screen.
S1103, the off-screen display application acquires display brightness B0 (first display brightness) and a time stamp t0 (first moment) of the main screen before the screen locking from the device state management service module.
S1104, the gesture sensor service module provides gesture data to the device state management service module.
S1105, the equipment state management service module detects whether the current screen gesture is the upward side screen according to the gesture data, and sends the detection result to the off-screen display application.
Correspondingly, the off-screen display application receives the detection result.
And S1106, if the current screen gesture is that the auxiliary screen is upward, detecting whether the current screen gesture belongs to a first time interval or not by the off-screen display application according to t 0.
S1107, if the display request currently belongs to the daytime (the first time interval is 7:00-22:00), the screen-off display application sends an eighth instruction to the folding screen management service module so that the folding screen management service module sets the display brightness (the second display brightness) of the secondary screen-off display to be high-grade (the first preset value).
S1108, if the current time does not belong to the daytime (the first time interval 7:00-22:00), the off-screen display application detects whether the B0 is valid.
Steps S1101 to S1108 are the same as steps S1001 to S1008.
S1109, if B0 is invalid, the screen-off display application sends a ninth instruction to the folding screen management service module so that the folding screen management service module sets the display brightness (second display brightness) of the secondary screen-off display to be high-grade (second preset value).
S1110, if B0 is valid, the screen-off display application sends a tenth instruction to the folding screen management service module, so that the folding screen management service module sets the display brightness (second display brightness) of the secondary screen-off display to B0, and records the current time stamp t3.
S1111, the off-screen display application monitors whether the duration of the off-screen display of the secondary screen in B0 or the duration of the off-screen display in high-grade reaches two hours (third preset duration).
And S1112, if the two hours are reached, the screen-off display application sends an eleventh instruction to the folding screen management service module so that the folding screen management service module sets the display brightness of the secondary screen-off display to be a low grade (fifth display brightness).
S1113, the off-screen display application monitors whether it is currently in the daytime.
And S1114, if the display request belongs to the daytime, the screen-off display application sends a twelfth instruction to the folding screen management service module so that the folding screen management service module sets the display brightness of the secondary screen-off display to be high-grade (sixth display brightness).
Steps S1110 to S1114 are the same as S909 to S913, and will not be described here.
Fig. 9-11 illustrate embodiments in which the screen gesture is determined first, and then the display brightness of the secondary screen off display is determined according to the timestamp and the display brightness of the primary screen.
In other implementations, referring to fig. 12, an interactive flow diagram of a method for displaying a screen on a screen is provided in an embodiment of the present application. As shown in fig. 12, the interactive flow of the off-screen display method may include the following steps:
and S1201, registering monitoring by the off-screen display application to the power management service module.
S1202, the power management service module pulls up the off-screen display application in response to the change of the display state of the screen.
S1203, the off-screen display application acquires display brightness B0 (first display brightness) and a time stamp t0 (first time) of the main screen before the screen is locked from the device state management service module.
Steps S1201 to S1203 can be described with reference to steps S901 to S903.
And S1204, detecting whether the current time interval belongs to the first time interval or not by the off-screen display application according to t 0.
And S1205, if the display belongs to the daytime (the first time interval is 7:00-22:00), the screen-off display application sends a first instruction to the folding screen management service module so that the folding screen management service module sets the display brightness (second display brightness) of the secondary screen-off display to be high-grade (first preset value).
S1206, if the current time does not belong to the daytime (the first time interval 7:00-22:00), the off-screen display application detects whether B0 is valid.
S1207, if B0 is valid, the screen-off display application sends a second instruction to the folded screen management service module, so that the folded screen management service module sets the display brightness (second display brightness) of the secondary screen-off display to B0, and records the current timestamp t1.
Steps S1204-S1207 can be seen from the description in the embodiments of steps S906-S909.
Steps S910-S913 continue to be performed after S1207.
S1208, if the B0 is invalid, the screen-off display application monitors the screen gesture through the equipment state management service module.
S1209, if the current screen gesture is not a sub-screen up, S1010-S1016 are performed.
S1210, if the current screen gesture is a sub-screen facing up, then S1109 and S1111-S1114 are performed.
The embodiment of fig. 12 differs from the embodiments of fig. 9-11 in that: in the embodiment of fig. 9 to 11, the priority is determined as the screen gesture > timestamp > primary screen brightness before screen locking > primary screen brightness before turning over, that is, whether the screen gesture is the secondary screen facing upwards is determined first, whether the timestamp accords with the first time interval is determined, whether the primary screen brightness before screen locking is effective is determined, and when the primary screen faces upwards, is late at night, and the primary screen brightness before screen locking is ineffective, the primary screen brightness before turning over is calculated. In the embodiment of fig. 12, the priority is determined as the timestamp > the brightness of the main screen before screen locking > the screen gesture > the brightness of the main screen before turning over, that is, whether the timestamp accords with the first time interval is determined, whether the brightness before screen locking is valid is determined, whether the screen gesture is the upward side of the screen, and when the main screen is upward, late night and the brightness before screen locking is invalid, the calculation is performed according to the brightness of the main screen before turning over.
As can be seen from the specific steps in the embodiments of fig. 9 to 12, if the priority of the screen gesture is higher than the timestamp, the screen gesture needs to be monitored in any scene; especially in the scenario shown in the embodiment of fig. 10, it is also necessary to monitor the screen gesture multiple times. In the embodiment of fig. 12, the priority of the timestamp and the brightness of the main screen before screen locking is higher than that of the screen gesture, so that the screen gesture only needs to be monitored in one scene. Compared with the prior art, the interactive flow of the embodiment of fig. 12 is simpler, so that the interactive steps among the screen-off display application in the application layer, the equipment state management service module in the application framework layer and the attitude sensor service module in the hardware abstraction layer are reduced, and the power consumption is saved.
It should be noted that, in addition to the interactive flows shown in fig. 9-12, other interactive flows may be adopted, for example, the order of some steps is changed, but the technical solution formed by the change of the interactive flow order is still within the protection scope of the embodiments of the present application.
As can be seen from the embodiments of fig. 9 to fig. 12, the method for displaying an off screen provided in the embodiment of the present application is equivalent to comprehensively considering several factors including a time stamp, brightness of a main screen before screen locking, and brightness of the main screen before screen turning.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
The embodiments of the present application also provide a computer readable storage medium storing a computer program, which when executed by a processor, implements the steps of the above-described method embodiments.
Embodiments of the present application also provide a computer program product enabling a first device to carry out the steps of the method embodiments described above, when the computer program product is run on the first device.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above-described embodiments, and may be implemented by a computer program to instruct related hardware, and the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a first device, a recording medium, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The embodiment of the application also provides a chip system, which comprises a processor, wherein the processor is coupled with the memory, and the processor executes a computer program stored in the memory to realize the steps of any method embodiment of the application. The chip system can be a single chip or a chip module composed of a plurality of chips.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the elements and method steps of the examples described in connection with the embodiments disclosed herein can be implemented as electronic hardware, or as a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application. Finally, it should be noted that: the foregoing is merely illustrative of specific embodiments of the present application, and the scope of the present application is not limited thereto, but any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A screen-off display method, characterized in that it is applied to an electronic device, the electronic device is provided with a folding screen, the folding screen includes a main screen and a sub-screen, the folding screen is in a folded state, the method includes:
When the display state of the folding screen is monitored to be switched from bright screen display to off screen display, acquiring first display brightness and first moment, wherein the first display brightness is the display brightness of the bright screen display of the main screen before off screen, and the first moment is the off screen moment;
Determining second display brightness according to the first display brightness and the first time, wherein the second display brightness represents display brightness of the auxiliary screen off display;
And controlling the auxiliary screen to display according to the second display brightness.
2. The method of claim 1, wherein said determining a second display luminance from said first display luminance and said first time comprises:
If the first moment is in the first time interval, determining the second display brightness as a first preset value;
and if the first moment is not in the first time interval, determining second display brightness according to the first display brightness and the first moment.
3. The method of claim 2, wherein said determining a second display luminance from said first display luminance and said first time comprises:
Detecting whether the first display brightness is effective or not according to the first moment;
if the first display brightness is effective, determining the second display brightness according to the first display brightness;
And if the first display brightness is invalid, determining the second display brightness according to the screen gesture of the electronic equipment.
4. A method according to claim 3, wherein said detecting whether said first display brightness is valid based on said first time instance comprises:
If the time interval between the first time and the current time is smaller than a first preset duration, judging that the first display brightness is effective;
And if the time interval between the first time and the current time is greater than a first preset duration, judging that the first display brightness is invalid.
5. The method of claim 3, wherein the determining the second display brightness from the screen gesture of the electronic device comprises:
And setting the second display brightness to a second preset value under the condition that the current screen posture of the electronic equipment is that the auxiliary screen is upward.
6. The method of claim 3, wherein the determining the second display brightness from the first display brightness and the screen pose of the electronic device comprises:
Monitoring the screen gesture of the electronic equipment under the condition that the current screen gesture of the electronic equipment is that a main screen faces upwards;
When the screen gesture of the electronic equipment is switched from a main screen to a sub-screen, acquiring first brightness data, wherein the first brightness data comprises display brightness of main screen off-screen display corresponding to N times before a second time, and the second time is when the screen gesture of the electronic equipment is switched to the sub-screen;
and determining the second display brightness according to the first brightness data.
7. The method of claim 6, wherein said determining said second display luminance from said first luminance data comprises:
sequentially comparing the display brightness in the first brightness data with third display brightness according to the reverse time sequence, wherein the third display brightness is the last display brightness in the first brightness data in time sequence;
And when fourth display brightness different from the third display brightness is detected for the first time, determining the second display brightness according to the second time and a third time corresponding to the fourth display brightness.
8. The method of claim 7, wherein the determining the second display brightness from the second time and a third time corresponding to the fourth display brightness comprises:
If the time interval between the second time and the third time is smaller than a second preset duration, determining the second display brightness according to the fourth display brightness;
And if the time interval between the second time and the third time is greater than or equal to a second preset duration, determining the second display brightness according to the third display brightness.
9. The method of claim 7, wherein after sequentially comparing the display luminance in the first luminance data with the third display luminance in a reverse order of time, the method further comprises:
And if fourth display brightness different from the third display brightness is not detected, determining the second display brightness according to the third display brightness.
10. The method according to any one of claims 2 to 9, further comprising:
and under the condition that the first moment is not in the first time interval, if the duration of the secondary screen display according to the second display brightness is up to a third preset duration, controlling the secondary screen to display according to a fifth display brightness, wherein the fifth display brightness is lower than the second display brightness.
11. The method according to claim 10, wherein the method further comprises:
And under the condition that the auxiliary screen is displayed according to the fifth display brightness, if the current time is monitored to be in the first time interval, controlling the auxiliary screen to be displayed according to the sixth display brightness, wherein the sixth display brightness is higher than the fifth display brightness.
12. The method according to claim 10, wherein the method further comprises:
If the secondary screen is displayed according to the fifth display brightness, if the screen posture of the electronic equipment is monitored to change, second brightness data are obtained, wherein the second brightness data comprise the display brightness of the primary screen display corresponding to each of M moments before a fourth moment, and the fourth moment is the moment when the screen posture of the electronic equipment stops changing;
determining a seventh display luminance according to the second luminance data;
And controlling the auxiliary screen to display according to the seventh display brightness.
13. An electronic device comprising a processor for executing a computer program stored in a memory to cause the electronic device to implement the method of any one of claims 1 to 12.
14. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by one or more processors, implements the method of any of claims 1 to 12.
15. A chip system comprising a processor coupled to a memory, the processor executing a computer program stored in the memory to implement the method of any one of claims 1 to 12.
CN202311214648.4A 2023-09-19 2023-09-19 Screen-off display method and electronic equipment Active CN117316084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311214648.4A CN117316084B (en) 2023-09-19 2023-09-19 Screen-off display method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311214648.4A CN117316084B (en) 2023-09-19 2023-09-19 Screen-off display method and electronic equipment

Publications (2)

Publication Number Publication Date
CN117316084A CN117316084A (en) 2023-12-29
CN117316084B true CN117316084B (en) 2024-08-16

Family

ID=89272950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311214648.4A Active CN117316084B (en) 2023-09-19 2023-09-19 Screen-off display method and electronic equipment

Country Status (1)

Country Link
CN (1) CN117316084B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114980286A (en) * 2022-04-29 2022-08-30 荣耀终端有限公司 Electronic equipment screen-off display method
CN115175279A (en) * 2022-06-17 2022-10-11 北京小米移动软件有限公司 Screen-turning control method and device and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102342555B1 (en) * 2014-11-10 2021-12-23 엘지전자 주식회사 Mobile terminal and control method thereof
CN109388223A (en) * 2018-09-14 2019-02-26 维沃移动通信有限公司 One kind putting out screen display method, apparatus and terminal
CN109639879B (en) * 2018-10-30 2021-09-07 努比亚技术有限公司 Screen display control method, foldable terminal and computer readable storage medium
CN110012153A (en) * 2019-02-22 2019-07-12 华为技术有限公司 It goes out and shields the method and electronic equipment of display
CN110177174B (en) * 2019-05-24 2021-03-12 Oppo广东移动通信有限公司 Display processing method, display processing device, mobile terminal and storage medium
CN111198605A (en) * 2019-12-03 2020-05-26 深圳传音控股股份有限公司 Power saving method and system for foldable screen and terminal equipment
CN111966436A (en) * 2020-08-06 2020-11-20 Tcl通讯(宁波)有限公司 Screen display control method and device, terminal equipment and storage medium
CN112055243B (en) * 2020-08-20 2023-03-24 深圳创维-Rgb电子有限公司 Control method, terminal and storage medium for double information screen display
CN116027877A (en) * 2021-10-25 2023-04-28 华为终端有限公司 Screen-off display method and terminal equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114980286A (en) * 2022-04-29 2022-08-30 荣耀终端有限公司 Electronic equipment screen-off display method
CN115175279A (en) * 2022-06-17 2022-10-11 北京小米移动软件有限公司 Screen-turning control method and device and storage medium

Also Published As

Publication number Publication date
CN117316084A (en) 2023-12-29

Similar Documents

Publication Publication Date Title
CN112269527B (en) Application interface generation method and related device
CN110569095B (en) Method and electronic equipment for displaying page elements
US20220107821A1 (en) User interface layout method and electronic device
WO2021000881A1 (en) Screen splitting method and electronic device
CN113192464B (en) Backlight adjusting method and electronic equipment
CN113132526B (en) Page drawing method and related device
CN113986070B (en) Quick viewing method for application card and electronic equipment
WO2020155875A1 (en) Display method for electronic device, graphic user interface and electronic device
WO2022206681A1 (en) Window display method and related apparatus
CN114281440B (en) Display method of user interface in dual systems and electronic equipment
CN112905280B (en) Page display method, device, equipment and storage medium
CN113157357A (en) Page display method, device, terminal and storage medium
EP4373062A1 (en) Display method, electronic device, and storage medium
CN115729346A (en) Interface display method and electronic equipment
CN117316084B (en) Screen-off display method and electronic equipment
CN116775200B (en) AOD display method and electronic equipment
KR20140078914A (en) Electronic apparatus and method of driving a display
CN114257502A (en) Log reporting method and device
CN115933952B (en) Touch sampling rate adjusting method and related device
CN113781959B (en) Interface processing method and device
CN118113189A (en) Display method, display device and wearable equipment
CN116719587A (en) Screen display method, electronic device and computer readable storage medium
CN113760164A (en) Display device and response method of control operation thereof
CN111581119A (en) Page recovery method and device
WO2024139934A1 (en) Multi-window presentation method for application programs, and electronic device

Legal Events

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