CN110362185B - Control method for screen brightness adjustment, terminal and computer readable storage medium - Google Patents

Control method for screen brightness adjustment, terminal and computer readable storage medium Download PDF

Info

Publication number
CN110362185B
CN110362185B CN201810311763.6A CN201810311763A CN110362185B CN 110362185 B CN110362185 B CN 110362185B CN 201810311763 A CN201810311763 A CN 201810311763A CN 110362185 B CN110362185 B CN 110362185B
Authority
CN
China
Prior art keywords
application program
frequency value
terminal
screen brightness
brightness adjustment
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
CN201810311763.6A
Other languages
Chinese (zh)
Other versions
CN110362185A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201810311763.6A priority Critical patent/CN110362185B/en
Publication of CN110362185A publication Critical patent/CN110362185A/en
Application granted granted Critical
Publication of CN110362185B publication Critical patent/CN110362185B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • G06F1/3218Monitoring of peripheral devices of display devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention provides a control method for screen brightness adjustment, which comprises the following steps: when the application program is started, acquiring a frequency value of the application program, wherein the frequency value is used for representing the frequency of the automatic adjustment operation of the screen brightness executed by the terminal in the running process of the application program; judging whether the frequency value is greater than or equal to a preset frequency value; if so, disabling the automatic adjusting function of the screen brightness of the terminal; the invention also provides a terminal and a computer readable storage medium, by the scheme, when the application program is started, the frequency value of the automatic adjustment operation of the screen brightness executed by the terminal in the running process of the application program is firstly judged, if the frequency value is greater than the preset frequency value, the automatic adjustment function of the screen brightness of the terminal is forbidden if the application program is considered to frequently cause the automatic adjustment of the screen brightness of the terminal in the subsequent running process, so that the power consumption of the terminal is reduced, and the electric quantity of the terminal is saved.

Description

Control method for screen brightness adjustment, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method for controlling screen brightness adjustment, a terminal, and a computer-readable storage medium.
Background
With the popularization of large-scale use of terminals such as smart phones and tablet computers and the increasing number of application programs installed in the terminals by users, the users have higher requirements for the use experience of the terminals.
At present, most terminals are provided with light sensors which are generally positioned above and/or below a terminal screen, and the light sensors can automatically adjust the brightness of the terminal screen according to the light brightness of the current environment of the terminal, so that the terminal can intelligently save the electric quantity of the terminal while bringing the best visual effect to users; for example, in a dark environment, the backlight lamp of the terminal screen can automatically dim, otherwise the backlight lamp is dazzling, and meanwhile, the power of the terminal is saved.
However, some applications may frequently cause automatic adjustment of the screen brightness of the terminal during operation, which consumes power consumption of the terminal and wastes power consumption of the terminal.
Disclosure of Invention
The invention mainly aims to provide a control method for screen brightness adjustment, a terminal and a computer readable storage medium, and aims to solve the problems that in the prior art, the automatic adjustment of the screen brightness of the terminal may be frequently caused in the running process of an application program, the power consumption of the terminal is consumed, and the electric quantity of the terminal is wasted.
In order to solve the above technical problem, the present invention provides a method for controlling screen brightness adjustment, wherein the method for controlling screen brightness adjustment comprises the following steps:
when the application program is started, acquiring a frequency value of the application program, wherein the frequency value is used for representing the frequency of the automatic adjustment operation of the screen brightness executed by the terminal in the running process of the application program;
judging whether the frequency value is greater than or equal to a preset frequency value;
and if so, disabling the automatic adjusting function of the screen brightness of the terminal.
Optionally, before obtaining the frequency value of the application program when the application program is started, the method further includes the following steps:
acquiring user operation habit information of an application program in the running process;
determining the frequency value of the application program according to the user operation habit information;
and saving the frequency value of the application program.
Optionally, obtaining user operation habit information of the application program in the running process; determining the frequency value of the application program according to the user operation habit information comprises the following steps:
acquiring a historical shielding frequency value of a user on a light sensor in a terminal in the running process of an application program;
and determining the frequency value of the application program according to the acquired historical occlusion frequency value.
Optionally, the method for determining the frequency value of the application program according to the obtained historical occlusion frequency value includes any one of the following:
the first method is as follows: calculating the average value of each obtained historical occlusion frequency value, and taking the average value as the frequency value of the application program;
the second method comprises the following steps: and calculating each obtained shielding frequency value according to a preset weight coefficient, and taking a calculation result as a frequency value of the application program.
Optionally, after the automatic adjusting function of the screen brightness of the terminal is disabled, the method further includes the following steps: and when detecting that the system releases resources and/or the touch response frequency of the screen is lower than a preset touch response frequency value, automatically starting an automatic screen brightness adjusting function of the terminal.
Optionally, after the automatic adjusting function of the screen brightness of the terminal is disabled, the method further includes the following steps: and when the application program exits from running, automatically starting the automatic screen brightness adjusting function of the terminal.
Optionally, the application program includes a game application program that occupies resources of the system more than a preset resource value and/or starts a high frame rate operation mode when running.
Optionally, before obtaining the frequency value of the application program when the application program is started, the method further includes the following steps:
displaying a setting interface according to user operation, wherein the setting interface comprises an opening selection item of a control function of screen brightness adjustment;
receiving a selection operation of an opening selection item;
and starting a control function of screen brightness adjustment according to the selected operation.
Further, the invention provides a terminal, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing one or more programs stored in the memory to realize the steps of the control method for adjusting the screen brightness.
Further, the present invention provides a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the control method for screen brightness adjustment as above.
Advantageous effects
The invention provides a control method for screen brightness adjustment, a terminal and a computer readable storage medium, wherein the control method for screen brightness adjustment comprises the following steps: when the application program is started, acquiring a frequency value of the application program, wherein the frequency value is used for representing the frequency of the automatic adjustment operation of the screen brightness executed by the terminal in the running process of the application program; judging whether the frequency value is greater than or equal to a preset frequency value; if so, disabling the automatic adjusting function of the screen brightness of the terminal; according to the scheme, when the application program is started, the frequency value of the terminal for executing the automatic adjustment operation of the screen brightness in the running process of the application program is judged firstly, if the frequency value is larger than the preset frequency value, the application program is considered to frequently cause the automatic adjustment of the screen brightness of the terminal in the subsequent running process, and the automatic adjustment function of the screen brightness of the terminal is forbidden, so that the power consumption of the terminal is reduced, and the electric quantity of the terminal is saved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of an optional terminal for implementing various embodiments of the present invention;
fig. 2 is a basic flowchart of a control method for adjusting screen brightness according to a first embodiment of the present invention;
FIG. 3 is a schematic illustration of a setup interface display according to a first embodiment of the present invention;
FIG. 4 is a schematic illustration of another setup interface display provided in accordance with the first embodiment of the present invention;
FIG. 5 is a schematic illustration of a setup interface display according to a first embodiment of the present invention;
fig. 6 is a schematic diagram of an arrangement of light sensors of a terminal according to a first embodiment of the present invention;
fig. 7 is a schematic view illustrating a light sensor under a terminal screen being blocked by a user according to a first embodiment of the present invention;
FIG. 8 is a basic flowchart of a method for controlling screen brightness adjustment according to a second embodiment of the present invention;
fig. 9 is a schematic diagram of a terminal according to a third embodiment of the present invention.
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 themselves. Thus, "module" and "component" may be used in a mixture.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include mobile terminals such as a mobile phone, a tablet computer, a camera, 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 fixed terminals such as a Digital TV, a desktop computer, and the like.
It will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of an optional terminal for implementing various embodiments of the present invention, the 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 the like. Those skilled in the art will appreciate that the terminal configuration shown in fig. 1 is not intended to be limiting, and that the terminal may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes the various components of the 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), CDMA1000(Code Division Multiple Access 1000), 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 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.
The audio output unit 103 may convert audio 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 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 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 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio 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 terminal 100 also includes at least one sensor 105, such as a light sensor, 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 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 terminal 100. 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 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 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 an external device and transmit the received input to one or more elements within the terminal 100 or may be used to transmit data between the terminal 100 and the external device.
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 audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. 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 terminal 100, connects various parts of the entire terminal 100 using various interfaces and lines, performs various functions of the 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 performing overall monitoring of the terminal 100. 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.
Although not shown in fig. 1, the terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
Based on the above terminal hardware structure, the present invention is described in detail below by specific embodiments.
First embodiment
In order to solve the problems that in the prior art, the automatic adjustment of the screen brightness of a terminal may be frequently caused in the running process of an application program, the power consumption of the terminal is consumed, and the electric quantity of the terminal is wasted, the embodiment provides a control method for screen brightness adjustment, and the control method for screen brightness adjustment of the embodiment is applied to the terminal, wherein the terminal comprises a smart phone, a tablet computer, a reader, smart wearable equipment and the like, and the smart wearable equipment comprises a smart watch, a smart bracelet and the like; referring to fig. 2, fig. 2 is a basic flowchart of a control method for adjusting screen brightness provided in this embodiment, where the control method for adjusting screen brightness includes the following steps:
s201: when the application program is started, acquiring a frequency value of the application program, wherein the frequency value is used for representing the frequency of the automatic adjustment operation of the screen brightness executed by the terminal in the running process of the application program;
optionally, the control function of the screen brightness adjustment provided by this embodiment may adopt a default setting as an on mode; the user can also select whether to turn on or off, the user can completely judge whether to turn on the control function of screen brightness adjustment according to the self intention, and a specific implementation mode is given as follows:
when the application program is started in S201, before obtaining a frequency value of the application program, where the frequency value is used to represent a frequency of the terminal performing an automatic adjustment operation of screen brightness during the running process of the application program, the method further includes the following steps:
displaying a setting interface according to user operation, wherein the setting interface comprises an opening selection item and a closing selection item of a control function of screen brightness adjustment;
receiving a selection operation of an opening selection item;
starting a control function of screen brightness adjustment according to the selected operation;
after the control function of the screen brightness adjustment is started, the steps S201-S204 can be executed;
if the control function of the screen brightness adjustment is turned off, the step S201 will not be entered, that is, even if the application program is started, the frequency value of the application program will not be obtained, and the subsequent steps S202 to S204 will not be executed.
Referring to fig. 3, fig. 3 is a schematic view of a setting interface display provided in this embodiment, in fig. 3, when a user clicks an open option, it represents that a control function of screen brightness adjustment is opened, and when a user clicks a close option, it represents that a control function of screen brightness adjustment is closed; referring to fig. 4, fig. 4 is a schematic view of another setting interface display provided in the present embodiment; in fig. 4, when the virtual button displays "on" two-letter, it represents that the control function of the screen brightness adjustment is turned on, and when the virtual button displays "off" two-letter (not shown), it represents that the control function of the screen brightness adjustment is turned off.
The control function of the screen brightness adjustment can cover all application programs in the terminal, can also be an application program aiming at system default setting, and can also be an application program aiming at setting by a user;
for example, the application programs in the terminal share 8 application programs, namely an application program a, an application program B, an application program C, an application program D, an application program E, an application program F, an application program G and an application program H, and the default setting of the system is that the 8 application programs can all use the control function of screen brightness adjustment; and the user thinks that the frequency of using the application program G and the application program H by the user is low, and/or the use time of each time is short when the user uses the application program G and the application program H, and/or the possibility of causing the automatic adjustment of the screen brightness is very low when the user uses the application program G and the application program H, the user thinks that the application program G and the application program H do not need to use the control function of the screen brightness adjustment, and the user can set the application program G and the application program H to be forbidden to use the control function of the screen brightness adjustment.
In the setting interface, besides the on selection item and the off selection item of the control function of the screen brightness adjustment, which application programs allow the control function of the screen brightness adjustment can be displayed after the on selection item and the off selection item of the control function of the screen brightness adjustment; referring to fig. 5, fig. 5 is a schematic view of still another setting interface display provided in the present embodiment; for example, the applications in the terminal share 8 applications, i.e., application a, application B, application C, application D, application E, application F, application G, and application H, and in fig. 5, application a, application B, application C, application D, application E, and application F are shown as control functions that allow the use of screen brightness adjustment, while application G and application H are shown as control functions that disable screen brightness adjustment.
Whether a control function of screen brightness adjustment is allowed to be used by a certain application program can be set by reminding a user when the user starts the application program for the first time, and if the user selects to allow the application program, the control function of screen brightness adjustment can be started every time a subsequent user starts the application program.
In S201, the application programs include game application programs, social application programs, payment application programs, video application programs, office application programs, news application programs, shopping application programs, and the like;
the game application program may be a game that can be played without accessing a network, or a game that can be played without accessing a network.
The game application program comprises: absolutely seeking survival, glory of the former, happy and happy feeling, QQ dance, QQ galloping, happy landlord and the like;
the social application program comprises: WeChat, Tencent QQ, microblog, etc.;
the payment class application includes: WeChat, Paibao, etc.;
the video application program comprises: tencent video, love art, Youku, potato, etc.;
the office application program comprises: nails, WPS Office, and the like;
the news application includes: the news of network, the headline of this day, the fox-searching news, the central vision news, etc.;
the shopping application program comprises: tanbao, Jingdong, Dangdong, Neiyilahai, Suning, Wei Shi, etc.
The application program starting can be an application program started by manual triggering of a user, or an application program started by self starting set by the user or system default.
When the application program is started, acquiring a frequency value of the application program, wherein the frequency value is used for representing the frequency of the automatic adjustment operation of the screen brightness executed by the terminal in the running process of the application program;
the times that the light sensor is shielded by the hand of the user and the interval duration between every two times can be detected by the light sensor of the terminal in the running process of the application program, and the frequency that the light sensor is shielded by the hand of the user can be obtained through the times that the light sensor is shielded by the hand of the user and the interval duration between every two times; the light sensor of the terminal is shielded once, and the terminal can perform automatic adjustment operation of screen brightness once; the light sensor of the terminal is changed from a shielded state to a non-shielded state, and the terminal can also execute one-time automatic adjustment operation of the screen brightness; in the running process of the application program, the frequency of the automatic adjustment operation of the screen brightness executed by the terminal can be counted.
The frequency value of the application program may be obtained from a frequency value of the application program stored in advance, or may be obtained in real time when the application program is started.
Optionally, the source of the frequency value of the application program in S201 may include the following manners:
before the frequency value of the application program is acquired when the application program is started in S201, the method further includes the following steps:
acquiring user operation habit information of an application program in the running process;
determining the frequency value of the application program according to the user operation habit information;
and saving the frequency value of the application program.
And saving the frequency value of the application program for obtaining in the step S201.
When the frequency value of the application program is updated, the frequency value needs to be saved after the update.
Optionally, obtaining user operation habit information of the application program in the running process; determining the frequency value of the application program according to the user operation habit information comprises the following steps:
acquiring a historical shielding frequency value of a user on a light sensor in a terminal in the running process of an application program;
and determining the frequency value of the application program according to the historical occlusion frequency value.
The method comprises the steps of obtaining the times of the light sensor being shielded by the hand of a user and the interval duration between every two times during the operation process of an application program, and obtaining the frequency of the light sensor being shielded by the hand of the user, namely the historical shielding frequency value, through the times of the light sensor being shielded by the hand of the user and the interval duration between every two times.
For example, referring to fig. 6, fig. 6 is a schematic diagram of a light sensor arrangement of a terminal provided in this embodiment, in fig. 6, the light sensors of the terminal are arranged above and below a terminal screen, an application a is a game application, a user needs to perform a landscape operation when playing the game a, and 3 virtual keys are arranged on the right side of a game screen, where a certain interval is provided between the 3 virtual keys, and the 3 virtual keys are relatively close to the light sensor arranged below the terminal screen; when the user plays the game A, the frequency of operating the 3 virtual keys is high, and the right hand of the user can be switched between the state of blocking the light sensing line and the state of not blocking the light sensing line; referring to fig. 7, fig. 7 is a schematic diagram illustrating a light sensor under a terminal screen provided by the embodiment being blocked by a user; therefore, when the user plays the game A, the shielding frequency value of the light sensor in the terminal of each user is counted. The frequency value of the application program can be determined according to the historical occlusion frequency value acquired in a period of time by counting the occlusion frequency value of the user to the light sensor in the terminal every time the user plays the game A.
Optionally, the method for determining the frequency value of the application program according to the obtained historical occlusion frequency value includes any one of the following:
the first method is as follows: calculating the average value of each obtained historical occlusion frequency value, and taking the average value as the frequency value of the application program;
so that the calculation result is close to the real frequency value causing the automatic adjustment of the terminal screen brightness.
The second method comprises the following steps: and calculating each obtained shielding frequency value according to a preset weight coefficient, and taking a calculation result as a frequency value of the application program.
The preset weight coefficient can adopt default setting; optionally, the weight coefficient of the obtained historical occlusion frequency value may be set to be higher when the application program runs for the last N times, for example, within 2 days, it is counted that the number of times the user plays game a is 5 times, and the historical occlusion frequency value of the light sensor in the terminal of the 5 times is counted, and then the weight coefficient of the last 2 times counted may be set to be higher than the weight coefficient of the first 3 times counted, so that the calculation result is close to the real frequency value of the user causing the automatic adjustment of the terminal screen brightness.
S202: judging whether the frequency value is greater than or equal to a preset frequency value; if yes, entering S203; if not, entering S204;
the preset frequency value can be set according to actual requirements, and default setting can be adopted.
S203: the automatic adjustment function of the screen brightness of the terminal is disabled.
If the frequency value of the application program is greater than or equal to the preset frequency value, disabling the automatic adjusting function of the screen brightness of the terminal;
the implementation manner of disabling the automatic adjustment function of the screen brightness of the terminal may be any one of the following two types:
the first method comprises the following steps: turning off the light sensor, namely, the light sensor does not work;
and the second method comprises the following steps: even if the light sensor detects that the light sensor is shielded or the shielded state is changed into the non-shielded state, the terminal does not execute the automatic adjustment operation of the screen brightness.
S204: the flow ends.
Optionally, after the automatic adjusting function of the screen brightness of the terminal is disabled in S203, the method further includes the following steps: and when detecting that the system releases resources and/or the touch response frequency of the screen is lower than a preset touch response frequency value, automatically starting an automatic screen brightness adjusting function of the terminal.
The preset touch response frequency value can be set according to actual requirements, and default setting can be adopted.
For example, when there are many picture elements of a mobile phone, system resources are occupied greatly, a high frame rate operation mode of the mobile phone is automatically started or a large amount of CPU processing and GPU rendering resources are suddenly occupied, at this time, the requirement on screen brightness is high, and at this time, when the system resources are occupied greatly, the user operates the screen of the mobile phone more and more frequently, that is, a touch screen response event of the mobile phone becomes rapid and frequent, and at the same time, it is indicated that the user frequently shields the light sensor, and in this case, the automatic brightness adjustment function of the mobile phone screen is disabled; when the touch response frequency of the system for releasing resources and the screen is lower than the preset touch response frequency value, the disabling is automatically removed, so that the power consumption of the mobile phone is saved, the smooth feeling of the user playing large-scale hand games is not influenced, and the game experience of the user is improved. In the running process of the hand game, if the user operates the screen within a period of time and suddenly hangs up the phone, the system exercises, etc., the system releases resources and the touch response frequency of the screen is lower than the preset touch response frequency value.
Optionally, after the automatic adjusting function of the screen brightness of the terminal is disabled in S203, the method further includes the following steps: and when the application program exits from running, automatically starting the automatic screen brightness adjusting function of the terminal. The electric quantity of terminal has been saved to intelligence, has satisfied user's demand again simultaneously.
Optionally, the application program includes a game application program that occupies resources of the system more than a preset resource value and/or starts a high frame rate operation mode when running.
The preset resource value can be set according to the actual condition of the terminal, and when the preset resource value is set, the preset resource value can be set according to the memory information of the terminal, the network resource of the terminal and the like; default settings may be employed.
The high frame rate mode of operation is typically 60 pictures refreshed within one second.
Optionally, after the automatic adjusting function of the screen brightness of the terminal is disabled in S203, the method further includes the following steps:
displaying a setting interface according to user operation, wherein the setting interface comprises a closing selection item of an application program updating function;
receiving a selected operation on a closing option;
and closing the application program updating function according to the selected operation.
If the user does not want to enable the control function of the screen brightness adjustment, the control function of disabling the screen brightness adjustment can be realized by one key, namely, the control function of the screen brightness adjustment can be disabled by clicking the closing selection item of the control function of the screen brightness adjustment on the setting interface. For example, the application programs in the terminal have 8 application programs, namely application program a, application program B, application program C, application program D, application program E, application program F, application program G and application program H, wherein only the application program G and the application program H are set by the user to disable the control function of screen brightness adjustment, the application programs a, application program B, application program C, application program D, application program E and application program F are the control functions of screen brightness adjustment, and if the user wants to disable all the control functions of screen brightness adjustment of the application programs a, application programs B, application programs C, application programs D, application programs E and application programs F, the user can click the close option of the control function of screen brightness adjustment at the setting interface to disable the control function of screen brightness adjustment.
By implementing the embodiment, when the application program is started, the frequency value of the terminal for executing the automatic adjustment operation of the screen brightness in the running process of the application program is firstly judged, if the frequency value is greater than the preset frequency value, the application program is considered to frequently cause the automatic adjustment of the screen brightness of the terminal in the subsequent running process, and the automatic adjustment function of the screen brightness of the terminal is disabled, so that the power consumption of the terminal is reduced, and the electric quantity of the terminal is saved.
Second embodiment
In the prior art, along with the popularity of the hand game, more and more users play games with mobile phones, the hand game itself is very exquisite in the picture made for better game effect, the elements are many, but the light sensors of the mobile phones are generally positioned at the upper side and the lower side of the mobile phones, and the light sensors are always blocked by the users carelessly when the mobile phones are operated on the horizontal screen, so that the brightness of the screen of the mobile phones is dark, the game picture is not clear, and the operation of the users is inconvenient. In order to solve the above problems, this embodiment provides a control method for adjusting screen brightness, taking an application program of game a and a terminal as a mobile phone as an example; referring to fig. 8, fig. 8 is a basic flowchart of a control method for adjusting screen brightness according to this embodiment, where the control method for adjusting screen brightness includes the following steps:
s801: counting the shielding frequency value of a light sensor in the mobile phone when a user plays the game A on the horizontal screen every time within a period of time;
the light sensors of the mobile phone are positioned at the upper side and the lower side of the mobile phone;
s802: calculating the frequency value of the game A by adopting an average value algorithm according to the historical occlusion frequency value acquired in the period of time, and storing the frequency value;
s803: when the game A is started, obtaining the frequency value of the game A, wherein the frequency value of the application program of the game A is greater than or equal to a preset frequency value;
s804: disabling the automatic adjusting function of the screen brightness of the mobile phone;
s805: and when the game A exits from the operation, the automatic adjusting function of the screen brightness of the mobile phone is started.
Through the implementation of this embodiment, practiced thrift the cell-phone consumption, even the frequent shading light sensor of user, also can not carry out the automatically regulated of screen brightness, avoided appearing the recreation picture and see not clearly and lead to the emergence of inconvenient user operation condition, do not influence the user and play the sense of smoothness of large-scale hand trip, promoted user's gaming experience.
Third embodiment
In order to solve the problems that in the prior art, an application program may frequently cause automatic adjustment of the screen brightness of a terminal in the running process, consume the power consumption of the terminal, and waste the power of the terminal, this embodiment provides a terminal, referring to fig. 9, fig. 9 is a schematic diagram of a terminal provided in this embodiment, the terminal includes a processor 901, a memory 902, and a communication bus 903, where:
the communication bus 903 is used for realizing connection communication between the processor 901 and the memory 902;
the processor 901 is configured to execute one or more programs stored in the memory 902 to implement the steps of the control method of the screen brightness adjustment in the first embodiment.
By implementing the embodiment, when the application program is started, the frequency value of the terminal for executing the automatic adjustment operation of the screen brightness in the running process of the application program is firstly judged, if the frequency value is greater than the preset frequency value, the application program is considered to frequently cause the automatic adjustment of the screen brightness of the terminal in the subsequent running process, and the automatic adjustment function of the screen brightness of the terminal is disabled, so that the power consumption of the terminal is reduced, and the electric quantity of the terminal is saved.
Fourth embodiment
In order to solve the problems that in the prior art, an application program may frequently cause automatic adjustment of the screen brightness of a terminal in the running process, consume power consumption of the terminal, and waste power of the terminal, the present embodiment provides a computer-readable storage medium, where one or more programs are stored in the computer-readable storage medium, and the one or more programs can be executed by one or more processors to implement the steps of the control method for adjusting the screen brightness in the first embodiment.
By implementing the embodiment, when the application program is started, the frequency value of the terminal for executing the automatic adjustment operation of the screen brightness in the running process of the application program is firstly judged, if the frequency value is greater than the preset frequency value, the application program is considered to frequently cause the automatic adjustment of the screen brightness of the terminal in the subsequent running process, and the automatic adjustment function of the screen brightness of the terminal is disabled, so that the power consumption of the terminal is reduced, and the electric quantity of the terminal is saved.
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 apparatus 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 apparatus. 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 apparatus 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 (10)

1. A control method for screen brightness adjustment is characterized by comprising the following steps:
when an application program is started, obtaining a frequency value of the application program, wherein the frequency value is used for representing the frequency of automatic adjustment operation of screen brightness executed by a terminal in the running process of the application program;
the frequency value of the application program is acquired from a frequency value of the application program stored in advance, or acquired in real time when the application program is started;
judging whether the frequency value is greater than or equal to a preset frequency value or not;
and if so, disabling the automatic adjusting function of the screen brightness of the terminal.
2. The method for controlling screen brightness adjustment according to claim 1, before the frequency value of the application program is obtained when the application program is started, further comprising the steps of:
acquiring user operation habit information of the application program in the running process;
determining a frequency value of the application program according to the user operation habit information;
and saving the frequency value of the application program.
3. The method for controlling screen brightness adjustment according to claim 2, wherein the user operation habit information of the application program in the running process is obtained; determining the frequency value of the application program according to the user operation habit information comprises:
acquiring a historical shielding frequency value of a user on a light sensor in a terminal in the running process of the application program;
and determining the frequency value of the application program according to the acquired historical occlusion frequency value.
4. The method for controlling screen brightness adjustment according to claim 3, wherein the manner for determining the frequency value of the application program according to the obtained historical occlusion frequency value comprises any one of the following:
the first method is as follows: calculating the average value of each obtained historical occlusion frequency value, and taking the average value as the frequency value of the application program;
the second method comprises the following steps: and calculating each obtained shielding frequency value according to a preset weight coefficient, and taking a calculation result as the frequency value of the application program.
5. The control method of screen brightness adjustment according to any one of claims 1 to 4, characterized by further comprising, after said disabling of the auto-adjustment function of screen brightness of the terminal, the steps of: and when detecting that the system releases resources and/or the touch response frequency of the screen is lower than a preset touch response frequency value, automatically starting an automatic adjustment function of the screen brightness of the terminal.
6. The control method of screen brightness adjustment according to any one of claims 1 to 4, characterized by further comprising, after said disabling of the auto-adjustment function of screen brightness of the terminal, the steps of: and automatically starting the automatic adjusting function of the screen brightness of the terminal when the application program exits the operation.
7. The method for controlling screen brightness adjustment according to any one of claims 1 to 4, wherein the application programs comprise game-like application programs which occupy system resources more than a preset resource value at runtime and/or start a high frame rate operation mode.
8. The control method of screen brightness adjustment according to any of the claims 1 to 4, characterized in that before the frequency value of the application program is obtained when the application program is started, it further comprises the following steps:
displaying a setting interface according to user operation, wherein the setting interface comprises an opening selection item of a control function of screen brightness adjustment;
receiving a selected operation on the opening selection item;
and starting a control function of screen brightness adjustment according to the selected operation.
9. A terminal, characterized in that the terminal comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing one or more programs stored in the memory to realize the steps of the control method for screen brightness adjustment according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the steps of the control method of screen brightness adjustment according to any one of claims 1 to 8.
CN201810311763.6A 2018-04-09 2018-04-09 Control method for screen brightness adjustment, terminal and computer readable storage medium Active CN110362185B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810311763.6A CN110362185B (en) 2018-04-09 2018-04-09 Control method for screen brightness adjustment, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810311763.6A CN110362185B (en) 2018-04-09 2018-04-09 Control method for screen brightness adjustment, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110362185A CN110362185A (en) 2019-10-22
CN110362185B true CN110362185B (en) 2021-03-30

