CN108881635B - Screen brightness adjusting method, mobile terminal and computer readable storage medium - Google Patents
Screen brightness adjusting method, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108881635B CN108881635B CN201810686011.8A CN201810686011A CN108881635B CN 108881635 B CN108881635 B CN 108881635B CN 201810686011 A CN201810686011 A CN 201810686011A CN 108881635 B CN108881635 B CN 108881635B
- Authority
- CN
- China
- Prior art keywords
- screen
- mobile terminal
- brightness value
- utilization rate
- mode
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control 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
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0626—Adjustment of display parameters for control of overall brightness
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
- H04M1/0266—Details of the structure or mounting of specific components for a display module assembly
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a screen brightness adjusting method, a mobile terminal and a computer readable storage medium, wherein the method comprises the following steps: when the mobile terminal is determined to be in the dual-screen mode, calculating a first screen utilization rate corresponding to a first screen of the mobile terminal and a second screen utilization rate corresponding to a second screen; if the first screen utilization rate is greater than the second screen utilization rate, determining that the first screen is a main screen and the second screen is a secondary screen; determining a first target brightness value of a first screen according to the first screen utilization rate and determining a second target brightness value of a second screen according to the second screen utilization rate based on a preset mapping relation between the screen utilization rate and the screen brightness value; the brightness value of the first screen is adjusted according to the first target brightness value, and the brightness value of the second screen is adjusted according to the second target brightness value. The invention improves the accuracy of adjusting the screen brightness of the mobile terminal.
Description
Technical Field
The invention relates to the technical field of terminals, in particular to a screen brightness adjusting method, a mobile terminal and a computer readable storage medium.
Background
With the development of mobile terminal technology, a dual-screen mobile terminal has appeared on the market. The double-screen mobile terminal is characterized in that the double-screen mobile terminal is provided with two screens, and the double-screen mobile terminal brings better experience to users. For example, during a call, a user can use one screen to make a call, use another screen to play a game or surf the internet, and the like. In the double-sided screen mobile terminal, one screen is fixed as a main screen, and the other screen is fixed as a secondary screen, the brightness of the main screen is automatically adjusted according to the ambient brightness in the conventional mobile terminal screen adjusting method, and the accuracy of adjusting the brightness value of the screen of the mobile terminal according to the ambient brightness is low because different users have different requirements on the ambient brightness, so that the requirements of the users are not met.
Disclosure of Invention
The invention mainly aims to provide a screen brightness adjusting method, a mobile terminal and a computer readable storage medium, and aims to solve the technical problem that the existing screen brightness adjusting method of the mobile terminal is low in accuracy.
In order to achieve the above object, the present invention provides a screen brightness adjusting method, including:
when the mobile terminal is determined to be in a double-screen mode, calculating a first screen utilization rate corresponding to a first screen of the mobile terminal and a second screen utilization rate corresponding to a second screen;
if the first screen utilization rate is greater than the second screen utilization rate, determining that the first screen is a main screen and the second screen is a secondary screen;
determining a first target brightness value of the first screen according to the first screen utilization rate and determining a second target brightness value of the second screen according to the second screen utilization rate based on a preset mapping relation between the screen utilization rate and the screen brightness value;
adjusting a brightness value of the first screen according to the first target brightness value, and adjusting a brightness value of the second screen according to the second target brightness value.
Optionally, after determining that the mobile terminal is in the dual-screen mode, the step of calculating the first screen usage rate corresponding to the first screen of the mobile terminal includes:
when the mobile terminal is determined to be in a dual-screen mode, acquiring a first time length and a second time length of the face of the user of the mobile terminal facing the first screen, wherein the first time length and the second time length are the time lengths of the user facing the first screen in different time periods;
and dividing the first duration by the second duration to obtain the first screen utilization rate corresponding to the first screen.
Optionally, after determining that the mobile terminal is in the dual-screen mode, the step of calculating the first screen usage rate corresponding to the first screen of the mobile terminal further includes:
when the mobile terminal is determined to be in a dual-screen mode, acquiring a first time length and a second time length of the face of the user of the mobile terminal facing the first screen, wherein the first time length and the second time length are the time lengths of the user facing the first screen in different time periods;
acquiring a first click frequency and a second click frequency of the user clicking the first screen, wherein the first click frequency and the second click frequency are frequencies of the user clicking the first screen in different time periods;
dividing the first duration by the second duration to obtain a duration proportion corresponding to the first screen, and dividing the first click frequency by the second click frequency to obtain a click proportion corresponding to the first screen;
acquiring weights corresponding to the duration proportion and the click proportion and reference utilization rates corresponding to the duration proportion and the click proportion;
and calculating the first screen utilization rate according to the duration proportion, the click proportion, the corresponding weight and the reference utilization rate.
Optionally, before the step of calculating the first screen usage according to the duration ratio, the click ratio, the corresponding weight, and the reference usage, the method further includes:
acquiring a first quantity and a second quantity corresponding to the application programs in the first screen, wherein the first quantity and the second quantity are the quantities of the application programs started in the first screen in different time periods;
dividing the first application quantity by the second application quantity to obtain an application occupancy rate corresponding to the first screen;
acquiring weight and reference utilization rate corresponding to the application occupancy rate;
the step of calculating the first screen usage rate according to the duration proportion, the click proportion, the corresponding weight and the reference usage rate includes:
and calculating the first screen utilization rate according to the duration proportion, the click proportion, the application occupancy rate, the corresponding weight and the reference utilization rate.
Optionally, after the step of calculating a first screen usage rate corresponding to a first screen of the mobile terminal and a second screen usage rate corresponding to a second screen after determining that the mobile terminal is in the dual-screen mode, the method further includes:
and if the mobile terminal is detected to be switched from the double-screen mode to the single-screen mode, controlling the auxiliary screen of the mobile terminal to be in a screen-off state.
Optionally, before the step of calculating a first screen usage rate corresponding to a first screen of the mobile terminal and a second screen usage rate corresponding to a second screen after determining that the mobile terminal is in the dual-screen mode, the method further includes:
the method comprises the steps of obtaining a current working mode of the mobile terminal, and determining whether the mobile terminal is in a double-screen mode or a single-screen mode according to the working mode.
Optionally, after the step of obtaining the current working mode of the mobile terminal and determining whether the mobile terminal is in the dual-screen mode or the single-screen mode according to the working mode, the method further includes:
if the mobile terminal is determined to be in the single-screen mode, acquiring an environment brightness value of an environment where the mobile terminal is located;
and adjusting the brightness value of the current screen of the mobile terminal according to the environment brightness value.
Optionally, the adjusting the brightness value of the first screen according to the first target brightness value and the adjusting the brightness value of the second screen according to the second target brightness value includes:
acquiring a current first brightness value of the main screen and a current second brightness value of the auxiliary screen;
if the first target brightness value is larger than the first brightness value, adjusting the brightness value of the main screen from the first brightness value to the first target brightness value;
if the first target brightness value is less than or equal to the first brightness value, maintaining the brightness value of the main screen unchanged;
if the second target brightness value is greater than or equal to the second brightness value, maintaining the brightness value of the secondary screen unchanged;
and if the second target brightness value is smaller than the second brightness value, adjusting the brightness value of the secondary screen from the second brightness value to the second target brightness value.
In addition, to achieve the above object, the present invention further provides a mobile terminal, which includes a memory, a processor and a screen brightness adjusting program stored on the memory and operable on the processor, wherein the screen brightness adjusting program, when executed by the processor, implements the steps of the screen brightness adjusting method as described above.
Further, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a screen brightness adjusting program which, when executed by a processor, implements the steps of the screen brightness adjusting method as described above.
According to the invention, after the mobile terminal is in the dual-screen mode, the main screen and the auxiliary screen of the mobile terminal are determined according to the screen utilization rates corresponding to the first screen and the second screen, then the brightness values of the main screen and the auxiliary screen are correspondingly adjusted according to the screen utilization rates, so that the brightness values of the two screens in the mobile terminal are adjusted through the screen utilization rate when the dual-screen mobile terminal is in the dual-screen mode, the brightness values of the first screen and the second screen are correspondingly adjusted through the screen utilization rates of the first screen and the second screen of the mobile terminal by a user, the brightness values adjusted by the first screen and the second screen are more in line with the actual condition of the user using the mobile terminal, and the accuracy of adjusting the screen brightness of the mobile terminal is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention;
fig. 2 is a diagram of a communication network system architecture according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a first embodiment of a screen brightness adjusting method according to the present invention;
FIG. 4 is a diagram illustrating a front and back arrangement of a first screen and a second screen of a mobile terminal according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a folding configuration of a first screen and a second screen of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic flow chart illustrating a process of calculating a first screen usage rate corresponding to a first screen of a mobile terminal after determining that the mobile terminal is in a dual-screen mode according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a method for adjusting screen brightness according to a fourth embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert voice data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (voice data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sound into voice data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as voice data, a phonebook, etc.) created according to the use of the cellular phone, etc. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal 100, connects various parts of the entire mobile terminal 100 using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby monitoring the mobile terminal 100 as a whole. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
Further, in the mobile terminal 100 shown in fig. 1, the processor 110 is configured to call the screen brightness adjustment program stored in the memory 109, and perform the following operations:
when the mobile terminal is determined to be in a double-screen mode, calculating a first screen utilization rate corresponding to a first screen of the mobile terminal and a second screen utilization rate corresponding to a second screen;
if the first screen utilization rate is greater than the second screen utilization rate, determining that the first screen is a main screen and the second screen is a secondary screen;
determining a first target brightness value of the first screen according to the first screen utilization rate and determining a second target brightness value of the second screen according to the second screen utilization rate based on a preset mapping relation between the screen utilization rate and the screen brightness value;
adjusting a brightness value of the first screen according to the first target brightness value, and adjusting a brightness value of the second screen according to the second target brightness value.
Further, after the mobile terminal is determined to be in the dual-screen mode, the step of calculating the first screen usage rate corresponding to the first screen of the mobile terminal includes:
when the mobile terminal is determined to be in a dual-screen mode, acquiring a first time length and a second time length of the face of the user of the mobile terminal facing the first screen, wherein the first time length and the second time length are the time lengths of the user facing the first screen in different time periods;
and dividing the first duration by the second duration to obtain the first screen utilization rate corresponding to the first screen.
Further, after determining that the mobile terminal is in the dual-screen mode, the step of calculating the first screen usage rate corresponding to the first screen of the mobile terminal further includes:
when the mobile terminal is determined to be in a dual-screen mode, acquiring a first time length and a second time length of the face of the user of the mobile terminal facing the first screen, wherein the first time length and the second time length are the time lengths of the user facing the first screen in different time periods;
acquiring a first click frequency and a second click frequency of the user clicking the first screen, wherein the first click frequency and the second click frequency are frequencies of the user clicking the first screen in different time periods;
dividing the first duration by the second duration to obtain a duration proportion corresponding to the first screen, and dividing the first click frequency by the second click frequency to obtain a click proportion corresponding to the first screen;
acquiring weights corresponding to the duration proportion and the click proportion and reference utilization rates corresponding to the duration proportion and the click proportion;
and calculating the first screen utilization rate according to the duration proportion, the click proportion, the corresponding weight and the reference utilization rate.
Further, before the step of calculating the first screen usage according to the duration ratio, the click ratio, the corresponding weight and the reference usage, the processor 110 is further configured to invoke a screen brightness adjustment program stored in the memory 109, and perform the following operations:
acquiring a first quantity and a second quantity corresponding to the application programs in the first screen, wherein the first quantity and the second quantity are the quantities of the application programs started in the first screen in different time periods;
dividing the first application quantity by the second application quantity to obtain an application occupancy rate corresponding to the first screen;
acquiring weight and reference utilization rate corresponding to the application occupancy rate;
the step of calculating the first screen usage rate according to the duration proportion, the click proportion, the corresponding weight and the reference usage rate includes:
and calculating the first screen utilization rate according to the duration proportion, the click proportion, the application occupancy rate, the corresponding weight and the reference utilization rate.
Further, after the step of calculating the first screen usage rate corresponding to the first screen and the second screen usage rate corresponding to the second screen of the mobile terminal after determining that the mobile terminal is in the dual-screen mode, the processor 110 is further configured to call a screen brightness adjustment program stored in the memory 109, and perform the following operations:
and if the mobile terminal is detected to be switched from the double-screen mode to the single-screen mode, controlling the auxiliary screen of the mobile terminal to be in a screen-off state.
Further, before the step of calculating a first screen usage rate corresponding to a first screen and a second screen usage rate corresponding to a second screen of the mobile terminal after the mobile terminal is determined to be in the dual-screen mode, the processor 110 is further configured to call a screen brightness adjustment program stored in the memory 109, and perform the following operations:
the method comprises the steps of obtaining a current working mode of the mobile terminal, and determining whether the mobile terminal is in a double-screen mode or a single-screen mode according to the working mode.
Further, after the step of obtaining the current operating mode of the mobile terminal and determining whether the mobile terminal is in the dual-screen mode or the single-screen mode according to the operating mode, the processor 110 is further configured to call the screen brightness adjustment program stored in the memory 109, and perform the following operations:
if the mobile terminal is determined to be in the single-screen mode, acquiring an environment brightness value of an environment where the mobile terminal is located;
and adjusting the brightness value of the current screen of the mobile terminal according to the environment brightness value.
Further, the adjusting the brightness value of the first screen according to the first target brightness value and the adjusting the brightness value of the second screen according to the second target brightness value includes:
acquiring a current first brightness value of the main screen and a current second brightness value of the auxiliary screen;
if the first target brightness value is larger than the first brightness value, adjusting the brightness value of the main screen from the first brightness value to the first target brightness value;
if the first target brightness value is less than or equal to the first brightness value, maintaining the brightness value of the main screen unchanged;
if the second target brightness value is greater than or equal to the second brightness value, maintaining the brightness value of the secondary screen unchanged;
and if the second target brightness value is smaller than the second brightness value, adjusting the brightness value of the secondary screen from the second brightness value to the second target brightness value.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the mobile terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the terminal hardware structure and the communication network system, the invention provides various embodiments of the screen brightness adjusting method.
The invention provides a screen brightness adjusting method.
Referring to fig. 3, fig. 3 is a flowchart illustrating a screen brightness adjusting method according to a first embodiment of the present invention.
In the present embodiment, an embodiment of a screen brightness adjustment method is provided, and it should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that here.
In this embodiment, the screen brightness adjusting method includes:
step S10, after the mobile terminal is determined to be in the dual-screen mode, calculating a first screen utilization rate corresponding to a first screen and a second screen utilization rate corresponding to a second screen of the mobile terminal.
In the embodiment of the invention, the mobile terminal is a double-sided screen mobile terminal, namely, the mobile terminal is provided with two screens for displaying, namely a first screen and a second screen. The first screen and the second screen may be made of the same material or different materials, for example, the first screen and the second screen may be both LCD (Liquid Crystal Display) screens, or the first screen may be an LCD screen and the second screen may be an electronic ink screen. It should be noted that the arrangement of the first screen and the second screen includes, but is not limited to, a front-back arrangement and a folding arrangement. Specifically, referring to fig. 4 and 5, fig. 4 is a schematic diagram illustrating the positive and negative settings of the first screen and the second screen of the mobile terminal in the embodiment of the present invention. As shown in fig. 4, the front side of the mobile terminal is provided as a first screen, and the back side of the mobile terminal is provided as a second screen. Fig. 5 is a schematic diagram illustrating a folding arrangement of a first screen and a second screen of a mobile terminal in an embodiment of the present invention, as shown in fig. 5, the first screen and the second screen of the mobile terminal may rotate along a central axis, the rotation angle is 0-180 degrees, when the rotation angle is 0 degree, the first screen and the second screen are overlapped (equivalent to that the first screen is disposed on the front side of the mobile terminal, and the second screen is disposed on the back side of the mobile terminal), when the rotation angle is 180 degrees, the first screen and the second screen are in the same horizontal plane, and the first screen and the second screen may operate simultaneously or separately.
When the mobile terminal is in a dual-screen mode, namely the first screen and the second screen of the mobile terminal are both in a working state, the mobile terminal calculates the first screen utilization rate corresponding to the first screen and calculates the second screen utilization rate corresponding to the second screen. It is understood that when both the first screen and the second screen are in the operating state, it indicates that both the display function and the touch function of the first screen and the second screen are in the normal state.
Further, after the mobile terminal is determined to be in the dual-screen mode, the step of calculating the first screen usage rate corresponding to the first screen of the mobile terminal includes:
step a, after the mobile terminal is determined to be in a double-screen mode, acquiring a first time length and a second time length of the face of the user of the mobile terminal facing the first screen, wherein the first time length and the second time length are the time lengths of the user facing the first screen in different time lengths.
And b, dividing the first duration by the second duration to obtain the first screen utilization rate corresponding to the first screen.
Further, after the mobile terminal is in the dual-screen mode, the process of calculating the first screen usage rate of the first screen by the mobile terminal is as follows: the method comprises the steps that a mobile terminal obtains a first duration and a second duration of a face of a user facing a first screen, wherein the first duration and the second duration are durations of the face of the user facing the first screen in different time periods. It should be noted that the time corresponding to the first duration is less than the time corresponding to the second duration. For example, the time corresponding to the first time period may be set to 1 day, and the time corresponding to the second time period may be set to 10 days. The mobile terminal can acquire a first duration and a second duration of the face of a user facing the first screen through the camera. If the mobile terminal detects the time length of the face of the user facing the first screen once by the camera every 0.5 minute, if the time length of the face of the user facing the first screen is detected once, the time length of the face facing the first screen is increased by 0.5 minute. It can be understood that the interval time corresponding to the time length for which the camera detects that the face of the user faces the first screen can be set according to specific needs. Therefore, when the mobile terminal needs to acquire a first time length and a second time length when the face of the user faces the first screen, the data of the corresponding time period is extracted from the corresponding database, and the first time length and the second time length can be determined.
After the mobile terminal obtains the first duration and the second duration, the mobile terminal divides the first duration by the second duration to obtain a corresponding quotient value, and the quotient value is the first screen utilization rate corresponding to the first screen.
It should be noted that the process of calculating the usage rate of the second screen corresponding to the second screen by the mobile terminal is consistent with the process of calculating the usage rate of the first screen, and details are not repeated in this embodiment.
Further, the mobile terminal can calculate the screen usage rates of the first screen and the second screen by the corresponding click frequency of the user clicking the first screen and the second screen, the corresponding application occupancy rate of the first screen and the second screen, or the corresponding usage duration of the first screen and the second screen.
The process that the mobile terminal calculates the utilization rate of the first screen through the click frequency corresponding to the first screen comprises the following steps: the method comprises the steps of obtaining a first click frequency and a second click frequency of a first screen clicked by a user, wherein the first click frequency and the second click frequency are frequencies of the first screen clicked by the user in different time periods, and dividing the first click frequency by the second click frequency to obtain the first screen utilization rate of the first screen. It should be noted that the process of calculating the screen usage rates corresponding to the first screen and the second screen by the mobile terminal through the application occupancy rate and the application usage duration is similar to the process of calculating the screen usage rates corresponding to the first screen and the second screen through the duration of the face facing the screen and the click frequency, and details are not repeated in this embodiment.
Step S20, if the first screen usage rate is greater than the second screen usage rate, determining that the first screen is a main screen and the second screen is a secondary screen.
After the mobile terminal calculates the first screen utilization rate and the second screen utilization rate, the mobile terminal judges whether the first screen utilization rate is greater than the second screen utilization rate. If the first screen utilization rate is greater than the second screen utilization rate, the mobile terminal determines that the first screen is a main screen and the second screen is a secondary screen. Further, if the second screen utilization rate is greater than the first screen utilization rate, the mobile terminal determines that the first screen is a secondary screen and the second screen is a main screen; if the first screen utilization rate is equal to the second screen utilization rate, the mobile terminal can use the first screen as a main screen and the second screen as a secondary screen, or use the first screen as a secondary screen and the second screen as the main screen. It is understood that the main screen is a screen with a larger screen usage rate, and the sub-screen is a screen with a smaller screen usage rate.
Step S30, based on a preset mapping relationship between screen utilization and screen brightness values, determining a first target brightness value of the first screen according to the first screen utilization, and determining a second target brightness value of the second screen according to the second screen utilization.
After the mobile terminal determines the main screen and the auxiliary screen, the mobile terminal obtains a preset mapping relation between the screen utilization rate and the screen brightness value, determines a first target brightness value of the first screen based on the mapping relation, and determines a second target brightness value of the second screen according to the second screen utilization rate. The mapping relation can be set by a user according to specific use conditions of the user, or set by the mobile terminal through deep learning of the operation habits of the user, or set by a designer according to the specific operation habits of the user. In the mapping relationship between the ambient brightness value and the screen brightness value, it may be set to correspond to different screen brightness values for each different screen usage rate, or to correspond to different screen brightness values during each different screen usage rate.
Step S40, adjusting the brightness value of the first screen according to the first target brightness value, and adjusting the brightness value of the second screen according to the second target brightness value.
After the mobile terminal determines the first target brightness value and the second target brightness value, the mobile terminal adjusts the brightness value of the first screen according to the first target brightness value and adjusts the brightness value of the second screen according to the second target brightness value.
According to the embodiment, after the mobile terminal is in the dual-screen mode, the main screen and the auxiliary screen of the mobile terminal are determined according to the screen utilization rate corresponding to the first screen and the second screen, then the brightness values of the main screen and the auxiliary screen are correspondingly adjusted according to the screen utilization rate, when the dual-screen mobile terminal is in the dual-screen mode, the brightness values of the two screens in the mobile terminal are adjusted through the screen utilization rate, the brightness values of the first screen and the second screen are correspondingly adjusted through the screen utilization rate of the first screen and the second screen of the mobile terminal by a user, the brightness values adjusted by the first screen and the second screen are more in line with the actual condition of the user using the mobile terminal, and the accuracy of adjusting the screen brightness of the mobile terminal is improved.
Further, in order to avoid the problems of large power consumption and poor endurance of the dual-screen mobile terminal due to the fact that both screens of the dual-screen mobile terminal need to consume power, step S40 includes:
and c, acquiring a current first brightness value of the main screen and a current second brightness value of the auxiliary screen.
And d, if the first target brightness value is larger than the first brightness value, adjusting the brightness value of the main screen from the first brightness value to the first target brightness value.
And e, if the first target brightness value is less than or equal to the first brightness value, maintaining the brightness value of the main screen unchanged.
And f, if the second target brightness value is greater than or equal to the second brightness value, maintaining the brightness value of the secondary screen unchanged.
And g, if the second target brightness value is smaller than the second brightness value, adjusting the brightness value of the secondary screen from the second brightness value to the second target brightness value.
Further, the process of adjusting the main screen brightness value by the mobile terminal according to the first target brightness value is as follows: the mobile terminal acquires the current brightness value of the main screen, records the current brightness value as a first brightness value, and judges whether the first target brightness value is greater than the first brightness value. If the first target brightness value is larger than the first brightness value, the mobile terminal adjusts the brightness value of the main screen from the first brightness value to the first target brightness value; if the first target brightness value is less than or equal to the first brightness value, the mobile terminal maintains the brightness value of the main screen unchanged even if the brightness value of the main screen is maintained at the first brightness value.
The process that the mobile terminal adjusts the brightness value of the auxiliary screen according to the second target brightness value is as follows: and the mobile terminal acquires the current brightness value of the secondary screen, records the current brightness value as a second brightness value, and judges whether the second target brightness value is greater than or equal to the second brightness value. If the second target brightness value is greater than or equal to the second brightness value, the mobile terminal maintains the brightness value of the secondary screen unchanged, even if the brightness value of the secondary screen is maintained as the second brightness value; and if the second target brightness value is smaller than the second brightness value, the mobile terminal adjusts the brightness value of the secondary screen from the second brightness value to the second target brightness value.
In the embodiment, if the first target brightness value is greater than the first brightness value, the brightness value of the main screen is adjusted from the first brightness value to the first target brightness value; if the second target brightness value is smaller than the second brightness value, adjusting the second brightness value of the auxiliary screen to be the second target brightness value, determining a main screen and an auxiliary screen in the first screen and the second screen in the mobile terminal according to the screen utilization rate, and increasing the brightness value of the main screen according to the screen utilization rate or keeping the brightness value of the main screen unchanged; the brightness value of the auxiliary screen is reduced according to the screen utilization rate, or the brightness value of the auxiliary screen is maintained unchanged, the brightness values of the two screens in the mobile terminal are intelligently adjusted according to the screen utilization rate, the power consumption of the double-sided screen mobile terminal is reduced under the condition that the use of a user is not influenced, and the cruising ability of the double-sided screen mobile terminal is prolonged.
Further, a second embodiment of the screen brightness adjusting method of the present invention is provided. The second embodiment of the screen brightness adjusting method is different from the first embodiment of the screen brightness adjusting method in that, referring to fig. 6, after the mobile terminal is determined to be in the dual-screen mode, the step of calculating the first screen usage rate corresponding to the first screen of the mobile terminal further includes:
step S21, when the mobile terminal is determined to be in the dual-screen mode, acquiring a first duration and a second duration of the face of the user of the mobile terminal facing the first screen, wherein the first duration and the second duration are durations of the face of the user facing the first screen in different time periods.
When the mobile terminal determines that the mobile terminal is in the dual-screen mode, the mobile terminal obtains a first duration and a second duration of the face of the user facing the first screen, wherein the first duration and the second duration are durations of the face of the user facing the first screen in different durations.
Step S22, obtaining a first click frequency and a second click frequency of the user clicking the first screen, where the first click frequency and the second click frequency are frequencies of the user clicking the first screen in different time periods.
When the mobile terminal determines that the mobile terminal is in the double-sided screen mode, the mobile terminal obtains a first click frequency and a second click frequency of a user clicking a first screen, wherein the first click frequency and the second click frequency are frequencies of the user clicking the first screen in different time periods, and the duration of the time period corresponding to the first click frequency is smaller than the duration of the time period corresponding to the second click frequency. If the first click screen is the click frequency of the user calculated within 20 hours before the current time point, the second click frequency is the click frequency of the user calculated within 200 hours before the current time point. Specifically, the mobile terminal obtains the number of clicks of a user clicking a first screen in a time period corresponding to the first click frequency, and divides the number of clicks by the duration of the time period corresponding to the first click frequency to obtain the first click frequency. It can be understood that the process of calculating the second click frequency by the mobile terminal is consistent with the process of calculating the first click frequency, and details are not repeated in this embodiment.
Step S23, dividing the first duration by the second duration to obtain a duration ratio corresponding to the first screen, and dividing the first click frequency by the second click frequency to obtain a click ratio corresponding to the first screen.
Step S24, obtaining the weight corresponding to the duration proportion and the click proportion, and the benchmark utilization rate corresponding to the duration proportion and the click proportion.
The mobile terminal divides the first duration by the second duration to obtain a duration proportion corresponding to the first screen, and divides the first click frequency by the second click frequency to obtain a click proportion corresponding to the first screen. The mobile terminal obtains the weight and the reference utilization rate corresponding to the duration proportion and obtains the weight and the reference utilization rate corresponding to the click proportion. The weight and the reference utilization rate corresponding to the duration proportion and the click proportion are preset, for example, the weight corresponding to the duration proportion can be set to 0.6, the weight corresponding to the click proportion can be set to 0.4, and the reference utilization rates corresponding to the duration proportion and the click proportion can be set to be the same or different. For example, the reference usage rates corresponding to the time length proportion and the click proportion may be set to 1%, or the reference usage rate corresponding to the time length proportion may be set to 1%, and the reference usage rate corresponding to the click proportion may be set to 2%.
And step S25, calculating the first screen utilization rate according to the duration proportion, the click proportion, the corresponding weight and the reference utilization rate.
After the mobile terminal obtains the duration proportion, the click proportion, the duration proportion, the weight corresponding to the click proportion and the reference utilization rate, the mobile terminal calculates the first screen utilization rate according to the duration proportion, the click proportion, the duration proportion, the weight corresponding to the click proportion and the reference utilization rate. The calculation formula for calculating the first screen utilization rate by the mobile terminal is as follows: u0 is T × U1 × w1+ C × U2 × w2, where U0 represents the first screen usage rate, T represents the duration ratio, U1 represents the reference usage rate corresponding to the duration ratio, U2 represents the reference usage rate corresponding to the click ratio, w1 represents the weight corresponding to the duration ratio, and w2 represents the weight corresponding to the click ratio.
Further, the screen brightness adjusting method further includes:
and h, acquiring a first quantity and a second quantity corresponding to the application programs in the first screen, wherein the first quantity and the second quantity are the quantities of the application programs started in the first screen in different time periods.
Further, the mobile terminal obtains a first quantity and a second quantity corresponding to the application programs in the first screen, wherein the first quantity and the second quantity are the quantity of the application programs started in the first screen in different time periods, and the duration of the time period corresponding to the first quantity is smaller than the duration of the time period corresponding to the second quantity. If the current time is 2018, 6/21, the first number is the number of applications that the user starts in the first screen in the day 2018, 6/20, and the second number is the number of applications that the user starts in the first screen in the 15 days 2018, 6/6 to 2018, 6/20. It should be noted that, in the process of calculating the first number and the second number, one application is started once, and the corresponding number of times is increased by 1, for example, if the user starts the application a 3 times, starts the application B1 time, and starts the application C5 times in the first screen in a day of No. 6/20 in 2018, the corresponding first number is 9. Further, in the process of calculating the first number and the second number, the number of times corresponding to starting one application is 1, for example, if the user starts the application a 3 times, starts the application B1 time, and starts the application C5 times in the first screen in a day of No. 6/20 in 2018, the corresponding first number is 3.
And i, dividing the first number by the second number to obtain the application occupancy rate corresponding to the first screen.
And j, acquiring the weight corresponding to the application occupancy and the reference utilization.
After the mobile terminal obtains the first quantity and the second quantity, the first quantity is divided by the second quantity to obtain the application occupancy rate corresponding to the first screen, and the weight and the reference utilization rate corresponding to the application occupancy rate are obtained. The weight corresponding to the application occupancy and the reference utilization are preset and stored in the corresponding terminal.
Step S25 includes:
and k, calculating the first screen utilization rate according to the duration proportion, the click proportion, the application occupancy rate, the corresponding weight and the reference utilization rate.
After the mobile terminal obtains the duration proportion, the click proportion, the application occupancy and the weight and the reference utilization rate corresponding to the duration proportion, the click proportion and the application occupancy of the first screen, the mobile terminal calculates the first screen utilization rate according to the duration proportion, the click proportion, the application occupancy and the weight and the reference utilization rate corresponding to the duration proportion, the click proportion and the application occupancy. Specifically, the formula for the mobile terminal to calculate the first screen usage rate is as follows: u0 is T × U1 × w1+ C × U2 × w2+ O × U3 × w3, where O denotes an application occupancy, U3 denotes a reference usage corresponding to the application occupancy, and w3 denotes a weight corresponding to the application occupancy.
Further, the application occupancy rate of the first screen can be calculated according to the number of the application programs displayed on the first screen in different time periods.
Further, in the process of calculating the first screen usage rate, the mobile terminal may further obtain a first operation duration and a second operation duration corresponding to the first screen, calculate an operation duration ratio according to the first operation duration and the second operation duration, and use the operation duration ratio as a factor for calculating the first screen usage rate. The first running time is the sum of the time of the user using each application program in the first screen in the preset time period.
It should be noted that the process of calculating the second screen usage rate is consistent with the process of calculating the first screen usage rate, and the process of calculating the second screen usage rate is not described in detail in this embodiment.
According to the embodiment, the screen utilization rates corresponding to the first screen and the second screen of the mobile terminal are further calculated according to the click frequency and/or the application occupancy rate of the screen of the mobile terminal, so that the calculated screen utilization rates are more suitable for the real situation that a user uses the mobile terminal, and the accuracy of the calculated screen utilization rates is improved.
Further, a third embodiment of the screen brightness adjusting method of the present invention is provided. The third embodiment of the screen brightness adjustment method differs from the second embodiment of the screen brightness adjustment method in that the screen brightness adjustment method further includes:
and step l, if the mobile terminal is detected to be switched from the double-screen mode to the single-screen mode, controlling a secondary screen of the mobile terminal to be in a screen-off state.
When the mobile terminal is in the dual-screen mode, the mobile terminal judges whether the mobile terminal detects that the mobile terminal is switched from the dual-screen mode to the single-screen mode. If the mobile terminal detects that the mobile terminal is switched from the double-screen mode to the single-screen mode, the mobile terminal controls the auxiliary screen to be in the screen-off state, namely controls the auxiliary screen to be in the screen-blacking state, and at the moment, the display function and the touch function in the auxiliary screen are closed.
According to the embodiment, after the mobile terminal is in the single-screen mode, the auxiliary screen of the mobile terminal is controlled to be in the screen-off state, so that the electric quantity of the mobile terminal is saved, and the cruising ability of the mobile terminal is prolonged.
Further, a fourth embodiment of the screen brightness adjusting method of the present invention is provided. The fourth embodiment of the screen brightness adjustment method differs from the first, second, or third embodiment of the screen brightness adjustment method in that, referring to fig. 7, the screen brightness adjustment method further includes:
and step S50, acquiring the current working mode of the mobile terminal, and determining whether the mobile terminal is in a double-screen mode or a single-screen mode according to the working mode.
After the mobile terminal is started, the mobile terminal acquires the current working mode of the mobile terminal, and determines whether the mobile terminal is in a double-screen mode or a single-screen mode according to the working mode of the mobile terminal. In the mobile terminal, screen modes corresponding to different working modes are preset, so that whether the mobile terminal is in a single-screen mode or a double-screen mode can be determined according to the working modes of the mobile terminal. If the mobile terminal is in the shooting mode, the corresponding screen mode is a single screen mode; when the mobile terminal is in an entertainment mode, such as a music application program, a video application program and the like are started, and the call module is started, the corresponding screen mode is a double-screen mode; when the mobile terminal only starts the call module, the corresponding screen mode is a single screen mode and the like.
The present embodiment determines the screen mode of the mobile terminal quickly by determining the screen mode of the mobile terminal according to the operation mode.
Further, the screen brightness adjusting method further includes:
and m, if the mobile terminal is determined to be in the single-screen mode, acquiring an environment brightness value of the environment where the mobile terminal is located.
And n, adjusting the brightness value of the current screen of the mobile terminal according to the environment brightness value.
When the mobile terminal determines that the current screen mode is the single screen mode, the mobile terminal acquires the environment brightness value of the environment where the mobile terminal is located, and adjusts the brightness value of the current screen according to the acquired environment brightness value, namely, adjusts the brightness value of the main screen. The mobile terminal can acquire the brightness value of the environment where the mobile terminal is located through the light sensor. In the mobile terminal, the mapping relation between different environment brightness values and the screen brightness value is stored in advance, so that the corresponding screen brightness value can be determined according to the environment brightness value. And when the mobile terminal determines the screen brightness value according to the mapping relation between the environment brightness value and the screen brightness value, the mobile terminal adjusts the brightness value of the main screen to the determined screen brightness value.
According to the embodiment, after the mobile terminal is in the single-screen mode, the mobile terminal adjusts the brightness value of the currently used screen according to the environment brightness value of the environment where the mobile terminal is located, so that the brightness value of the screen of the mobile terminal is intelligently and automatically adjusted according to the environment brightness value in the single-screen mode.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer readable storage medium has stored thereon a screen brightness adjustment program which, when executed by the processor, implements the steps of the screen brightness adjustment method as described above.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the screen brightness adjusting method described above, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (8)
1. A screen brightness adjusting method is characterized by comprising the following steps:
when the mobile terminal is determined to be in a double-screen mode, calculating a first screen utilization rate corresponding to a first screen of the mobile terminal and a second screen utilization rate corresponding to a second screen;
if the first screen utilization rate is greater than the second screen utilization rate, determining that the first screen is a main screen and the second screen is a secondary screen;
determining a first target brightness value of the first screen according to the first screen utilization rate and determining a second target brightness value of the second screen according to the second screen utilization rate based on a preset mapping relation between the screen utilization rate and the screen brightness value;
adjusting a brightness value of the first screen according to the first target brightness value, and adjusting a brightness value of the second screen according to the second target brightness value;
after the mobile terminal is determined to be in the dual-screen mode, the step of calculating the first screen usage rate corresponding to the first screen of the mobile terminal comprises the following steps:
when the mobile terminal is determined to be in a dual-screen mode, acquiring a first time length and a second time length of the face of the user of the mobile terminal facing the first screen, wherein the first time length and the second time length are the time lengths of the user facing the first screen in different time periods;
acquiring a first click frequency and a second click frequency of the user clicking the first screen, wherein the first click frequency and the second click frequency are frequencies of the user clicking the first screen in different time periods;
dividing the first duration by the second duration to obtain a duration proportion corresponding to the first screen, and dividing the first click frequency by the second click frequency to obtain a click proportion corresponding to the first screen;
acquiring weights corresponding to the duration proportion and the click proportion and reference utilization rates corresponding to the duration proportion and the click proportion;
and calculating the first screen utilization rate according to the duration proportion, the click proportion, the corresponding weight and the reference utilization rate.
2. The method of adjusting screen brightness according to claim 1, wherein before the step of calculating the first screen usage according to the duration ratio, the click ratio, the corresponding weight, and the reference usage, further comprising:
acquiring a first quantity and a second quantity corresponding to the application programs in the first screen, wherein the first quantity and the second quantity are the quantities of the application programs started in the first screen in different time periods;
dividing the first application quantity by the second application quantity to obtain an application occupancy rate corresponding to the first screen;
acquiring weight and reference utilization rate corresponding to the application occupancy rate;
the step of calculating the first screen usage rate according to the duration proportion, the click proportion, the corresponding weight and the reference usage rate includes:
and calculating the first screen utilization rate according to the duration proportion, the click proportion, the application occupancy rate, the corresponding weight and the reference utilization rate.
3. The method for adjusting screen brightness according to claim 1, wherein after the step of calculating a first screen usage rate corresponding to a first screen and a second screen usage rate corresponding to a second screen of the mobile terminal after determining that the mobile terminal is in the dual-screen mode, the method further comprises:
and if the mobile terminal is detected to be switched from the double-screen mode to the single-screen mode, controlling the auxiliary screen of the mobile terminal to be in a screen-off state.
4. The method for adjusting screen brightness according to claim 1, wherein before the step of calculating a first screen usage rate corresponding to a first screen and a second screen usage rate corresponding to a second screen of the mobile terminal after determining that the mobile terminal is in the dual-screen mode, the method further comprises:
the method comprises the steps of obtaining a current working mode of the mobile terminal, and determining whether the mobile terminal is in a double-screen mode or a single-screen mode according to the working mode.
5. The screen brightness adjusting method of claim 4, wherein after the step of obtaining the current operating mode of the mobile terminal and determining whether the mobile terminal is in the dual-screen mode or the single-screen mode according to the operating mode, further comprising:
if the mobile terminal is determined to be in the single-screen mode, acquiring an environment brightness value of an environment where the mobile terminal is located;
and adjusting the brightness value of the current screen of the mobile terminal according to the environment brightness value.
6. The screen brightness adjustment method according to any one of claims 1 to 5, wherein the step of adjusting the brightness value of the first screen according to the first target brightness value and adjusting the brightness value of the second screen according to the second target brightness value includes:
acquiring a current first brightness value of the main screen and a current second brightness value of the auxiliary screen;
if the first target brightness value is larger than the first brightness value, adjusting the brightness value of the main screen from the first brightness value to the first target brightness value;
if the first target brightness value is less than or equal to the first brightness value, maintaining the brightness value of the main screen unchanged;
if the second target brightness value is greater than or equal to the second brightness value, maintaining the brightness value of the secondary screen unchanged;
and if the second target brightness value is smaller than the second brightness value, adjusting the brightness value of the secondary screen from the second brightness value to the second target brightness value.
7. A mobile terminal, characterized in that the mobile terminal comprises a memory, a processor and a screen brightness adjusting program stored on the memory and operable on the processor, the screen brightness adjusting program when executed by the processor implementing the steps of the screen brightness adjusting method according to any one of claims 1 to 6.
8. A computer-readable storage medium having a screen brightness adjustment program stored thereon, the screen brightness adjustment program when executed by a processor implementing the steps of the screen brightness adjustment method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810686011.8A CN108881635B (en) | 2018-06-27 | 2018-06-27 | Screen brightness adjusting method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810686011.8A CN108881635B (en) | 2018-06-27 | 2018-06-27 | Screen brightness adjusting method, mobile terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108881635A CN108881635A (en) | 2018-11-23 |
CN108881635B true CN108881635B (en) | 2021-05-21 |
Family
ID=64295508
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810686011.8A Active CN108881635B (en) | 2018-06-27 | 2018-06-27 | Screen brightness adjusting method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108881635B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109842721B (en) * | 2018-12-25 | 2021-07-13 | 努比亚技术有限公司 | Screen brightness adjusting method, mobile terminal and computer readable storage medium |
CN109976450B (en) * | 2019-03-15 | 2020-12-22 | Oppo广东移动通信有限公司 | Screen calibration method and device, electronic equipment and storage medium |
CN110505680A (en) * | 2019-08-15 | 2019-11-26 | Oppo(重庆)智能科技有限公司 | Control method, device, mobile terminal and the storage medium of mobile terminal |
CN110853577A (en) * | 2019-11-27 | 2020-02-28 | 京东方科技集团股份有限公司 | Display panel and brightness compensation method |
CN112037731A (en) * | 2020-09-11 | 2020-12-04 | 中国第一汽车股份有限公司 | Screen brightness adjusting method, device, equipment and storage medium |
CN114296664A (en) * | 2021-04-25 | 2022-04-08 | 海信视像科技股份有限公司 | Auxiliary screen brightness adjusting method and display device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1732494A (en) * | 2002-12-27 | 2006-02-08 | 株式会社半导体能源研究所 | Display device |
CN106331330A (en) * | 2016-08-19 | 2017-01-11 | 努比亚技术有限公司 | Automatic application program sequencing system and method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013070194A (en) * | 2011-09-21 | 2013-04-18 | Kyocera Corp | Portable terminal device, program, and display control method |
-
2018
- 2018-06-27 CN CN201810686011.8A patent/CN108881635B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1732494A (en) * | 2002-12-27 | 2006-02-08 | 株式会社半导体能源研究所 | Display device |
CN106331330A (en) * | 2016-08-19 | 2017-01-11 | 努比亚技术有限公司 | Automatic application program sequencing system and method |
Also Published As
Publication number | Publication date |
---|---|
CN108881635A (en) | 2018-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108881635B (en) | Screen brightness adjusting method, mobile terminal and computer readable storage medium | |
CN109710135A (en) | Split screen display available control method, terminal and computer readable storage medium | |
CN110007816B (en) | Display area determining method, terminal and computer readable storage medium | |
CN109144441B (en) | Screen adjusting method, terminal and computer readable storage medium | |
CN107295270B (en) | Image brightness value determination method and device, terminal and computer-readable storage medium | |
CN108172161B (en) | Display method based on flexible screen, mobile terminal and computer readable storage medium | |
CN108363455B (en) | Working mode switching method, mobile terminal and computer readable storage medium | |
CN108958936B (en) | Application program switching method, mobile terminal and computer readable storage medium | |
CN107979667B (en) | Dual-screen display method, mobile terminal and computer-readable storage medium | |
CN110187808B (en) | Dynamic wallpaper setting method and device and computer-readable storage medium | |
CN108958695B (en) | Audio output method, device and computer readable storage medium | |
CN112822538A (en) | Screen projection display method, screen projection device, terminal and storage medium | |
CN109271227B (en) | False touch prevention method and device and computer readable storage medium | |
CN108984063B (en) | Desktop interaction regulation and control method and device and computer readable storage medium | |
CN108563388B (en) | Screen operation method, mobile terminal and computer-readable storage medium | |
CN110278481B (en) | Picture-in-picture implementation method, terminal and computer readable storage medium | |
CN108762709B (en) | Terminal control method, terminal and computer readable storage medium | |
CN110955397A (en) | Method for setting frame rate of game terminal, game terminal and storage medium | |
CN112437472B (en) | Network switching method, equipment and computer readable storage medium | |
CN112667339B (en) | Screen refresh rate setting method, terminal and computer readable medium | |
CN107688497B (en) | Memory regulation and control method, equipment and computer readable storage medium | |
CN112612372A (en) | Touch event regulation and control method and device and computer readable storage medium | |
CN112492450A (en) | Sound parameter regulation and control method, equipment and computer readable storage medium | |
CN109039357B (en) | Method for automatically adjusting signal, terminal and computer readable storage medium | |
CN109684020B (en) | Theme switching method, device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |