CN108462986A - The screen control method and device of terminal, readable storage medium storing program for executing, terminal - Google Patents

The screen control method and device of terminal, readable storage medium storing program for executing, terminal Download PDF

Info

Publication number
CN108462986A
CN108462986A CN201810114236.6A CN201810114236A CN108462986A CN 108462986 A CN108462986 A CN 108462986A CN 201810114236 A CN201810114236 A CN 201810114236A CN 108462986 A CN108462986 A CN 108462986A
Authority
CN
China
Prior art keywords
terminal
screen
bright
state
shelter
Prior art date
Application number
CN201810114236.6A
Other languages
Chinese (zh)
Inventor
张强
陆智弘
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Priority to CN201810114236.6A priority Critical patent/CN108462986A/en
Publication of CN108462986A publication Critical patent/CN108462986A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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 power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers; Analogous equipment at exchanges
    • H04M1/72Substation extension arrangements; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selecting
    • H04M1/725Cordless telephones
    • H04M1/72519Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status
    • H04M1/72563Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status with means for adapting by the user the functionality or the communication capability of the terminal under specific circumstances
    • H04M1/72569Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status with means for adapting by the user the functionality or the communication capability of the terminal under specific circumstances according to context or environment related information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0267Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
    • H04W52/027Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components by controlling a display operation or backlight unit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THIR OWN ENERGY USE
    • Y02D70/00Techniques for reducing energy consumption in wireless communication networks

Abstract

This application involves a kind of screen control methods of terminal and device, computer readable storage medium, terminal.This method includes:Terminal be in go out screen state when, in preset time, the posture information based on acceleration transducer and gyroscope detection terminal in terminal;When posture information meets default bright set of hanging scrolls part, whether detection terminal is in proximity state with shelter;The screen state if so, control terminal holding is gone out;If it is not, then the bright screen of control terminal, this method can have occurred acutely shake or generation that is mobile and leading to accidentally bright screen in pocket or knapsack to avoid terminal, can save power consumption, increase the standby time of terminal.Meanwhile terminal and shelter are in far from state, are not necessarily to user's Manual press physical button, so that it may be operated with the bright screen of realization directly accurately and timely, the user experience is improved spends.

Description

The screen control method and device of terminal, readable storage medium storing program for executing, terminal

Technical field

This application involves field of terminal technology, screen control method and device, computer more particularly to a kind of terminal Readable storage medium storing program for executing, terminal.

Background technology

As terminal device enters the intelligent epoch, have become essential communication work in people's live and work Tool, requirement of the user to the usage experience of terminal are also higher and higher.

In general, terminal needs bright screen to usually require, manually by secondary or physical bond, frequently to click secondary or physical bond and will also result in secondary or physical bond Loss, it is also not convenient enough for users, it is unfavorable for protecting mobile terminal, does not have flexibility.At this stage, terminal is based on accelerating The acceleration information of sensor acquisition is spent to control light on and off screen, that is, when acceleration information meets default wake-up condition, then may be used To wake up the screen of terminal, make its bright screen, but when terminal is placed in knapsack or pocket, the strenuous exercise of user also can The strenuous exercise for driving terminal makes the acceleration information of terminal meet default wake-up condition, and then wakes up the screen of terminal, causes Maloperation, while can also waste power consumption.

Invention content

The embodiment of the present application provides a kind of screen control method and device, computer readable storage medium, terminal of terminal, Can be to avoid accidentally bright screen, saving power consumption, the user experience is improved spends.

A kind of screen control method of terminal, including:

Terminal be in go out screen state when, in preset time, based in terminal acceleration transducer and gyroscope detection The posture information of terminal;

When the posture information meets default bright set of hanging scrolls part, detect whether the terminal is in close to shape with shelter State;

If so, controlling the terminal keeps screen state of going out;

If it is not, then controlling the bright screen of the terminal.

A kind of screen control device of terminal, described device include:

Acquisition module, for when terminal be in go out screen state when, in preset time, based on the acceleration sensing in terminal The posture information of device and gyroscope detection terminal;

Detection module, for when the posture information meets default bright set of hanging scrolls part, whether detection terminal to be located with shelter In proximity state;

Control module controls the terminal and keeps screen state of going out when the terminal is in proximity state with shelter;When When the terminal is in shelter far from state, the bright screen of the terminal is controlled.

A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of screen control method of the terminal in each embodiment of the application is realized when row.

A kind of terminal, including memory, processor and storage are on a memory and the computer that can run on a processor Program, the processor realize the screen control method of the terminal in each embodiment of the application when executing the computer program The step of.

The screen control method and device of terminal provided by the embodiments of the present application, computer readable storage medium, terminal, when Terminal be in go out screen state when, in preset time, the appearance based on acceleration transducer and gyroscope detection terminal in terminal State information;When the posture information meets default bright set of hanging scrolls part, detect whether the terminal is in proximity state with shelter; If so, controlling the terminal keeps screen state of going out;If it is not, then controlling the bright screen of the terminal.When terminal is placed on mouth by user In bag or knapsack, and user is in state of running, and acutely shake or movement have occurred in pocket or knapsack and meets pre- for terminal If when bright set of hanging scrolls part, terminal also can still keep screen state of going out, accidentally bright screen can be prevented and then save power consumption, increase waiting for for terminal Machine duration.Meanwhile during user digs out mobile phone from pocket or knapsack, the posture information of terminal meets preset preset Bright set of hanging scrolls part, meanwhile, terminal is in shelter far from state, is not necessarily to user's Manual press physical button, so that it may with directly accurate Really timely realize bright screen operation, the user experience is improved spends.

Description of the drawings

In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.

Fig. 1 is the driver framework schematic diagram of sensor in one embodiment;

Fig. 2 is the internal structure schematic diagram of terminal in one embodiment;

Fig. 3 is the flow chart of the screen control method of terminal in one embodiment;

Fig. 4 is the posture based on acceleration transducer and gyroscope detection terminal in one embodiment in preset time The flow chart of information;

Fig. 5 is the flow chart for detecting the terminal in one embodiment and whether being in proximity state with shelter;

Fig. 6 is the flow chart of the screen control method of terminal in another embodiment;

Fig. 7 is the flow chart of the screen control method of terminal in another embodiment;

Fig. 8 is the structure diagram of the screen control device of terminal in one embodiment;

Fig. 9 is the block diagram with the part-structure of the relevant mobile phone of terminal provided by the embodiments of the present application.

Specific implementation mode

It is with reference to the accompanying drawings and embodiments, right in order to make the object, technical solution and advantage of the application be more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.

It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe herein various elements, But these elements should not be limited by these terms.These terms are only used to distinguish first element and another element.Citing comes It says, without departing from the scope of the invention, the first predetermined angle can be known as the second predetermined angle, and similarly, Second predetermined angle can be known as the first predetermined angle.First predetermined angle and the second predetermined angle both predetermined angle, But it is not same predetermined angle.

In one embodiment, as shown in Figure 1, providing a kind of driver framework schematic diagram of sensor.Wherein, the sensing The driver framework of device includes user's space layer 110, kernel spacing layer 120 and hardware layer 130.It may include on user's space layer 110 Application program 112, sensor can realize the detection to motion state of terminal by the application program 112, when the position of terminal When information and/or rotational angle reach default bright set of hanging scrolls part, terminal screen is lighted.Kernel spacing layer 120 includes I2C (Inter-Integrated Circuit, I2C bus) device drives 122, I2C cores 124 and I2C adapters 126.It is logical Driving of the realization of I2C device drives 122 to equipment end in I2C hardware architectures is crossed, equipment is generally articulated in by master chip (CPU) on the I2C adapters 126 controlled, data are exchanged with master chip by I2C adapters 126.I2C cores 124 provide The registration of I2C bus drivers and device drives, cancellation method.It is realized to the I2C adapters in hardware layer by I2C bus drivers 132 control, I2C bus drivers mainly contain the data structure of I2C adapters 132 and control I2C adapters 132 generate and lead to Believe the function of signal, control I2C adapters and I2C devices exchange datas.By the driver framework of above-mentioned sensor, it can be achieved that The screen control method of terminal in each embodiment of the application.

In one embodiment, as shown in Fig. 2, providing a kind of internal structure schematic diagram of terminal.The terminal includes logical Cross processor, memory and the display screen of system bus connection.Wherein, the processor is for providing calculating and control ability, branch Support the operation of entire terminal.Memory for storing data, program, and/or instruction code etc., stored on memory at least one Computer program, the computer program can be executed by processor, to realize that is provided in the embodiment of the present application is suitable for terminal The screen control method of terminal.Memory may include magnetic disc, CD, read-only memory (Read-Only Memory, ROM) Equal non-volatile memory mediums or random access memory (Random-Access-Memory, RAM) etc..For example, in a reality It applies in example, memory includes non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with operating system, number According to library and computer program.A kind of screen of the terminal provided for realizing above each embodiment is provided in the database The relevant data of control method, for example the predeterminated position data for waking up terminal or angle-data can be stored with etc..The computer journey Sequence can be performed by processor, for realizing a kind of screen control method of terminal that each embodiment of the application is provided. Built-in storage provides the operation ring of cache for operating system, database and the computer program in non-volatile memory medium Border.Display screen can be touch screen, for example be capacitance plate or electrical screen, be used for the interface information of display terminal, display screen includes Bright screen state and screen state of going out, when terminal is in suspend mode, display screen is screen state of going out, when the screen of terminal is waken up Display screen is bright screen state.The terminal can be mobile phone, tablet computer or personal digital assistant or Wearable etc..

It will be understood by those skilled in the art that structure shown in Fig. 1, is only tied with the relevant part of application scheme The block diagram of structure, does not constitute the restriction for the terminal being applied thereon to application scheme, and specific terminal may include than figure Shown in more or fewer components, either combine certain components or arranged with different components.Such as the terminal further includes The sensor connected by system bus, sensor can be acceleration transducer, gyroscope, infrared sensor, earth magnetism biography One kind in sensor or more is detected for the status information to terminal, for example, can be used for detection terminal position data, Rotation angle, at a distance from external contact object etc..

Fig. 3 is the flow chart of the screen control method of terminal in one embodiment.The present embodiment is applied to such as in this way It is illustrated for terminal shown in Fig. 2.The screen control method of terminal in the present embodiment, for running in terminal into Row description.As shown in figure 3, the screen control method of terminal includes step 302 to step 308.

Step 302:Terminal be in go out screen state when, in preset time, based on the acceleration transducer and top in terminal The posture information of spiral shell instrument detection terminal.

Screen state includes screen state and the bright screen state of going out.Specifically, it can be examined by Power Manager Service The mode whether screen is lit is surveyed, determines that terminal is in bright screen state or puts out screen state.It is called when power receives light on and off screen Afterwards, mobile phone wakefullness states can be first configured, light on and off screen broadcast notice other application mobile phone is sent later and is in bright Shield screen state of still going out.

It should be noted that it is above-mentioned enumerate be determine terminal screen state it is for example and not limitation, can also pass through Other modes are detected the screen state of terminal.

When acceleration transducer is in running order, can in real time detection terminal X, Y, Z 3-axis acceleration component.Add Velocity sensor can be gravity accelerometer (Gravity Sensor, G-sensor) in the present embodiment, be that can feel Know the MEMS sensor of acceleration magnitude, can respectively be obtained from three axially different component (X, Y, Z tri- by acceleration Axis component) on acceleration, to notify upper layer application to make respective handling.When terminal is kept flat on the table, three axis of acceleration Component (X, Y, Z) is (0,0,9.81);When terminal is put on the table downward, three axis component of acceleration (X, Y, Z) be (0,0 ,- 9.81);When terminal is tilted to the left, acceleration X-axis is positive value;When terminal is tilted to the right, acceleration X-axis is negative value;Terminal is upward When inclination, acceleration Y-axis is negative value;When terminal tilts down, acceleration Y-axis is positive value.When rotating terminal, X, Y, Z axis Value will constantly change.Namely, it can be understood as terminal is in a coordinate system, can by judge current X, Y, Whether the current value of tri- axis components of Z is moved or is rotated judging terminal.

It, can real-time detection terminal when gyroscope (Gyro-sensor is called angular-rate sensor) is in running order Tri- axis rotational angular velocity of X, Y, Z.Gyroscope then can do good measurement to the action for rotating, deflecting.Gyroscope and acceleration It spends sensor and uses the same coordinate system, wherein when end level rotates clockwise, Z axis is positive value;When end level is counterclockwise Rotation, Z axis is negative value;When terminal is to anticlockwise, Y-axis is negative value;When terminal is to right rotation, Y-axis is positive value;When terminal is revolved upwards Turn, X-axis is negative value;When terminal is rotated down, X-axis is positive value.

The 3-axis acceleration acquired based on acceleration transducer and gyroscope in preset time and three axis swing angle speed are just The posture information of terminal can be obtained.Wherein, posture information includes 3-axis acceleration and three axis rotation angles.