Family

ID=68211979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810311763.6A Active CN110362185B (en) 2018-04-09 2018-04-09 Control method for screen brightness adjustment, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110362185B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078314B (en) * 2019-12-09 2023-05-02 Oppo广东移动通信有限公司 Function control method and related equipment
CN111273774A (en) * 2020-01-19 2020-06-12 惠州Tcl移动通信有限公司 Terminal device display screen control method and system, storage medium and terminal device
CN113040993B (en) * 2020-12-29 2023-08-11 重庆医科大学附属第一医院 Vertebra reduction bed
CN113889056B (en) * 2021-10-26 2023-01-31 深圳电器公司 Brightness adjusting method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179271A (en) * 2013-02-28 2013-06-26 深圳市中兴移动通信有限公司 Method and device for preventing misoperation of brightness adjustment to mobile terminal screen
CN106652922A (en) * 2017-01-04 2017-05-10 珠海市魅族科技有限公司 Method and system for controlling screen luminance
CN107329664A (en) * 2017-06-27 2017-11-07 广东欧珀移动通信有限公司 reading processing method and related product
CN107566635A (en) * 2017-08-30 2018-01-09 努比亚技术有限公司 Screen intensity method to set up, mobile terminal and computer-readable recording medium
CN107731146A (en) * 2017-10-20 2018-02-23 广东欧珀移动通信有限公司 Brightness adjusting method and related product

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10254160B2 (en) * 2016-05-16 2019-04-09 Apple Inc. Color ambient light sensor circuitry for electronic devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179271A (en) * 2013-02-28 2013-06-26 深圳市中兴移动通信有限公司 Method and device for preventing misoperation of brightness adjustment to mobile terminal screen
CN106652922A (en) * 2017-01-04 2017-05-10 珠海市魅族科技有限公司 Method and system for controlling screen luminance
CN107329664A (en) * 2017-06-27 2017-11-07 广东欧珀移动通信有限公司 reading processing method and related product
CN107566635A (en) * 2017-08-30 2018-01-09 努比亚技术有限公司 Screen intensity method to set up, mobile terminal and computer-readable recording medium
CN107731146A (en) * 2017-10-20 2018-02-23 广东欧珀移动通信有限公司 Brightness adjusting method and related product

