A screen control method, an electronic device, and a readable storage medium
By obtaining the positional relationships between the main body and objects of the dual-screen electronic devices, the display state of the display screen can be controlled, thus solving the problem of user privacy leakage and improving the user experience.
Patent Information
- Application Number
- CN202210904997.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2042-07-29
AI Technical Summary
In existing technologies, dual-screen electronic devices are prone to privacy leaks when switching between display screens. In particular, automatic switching can increase privacy and security issues and result in a poor user experience in certain situations.
By obtaining the positional relationship between the first and second entities and the positional relationship between the object and the electronic device, the display state of the target display screen is controlled to ensure that the display screen is not switched when the display switching conditions are met but the object does not meet the conditions, thus protecting user privacy.
It incorporates the consideration of object positional relationships when switching display screens, avoiding unintended display switching and improving user experience and privacy protection.
Smart Images

Figure CN115270154B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of screen control technology, and in particular to a screen control method, electronic device, and readable storage medium. Background Technology
[0002] For electronic devices with dual screens (i.e., two display screens), such as dual-screen portable computers, switching between the two display screens is important.
[0003] Manually switching between displays using buttons is not only cumbersome but also provides a poor user experience. If the display is automatically switched based solely on the angle between the keyboard and the screen, it can raise privacy concerns in certain situations, such as... Figure 1 As shown, when a user is using the computer in laptop mode, if someone approaches, the user may lower the screen due to privacy concerns. At this point, the angle between the display screen and the keyboard meets the conditions for automatic screen switching, and the computer will automatically switch to the external screen. This actually increases the user's privacy concerns, resulting in a very poor user experience. Therefore, how to protect user privacy when automatically switching the display screen is a problem that urgently needs to be solved. Summary of the Invention
[0004] In view of this, embodiments of this application provide a screen control method, an electronic device, and a readable storage medium.
[0005] According to a first aspect of this application, an embodiment of this application provides a screen control method. The electronic device includes a first body and a second body. The first body includes a first display screen and a second display screen. The screen control method includes: determining a target display screen facing the second body of the electronic device from the first display screen and the second display screen; obtaining a first positional relationship between the first body and the second body; and if an object is detected, obtaining a second positional relationship between the object and the electronic device; and controlling the display state of the target display screen based on the first positional relationship and the second positional relationship, wherein the display state is a first display state or a second display state.
[0006] Optionally, based on the first positional relationship and the second positional relationship, the display state of the target display screen is controlled to be a first display state, including: if it is confirmed based on the first positional relationship that the angle between the first body and the second body is within a first preset angle range, and it is confirmed based on the second positional relationship that an object exists in the direction of the second body of the electronic device, the target display screen is controlled to be in the first display state; or,
[0007] If, based on the first positional relationship, it is confirmed that the angle between the first body and the second body is within the second preset angle range, the target display screen is controlled to be in the first display state.
[0008] Optionally, based on the first positional relationship and the second positional relationship, the display state of the target display screen is controlled to be the second display state, including: if it is confirmed based on the first positional relationship that the angle between the first body and the second body is within a first preset angle range, and it is confirmed based on the second positional relationship that there is no object in the direction of the second body of the electronic device, the target display screen is controlled to be in the second display state.
[0009] Optionally, if the target display screen is the first display screen, controlling the target display screen to the second display state includes: controlling the first display screen to switch to the second display screen.
[0010] Optionally, before controlling the target display screen to the second display state, the screen control method further includes: detecting whether there is an object on the back of the target display screen;
[0011] Accordingly, if there is an object on the back of the target display screen, the target display screen is controlled to the second display state; if there is no object on the back of the target display screen, the target display screen is controlled to the first display state.
[0012] Optionally, determining the target display screen facing the second body of the electronic device from the first display screen and the second display screen includes: acquiring the induction relationship between the magnetic field sensor on the second body and the target component; the target component being disposed on the first body; and determining the target display screen facing the second body of the electronic device from the first display screen and the second display screen based on the induction relationship.
[0013] Optionally, determining the target display screen facing the second body of the electronic device based on the sensing relationship includes: if the sensing relationship meets a first preset condition, confirming the first display screen as the target display screen; if the sensing relationship does not meet the first preset condition, confirming the second display screen as the target display screen.
[0014] Optionally, the object detection step includes: using ultrasound to detect whether there is distance motion information in the direction of the second body that can characterize the existence of the object; if there is distance motion information in the direction of the second body that can characterize the existence of the object, it is determined that the object has been detected; if there is no distance motion information in the direction of the second body that can characterize the existence of the object, it is determined that the object has not been detected. Wherein, the distance motion information is considered to represent the existence of the object when it meets a first motion condition, for example, the distance motion information value does not exceed a certain threshold.
[0015] According to a second aspect of this application, an embodiment of this application provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform a screen control method as described in the first aspect or any embodiment of the first aspect.
[0016] According to a third aspect of this application, embodiments of this application provide a computer-readable storage medium storing computer instructions for causing a computer to perform a screen control method as described in the first aspect or any embodiment of the first aspect.
[0017] The screen control method, electronic device, and readable storage medium provided in this application determine a target display screen facing the second body of the electronic device from a first display screen and a second display screen; obtain a first positional relationship between the first body and the second body; and if an object is detected, obtain a second positional relationship between the object and the electronic device; based on the first and second positional relationships, control the display state of the target display screen, which is either a first display state or a second display state. Thus, when controlling the display switching between the first and second display screens, not only the first positional relationship between the first body and the second body is considered, but also the second positional relationship between the object and the electronic device. Therefore, even if the first positional relationship between the first body and the second body satisfies the display switching condition, the display switching between the first and second display screens will not be performed if the second positional relationship between the object and the electronic device does not satisfy the display switching condition, thereby protecting user privacy and improving user experience.
[0018] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0019] Figure 1 This is a diagram illustrating how screen switching in one solution can lead to user privacy breaches.
[0020] Figure 2 This is a flowchart illustrating a screen control method according to an embodiment of this application;
[0021] Figure 3 This is a schematic diagram of the structure of the electronic device in the embodiments of this application;
[0022] Figure 4 This is a schematic diagram showing the first display screen facing the second body of the electronic device in an embodiment of this application;
[0023] Figure 5 This is a schematic diagram showing the second display screen facing the second body of the electronic device in an embodiment of this application;
[0024] Figure 6This is a schematic diagram of the process of controlling the display state of the target display screen based on the first positional relationship and the second positional relationship in an embodiment of this application;
[0025] Figure 7 This is a flowchart illustrating another screen control method in an embodiment of this application;
[0026] Figure 8 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0028] This application provides a screen control method applied to an electronic device. The electronic device includes a first body and a second body. The first body includes a first display screen and a second display screen. The screen control method is as follows: Figure 2 Shown, including:
[0029] S101, determine the target display screen facing the second body of the electronic device from the first display screen and the second display screen.
[0030] In this embodiment, as Figure 3 As shown, the first body includes a first display screen and a second display screen disposed opposite to each other, i.e., the back of the first display screen is the second display screen, and the back of the second display screen is the first display screen. The second body can be an input component of an electronic device, such as a keyboard. The first body can rotate freely relative to the second body, such that the first display screen faces the second body, or the second display screen faces the second body.
[0031] Therefore, when switching displays, it is first necessary to determine the target display screen facing the second body of the electronic device from the first display screen and the second display screen.
[0032] The first display screen can be a B panel or an A panel, and correspondingly, the second display screen can be an A panel or a B panel.
[0033] In this embodiment, the first display screen is described as a B-side screen and the second display screen is an A-side screen, as shown in the schematic diagram of the first display screen facing the second body of the electronic device. Figure 4As shown in the diagram, the second display screen faces the second body of the electronic device. Figure 5 As shown.
[0034] It should be noted that the first display screen can be set to either the B-side screen or the A-side screen, which can be selected as needed, and no limitation is made here.
[0035] S102, obtain the first positional relationship between the first entity and the second entity.
[0036] In this embodiment, the first positional relationship between the first body and the second body includes, but is not limited to, the angle between the first body and the second body.
[0037] In some embodiments, the angle between the first body and the second body can be determined by detecting the placement angle of the first body and the second body using at least two gyroscopes respectively disposed on the first body and the second body.
[0038] In some embodiments, the included angle between the first body and the second body can be detected by at least two G-sensors respectively disposed on the first body and the second body, using the Z-axis components of the first body and the second body with respect to the ground. Figure 4 Alternatively, Gsensor 1 and Gsensor 2 as shown in Figure 5, wherein Gsensor 1 is set on the second body and Gsensor 2 is set on the first body. Then, based on the Z-axis components of the first body and the second body with respect to the earth, the angles of the first body with respect to the earth and the second body with respect to the earth are calculated respectively, thereby determining the included angle between the first body and the second body.
[0039] S103, and if an object is detected, obtain a second positional relationship between the object and the electronic device.
[0040] In this embodiment, the second positional relationship between the object and the electronic device includes, but is not limited to, whether the object is in the direction of the second body of the electronic device or in the direction away from the second body, and the distance between the object and the electronic device.
[0041] In some embodiments, if it is only necessary to detect objects in the direction of the second body of the electronic device (the direction of the target display screen), an object detection device can be provided only on the second body, or an object detection device can be provided on both the first and second display screens. The object is detected by activating the object detection device on the target display screen after determining the target display screen from the first and second display screens. The object detection device includes, but is not limited to, an ultrasonic device.
[0042] In some embodiments, if it is necessary to detect objects in the direction of the target display screen and on the back of the target display screen, object detection devices can be provided on the first display screen and the second display screen respectively.
[0043] S104, based on the first positional relationship and the second positional relationship, controls the display state of the target display screen, which is either the first display state or the second display state.
[0044] In this embodiment, the angle between the first and second bodies of the electronic device can be determined based on the first positional relationship. The presence of an object in the direction of the second body of the electronic device can be determined based on the second positional relationship. Therefore, based on the angle between the first and second bodies of the electronic device and the presence of an object in the direction of the second body, the display state of the target display screen can be controlled to be either the first or second display state, thereby achieving the switching between the first and second display screens.
[0045] The first display state is the screen-on state, and the second display state is the screen-off state. The power consumption of the second display state is lower than that of the first display state. Of course, it is not limited to screen-on or screen-off. As long as the power consumption of the second display state is lower than that of the first display state, it is acceptable. The second display state can be a static display background or a dynamic display background. The display background can be used to protect user privacy, such as wallpaper or lock screen background.
[0046] The screen control method provided in this application determines a target display screen facing the second body of an electronic device from a first display screen and a second display screen; obtains a first positional relationship between the first body and the second body; and if an object is detected, obtains a second positional relationship between the object and the electronic device; based on the first and second positional relationships, controls the display state of the target display screen to be either a first display state or a second display state. Thus, when controlling the display transition between the first and second display screens, not only the first positional relationship between the first and second bodies is considered, but also the second positional relationship between the object and the electronic device. Therefore, even if the first positional relationship between the first and second bodies satisfies the display transition condition, the display transition between the first and second display screens will not occur if the second positional relationship between the object and the electronic device does not satisfy the display transition condition. This protects user privacy and improves user experience.
[0047] In an optional embodiment, step S101, determining the target display screen facing the second body of the electronic device from the first display screen and the second display screen, includes: acquiring the sensing relationship between the magnetic field sensor on the second body and the target component; the target component being disposed on the first body; and determining the target display screen facing the second body of the electronic device from the first display screen and the second display screen based on the sensing relationship.
[0048] In specific implementation, such as Figure 4 As shown in Figure 5, a target component, Magnet 1, can be mounted on the first body, and magnetic field sensors Hall 1 and Hall 2 can be mounted on the second body. The inductive relationship between Hall 1 / Hall 2 and Magnet 1 can be acquired. This inductive relationship can be the force between Magnet 1 and Hall 1 / Hall 2, respectively.
[0049] In one implementation, determining a target display screen facing the second body of the electronic device from a first display screen and a second display screen based on a sensing relationship includes: if the sensing relationship meets a first preset condition, confirming the first display screen as the target display screen; if the sensing relationship does not meet the first preset condition, confirming the second display screen as the target display screen.
[0050] Specifically, if the sensing relationship satisfies that Magnet 1 acts on hall 1, meaning the force exerted by Magnet 1 on hall 1 is greater than the force exerted by Magnet 1 on hall 2, then the B-side screen is determined to face the second body, i.e., the first display screen is the target display screen. If the sensing relationship satisfies that Magnet 1 acts on hall 1, then the A-side screen is determined to face the second body, i.e., the second display screen is the target display screen.
[0051] In some implementations, such as Figure 4 As shown in Figure 5, a second target component, Magnet 2, can also be installed on the second body, along with magnetic field sensors Hall 3 and Hall 4. If Magnet 2 affects Hall 3, then the B-side screen is determined to be facing the second body and in a flat panel mode, making the first display screen the target display screen, which can be directly controlled to switch to the second display state. If Magnet 2 affects Hall 4, then the A-side screen is determined to be facing the second body and in a flat panel mode, making the second display screen the target display screen, which can be directly controlled to switch to the second display state.
[0052] In this embodiment, by obtaining the sensing relationship between the magnetic field sensor on the second body and the target component on the first body, and determining the target display screen facing the second body of the electronic device from the first and second display screens based on the sensing relationship, the target display screen facing the second body of the electronic device can be determined simply and quickly.
[0053] In an optional embodiment, step S103, the step of detecting the object includes: detecting whether there is distance motion information that can characterize the existence of the object in the direction where the second body is located by ultrasound; if there is distance motion information that can characterize the existence of the object in the direction where the second body is located, it is determined that the object has been detected; if there is no distance motion information that can characterize the existence of the object in the direction where the second body is located, it is determined that the object has not been detected.
[0054] In practical implementation, an ultrasonic device, such as an ultrasonic speaker, can be installed on the second body. This device detects whether there is distance motion information in the direction of the second body that indicates the presence of an object, thus determining whether an object exists in that direction. The presence of an object is considered complete when the distance motion information meets a first motion condition, such as the distance motion information value not exceeding a certain threshold. Distance motion information includes information such as heartbeat and respiration. If distance motion information is detected, it means an object, such as a human body, has been detected, confirming the presence of an object in the direction of the second body. If no distance motion information is detected, it means no object has been detected, confirming the absence of an object in the direction of the second body.
[0055] In this embodiment, the object is detected by ultrasonic detection of distance motion information that can characterize the presence of an object in the direction of the second body. This method can accurately determine whether there is an object in the direction of the second body. Compared with other methods of object detection, such as using a camera on a display screen to capture a face, this method is not affected by the display screen being pressed very low. For example, if the display screen is opened very small and the angle between the first and second bodies is very small, the face cannot be captured when the camera captures a face, resulting in inaccurate results in determining whether there is an object in the direction of the second body. However, ultrasonic detection can detect distance motion information, thereby accurately detecting whether there is an object in the direction of the second body.
[0056] In an optional embodiment, step S104, controlling the display state of the target display screen based on the first positional relationship and the second positional relationship, includes:
[0057] If, based on the first positional relationship, it is confirmed that the angle between the first body and the second body is within the second preset angle range, the target display screen is controlled to be in the first display state.
[0058] If, based on the first positional relationship, it is confirmed that the angle between the first body and the second body is within the first preset angle range, and based on the second positional relationship, it is confirmed that there is an object in the direction of the second body of the electronic device, the target display screen is controlled to be in the first display state.
[0059] If, based on the first positional relationship, it is confirmed that the angle between the first body and the second body is within the first preset angle range, and based on the second positional relationship, it is confirmed that there is no object in the direction of the second body of the electronic device, the target display screen is controlled to the second display state.
[0060] In this embodiment, as Figure 6 As shown in Figure a, if the angle between the first body and the second body is within the second preset angle range, such as greater than or equal to 80 degrees, it is the case when the user is using the electronic device normally. The electronic device is in laptop mode (NB mode). Therefore, the target display screen facing the second body should be in the first display state, and the display screen facing away from the second body should be in the second display state. In this way, the user can use the electronic device in laptop mode and protect the user's privacy.
[0061] like Figure 6 As shown in b-6e, if the angle between the first body and the second body is within a second preset angle range, for example, less than 80 degrees, it is necessary to determine whether there is an object in the direction of the second body of the electronic device. If it is determined that there is an object in the direction of the second body of the electronic device, such as... Figure 6 Figure b-d illustrates that the user did not intentionally switch to screen display because of privacy considerations. In this case, the user is still using the electronic device normally. The electronic device is in laptop mode. Therefore, the target display screen facing the second body should be in the first display state, and the display screen facing away from the second body should be in the second display state. In this way, when the angle between the first body and the second body is within the second preset angle range, the user can still use the electronic device in laptop mode while protecting the user's privacy.
[0062] like Figure 6 As shown in e, if it is determined that there is no object in the second body direction of the electronic device, it means that the user is no longer in front of the computer and has no privacy concerns. The electronic device is in stand mode, and the target display screen facing the second body direction should be the second display state.
[0063] In one implementation, if the target display screen is a first display screen, controlling the target display screen to a second display state includes: controlling the first display screen to switch to the second display screen.
[0064] In specific implementation, controlling the switching from the first display screen to the second display screen includes: displaying the content of the first display screen on the second display screen, or displaying content different from that of the first display screen on the second display screen. The first and second display screens can be made of the same material or different materials. For example, the first display screen could be an LED screen used to display video, and the second display screen could be an ELINK screen used to display books. Therefore, controlling the target display screen to the second display state means switching the first display screen to the second display screen, and the content displayed on the second display screen is different from the content displayed on the first display screen.
[0065] In this implementation, by controlling the first display screen to switch to the second display screen, the first display screen can be in a second display state, and the second display screen can be in a first display state, thus achieving automatic switching between the two display screens.
[0066] More specifically, this application embodiment will be described using an example where the first display screen is the B-side screen, the second body is the keyboard, and the first display screen faces the keyboard. Figure 7 As shown, the angles of G sensor1 and G sensor2 relative to the ground are first obtained, and then the difference between the two angles is calculated as the hinge angle. Next, it is determined whether the hinge angle is greater than 80 degrees. If the hinge angle is greater than 80 degrees, it is in NB mode, and the B-side screen lights up. If the hinge angle is less than 80 degrees, ultrasonic detection can be used to check if anyone is in the direction of the keyboard. If someone is present, it is in NB mode, and the B-side screen lights up; if no one is present, it switches to Stand mode, and the A-side screen displays the information.
[0067] In one implementation, before controlling the target display screen to the second display state, the screen control method further includes: detecting whether there is an object behind the target display screen;
[0068] Accordingly, if there is an object on the back of the target display screen, the target display screen is controlled to the second display state; if there is no object on the back of the target display screen, the target display screen is controlled to the first display state.
[0069] In practice, if it is determined that there is no object in the second body direction of the electronic device, the system continues to detect whether there is an object on the back of the target display screen. If there is no object on the back of the target display screen, the target display screen is controlled to be in the first display state.
[0070] In this implementation, when it is determined that there is no object in the second body direction of the electronic device, the presence of an object on the back of the target display screen is checked. This prevents the display screen from switching when there is no object on the back of the target display screen, thus avoiding unintended display switching. For example, when a user is using the electronic device in computer mode and temporarily leaves the device without intending to switch the display screen, the display screen will not switch since there are no objects in either the second body direction or on the back of the target display screen, thereby improving the user experience.
[0071] According to embodiments of this application, this application also provides an electronic device and a readable storage medium.
[0072] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement embodiments of this application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein.
[0073] like Figure 8 As shown, device 800 includes a computing unit 801, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 802 or a computer program loaded from storage unit 808 into random access memory (RAM) 803. RAM 803 may also store various programs and data required for the operation of device 800. The computing unit 801, ROM 802, and RAM 803 are interconnected via bus 804. Input / output (I / O) interface 805 is also connected to bus 804.
[0074] Multiple components in device 800 are connected to I / O interface 805, including: input unit 806, such as keyboard, mouse, etc.; output unit 807, such as various types of monitors, speakers, etc.; storage unit 808, such as disk, optical disk, etc.; and communication unit 809, such as network card, modem, wireless transceiver, etc. Communication unit 809 allows device 800 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0075] The computing unit 801 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as screen control methods. For example, in some embodiments, the screen control method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the screen control method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform screen control methods by any other suitable means (e.g., by means of firmware).
[0076] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0077] The program code used to implement the methods of this application may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0078] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0079] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0080] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0081] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0082] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this application can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this application can be achieved, and this is not limited herein.
[0083] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.
[0084] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A screen control method, wherein the electronic device includes a first body and a second body, the first body including a first display screen and a second display screen, comprising: Determine a target display screen facing the second body of the electronic device from the first display screen and the second display screen; Obtain the first positional relationship between the first entity and the second entity; And if an object is detected, a second positional relationship between the object and the electronic device is obtained; Based on the first positional relationship and the second positional relationship, the display state of the target display screen is controlled, wherein the display state is either a first display state or a second display state, including: if it is confirmed based on the first positional relationship that the angle between the first body and the second body is within a first preset angle range, and it is confirmed based on the second positional relationship that an object exists in the direction of the second body of the electronic device, the target display screen is controlled to be in the first display state; or, if it is confirmed based on the first positional relationship that the angle between the first body and the second body is within a second preset angle range, the target display screen is controlled to be in the first display state; the angle between the first body and the second body being within the first preset angle range satisfies the display conversion condition for the target display screen to change from the first display state to the second display state; the power consumption of the second display state is lower than that of the first display state.
2. The screen control method according to claim 1, based on the first positional relationship and the second positional relationship, controls the display state of the target display screen, wherein the display state is a second display state, including: If, based on the first positional relationship, it is confirmed that the angle between the first body and the second body is within a first preset angle range, and based on the second positional relationship, it is confirmed that there is no object in the direction of the second body of the electronic device, the target display screen is controlled to be in the second display state.
3. The screen control method according to claim 2, wherein if the target display screen is a first display screen, The control of the target display screen to the second display state includes: Control the first display screen to switch to the second display screen.
4. The screen control method according to claim 2, further comprising, before controlling the target display screen to the second display state: Detect whether there is an object on the back of the target display screen; Accordingly, If there is an object behind the target display screen, control the target display screen to a second display state; If there is no object behind the target display screen, the target display screen is controlled to be in the first display state.
5. The screen control method according to claim 1, wherein determining the target display screen facing the second body of the electronic device from the first display screen and the second display screen comprises: Obtain the sensing relationship between the magnetic field sensor on the second body and the target component; The target component is disposed on the first body; The target display screen facing the second body of the electronic device is determined from the first display screen and the second display screen based on the sensing relationship.
6. The screen control method according to claim 5, wherein determining the target display screen facing the second body of the electronic device based on the sensing relationship comprises: If the sensing relationship satisfies the first preset condition, the first display screen is confirmed as the target display screen; If the sensing relationship does not meet the first preset condition, the second display screen is confirmed as the target display screen.
7. The screen control method according to claim 1, wherein the step of detecting the object includes: The ultrasonic detection method checks whether there is distance motion information in the direction of the second body that can characterize the existence of the object. If there is distance motion information in the direction where the second body is located that can characterize the existence of an object, it is determined that an object has been detected; If there is no distance motion information in the direction of the second body that can characterize the existence of the object, it is determined that no object has been detected.
8. An electronic device, comprising: At least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the screen control method as described in any one of claims 1-7.
9. A computer-readable storage medium storing computer instructions for causing a computer to perform the screen control method as described in any one of claims 1-7.
Citation Information
Patent Citations
Electronic device
CN103425197A
Electronic device screen switching method and apparatus, and electronic device
CN106598511A