It lifts hand it should be noted that preset time is user, the execution that bright screen action can be triggered such as overturn, dig out pocket Duration.Preset time is related with the factor of the use habit of user, the age of user.

Step 304:When the posture information meets default bright set of hanging scrolls part, detect whether the terminal is in shelter Proximity state.

Default bright set of hanging scrolls part is prestored in terminal, it is to lift bright screen, dig out the bright screen of pocket, turn over that this, which presets bright set of hanging scrolls part, Turn bright screen etc..Since posture information includes posture, the terminal of 3-axis acceleration and three axis rotation angles namely user's handheld terminal Placement posture etc. can be characterized with posture information.

Lift bright screen, pocket digs out bright screen, the condition of the bright screen of overturning can use 3-axis acceleration and three axis rotation angles To characterize.For example, terminal occur it is mobile before and it is mobile after terminal display screen towards human face region, and Y-axis acceleration becomes Change amount just meets lift hand bright set of hanging scrolls part when being more than preset value, wherein the display screen of terminal can use three axis towards human face region Acceleration information characterizes.After terminal moves, Y-axis rotation angle is more than the display screen of preset value and present terminal Lift hand bright set of hanging scrolls part is also complied with when towards human face region, wherein the display screen of terminal can be added towards human face region with three axis Speed data characterizes.Correspondingly, after terminal moves, 3-axis acceleration and three axis rotation angles reach certain numerical value When can meet pocket and dig out bright screen, the bright set of hanging scrolls part of overturning.

It is understood that shelter can be the back boxing of pocket or knapsack, can also be desktop etc. can place terminal Supporting object etc..

When the posture information of terminal meets default bright set of hanging scrolls part, when detecting that terminal and shelter be in proximity state, Then follow the steps 306:Terminal holding is controlled to go out screen state, when detecting that terminal is not in proximity state with shelter, and When being in far from state, 308 are thened follow the steps:Control the bright screen of the terminal.

The screen control method of above-mentioned terminal, terminal be in go out screen state when, in preset time, based in terminal plus The posture information of velocity sensor and gyroscope detection terminal;When the posture information meets default bright set of hanging scrolls part, institute is detected State whether terminal is in proximity state with shelter;If so, controlling the terminal keeps screen state of going out;If it is not, then controlling institute State the bright screen of terminal.When terminal is placed in pocket or knapsack by user, and user is in state of running, and terminal is in pocket or knapsack In acutely shake or mobile and meet when presetting bright set of hanging scrolls part has occurred, terminal also can still keep screen state of going out, and can prevent Accidentally bright screen saves power consumption in turn, increases the standby time of terminal.Meanwhile when user digs out the process of mobile phone from pocket or knapsack In, the posture information of terminal meets preset default bright set of hanging scrolls part, meanwhile, terminal is in shelter far from state, without use Family Manual press physical button, so that it may be operated with the bright screen of realization directly accurately and timely, the user experience is improved spends.

Fig. 4 is the posture based on acceleration transducer and gyroscope detection terminal in one embodiment in preset time The flow chart of information.

It is described in preset time, the posture information based on acceleration transducer and gyroscope detection terminal, including:

Step 402:Obtain the preset time.

Preset time is related with the factor of the use habit of user, the age of user.

Preset time is obtained to specifically include:When terminal opens the lift bright screen function of hand, terminal notifying user demonstration lift or Dig out action;Detect lift action that user executes or dig out action and meet it is default lift or dig out condition when, protect This lifts or digs out the duration of action to counter foil row, and according to the duration of the preservation as identification user next time lifts or dig out and is dynamic The basis of time of work, meanwhile, the duration of the preservation is defined as the first duration.It repeats the lift hand or digs out action, detect first Whether can correctly identify it is demonstration movement in duration, if can identify, using first duration as preset duration, that is, Lift action can be completed in the preset time or digs out action;If cannot identify, user's demonstration is prompted to lift or draw again Go out action, adjust the first duration, until can correctly identify that this lifts or dig out action, and using the first duration after adjustment as Preset duration.

Step 404:In preset time, the acceleration transducer is persistently obtained, tri- axis of X, Y, Z of gyroscope acquisition divides The acceleration and rotation angle of amount.

Acceleration transducer and gyroscope are capable of the acceleration and angular velocity of rotation of tri- axis component of X, Y, Z of acquisition terminal. When terminal is shaken, start the posture information of acquisition terminal, and the posture information of moment acquisition is believed as the first posture Breath, meanwhile, using the moment as the initial time of preset time, and in the preset time, persistently acquisition acceleration transducer, The posture information of the terminal of gyroscope acquisition.

Further, preset time could be provided as 1 second, within this 1 second time, according to the acquisition of acceleration transducer The acceleration of tri- axis component of X, Y, Z of frequency collection terminal.Gyroscope will acquire the rotation of tri- axis component of present terminal X, Y, Z Angular speed, angular speed carries out integral and calculating between any moment in the initial time to preset time of the preset time, so that it may With the rotation angle of tri- axis component of X, Y, Z in lasting acquisition preset time.That is, gyroscope can acquire angular speed in preset time Tri- axis component of X, Y, Z rotation angle.

Step 406:The posture information is obtained according to the acceleration and rotation angle.

When can obtain default according to three axis rotation angles of the 3-axis acceleration of acceleration acquisition and gyroscope acquisition The posture information of interior terminal, the posture information include the rotation angle of tri- axis component of acceleration and X, Y, Z of tri- axis component of X, Y, Z Degree.According to the information of the three axis components of acceleration of acquisition and three axis component rotation angle this two dimensions, can accurately obtain The posture information of terminal, so can be accurately and timely to judge whether posture information of the terminal in the preset time meets default Bright set of hanging scrolls part.

In one embodiment, in preset time, persistently obtain the acceleration transducer, gyroscope acquisition X, Y, Before the acceleration and rotation angle of tri- axis components of Z, further include:

Step 400:Detect whether the terminal shakes based on the acceleration transducer.

The accelerated motion that bright screen function is opened and terminal is carried in screen state of going out, acceleration transducer is lifted when terminal It detects (accel motion detect, AMD) function to start to work, the current 3-axis acceleration of detection terminal.