Also Published As

Publication number Publication date
CN110362185A (en) 2019-10-22

Similar Documents

Publication Publication Date Title
US20220276909A1 (en) Screen projection control method and electronic device
US11258893B2 (en) Method for prompting notification message and mobile terminal
WO2019174611A1 (en) Application configuration method and mobile terminal
CN107943374B (en) Method for starting application program in foldable terminal and foldable terminal
CN110362185B (en) Control method for screen brightness adjustment, terminal and computer readable storage medium
CN108920059B (en) Message processing method and mobile terminal
JP7301956B2 (en) Information processing method and terminal
CN110837327B (en) Message viewing method and terminal
CN110445924B (en) Network task execution method and terminal equipment
CN109901695B (en) Screen power-saving display method, mobile terminal and computer-readable storage medium
CN108553896B (en) State information display control method, terminal and computer readable storage medium
CN109471690B (en) Message display method and terminal equipment
CN108334272B (en) Control method and mobile terminal
CN109407920B (en) Status icon display method, status icon processing method and related equipment
CN107613095B (en) Incoming call processing method and mobile terminal
US11165950B2 (en) Method and apparatus for shooting video, and storage medium
CN109558046B (en) Information display method and terminal equipment
CN109407948B (en) Interface display method and mobile terminal
WO2020024770A1 (en) Method for determining communication object, and mobile terminal
US20220150201A1 (en) Message sending method and terminal device
CN108762613B (en) State icon display method and mobile terminal
CN108008892B (en) Function starting method and terminal
CN110971507B (en) Information display method and electronic equipment
CN110381202B (en) Display adjustment method, mobile terminal and computer-readable storage medium
CN109126127B (en) Game control method, dual-screen mobile terminal 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