Disclosure of Invention
In order to overcome the problems in the related art, the embodiments of the present disclosure provide a terminal, a screen-off method and a screen-off device. The technical scheme is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a terminal comprising a processor and a plurality of front-facing light sensors;
the front light sensors are arranged at different positions of the front panel of the terminal;
the front light sensors are used for collecting the brightness value of the ambient light around the front panel of the terminal;
the processor is used for determining whether to execute screen-off operation according to the brightness value collected by each front-mounted optical sensor in the plurality of front-mounted optical sensors.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the terminal is provided with the plurality of front-mounted optical sensors to collect the brightness value of the ambient light, and then whether the screen is turned off or not is determined according to the brightness value collected by the plurality of front-mounted optical sensors, so that the accuracy of terminal control is improved, and further the user experience is improved.
In one embodiment, the front light sensor is respectively arranged at two ends of a diagonal line of the preset area of the terminal front panel.
In one embodiment, the processor is configured to perform a screen-off operation when it is determined that the brightness value acquired by each of the plurality of front light sensors is less than or equal to a first preset threshold.
In one embodiment, the terminal further comprises at least one rear light sensor;
the at least one rear light sensor is arranged at different positions of the terminal rear shell;
the at least one rear light sensor is used for collecting the brightness value of the ambient light around the terminal rear shell;
the processor is used for determining whether to execute screen-off operation according to the brightness value collected by each front-mounted optical sensor in the plurality of front-mounted optical sensors and the brightness value collected by each front-mounted optical sensor in the at least one rear-mounted optical sensor.
In one embodiment, the rear light sensor is disposed at a central position of the terminal rear case.
In one embodiment, the processor is configured to perform the screen-out operation when the brightness value collected by each front light sensor of the plurality of front light sensors is less than or equal to a first preset threshold value, and the brightness value collected by each front light sensor of the at least one rear light sensor is less than or equal to a second preset threshold value.
According to a second aspect of the embodiments of the present disclosure, there is provided a screen-extinguishing method, including:
acquiring the brightness value of the ambient light collected by each sensor in a plurality of optical sensors arranged at different positions of a terminal;
and determining whether to execute screen-off operation according to the brightness value acquired by each sensor in the plurality of light sensors.
In one embodiment, the determining whether to perform the screen-off operation according to the brightness value collected by each of the plurality of light sensors includes:
and if the brightness value acquired by each sensor in the plurality of optical sensors is less than or equal to a preset threshold value, executing the screen-off operation.
According to a third aspect of the embodiments of the present disclosure, there is provided a screen-extinguishing device including:
the acquisition module is used for acquiring the brightness value of the environment light acquired by each sensor in a plurality of optical sensors arranged at different positions of the terminal;
and the determining module is used for determining whether to execute screen-off operation according to the brightness value acquired by each sensor in the plurality of optical sensors.
In one embodiment, the determining module comprises:
and the execution submodule is used for executing the screen-off operation if the brightness value acquired by each sensor in the plurality of optical sensors is less than or equal to a preset threshold value.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a screen extinguishing apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring the brightness value of the ambient light collected by each sensor in a plurality of optical sensors arranged at different positions of a terminal;
and determining whether to execute screen-off operation according to the brightness value acquired by each sensor in the plurality of light sensors.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer instructions, wherein the instructions, when executed by a processor, implement the method according to any one of the embodiments of the second aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The technical scheme provided by the embodiment of the disclosure relates to a terminal, which can be a mobile phone, a tablet computer, a palm computer and other devices with a screen-off function, and the embodiment of the disclosure is not limited thereto. Taking a mobile phone as an example, in the related art, an optical sensor of the mobile phone is usually disposed near an earphone, so that when a user uses the mobile phone to perform a voice call, the optical sensor is shielded by an ear of the user, so that a brightness value of ambient light collected by the optical sensor is small. The terminal can turn off the screen when detecting that the brightness value of the ambient light collected by the light sensor is less than or equal to a preset threshold value. However, when a user uses a mobile phone to watch a movie or play a game, a situation that the user holds a part of an area near a mobile phone handset with a hand may occur, and at this time, the light sensor is shielded by the hand of the user, so that the brightness value of the ambient light collected by the light sensor is small, if the terminal performs a screen-off operation accordingly, normal use of the user may be affected, and user experience is not good. According to the technical scheme, the terminal is provided with the front-mounted optical sensors to collect the brightness value of the ambient light, and whether the screen is turned off or not is determined according to the brightness value collected by the front-mounted optical sensors, so that the accuracy of terminal control is improved, and the user experience is improved.
The disclosed embodiment provides aterminal 10, as shown in fig. 1, theterminal 10 includes aprocessor 101 and a plurality offront light sensors 102.
Wherein a plurality offront light sensors 102 are disposed at different locations of theterminal front panel 104. The plurality of frontlight sensors 102 are used for collecting the brightness value of the ambient light around the terminalfront panel 104; theprocessor 101 is configured to determine whether to perform a screen-off operation according to the brightness value collected by each of the frontlight sensors 102 in the plurality of frontlight sensors 102.
Illustratively, the frontlight sensors 102 are respectively connected to theprocessor 101, and the frontlight sensors 102 may be disposed on a frame of the terminalfront panel 104, for example, the frontlight sensors 102 are disposed on each of four sides of the frame. When a user holds the terminal, at most, the front-mountedlight sensors 102 arranged on two sides can be shielded, and the front-mountedlight sensors 102 arranged on the other two sides can also normally collect the brightness value of the ambient light.
When determining whether to perform the screen-off operation according to the brightness value collected by each of the frontlight sensors 102 in the plurality of frontlight sensors 102, theprocessor 101 may first determine whether the brightness value collected by each of the frontlight sensors 102 in the plurality of frontlight sensors 102 is less than or equal to a first preset threshold value. If the brightness value acquired by each front-facinglight sensor 102 is less than or equal to the first preset threshold, it indicates that the current terminalfront panel 104 may be completely blocked, and it is further determined that the user does not need to use the screen currently, so theprocessor 101 may perform a screen-off operation; if there is a frontlight sensor 102 with a collected brightness value greater than the first preset threshold value in the plurality of frontlight sensors 102, it indicates that the user may be currently using the screen, and therefore theprocessor 101 may keep the current state unchanged.
In practical applications, theprocessor 101 may further determine whether an application currently opened by the terminal is a preset application, where the preset application may be a video application, a game application, or another application set by the user as needed. If the currently started application of the terminal is a preset application, theprocessor 101 may execute a screen-off operation when it is determined that the brightness value acquired by each front-end photosensor 102 is less than or equal to a first preset threshold; if the currently started application of the terminal is not the preset application, theprocessor 101 executes a screen-off operation when the brightness value acquired by the reference front-end photosensor is less than or equal to a first preset threshold value, and instructs other front-end photosensors 102 except the reference front-end photosensor to stop working. The reference front-end light sensor can be any front-end light sensor 102, and in practical applications, the reference front-end light sensor can be disposed near the handset of the mobile phone, assuming that the terminal 10 is a mobile phone.
In the technical scheme provided by the embodiment of the disclosure, the terminal 10 is provided with the plurality of front-end light sensors 102 to collect the brightness value of the ambient light, and then whether to turn off the screen is determined according to the brightness value collected by the plurality of front-end light sensors 102, so that the control accuracy of the terminal 10 is improved, and further the user experience is improved.
In one embodiment, as shown in fig. 2, thefront panel 104 is provided with frontlight sensors 102 at two ends of adiagonal line 1041a of thepreset area 1041.
For example, apreset area 1041 may be set on thefront panel 104 of the terminal, thepreset area 1041 may be an area that is not blocked when a user holds the terminal in any direction, and the terminal may set the frontlight sensors 102 at two ends of adiagonal line 1041a of thepreset area 1041, on one hand, the cost of the terminal 10 is reduced, and on the other hand, when the user uses the terminal to watch a video or play a game, it may be ensured that the holding of the user does not block at least one frontlight sensor 102 of the two frontlight sensors 102 to the maximum, so that the terminal may be prevented from performing a screen-off operation, and the user experience is improved. In practical applications, thepreset area 1041 may be larger than a screen display area of the terminal 10, so as to prevent the setting of the two frontlight sensors 102 from affecting normal display of a screen.
In one embodiment, as shown in FIG. 3, the terminal 10 also includes at least onerear light sensor 103. The at least onerear light sensor 103 is arranged at different positions of the terminalrear housing 105.
The at least onerear light sensor 103 is used for acquiring the brightness value of the ambient light around the terminalrear shell 105; theprocessor 101 is configured to determine whether to perform a screen-off operation according to the brightness value collected by each frontlight sensor 102 of the plurality of frontlight sensors 102 and the brightness value collected by each frontlight sensor 102 of the at least onerear light sensor 103.
For example, the terminal 10 may be provided with one or more rearlight sensors 103, and if a plurality of rearlight sensors 103 are provided, the plurality of rearlight sensors 103 may be uniformly disposed on the terminalrear housing 105 for collecting brightness values of ambient light around various regions of the terminalrear housing 105. If arear light sensor 103 is provided, therear light sensor 103 may be disposed at the center of the terminalrear housing 105 as shown in fig. 4, and when a user uses the terminal to watch a video or play a game, no matter which direction the user holds the terminal, therear light sensor 103 disposed at the center of the terminalrear housing 105 is not shielded, so that therear light sensor 103 may normally collect the brightness value of the ambient light.
Theprocessor 101 may determine whether to perform the screen-out operation according to the brightness value collected by each frontlight sensor 102 of the plurality of frontlight sensors 102 and the brightness value collected by each frontlight sensor 102 of the at least onerear light sensor 103. Alternatively, theprocessor 101 may first determine whether the brightness value collected by each of the frontlight sensors 102 in the plurality of frontlight sensors 102 is less than or equal to a first preset threshold. If there is a front light sensor 102 with a collected brightness value greater than a first preset threshold value in the plurality of front light sensors 102, it indicates that the user may be currently using the screen, so the processor 101 may keep the current state unchanged; if the brightness value collected by each front light sensor 102 is less than or equal to the first preset threshold, it indicates that the front panel 104 of the terminal may be blocked, but it may also be because the user is using the terminal 10, but the holding manner of the front light sensor 102 just blocks the plurality of front light sensors 102 arranged on the front panel 104 of the terminal, in order to avoid the misoperation of the terminal 10, the processor 101 may further determine whether the brightness value collected by each front light sensor 102 in the at least one rear light sensor 103 is less than or equal to the second preset threshold, and if the brightness value collected by each front light sensor 102 in the at least one rear light sensor 103 is less than or equal to the second preset threshold, it indicates that the user is not using the terminal 10 normally, and the processor 101 may perform a screen-off operation; if there is a rear light sensor 103 with a collected brightness value greater than the second preset threshold value in the at least one rear light sensor 103, it indicates that the user may be currently using the screen, and therefore the processor 101 may keep the current state unchanged. The first preset threshold and the second preset threshold may be the same or different, and the embodiment of the disclosure does not limit this.
In practical applications, theprocessor 101 may further determine whether an application currently started by the terminal is a preset application. If the currently started application of the terminal is a preset application, theprocessor 101 executes a screen-off operation when the brightness value acquired by each front-mountedoptical sensor 102 is less than or equal to a first preset threshold value and the brightness value acquired by each front-mountedoptical sensor 102 in the at least one rear-mountedoptical sensor 103 is less than or equal to a second preset threshold value; if the currently started application of the terminal is not the preset application, theprocessor 101 executes a screen-off operation when the brightness value acquired by the reference front-end photosensor is less than or equal to a first preset threshold value, and instructs other front-end photosensors 102 and the rear-end photosensor 103 except the reference front-end photosensor to stop working. The reference front-end optical sensor is any one of the front-endoptical sensors 102, and in practical applications, the reference front-end optical sensor 1021 may be disposed near a handset of a mobile phone, assuming that the terminal 10 is a mobile phone.
In the technical scheme provided by the embodiment of the disclosure, the terminal 10 is provided with the plurality of front-mountedoptical sensors 102 and the at least one rear-mountedoptical sensor 103 to collect the brightness value of the ambient light, and then whether to turn off the screen is determined according to the brightness values collected by the plurality of front-mountedoptical sensors 102 and the brightness value collected by the at least one rear-mountedoptical sensor 103, so that the control accuracy of the terminal 10 is improved, and further the user experience is improved.
Fig. 5 is a flowchart illustrating a method for turning off a screen, which is applied to a terminal, which may be the terminal 10 shown in fig. 1 to 4, according to an exemplary embodiment, and as shown in fig. 5, the method for turning off the screen includes the followingsteps 501 to 502:
instep 501, a brightness value of the ambient light collected by each of a plurality of light sensors disposed at different positions of the terminal is obtained.
For example, a plurality of front light sensors may be disposed on the front panel of the terminal, and then the terminal acquires the brightness value of the ambient light collected by the plurality of front light sensors. Or a plurality of rear-mounted optical sensors can be arranged on the rear shell of the terminal, and the terminal can acquire the brightness values of the ambient light collected by the plurality of front-mounted optical sensors and the brightness values of the ambient light collected by the plurality of rear-mounted optical sensors.
Instep 502, it is determined whether to perform a screen-off operation according to the brightness value collected by each of the plurality of light sensors.
For example, assuming that a plurality of front light sensors are disposed on the front panel of the terminal, after acquiring the brightness values of the ambient light collected by the plurality of front light sensors, the terminal may determine whether the brightness value collected by each of the plurality of front light sensors is less than or equal to a first preset threshold. If the brightness value acquired by each front-mounted optical sensor is smaller than or equal to a first preset threshold value, the fact that the front panel of the current terminal is possibly completely shielded is indicated, and then it is determined that a user does not need to use a screen currently, so that the terminal can execute screen-off operation; if the front-end light sensor with the collected brightness value larger than the first preset threshold exists in the plurality of front-end light sensors, it indicates that the user may be currently using the screen, and therefore the terminal may keep the current state unchanged.
In practical applications, the terminal may further determine whether the currently opened application is a preset application, where the preset application may be a video application, a game application, or another application set by the user as needed. If the currently started application is a preset application, the terminal can execute screen-off operation when the brightness value acquired by each front-mounted optical sensor is determined to be smaller than or equal to a first preset threshold value; if the currently started application is not the preset application, the terminal may execute a screen-off operation when the brightness value acquired by the reference front-end photosensor is less than or equal to a first preset threshold value, and instruct other front-end photosensors except the reference front-end photosensor to stop working. The reference front-end light sensor can be any one front-end light sensor, and in practical application, if the terminal is a mobile phone, the reference front-end light sensor can be arranged near a receiver of the mobile phone.
For example, assuming that a plurality of front light sensors are disposed on the front panel of the terminal and a plurality of rear light sensors are disposed on the rear shell of the terminal, after acquiring the brightness values of the ambient light collected by the plurality of front light sensors and the brightness values of the ambient light collected by the plurality of rear light sensors, the terminal may determine whether the brightness value collected by each of the plurality of front light sensors is less than or equal to a first preset threshold. If the front-end optical sensors with the acquired brightness values larger than the first preset threshold exist in the plurality of front-end optical sensors, the fact that the user possibly uses the screen currently is indicated, and therefore the current state of the terminal can be kept unchanged; if the brightness value acquired by each front light sensor is less than or equal to the first preset threshold, it is indicated that the front panel of the terminal may be shielded at this time, but it may also be because the user is using the terminal, but the holding manner of the user just shields the plurality of front light sensors arranged on the front panel of the terminal, in order to avoid the misoperation of the terminal, the terminal may further determine whether the brightness value acquired by each front light sensor in the plurality of rear light sensors is less than or equal to the second preset threshold, and if the brightness value acquired by each front light sensor in the plurality of rear light sensors is less than or equal to the second preset threshold, it is indicated that the user is not using the terminal normally at this time, the terminal may perform a screen-off operation; if the rear light sensor with the acquired brightness value larger than the second preset threshold exists in the plurality of rear light sensors, it indicates that the user may be currently using the screen, and therefore the terminal may keep the current state unchanged. The first preset threshold and the second preset threshold may be the same or different, and the embodiment of the disclosure does not limit this.
In practical application, the terminal may further determine whether the currently opened application is a preset application. If the currently started application is a preset application, the terminal can execute screen-off operation when the brightness value acquired by each front-mounted optical sensor is smaller than or equal to a first preset threshold value and the brightness value acquired by each front-mounted optical sensor in the plurality of rear-mounted optical sensors is smaller than or equal to a second preset threshold value; if the currently started application is not the preset application, the terminal executes screen-off operation when the brightness value acquired by the reference front-mounted optical sensor is smaller than or equal to a first preset threshold value, and instructs other front-mounted optical sensors except the reference front-mounted optical sensor and the rear-mounted optical sensor to stop working.
The embodiment of the disclosure provides a screen-off method, which determines whether to turn off a screen by acquiring the brightness value of ambient light collected by a plurality of front-mounted optical sensors arranged on a terminal, so that the accuracy of terminal control is improved, and further, the user experience is improved.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 6a is a schematic structural diagram illustrating a screen-extinguishing device 60 according to an exemplary embodiment, where the device 60 may be implemented as part or all of an electronic device through software, hardware or a combination of both. As shown in fig. 6a, the screen-extinguishing device 60 includes an obtaining module 601 and a determining module 602.
The obtaining module 601 is configured to obtain a brightness value of ambient light collected by each of a plurality of optical sensors arranged at different positions of the terminal.
A determining module 602, configured to determine whether to perform a screen-off operation according to a brightness value collected by each of the plurality of light sensors.
In one embodiment, as shown in fig. 6b, the determining module 602 includes:
the execution sub-module 6021 is configured to execute the screen-off operation if the brightness value acquired by each of the plurality of optical sensors is less than or equal to a preset threshold.
The embodiment of the disclosure provides a screen-off device, which can determine whether to screen off or not by acquiring the brightness value of ambient light collected by a plurality of front-mounted optical sensors arranged on a terminal, thereby improving the accuracy of terminal control and further improving the user experience.
The embodiment of the present disclosure further provides a screen extinguishing device, which includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring the brightness value of the ambient light collected by each sensor in a plurality of optical sensors arranged at different positions of a terminal;
and determining whether to execute screen-off operation according to the brightness value acquired by each sensor in the plurality of light sensors.
In one embodiment, the processor may be further configured to: and if the brightness value acquired by each sensor in the plurality of optical sensors is less than or equal to a preset threshold value, executing the screen-off operation.
The embodiment of the disclosure provides a screen-off device, which can determine whether to screen off or not by acquiring the brightness value of ambient light collected by a plurality of front-mounted optical sensors arranged on a terminal, thereby improving the accuracy of terminal control and further improving the user experience.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating a structure of adevice 70 for extinguishing a screen according to an exemplary embodiment, wherein thedevice 70 is suitable for a terminal device. For example, theapparatus 70 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Theapparatus 70 may include one or more of the following components: aprocessing component 702, amemory 704, apower component 706, amultimedia component 708, anaudio component 710, an input/output (I/O)interface 712, asensor component 714, and acommunication component 716.
Theprocessing component 702 generally controls overall operation of thedevice 70, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Theprocessing components 702 may include one ormore processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, theprocessing component 702 may include one or more modules that facilitate interaction between theprocessing component 702 and other components. For example, theprocessing component 702 may include a multimedia module to facilitate interaction between themultimedia component 708 and theprocessing component 702.
Thememory 704 is configured to store various types of data to support operations at thedevice 70. Examples of such data include instructions for any application or method operating on thedevice 70, contact data, phonebook data, messages, pictures, videos, and so forth. Thememory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Thepower supply component 706 provides power to the various components of thedevice 70. Thepower components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for thedevice 70.
Themultimedia component 708 includes a screen that provides an output interface between thedevice 70 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, themultimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when thedevice 70 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Theaudio component 710 is configured to output and/or input audio signals. For example, theaudio component 710 includes a Microphone (MIC) configured to receive external audio signals when theapparatus 70 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in thememory 704 or transmitted via thecommunication component 716. In some embodiments,audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between theprocessing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Thesensor assembly 714 includes one or more sensors for providing various aspects of status assessment for thedevice 70. For example, thesensor assembly 714 may detect an open/closed state of thedevice 70, the relative positioning of the components, such as a display and keypad of thedevice 70, thesensor assembly 714 may also detect a change in the position of thedevice 70 or a component of thedevice 70, the presence or absence of user contact with thedevice 70, the orientation or acceleration/deceleration of thedevice 70, and a change in the temperature of thedevice 70. Thesensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. Thesensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Thecommunication component 716 is configured to facilitate wired or wireless communication between theapparatus 70 and other devices. Thedevice 70 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, thecommunication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, theapparatus 70 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described screen-off methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as thememory 704 comprising instructions, executable by theprocessor 720 of theapparatus 70 to perform the above-described screen-off method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The disclosed embodiments provide a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of anapparatus 70, enable theapparatus 70 to perform the above-mentioned screen-off method, the method including:
acquiring the brightness value of the ambient light collected by each sensor in a plurality of optical sensors arranged at different positions of a terminal;
and determining whether to execute screen-off operation according to the brightness value acquired by each sensor in the plurality of light sensors.
In one embodiment, the determining whether to perform the screen-off operation according to the brightness value collected by each of the plurality of light sensors includes: and if the brightness value acquired by each sensor in the plurality of optical sensors is less than or equal to a preset threshold value, executing the screen-off operation.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.