When terminal is kept flat on the table, three axis component of acceleration (X, Y, Z) is (0,0,9.81);Terminal is placed on desktop downward When upper, three axis component of acceleration (X, Y, Z) is (0,0, -9.81);When terminal is tilted to the left, acceleration X-axis is positive value;Terminal to When right bank, acceleration X-axis is negative value;When terminal tilts upwards, acceleration Y-axis is negative value;When terminal tilts down, acceleration Y-axis is positive value.When rotating terminal, the value of X, Y, Z axis will constantly change.Namely, it can be understood as terminal is in In one coordinate system, it can judge whether terminal shakes by judging the variable quantity of tri- axis component of current X, Y, Z.

Step 401:When the terminal is shaken, the acceleration transducer sends interrupt requests, institute to master chip It states master chip and opens the gyroscope according to the interrupt requests, keep the gyroscope in running order.

When the acceleration in tri- axis of X, Y, Z at least one reference axis changes, then the terminal moves.One As in the case of, in a dormant state, when the terminal is shaken, gyroscope is opened in master chip control to gyroscope, is made described Gyroscope is in running order, and opens the data transmission channel with gyroscope, just makes the gyroscope in low power consumpting state extensive Working condition is arrived again, is obtained the rotation angle information of gyroscope acquisition, can be saved power consumption.

The screen control method of terminal in the present embodiment, acceleration transducer and gyroscope are not to open simultaneously, when When acceleration transducer detects that the 3-axis acceleration of terminal changes, just make master chip and gyro in low power consumpting state Instrument is restored to working condition, can save power consumption, promotes terminal standby duration.

In one embodiment, before posture information meets default bright set of hanging scrolls part, further include:Judge to obtain in the preset time Whether the posture information taken meets the step of default bright set of hanging scrolls part.

Specifically, it includes at least one of following three kinds of conditions to preset bright set of hanging scrolls part:

One:Y-axis rotation angle is more than or equal to the first predetermined angle, and Z axis is more than or equal to the second predetermined angle, and current institute The 3-axis acceleration component for stating terminal is satisfied by preset range, this is preset bright set of hanging scrolls part and digs out bright screen corresponding to pocket.Specifically, First predetermined angle can be set as 15 degree, and the second predetermined angle is 40 degree, and the 3-axis acceleration component of presently described terminal is distinguished For -4m/s2<x<4m/s2, 2m/s2<y<9.8m/s2, 3.5m/s2<z<9.3m/s2, that is, the display screen of present terminal is upward, Namely direction of the display screen towards sky, departing from the direction of the earth.

Secondly:The 3-axis acceleration component that Y-axis rotation angle is more than or equal to the presently described terminal of third predetermined angle is full Sufficient preset range, this is preset bright set of hanging scrolls part and corresponds to the first bright screen of overturning;Specifically, third predetermined angle can be set as 70 degree, The 3-axis acceleration component of presently described terminal is respectively -4m/s2<x<4m/s2, 2m/s2<y<9.8m/s2, 3.5m/s2<z< 9.3m/s2, that is, the display screen of present terminal is upward, namely direction of the display screen towards sky, departing from the side of the earth To.

Thirdly:The 3-axis acceleration component that X-axis rotation angle is more than or equal to the 4th presently described terminal of predetermined angle is full Sufficient preset range, this is preset bright set of hanging scrolls part and corresponds to the second bright screen of overturning.Specifically, the 4th predetermined angle can be set as 20 degree, The 3-axis acceleration component of presently described terminal is respectively -4m/s2<x<4m/s2, 2m/s2<y<9.8m/s2, 3.5m/s2<z< 9.3m/s2, that is, the display screen of present terminal is upward, namely direction of the display screen towards sky, departing from the side of the earth To.

Fig. 5 is the flow chart for detecting the terminal in one embodiment and whether being in proximity state with shelter.

Detect whether the terminal is in proximity state with shelter, including:

