This application claims priority to Chinese Patent Application No. 201410450703.4 filed on Sep. 5, 2014, the contents of which are incorporated by reference herein.
The subject matter herein generally relates to display control.
Electronic devices can usually be operated by an input device, such as a stylus.
A display device of an electronic device must be unlocked and lit up when operating.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures and components have not been described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features of the present disclosure.
The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. Several definitions that apply throughout this disclosure will now be presented. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
The term “module” as used hereinafter, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, for example, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware. It will be appreciated that modules may comprise connected logic modules, such as gates and flip-flops, and may comprise programmable modules, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable storage medium or other computer storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLUE-RAY, flash memory, and hard disk drives. The term “comprising” means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in a so-described combination, group, series and the like.
The present disclosure is described in relation to an electronic device and display control method. The electronic device includes a plurality of first receivers for receiving first electromagnetic waves and a plurality of second receivers for receiving second electromagnetic waves. Programs in a storage device, executed by at least one processor, cause the at least one processor to determine an actual first distance according to the first electromagnetic waves received by the first receivers, and to determine an actual second distance according to the second electromagnetic waves received by the second receivers. A determination is made as to whether the input device is in a operation posture according to the actual first distance and the actual second distance. The method lights up a backlight device and displays an unlocked interface on a display device if the input device is in the operation posture.
A display control system 200 is applied to the computing device 102. The computing device 102 can be a mobile phone or a tablet computer, or other portable device. The computing device 102 can include a number of first receivers 1021, a number of second receivers 1022, a display device 1023, and a backlight device 1024. The computing device 102 can also include at least one processor 1025 and a storage device 1026. In at least one embodiment, the computing device 102 includes one processor 1025. The processor 1025 executes instructions of a number of modules stored in the storage device 1026. The storage device 1026 can store a distance determination module 201, a posture determination module 202 and a control module 203.
Referring to
Referring to
Referring to
If the input device 101 is in the operation posture, the control module 203 controls the backlight device 1024 to light up and controls the display device 1023 to display an unlocked interface 1030 on which the user can make inputs and carry out operations. If the input device 101 is not in the operation posture, the control module 203 controls the display device 1023 to display a locked interface 1031 as shown in
Referring to
At block 301, a first emitter emits first electromagnetic waves and a second emitter emits second electromagnetic waves if a switch on an input device is turned on. A number of first receivers on a computing device receive the first electromagnetic waves and a number of second receivers on the computing device receive the second electromagnetic waves. The first emitter is fixed in one end of the input device and the second emitter is fixed in other end of the input device.
At block 302, a distance determination module determines first distances between the first emitter and the first receivers according to the intensity of the first electromagnetic waves received by the first receivers. The distance determination module determines second distances between the second emitter and the second receivers according to the intensity of the second electromagnetic waves received by the second receivers.
At block 303, the distance determination module determines an actual first distance of the first distances and an actual second distance of the second distances. In at least one embodiment, the actual first distance is the smallest value of the first distances and the actual second distance is the smallest value of the second distances. That is to say, the actual first distance is a distance between the first emitter and the display device and the actual second distance is a distance between the second emitter and the display device.
At block 304, a posture determination module determines whether the input device is in a operation posture based on the actual first distance and the actual second distance. In at least one embodiment, if the actual first distance is greater than a preset distance set by a user and the actual second distance is smaller than the preset distance, the posture determination module determines that the input device is in the operation posture. If the actual first distance and the actual second distance are both greater or both smaller than the preset distance, the posture determination module determines that the input device is not in the operation posture. If the actual first distance is smaller than the preset distance and the actual second distance is greater than the preset distance, the posture determination module also determines that the input device is not in the operation posture. If the input device is in the operation posture, block 305 is implemented. If the input device is not in the operation posture, block 306 is implemented.
At block 305, a control module controls a backlight device to light up and controls a display device to display an unlocked interface on which the user can operate.
At block 306, the control module controls the display device to display a locked interface and the backlight device to shut down to save energy.
The embodiments shown and described above are only examples. Many details are often found in the art such as the other features of an electronic device and method for controlling displayed interface according to posture of input device. Therefore, many such details are neither shown nor described. Even though numerous characteristics and advantages of the present technology have been set forth in the foregoing description, together with details of the structure and function of the present disclosure, the disclosure is illustrative only, and changes may be made in the detail, including in matters of shape, size and arrangement of the parts within the principles of the present disclosure, up to and including the full extent established by the broad general meaning of the terms used in the claims.
Number | Date | Country | Kind |
---|---|---|---|
201410450703.4 | Sep 2014 | CN | national |