Step 502:When the terminal is when lifting bright screen function unlatching, unlatching proximity sensor detects the work(of shelter Energy.

Wherein, terminal, which is equipped with, lifts bright screen functional switch, such as switch names are " the bright screen of lift hand ", for opening or closing It closes and lifts bright screen function.Optionally, terminal can receive the operational order that user inputs at setting interface and be lifted with being turned on and off Bright screen function is played, operational order can be at least one of touch control operation, voice operating, button operation;Terminal can be with root Intelligently switch this according to different scenes and lift wake-up switch, such as 24:00~8:It is closed in 00 period and lifts bright screen function, Bright screen function is lifted in the unlatching of other times section.

When terminal is when lifting bright screen function unlatching, the function of unlatching proximity sensor detection shelter makes to approach sensing Device is in running order.

Step 504:When the proximity sensor senses that the screening there are when shelter, is detected in the terminal screen front Block material is at a distance from the proximity sensor.

Step 506:Judge whether the distance is less than pre-determined distance value.

Wherein it is possible to pre-determined distance value be arranged according to the use habit of user, for example, can be from the container for placing terminal Size (pocket or knapsack), terminal place (direction of the display screen of terminal, terminal user are positioned proximate to pass in direction Direction of sensor etc.) etc. privacies pre-determined distance is set.

When the distance between terminal and shelter are less than pre-determined distance value, 508 are thened follow the steps:The terminal with it is described Shelter is in proximity state.Specifically, when in the pocket or knapsack that terminal is located at user, or, the display screen and table of terminal When being placed on the supporting surfaces such as desktop of face contact type, terminal are in proximity state with shelter.

When the distance between terminal and shelter are more than pre-determined distance value, 510 are thened follow the steps:The terminal with it is described Shelter is in far from state.

Further, can also in preset time range, whether the distance between detection terminal and shelter are in cumulative Trend, if being in cumulative trend, it may also be said to which the bright terminal and shelter are in far from state.Terminal from the pocket of clothes or The process dug out in knapsack, it is possible to understand that terminal is in shelter far from state.

Fig. 6 is the flow chart of the screen control method of terminal in another embodiment.

Step 602:Terminal be in go out screen state when, in preset time, based on the acceleration transducer and top in terminal The posture information of spiral shell instrument detection terminal;

Step 604:When the posture information meets default bright set of hanging scrolls part, detect whether the terminal is in shelter Proximity state;

Step 606:When terminal is not in proximity state with shelter, the bright screen of the terminal is controlled.

Step 602,604,608 are corresponded with step 302,304,308 in previous embodiment, are repeated no more secondary.

Step 608:The bright screen duration of the terminal is detected, and obtains the posture information of the bright screen state of terminal.

When the posture information of acquisition meets default bright set of hanging scrolls part, the master chip controls the bright screen of terminal, then obtains Terminal is taken to be in the bright screen duration of bright screen state.Wherein, when the bright screen of bright screen duration control terminal since step 708 count, Current time terminates.

Meanwhile the posture information of the acceleration transducer and gyroscope acquisition terminal based on terminal built-in, the posture information It is identical as the acquisition methods in any of the above-described embodiment, again, do not repeating.

Step 610:When the bright screen duration, which is more than, presets bright screen duration, when the posture information in bright screen state meets It presets triggering when going out set of hanging scrolls part and goes out and shield control instruction;Wherein, the screen control instruction of going out is gone out screen for controlling the terminal.

When bright screen duration, which is more than, presets bright screen duration, master chip starts to obtain the data of acceleration transducer and gyroscope Information then obtains the posture information of terminal, and when the posture information satisfaction that bright screen state obtains, which is preset, goes out set of hanging scrolls part, triggering is gone out Shield control instruction, wherein the screen control instruction of going out is gone out screen for controlling the terminal.

Specifically, presetting bright screen duration could be provided as 3s, i.e., within the beginning 3s times that terminal is in bright screen state, no The posture information of tube terminal is how, go out screen processing to terminal, can be to avoid the bright screen of terminal after, user also has not enough time to It checks that the information of display interface, terminal are quickly gone out the case where shielding again, improves the Experience Degree of user.

Wherein, it presets the rotation angle that the set of hanging scrolls part that goes out can be X-axis component and is more than or equal to 20 degree, and Y-axis acceleration is less than 0.05m/s2.When posture information meet this it is default go out set of hanging scrolls part when, show the terminal by lifting status (initial position:Terminal Display interface is towards face) it is changed into down state (user's handheld terminal arm naturally droops state), the default set of hanging scrolls part that goes out is Put down the set of hanging scrolls part that goes out.

Optionally, presetting the set of hanging scrolls part that goes out can also be all higher than for the rotation angle of Y-axis component, z-component equal to 30 degree and Y Axle acceleration is less than 1m/s2.Wherein, the rotation angle of Y-axis component is more than or equal to 30 degree, the rotation angle of z-component more than etc. It is less than 1m/s in 40 degree and Y-axis acceleration2.When posture information meet this it is default go out set of hanging scrolls part when, show the terminal by lifting shape State (initial position:The display interface of terminal is towards face) it is changed into down state (terminal places pocket state), the default screen that goes out Condition is to put back to pocket to go out set of hanging scrolls part.

Optionally, the default set of hanging scrolls part that goes out can also be that the rotation angle of X-axis component can be more than or equal to 30 degree and Z axis adds Speed is less than -9.81m/s2, or, the default set of hanging scrolls part that goes out can be able to be more than or equal to 30 degree and Z with the rotation angle of Y-axis component Axle acceleration is less than -9.81m/s2The default set of hanging scrolls part that goes out is to overturn the set of hanging scrolls part that goes out.

When terminal is in bright screen state, and posture information when bright screen state meet it is default go out set of hanging scrolls part when, to its terminal Carry out screen processing of going out.It is, of course, also possible to be configured to the default set of hanging scrolls part that goes out according to the use habit of user, it is not limited to above-mentioned reality Apply numerical information cited in example.

The screen control method of terminal in the present embodiment goes out when bright screen duration, which is more than, presets bright screen duration in conjunction with default Set of hanging scrolls part, so that it may accurately, timely to carry out screen control of going out to terminal, power button is used without user, it is convenient to use, Power consumption is saved, at the same time it can also avoid carrying out screen processing of going out to terminal in the short time, improves the Experience Degree of user.

Fig. 7 is the flow chart of the screen control method of terminal in another embodiment.

Step 702:Detect the ambient brightness of presently described terminal.

When the posture information of terminal meets default bright set of hanging scrolls part and terminal is not in proximity state with shelter, show end End has had moved away from shelter at this time, is currently at open space.Light sensor based on terminal built-in can detect in real time The environmental light intensity of present terminal local environment, luminous intensity unit are lux, and physical significance is that the light being irradiated on unit area leads to Amount.

Step 704:According to the mapping relations of the environmental light intensity and bright screen control strategy, presently described environmental light intensity is determined Corresponding bright screen control strategy.

Terminal-pair in varying environment light intensity answers different bright screen control strategies, can the storage environment in terminal in advance The mapping relations of light intensity and bright screen control strategy.Wherein, environmental light intensity can be that one-to-one mapping is closed with bright screen control strategy System, or it is multipair with mapping relations.

Wherein, the bright screen control strategy includes controlling bright screen and brightness value to the bright screen of bright gradual change, with constant luminance by dark For User Defined brightness value or bright screen is controlled with constant luminance and brightness value is higher than ambient brightness.

Specifically, when environmental light intensity is less than the first default light intensity value, corresponding bright screen control strategy be by it is dark to it is bright gradually Brighten screen, wherein indicates that terminal is in environment dark or that light is weaker when environmental light intensity is less than the first default light intensity value.Environment When light intensity is more than the second default light intensity value, corresponding bright screen control strategy is to be higher than with the bright screen of constant luminance control and brightness value Ambient brightness, wherein indicate that terminal is under intense light irradiation environment when environmental light intensity is more than the second default light intensity value.Environmental light intensity exists When between the first default light intensity value and the second default light intensity value, corresponding bright screen control strategy is to control bright screen with constant luminance And brightness value is User Defined brightness value.

Step 706:The bright screen of terminal is controlled according to determining bright screen control strategy.

If it is detected that when the environmental light intensity of present terminal is less than the first default light intensity value, terminal is in dark or light is poor Environment in, bright screen control strategy corresponding at this time is by dark to the bright screen of bright gradual change.Since the process of the bright screen of terminal is by secretly extremely The bright bright screen of gradual change, during browse displays screen, eyes have a by secretly to bright adaptation process, avoiding display screen user Brightness it is too strong so that stimulation user eyes, discomfort is caused to user.

If it is detected that when the environmental light intensity of present terminal is more than the second default light intensity value, terminal is in strong light environment, this When corresponding bright screen control strategy be that ambient brightness is higher than with the bright screen of constant luminance control terminal and brightness value.For example, in burning sun When the noon of head, user's handheld terminal walking outdoors, when digging out terminal at this time and seeing the time, with the bright screen of constant luminance control terminal And brightness value is higher than ambient brightness, at this point, facilitate user under strong light can clearly browsing terminal screen display content.

If it is detected that when the environmental light intensity of present terminal is between the first default light intensity value and the second default light intensity value, terminal In the environment in normal visible light range, bright screen control strategy corresponding at this time is with the bright screen of constant luminance control terminal And brightness value is User Defined brightness value.Wherein, User Defined brightness value is terminal previously according to the use habit of oneself The brightness value of setting.

It should be understood that although each step in the flow chart of Fig. 3-7 is shown successively according to the instruction of arrow, These steps are not that the inevitable sequence indicated according to arrow executes successively.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 3-7 Part steps may include that either these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can either the sub-step of other steps or at least part in stage be in turn or alternately with other steps It executes.

Fig. 8 is the structure diagram of the screen control device of the terminal of one embodiment.The screen control device of terminal, it is described Device includes:

Acquisition module 810, for when terminal be in go out screen state when, in preset time, based on the acceleration in terminal The posture information of sensor and gyroscope detection terminal;

Detection module 820, for when the posture information meets default bright set of hanging scrolls part, whether detection terminal and shelter In proximity state;

Control module 830 controls the terminal holding and goes out and shield shape when the terminal is in proximity state with shelter State;When the terminal and shelter are in far from state, the bright screen of the terminal is controlled.

The screen control device of above-mentioned terminal, when terminal, which is in, goes out screen state, in preset time, based in terminal The posture information of acceleration transducer and gyroscope detection terminal;When the posture information meets default bright set of hanging scrolls part, detection Whether the terminal is in proximity state with shelter;If so, controlling the terminal keeps screen state of going out;If it is not, then controlling The bright screen of terminal.When terminal is placed in pocket or knapsack by user, and user is in state of running, and terminal is in pocket or the back of the body Acutely shake or mobile and meet when presetting bright set of hanging scrolls part has occurred in packet, terminal also can still keep screen state of going out, can be to prevent It only misses bright screen and then saves power consumption, increase the standby time of terminal.Meanwhile when user digs out the mistake of terminal from pocket or knapsack The posture information of Cheng Zhong, terminal meet preset default bright set of hanging scrolls part, meanwhile, terminal is in shelter far from state, is not necessarily to User's Manual press physical button, so that it may be operated with the bright screen of realization directly accurately and timely, the user experience is improved spends.

In one embodiment, acquisition module includes acceleration transducer and gyroscope, and acquisition module further includes obtaining list Member, for obtaining the preset time;In preset time, the acceleration transducer is obtained, X, Y, Z tri- that gyroscope acquires The acceleration and rotation angle of axis component;The posture information is obtained according to the acceleration and rotation angle.

In one embodiment, acquisition module further includes:

First judging unit detects whether the terminal shakes for being based on the acceleration transducer;

Request unit, for when the terminal is shaken, the acceleration transducer to send to interrupt to master chip and ask It asks, the master chip opens the gyroscope according to the interrupt requests, keeps the gyroscope in running order.

The screen control device of terminal in the present embodiment, acceleration transducer and gyroscope are not to open simultaneously, when When acceleration transducer detects that the 3-axis acceleration of terminal changes, just make master chip and gyro in low power consumpting state Instrument is restored to working condition, can save power consumption, promotes terminal standby duration.

In one embodiment, the default bright set of hanging scrolls part includes at least one of following three kinds of conditions:

Y-axis rotation angle is more than or equal to the first predetermined angle, and Z axis rotation angle is more than or equal to the second predetermined angle and current The 3-axis acceleration component of the terminal is satisfied by preset range;

Y-axis rotation angle is more than or equal to third predetermined angle and Y-axis acceleration change amount is more than preset value presently described end The 3-axis acceleration component at end is satisfied by the preset range;Or

X-axis rotation angle is more than or equal to the 4th predetermined angle and Y-axis acceleration change amount is more than preset value presently described end The 3-axis acceleration component at end is satisfied by the preset range.

In one embodiment, detection module includes:

Opening unit, for when the terminal is when lifting bright screen function unlatching, unlatching proximity sensor to detect shelter Function;

Detection unit, for, there are when shelter, being detected in front of sensing the terminal screen when the proximity sensor The shelter is at a distance from the proximity sensor;

Second judgment unit, for judging whether the distance is less than pre-determined distance value;

Second acquisition unit, for when distance is less than pre-determined distance value, then the terminal to be in the shelter and connects Nearly state;For when distance is more than pre-determined distance value, then the terminal to be in the shelter far from state.

In one embodiment, the screen control device of terminal further includes:

Duration monitoring module, the bright screen duration for detecting the terminal;

Control module, be additionally operable to when the bright screen duration be more than preset bright screen duration when, when the posture information meet it is pre- If go out set of hanging scrolls part when triggering go out screen control instruction;Wherein, the screen control instruction of going out is gone out screen for controlling the terminal.

The screen control device of terminal in the present embodiment goes out when bright screen duration, which is more than, presets bright screen duration in conjunction with default Set of hanging scrolls part, so that it may accurately, timely to carry out screen control of going out to terminal, power button is used without user, it is convenient to use, Power consumption is saved, at the same time it can also avoid carrying out screen processing of going out to terminal in the short time, improves the Experience Degree of user.

In one embodiment, described device further includes:

Light-intensity test module, the environmental light intensity for detecting presently described terminal;

Mapping block determines presently described ring for the mapping relations according to the environmental light intensity and bright screen control strategy The corresponding bright screen control strategy of border light intensity;

Determining module, for controlling the bright screen of terminal according to determining bright screen control strategy.

Device in the present embodiment can be closed according to the environmental light intensity of terminal local environment and the mapping of bright screen control strategy System determines the bright screen control strategy of present terminal, and then realizes personalized bright screen control, improves the Experience Degree of user.

The division of modules is only used for for example, in other embodiments in the screen control device of above-mentioned terminal, The screen control device of terminal can be divided into different modules, to complete the screen control device of above-mentioned terminal as required All or part of function.

The specific of screen control device about terminal limits the screen control method that may refer to above for terminal Restriction, details are not described herein.Modules in the screen control device of above-mentioned terminal can be fully or partially through software, hard Part and combinations thereof is realized.Above-mentioned each module can be embedded in or in the form of hardware independently of in the processor in computer equipment, It can also in a software form be stored in the memory in computer equipment, the above modules are executed in order to which processor calls Corresponding operation.

The realization of modules in the screen control device of the terminal provided in the embodiment of the present application can be computer journey The form of sequence.The computer program can be run in terminal or server.The program module that the computer program is constituted can store On the memory of terminal or server.When the computer program is executed by processor, realize described in the embodiment of the present application The step of method.

The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors When so that the processor executes the step of screen control method of terminal.

A kind of computer program product including instruction, when run on a computer so that computer executes terminal Screen control method.

The embodiment of the present application also provides a kind of terminals.As shown in figure 9, for convenience of description, illustrate only and the application The relevant part of embodiment, particular technique details do not disclose, please refer to the embodiment of the present application method part.The terminal can be Including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer, the arbitrary terminal device such as Wearable, by taking terminal is mobile phone as an example:

Fig. 9 is the block diagram with the part-structure of the relevant mobile phone of terminal provided by the embodiments of the present application.With reference to figure 9, mobile phone Including:Radio frequency (Radio Frequency, RF) circuit 910, memory 920, input unit 930, display unit 940, sensor 950, voicefrequency circuit 960, Wireless Fidelity (wireless fidelity, WiFi) module 970, processor 980 and power supply 990 Equal components.It will be understood by those skilled in the art that handset structure shown in Fig. 9 does not constitute the restriction to mobile phone, may include Than illustrating more or fewer components, certain components or different components arrangement are either combined.

Wherein, RF circuits 910 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 980;The data of uplink can also be sent to base station.In general, RF circuits include but Be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 910 can also be communicated with network and other equipment by radio communication.Above-mentioned channel radio Letter can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, Short message service (Short Messaging Service, SMS) etc..

Memory 920 can be used for storing software program and module, and processor 980 is stored in memory 920 by operation Software program and module, to execute various function application and the data processing of mobile phone.Memory 920 can include mainly Program storage area and data storage area, wherein program storage area can storage program area, the application journey needed at least one function Sequence (such as the application program of sound-playing function, application program of image player function etc.) etc.;Data storage area can store root Created data (such as audio data, address list etc.) etc. are used according to mobile phone.In addition, memory 920 may include high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.

Input unit 930 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 900 And the related key signals input of function control.Specifically, input unit 930 may include operation panel 931 and other inputs Equipment 932.Operation panel 931, alternatively referred to as touch screen collect user on it or neighbouring touch operation (such as user Use the operation of any suitable object or attachment such as finger, stylus on operation panel 931 or near operation panel 931), And corresponding attachment device is driven according to preset formula.In one embodiment, operation panel 931 may include touching inspection Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation The signal brought, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 980, and can receive order that processor 980 is sent and be executed.In addition, The multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave may be used and realize operation panel 931.In addition to operating surface Plate 931, input unit 930 can also include other input equipments 932.Specifically, other input equipments 932 may include but not It is limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.) etc..

Display unit 940 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 940 may include display panel 941.In one embodiment, liquid crystal display (Liquid may be used Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 941.In one embodiment, operation panel 931 can cover display panel 941, when operation panel 931 is examined It measures and sends processor 980 on it or after neighbouring touch operation to determine the type of touch event, be followed by subsequent processing device 980 provide corresponding visual output according to the type of touch event on display panel 941.Although in fig.9, operation panel 931 be to realize input and the input function of mobile phone as two independent components with display panel 941, but in certain implementations In example, can be integrated by operation panel 931 and display panel 941 and that realizes mobile phone output and input function.

Mobile phone 900 may also include at least one sensor 950, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and range sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 941, and range sensor can close display panel when mobile phone is moved in one's ear 941 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, humidity Other sensors such as meter, thermometer, infrared sensor etc..

Voicefrequency circuit 960, loud speaker 961 and microphone 962 can provide the audio interface between user and mobile phone.Audio-frequency electric The transformed electric signal of the audio data received can be transferred to loud speaker 961 by road 960, and sound is converted to by loud speaker 961 Signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 It is changed to audio data, then by after the processing of audio data output processor 980, another mobile phone can be sent to through RF circuits 910, or Person exports audio data to memory 920 so as to subsequent processing.

WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 970 Part, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 9 is shown WiFi module 970, but it is understood that, and it is not belonging to must be configured into for mobile phone 900, it can omit as needed.

Processor 980 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 920, and call and be stored in memory 920 Data execute the various functions and processing data of mobile phone, to carry out whole monitoring to mobile phone.In one embodiment, it handles Device 980 may include one or more processing units.In one embodiment, processor 980 can integrate application processor and modulation Demodulator, wherein the main processing operation system of application processor, user interface and application program etc.;Modem is mainly located Reason wireless communication.It is understood that above-mentioned modem can not also be integrated into processor 980.For example, the processor 980 can integrate application processor and baseband processor, baseband processor with and the composable modem such as other peripheral chips. Mobile phone 900 further includes the power supply 990 (such as battery) powered to all parts, it is preferred that power supply can pass through power management system System is logically contiguous with processor 980, to realize the work(such as management charging, electric discharge and power managed by power-supply management system Energy.

In one embodiment, mobile phone 900 can also include camera, bluetooth module etc..

In the embodiment of the present application, when the processor included by the mobile phone executes the computer program of storage on a memory Realize the screen control method of above-mentioned described terminal.

Used in this application may include to any reference of memory, storage, database or other media is non-volatile And/or volatile memory.Suitable nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).

Above example only expresses the several embodiments of the application, the description thereof is more specific and detailed, but can not Therefore it is interpreted as the limitation to the application the scope of the claims.It should be pointed out that for those of ordinary skill in the art, Under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the protection model of the application It encloses.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (10)

1. a kind of screen control method of terminal, which is characterized in that including:
Terminal be in go out screen state when, in preset time, based on the acceleration transducer and gyroscope detection terminal in terminal Posture information;
When the posture information meets default bright set of hanging scrolls part, detect whether the terminal is in proximity state with shelter;
If so, controlling the terminal keeps screen state of going out;
If it is not, then controlling the bright screen of the terminal.
2. according to the method described in claim 1, it is characterized in that, described in preset time, based on acceleration transducer and The posture information of gyroscope detection terminal, including:
Obtain the preset time;
In preset time, persistently obtain the acceleration transducer, gyroscope acquisition tri- axis component of X, Y, Z acceleration and Rotation angle;
The posture information is obtained according to the acceleration and rotation angle.
3. according to the method described in claim 2, it is characterized in that, described in preset time, the acceleration is persistently obtained Before the acceleration and rotation angle of tri- axis component of X, Y, Z that sensor, gyroscope acquire, further include:
Detect whether the terminal shakes based on the acceleration transducer;
When the terminal is shaken, the acceleration transducer to master chip send interrupt requests, the master chip according to The interrupt requests open the gyroscope, keep the gyroscope in running order.
4. according to the method described in claim 1, it is characterized in that, the default bright set of hanging scrolls part includes in following three kinds of conditions It is at least one:
Y-axis rotation angle is more than or equal to the first predetermined angle, and Z axis rotation angle is more than or equal to the second predetermined angle and presently described The 3-axis acceleration component of terminal is satisfied by preset range;
Y-axis rotation angle is more than or equal to third predetermined angle and Y-axis acceleration change amount is more than the presently described terminal of preset value 3-axis acceleration component is satisfied by the preset range;Or
X-axis rotation angle is more than or equal to the 4th predetermined angle and Y-axis acceleration change amount is more than the presently described terminal of preset value 3-axis acceleration component is satisfied by the preset range.
5. according to the method described in claim 1, it is characterized in that, detecting whether the terminal is in close to shape with shelter State, including:
When the terminal is when lifting bright screen function unlatching, unlatching proximity sensor detects the function of shelter;
When the proximity sensor senses that there are when shelter, detect the shelter to connect with described in the terminal screen front The distance of nearly sensor;
Judge whether the distance is less than pre-determined distance value;
If so, the terminal is in proximity state with the shelter;
If it is not, then the terminal is in the shelter far from state.
6. according to the method described in claim 5, it is characterized in that, after the control bright screen of terminal, further include:
The bright screen duration of the terminal is detected, and obtains the posture information of the bright screen state of terminal;
When the bright screen duration, which is more than, presets bright screen duration, when the posture information in bright screen state meets the default set of hanging scrolls part that goes out When triggering go out screen control instruction;Wherein, the screen control instruction of going out is gone out screen for controlling the terminal.
7. according to the method described in claim 1, it is characterized in that, the control bright screen of terminal, including:
Detect the environmental light intensity of presently described terminal;
According to the mapping relations of the environmental light intensity and bright screen control strategy, the corresponding bright screen control of presently described environmental light intensity is determined System strategy;
The bright screen of terminal is controlled according to determining bright screen control strategy.
8. a kind of screen control device of terminal, which is characterized in that described device includes:
Acquisition module, for when terminal be in go out screen state when, in preset time, based in terminal acceleration transducer and The posture information of gyroscope detection terminal;
Detection module, for when the posture information meets default bright set of hanging scrolls part, detection terminal to connect with whether shelter is in Nearly state;
Control module keeps the screen state of going out of the terminal when the terminal is in proximity state with shelter;When the end When end is in shelter far from state, the bright screen of the terminal is controlled.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt The step of any one of claim 1 to 7 the method is realized when processor executes.
10. a kind of terminal, including memory, processor and storage are on a memory and the computer journey that can run on a processor Sequence, which is characterized in that the processor realizes any one of claim 1 to 7 the method when executing the computer program The step of.
CN201810114236.6A 2018-02-05 2018-02-05 The screen control method and device of terminal, readable storage medium storing program for executing, terminal CN108462986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810114236.6A CN108462986A (en) 2018-02-05 2018-02-05 The screen control method and device of terminal, readable storage medium storing program for executing, terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810114236.6A CN108462986A (en) 2018-02-05 2018-02-05 The screen control method and device of terminal, readable storage medium storing program for executing, terminal

Publications (1)

Publication Number Publication Date
CN108462986A true CN108462986A (en) 2018-08-28

Family

ID=63239729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810114236.6A CN108462986A (en) 2018-02-05 2018-02-05 The screen control method and device of terminal, readable storage medium storing program for executing, terminal

Country Status (1)

Country Link
CN (1) CN108462986A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520852A (en) * 2011-11-29 2012-06-27 华为终端有限公司 Control method of mobile equipment screen status and associated mobile equipment
CN103150194A (en) * 2013-04-10 2013-06-12 天津三星光电子有限公司 Sleep control method of mobile terminal and mobile terminal thereof
CN105653033A (en) * 2015-12-29 2016-06-08 广东欧珀移动通信有限公司 Method and device for controlling screen bright and black of terminal
CN106648027A (en) * 2016-12-01 2017-05-10 深圳市金立通信设备有限公司 Screen control method and terminal
CN106790983A (en) * 2016-11-23 2017-05-31 努比亚技术有限公司 Screen lightening method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520852A (en) * 2011-11-29 2012-06-27 华为终端有限公司 Control method of mobile equipment screen status and associated mobile equipment
CN103150194A (en) * 2013-04-10 2013-06-12 天津三星光电子有限公司 Sleep control method of mobile terminal and mobile terminal thereof
CN105653033A (en) * 2015-12-29 2016-06-08 广东欧珀移动通信有限公司 Method and device for controlling screen bright and black of terminal
CN106790983A (en) * 2016-11-23 2017-05-31 努比亚技术有限公司 Screen lightening method and mobile terminal
CN106648027A (en) * 2016-12-01 2017-05-10 深圳市金立通信设备有限公司 Screen control method and terminal

Similar Documents

Publication Publication Date Title
KR20150045257A (en) Wearable device and method of controlling thereof
CN103455256B (en) The method and terminal of Rotation screen display picture
CN103472993A (en) Rotation displaying method, device and terminal equipment
CN104166614B (en) The frame per second detection method and relevant apparatus of a kind of mobile device
CN104871393B (en) User equipment lamp light control method, device and user terminal
CN105005432A (en) Method and device for controlling terminal to operate
CN105739699B (en) A kind of control method and terminal device of message notifying
CN104253870B (en) The method and apparatus of control data access cycle
CN104375886B (en) Information processing method, device and electronic equipment
CN104423990B (en) A kind of update method and device of magnet
CN106294079B (en) A kind of information prompting method and device
CN105208057B (en) The correlating method and device of network account
CN105224159B (en) The method, apparatus and terminal of display window
CN106255146B (en) A kind of electricity-saving control method of terminal, device and terminal
CN106055237B (en) One kind slides booster response method and equipment
CN104657105A (en) Method and device for starting voice input function of terminal
CN106487984B (en) A kind of method and apparatus adjusting volume
CN105871694B (en) Instant messaging service processing method and processing device
CN106933525B (en) A kind of method and apparatus showing image
CN108241422A (en) Electronic equipment and the heat control method based on the battery temperature in electronic equipment
CN109313519A (en) Electronic equipment including force snesor
CN104423947B (en) A kind of method for refreshing pulling list content, device and touch panel device
CN107251536B (en) A kind of mobile terminal shows the method and mobile terminal of multiple application widgets
CN106325738B (en) A kind of method and apparatus of operational administrative
CN105807908B (en) A kind of method and apparatus of switching working mode

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