Equipment control method and electronic equipment

By activating the target service in the electronic device and detecting user operations, the handle position is dynamically generated, which solves the problem of convenience in switching between the closed and open states in multi-state switching devices, and improves the user experience and the aesthetics of the device.

CN121934683APending Publication Date: 2026-04-28LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-31
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

How to achieve a smooth transition from closed to open state in electronic devices with multiple states, and provide an operation method that conforms to user habits.

Method used

By activating the target service when the electronic device is in the closed state, the device switches from the first state to the second state after detecting the target operation, forming the target handle position, and returns to the first state when necessary. The target handle position is formed by unfolding and retracting the display screen, and intelligent judgment is made in combination with gravity sensor and angle sensor.

Benefits of technology

It improves the convenience and aesthetics of users opening the device, optimizes the automation level and user-friendliness of the device, meets the interaction needs of different user habits and environments, and enhances the ease of use and operating experience of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121934683A_ABST
    Figure CN121934683A_ABST
Patent Text Reader

Abstract

The invention provides an equipment control method and electronic equipment. The method comprises the following steps: starting a target service in response to that the electronic equipment is in a closed state; in response to a detected target operation corresponding to the target service, controlling the electronic equipment to be switched from a first form to a second form so as to form a target hand clasping position; wherein the target hand buckling position is an acting force contact position when the electronic equipment is switched from the cover closing state to the cover opening state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a device control method and electronic device. Background Technology

[0002] With the diversification of electronic device forms, users are increasingly demanding greater ease of operation and better user experience. In electronic devices with multi-state switching capabilities, achieving a smooth transition from a closed to an open state while providing an operating method that aligns with user habits has become a key design challenge. Summary of the Invention

[0003] In view of this, this application provides at least one device control method and electronic device.

[0004] The technical solution of this application is implemented as follows: On one hand, this application provides a device control method, the method comprising: The target service is initiated in response to the electronic device being closed. In response to detecting a target operation corresponding to a target service, the electronic device is controlled to switch from a first mode to a second mode to form a target grip position; Among them, the target handle position is the contact position where the electronic device switches from the closed state to the open state by the force applied.

[0005] In some implementations, the method further includes: After the electronic device switches from the closed state to the open state, the electronic device is controlled to switch from the second state to the first state.

[0006] In some implementations, the method further includes: In response to the electronic device remaining in a closed state and the duration of the second state being greater than a first duration threshold, the electronic device is controlled to switch from the second state to the first state.

[0007] In some embodiments, the electronic device includes a first body and a second body; Controlling the switching of electronic devices from a first form to a second form includes: At the end of the first body away from the connection end between the first body and the second body, the first body is controlled to extend a first length so that the electronic device switches from a first mode to a second mode.

[0008] In some implementations, the control of the electronic device switching from a first form to a second form includes at least one of the following: Control the A-side display screen to scroll and unfold to a first length; the A-side display screen is a display screen installed on the A-side of the first body of the electronic device; Control the B-side display screen to scroll and unfold to a first length; the B-side display screen is a display screen installed on the B side of the first body of the electronic device.

[0009] In some embodiments, a B-side display screen is provided on the B-side of the first body of the electronic device; After controlling the electronic device to switch from the second form to the first form, the method further includes: Shut down the target service; In response to the detection of a target operation, the B-side display screen is controlled to scroll and unfold to a second length, which is different from the first length; the first length represents the unfolded length of the first body relative to the second body of the electronic device in the second form.

[0010] In some implementations, after the electronic device switches from a closed state to an open state, controlling the electronic device to switch from a second state to a first state includes: After the electronic device switches from a closed state to an open state, the opening angle of the electronic device is obtained; When the opening angle is greater than the angle threshold, the electronic device is controlled to switch from the second mode to the first mode.

[0011] In some implementations, when the opening angle is greater than an angle threshold, controlling the electronic device to switch from the second state to the first state includes: If the opening angle is greater than the angle threshold and the duration of the opening angle is greater than the second duration threshold, the electronic device is controlled to switch from the second mode to the first mode.

[0012] In some implementations, the target operation represents at least one of the following: The first action performed by the user in a designated area of ​​the electronic device; the first action is represented by a tapping action; or, A second operation performed by the user in a specified manner; the second operation includes semantic instruction information that controls the electronic device to switch from a first mode to a second mode.

[0013] In addition, this application also provides an electronic device, including a body, a memory, and a processor; The memory stores a computer program that can run on a processor, which executes the program to implement the steps in the device control method described above. This entity is used to form the target buckle position in response to the implementation of the above steps.

[0014] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of this application. Attached Figure Description

[0015] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.

[0016] Figure 1 A schematic diagram illustrating the implementation process of a device control method provided in this application; Figure 2 A schematic diagram of the electronic device in the device control method provided in this application in a first state when the cover is closed; Figure 3 A schematic diagram of the electronic device in the device control method provided in this application in a second state when the cover is closed; Figure 4 A schematic diagram of an electronic device with an A-side display screen in the device control method provided in this application; Figure 5 A schematic diagram of acceleration data collected by a gravity sensor in the device control method provided in this application; Figure 6 A schematic diagram illustrating the implementation process of controlling an electronic device to switch from a second state to a first state in the device control method provided in this application; Figure 7 A schematic diagram illustrating the implementation process of controlling the B-side display screen to scroll and expand to a second length in the device control method provided in this application; Figure 8 A schematic diagram illustrating the implementation process of one embodiment provided in this application; Figure 9 This is a schematic diagram of the hardware entity of an electronic device provided in this application. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application are further described in detail below with reference to the accompanying drawings and embodiments. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0018] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0019] The terms “first / second / third” are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that “first / second / third” may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. The terminology used herein is for descriptive purposes only and is not intended to be limiting of this application.

[0021] The device control method provided in this application can be executed by an electronic device, which can be a terminal of various types such as a laptop computer, mobile device (e.g., mobile phone, portable music player, personal digital assistant, dedicated messaging device, portable gaming device).

[0022] The technical solutions in this application will now be clearly and completely described with reference to the accompanying drawings.

[0023] Figure 1 This is a schematic diagram illustrating the implementation process of a device control method provided in this application, as shown below. Figure 1 As shown, the method includes the following steps S11 to S12: Step S11: In response to the electronic device being in a closed state, the target service is initiated; Step S12: In response to detecting the target operation corresponding to the target service, control the electronic device to switch from the first mode to the second mode to form a target handle position; wherein, the target handle position is the force contact position of the electronic device when switching from the closed state to the open state.

[0024] Here, "electronic device" refers to any device that has a closed state and an open state. In some embodiments, the electronic device has at least two bodies, for example, a first body and a second body, with one body (e.g., the first body) serving as the upper cover and the other body (e.g., the second body) serving as the lower cover. Thus, the electronic device is in the closed state when the upper and lower covers are in contact, and in the open state when the upper cover is rotated and unfolded relative to the lower cover by a certain angle. In some embodiments, the electronic device may be a laptop computer, a foldable mobile device, etc.

[0025] Target service refers to a background service that runs when the electronic device is closed, used to monitor and process target operations in order to achieve device mode switching.

[0026] In some implementations, the controller running the target service may be the same as or different from the controller running the operating system. In some implementations, both the target service and the operating system run on the central processing unit (CPU) of the electronic device. In some implementations, the operating system runs on the CPU, while the target service runs on a microcontroller unit (MCU). Because MCUs consume less power, using an MCU to run the target service can save power consumption in the electronic device.

[0027] In some implementations, in order to reduce the device power consumption generated by the target service, the target service can be automatically put into a sleep state when the device is in an open state or has been inactive for a long time.

[0028] A target operation refers to an action performed by a user on an electronic device to trigger a change in the device's form factor. In some implementations, the target operation can be any type of operation. In some implementations, the target operation can be a physical operation applied to the electronic device, such as a pressing operation or a swiping operation. In some implementations, the target operation can be a voice or gesture operation.

[0029] Thus, if a target operation is detected during the startup of the target service, the electronic device is controlled to switch from a first form to a second form. Here, the first form and the second form refer to different physical appearances of the electronic device.

[0030] In some implementations, the first form is the standard form or one of the regular use forms of the electronic device, and the electronic device is more suitable for daily carrying and standby in the first form; while the second form refers to a non-default form of the electronic device under specific conditions, which is used to provide additional usage functions (e.g., providing a target handhold position).

[0031] A handle is a structure that allows users to easily switch electronic devices from a closed to an open state. The main function of the handle is to provide users with a point of leverage to open the electronic device, so that users can easily open the electronic device to the open state without having to put their hands into the gap between the top and bottom covers.

[0032] The target handle position refers to a handle position that dynamically forms according to the change in the form of the electronic device. That is, the electronic device does not have a target handle position when it is in the first form, but it has a target handle position in the second form. In the second form, the user can open the electronic device by applying force to the target handle position (that is, switch the electronic device from the closed state to the open state).

[0033] In some implementations, the target handle can be of any shape. For example, the target handle can be a protruding structure of the upper cover of the electronic device relative to the lower cover. As another example, the target handle can be a recessed structure of the lower cover of the electronic device relative to the upper cover.

[0034] In some implementations, the target grip position may be gradually formed during the process of the electronic device switching from the first form to the second form; the target grip position may also be formed in response to the second form after the electronic device switches from the first form to the second form.

[0035] In the embodiments provided in this application, firstly, in response to the electronic device being in a closed state, a target service is initiated; then, in response to detecting a target operation corresponding to the target service, the electronic device is controlled to switch from a first form to a second form to form a target handle position; wherein, the target handle position is the force contact position for the electronic device to switch from the closed state to the open state. In this way, on the one hand, by forming a target handle position, it is convenient for the user to switch the electronic device from a closed state to an open state using the target handle position; on the other hand, by dynamically forming the target handle position by switching the appearance of the electronic device (i.e., from the first form to the second form), the upper and lower covers of the electronic device can fit neatly together in the closed state, thereby improving the aesthetics of the electronic device; and when the user needs to switch the electronic device from the closed state to the open state, the target handle position is dynamically formed, thereby improving the convenience for the user to open the electronic device.

[0036] In some embodiments, the electronic device includes a first body and a second body.

[0037] Here, the first body and the second body are two components of the electronic device.

[0038] In some implementations, the first body is the upper cover of the electronic device, and the second body is the lower cover of the electronic device.

[0039] In some implementations, the first body and the second body are connected by a pivot, so that the first body can rotate relative to the second body, thereby switching the electronic device from a closed state to an open state, or from an open state to a closed state.

[0040] In some embodiments, a display screen is provided in the first body and / or the second body for displaying the interface of an application or operating system running in the output electronic device. In some embodiments, when the second body is the lower cover of the electronic device, the display screen in the second body is a touch screen for displaying a virtual keyboard of the output electronic device.

[0041] Thus, controlling the electronic device to switch from the first state to the second state, i.e., step S12, can be implemented as the following steps S121: Step S121: On the end side of the first body away from the connection end between the first body and the second body, control the first body to extend a first length so that the electronic device switches from the first form to the second form.

[0042] Here, the connection end between the first body and the second body refers to the end of the first body that is connected to the second body via a hinge. For example, in the case of a laptop computer, this connection end refers to the end of the upper cover that is connected to the lower cover via a hinge. The end of the first body away from this connection end is, that is, the end of the first body opposite to the connection end.

[0043] Thus, after detecting the target operation, the first body is controlled to extend a first length at the end side away from the connection end in the first body. That is, the first body is controlled to extend a first length at the end side away from the connection end in a direction perpendicular to the length direction of the connection end, so that the electronic device switches from the first mode to the second mode.

[0044] As can be seen, after the first length is extended on the side of the first body away from the connecting end, in the second configuration, the portion of the first body corresponding to this first length forms a protrusion of the first body relative to the second body. This protrusion can serve as the contact point for the force applied when the user opens the electronic device; that is, this protrusion is the target handle position.

[0045] In some implementations, the first length can be any length capable of forming an effective grip position, such as 1.0 cm, 1.5 cm, or other lengths. In some implementations, the specific value corresponding to the first length can be adjusted according to different device sizes and ergonomic principles to ensure the best user experience. For example, in the case of a small electronic device, a first length of 1 cm is sufficient; while in the case of a large electronic device, the first length may need to be greater than 1.0 cm.

[0046] When switching an electronic device from a closed state to an open state, users are accustomed to opening it by pressing the first component. However, since the edges of the first and second components are aligned when the device is closed, users can only open it by pressing the gap between the two components, which increases the difficulty of opening the device. Furthermore, if the first component is made of a relatively smooth material, the difficulty of opening the device by pressing the first component will be further increased.

[0047] like Figure 2As shown, when the electronic device is in its first form with the lid closed, the edges of the first body 210 and the second body 220 are aligned. In response to a target operation, the first body 210 extends a first length relative to the second body 220, as shown... Figure 3 As shown, the first body 210 of the electronic device forms a target handle position 310 relative to the second body 220.

[0048] In the embodiments provided in this application, by controlling the first body to unfold a first length at the end away from the connection end in the first body, a target handle position is formed, allowing the user to use this target handle position to pull the first body and open the electronic device. This provides the user with a more convenient and intuitive device opening experience without changing their original operating habits.

[0049] In some embodiments, controlling the electronic device to switch from the first form to the second form, i.e., step S12 above, can be implemented as at least one of steps S122 and S123: Step S122: Control the A-side display screen to scroll and unfold to a first length; the A-side display screen is a display screen installed on the A-side of the first body of the electronic device.

[0050] Here, the first body of the electronic device includes side A and side B, where side A refers to the side of the first body that faces away from the second body, and side B refers to the side of the first body that faces the second body.

[0051] The A-side display screen refers to the display screen located on the A-side of the first device. This allows users to interact with the electronic device through the A-side display screen when the device is closed. For example... Figure 4 As shown, the electronic device includes a first body 410 and a second body 420, and an A-side display screen 411 and a housing portion 412 are provided on the A-side of the first body 410.

[0052] Meanwhile, the A-side display screen is a flexible display screen and has a corresponding hidden display screen. Thus, when the electronic device switches from the first form to the second form, the hidden display screen corresponding to the A-side display screen is driven by a motor to roll and unfold a first length, and the unfolded first length of the hidden display screen is used as part of the A-side display screen, thereby realizing the rolling and unfolding of the A-side display screen to the first length.

[0053] In this way, the first length of the A-side display screen when it is rolled out forms a protrusion of the first body relative to the second body, thereby using the protrusion as a target handle position so that the user can switch the electronic device from the closed state to the open state by means of the target handle position.

[0054] When the first body has an A-side display screen, as mentioned above, the relatively smooth material of the A-side display screen makes it difficult for users to open the electronic device. Therefore, in the above embodiments provided in this application, controlling the A-side display screen to scroll and unfold a first length to form a target handle position can improve the convenience of opening the electronic device while maintaining the user's original operating habits.

[0055] Step S123: Control the B-side display screen to scroll and unfold to a first length; the B-side display screen is a display screen disposed on the B side of the first body of the electronic device.

[0056] Here, the B-side display screen refers to the display screen installed on the B side of the first body of the electronic device, that is, the display screen facing the second body of the electronic device.

[0057] Meanwhile, the B-side display screen is a flexible display screen and has a corresponding hidden display screen. Thus, when the electronic device switches from the first form to the second form, the hidden display screen corresponding to the B-side display screen is driven by a motor to roll and unfold a first length, and the unfolded first length of the hidden display screen is used as part of the B-side display screen, thereby realizing the rolling and unfolding of the B-side display screen to the first length.

[0058] In this way, the first length of the B-side display screen when it is rolled out forms a protrusion of the first body relative to the second body, thereby using the protrusion as a target handle position so that the user can switch the electronic device from the closed state to the open state by means of the target handle position.

[0059] In the embodiments provided in this application, controlling the B-side display screen to scroll and unfold a first length to form a target handle position can improve the user's convenience in opening electronic devices while maintaining the user's original operating habits.

[0060] In some embodiments, the first body of the electronic device has both an A-side display screen and a B-side display screen, and the A-side display screen and the B-side display screen are the same flexible continuous display screen. That is, the portion of the continuous display screen arranged on the A-side of the first body is the A-side display screen, and the portion arranged on the B-side of the first body is the B-side display screen; at the same time, the continuous display screen has a corresponding hidden display screen.

[0061] In some embodiments, the hidden display screen corresponding to the continuous display screen is a continuation of the A-side display screen and is hidden within the housing of the first body. Thus, when the electronic device switches from a first state to a second state, the continuous display screen is driven by a motor to roll and unfold by a first length, causing the hidden display screen corresponding to the continuous display screen to gradually become the A-side display screen. Simultaneously, a portion of the A-side display screen gradually rolls to the B-side, becoming the B-side display screen, so that both the A-side and B-side display screens unfold by the first length, thereby forming a target handle position, facilitating the user to switch the electronic device from a closed state to an open state according to their original operating habits.

[0062] In some embodiments, the hidden display screen corresponding to the continuous display screen is a continuation of the B-side display screen and is hidden within the housing of the first body. Thus, when the electronic device switches from a first state to a second state, the continuous display screen is driven by a motor to roll and unfold by a first length, causing the hidden display screen corresponding to the continuous display screen to gradually become the B-side display screen. Simultaneously, a portion of the B-side display screen gradually rolls to the A-side, becoming the A-side display screen. This achieves the goal of both the A-side and B-side display screens unfolding by the first length to form a target handle position, facilitating the user's switching of the electronic device from a closed state to an open state according to their existing operating habits.

[0063] In some embodiments, after performing steps S11 and S12 as described above, the device control method further includes the following steps: In response to the electronic device remaining in a closed state and the duration of the second state being greater than a first duration threshold, the electronic device is controlled to switch from the second state to the first state.

[0064] Here, after the electronic device switches from the first form to the second form, if the electronic device remains in the closed state and the duration in the second form is greater than the first duration threshold, it is considered that the user has not further operated the electronic device. Therefore, the electronic device is controlled to switch from the second form to the first form to eliminate the target handle position and restore the electronic device to the normal form in the closed state.

[0065] For example, during the startup of the target service, the detected target operation might be a user's accidental action (e.g., the user unintentionally long-pressing or swiping the electronic device), rather than the triggering operation the user intended to use to open the electronic device. Therefore, it is necessary to switch the electronic device from the second form to the first form. As another example, if an interruption occurs after the user intends to switch the electronic device to the open state and perform the target operation, preventing the user from immediately switching the device to the open state, then it is necessary to switch the electronic device from the second form to the first form.

[0066] In some implementations, a first control command may be generated by the target service to control the electronic device to switch from a second form to a first form.

[0067] In some implementations, the first duration threshold can be any preset duration threshold, such as 15 seconds, 30 seconds, or 40 seconds. It is understood that the longer the first duration threshold, the lower the sensitivity of the electronic device to user input; conversely, the higher the sensitivity. Thus, in some implementations, the first duration threshold can be adjusted according to different usage scenarios. For example, in a relatively stable office environment, the first duration threshold can be set to 30 seconds; while in mobile scenarios, to improve the response speed and sensitivity of the electronic device, the first duration threshold can be set to 15 seconds. Furthermore, the first duration threshold can also be customized by the user to meet their individual needs.

[0068] In the embodiments provided in this application, by setting a duration threshold for the second form in the closed state, on the one hand, intelligent judgment and response to user behavior are realized, improving the automation level and user-friendliness of electronic devices; on the other hand, it can avoid the electronic device being in a non-standard state (i.e., the second form) for a long time due to accidental touch or interruption.

[0069] In some embodiments, a target operation characterizes a first operation performed by a user in a designated area of ​​the electronic device; the first operation characterizes a tapping operation.

[0070] The designated area of ​​an electronic device can refer to any operable area of ​​the electronic device when the cover is closed. For example, the designated area can be surface A of the first body of the electronic device, a side of the first body, or a side of the second body.

[0071] The first operation refers to a knocking operation targeting a specified area. In some implementations, this knocking operation can be a single click or a double click (knock-knock) targeting a specified area.

[0072] In some implementations, a user's tapping action can be detected using a sensor located within the electronic device. For example, the tapping action can be detected based on sensor data collected by a vibration sensor or a gravity sensor (G-sensor). In some implementations, the sensor can be located within the first body of the electronic device.

[0073] For example, a gravity sensor can collect acceleration data related to electronic devices. During a tapping action, the acceleration value will show a momentary peak. Thus, when using a gravity sensor to detect a user's double-tap action, pattern recognition algorithms can be used based on the detected acceleration changes to determine whether a double-tap action has occurred. Figure 5As shown, in the coordinate system established based on the acceleration data collected by the gravity sensor, the acceleration values ​​corresponding to time t1 and time t2 both exceed the acceleration threshold, and the time difference between time t1 and time t2 is within a specific time range (e.g., within the range of 200ms to 500ms). Based on this, it can be determined that a double-click operation performed by the user has been detected.

[0074] In some implementations, the target operation characterizes a second operation performed by a user in a specified manner; the second operation includes semantic instruction information that controls the electronic device to switch from the first mode to the second mode.

[0075] Here, the second operation can refer to the user's voice or gesture operation to instruct the electronic device to switch from the first mode to the second mode.

[0076] For example, during the interaction between a user and an electronic device via its A-side display screen, the operating system within the device is running. Therefore, the user's voice information can be captured using the device's microphone, and the semantics of this voice information can be recognized by the voice processing program running within the operating system. When the voice information includes a semantic command to control the electronic device to switch from a first mode to a second mode, the user's input of that voice information is identified as the target operation. For example, if the user's input voice information includes phrases such as "open the handle," "open the cover," or "open the device," the input of that voice information is identified as the target operation.

[0077] Similarly, the user's gestures can be captured using the electronic device's camera, and the gestures can be recognized using a video processing program running in the operating system. When the gesture includes a semantic command to control the electronic device to switch from a first mode to a second mode, the user's input of the gesture is identified as the target operation.

[0078] In the embodiments provided in this application, by providing multiple implementation methods for the target operation, the flexibility of human-computer interaction of the device can be improved, the needs of different user habits and usage environments can be met, thereby improving the ease of use of the device and user satisfaction.

[0079] In some embodiments, after performing steps S11 and S12 as described above, the device control method further includes the following steps: After the electronic device switches from the closed state to the open state, the electronic device is controlled to switch from the second state to the first state.

[0080] Here, after the electronic device forms a target handle position and the user uses the target handle position to switch the electronic device from a closed state to an open state, the electronic device is controlled to switch from a second form to a first form. That is, the electronic device is controlled to retract the target handle position through a form change so that the user can use the electronic device in its normal form (i.e., the first form).

[0081] In some implementations, after switching to the open state, a second control command can be generated by the target service to control the electronic device to switch from the second form to the first form.

[0082] In the embodiments provided in this application, the electronic device is intelligently adjusted to its normal form after the cover is opened, which not only improves the aesthetics and portability of the electronic device, but also optimizes the user's operating experience.

[0083] like Figure 6 As shown, in some embodiments, after the electronic device switches from the closed state to the open state, controlling the electronic device to switch from the second form to the first form can be implemented as the following steps S61 to S62: Step S61: After the electronic device switches from the closed state to the open state, the opening angle of the electronic device is obtained; Step S62: If the opening angle is greater than the angle threshold, control the electronic device to switch from the second mode to the first mode.

[0084] The opening angle refers to the unfolding angle of the first body of the electronic device relative to the second body.

[0085] Here, after the user switches the electronic device from a closed state to an open state, the opening angle of the electronic device is further obtained to determine whether it is in a valid open state. A valid open state refers to the state where the user can see the open display screen (B-side) on the first body of the electronic device. In some implementations, angle sensors such as magnetic angle sensors, rotary encoders, and proximity sensors can be used to detect the opening angle of the laptop computer.

[0086] Angle threshold refers to the opening angle threshold used to determine whether an electronic device is in a valid open state. In some implementations, this angle threshold can be any angle that allows the user to interact with the electronic device through the B-side display screen, such as 80 degrees, 90 degrees, etc.

[0087] In this way, when the opening angle is greater than the angle threshold, the target service is used to switch the electronic device from the second form to the first form to eliminate the target handle position and restore the electronic device to the normal use form.

[0088] In the embodiments provided in this application, by introducing an opening angle detection mechanism and setting a reasonable angle threshold, the electronic device can be controlled to switch from the second form to the first form more intelligently, thereby avoiding switching the device form before the user opens the electronic device to a position where the B-side display can be used normally, thus improving the stability of device control.

[0089] In some implementations, when the opening angle is greater than an angle threshold, controlling the electronic device to switch from the second form to the first form, i.e., the above step S62, can be implemented as the following step S621: Step S621: When the opening angle is greater than the angle threshold and the duration at the opening angle is greater than the second duration threshold, control the electronic device to switch from the second mode to the first mode.

[0090] The second duration threshold refers to the duration threshold used to determine that the electronic device is currently in a stable open state. In some implementations, this second duration threshold can be any duration, such as 10s, 20s, or 30s. It is evident that the shorter the second duration threshold, the higher the control sensitivity of the electronic device; conversely, the lower the sensitivity.

[0091] Thus, if it is determined that the opening angle of the electronic device is greater than the angle threshold, it is further determined whether the duration of the electronic device at the opening angle is greater than the second duration threshold, so as to determine whether the electronic device is currently in a stable and effective open state.

[0092] In the embodiments provided in this application, by setting dual judgment conditions including an angle threshold and a second duration threshold, the accuracy of recognizing user action intentions can be improved, and device form switching caused by short-term actions can be avoided. This can reduce unnecessary mechanical operations and energy consumption, thereby improving the overall user experience and device lifespan.

[0093] In some embodiments, a B-side display screen is provided on the B-side of the first body of the electronic device.

[0094] Here, the implementation of the B-side display screen is the same as that described in conjunction with steps S121 and S122 above.

[0095] Thus, as Figure 7 As shown, in some embodiments, after controlling the electronic device to switch from the second form to the first form, the method further includes steps S71 to S72: Step S71: Close the target service; Step S72: In response to detecting the target operation, control the B-side display screen to scroll and unfold to a second length, the second length being different from the first length; the first length characterizes the unfolded length of the first body relative to the second body of the electronic device in the second configuration.

[0096] Here, closing the target service means closing the service that forms the target latch position in response to the target operation. In some implementations, the target service is automatically closed after the electronic device switches from a closed state to an open state; or, the target service is automatically closed after the electronic device switches from a closed state to an open state and remains in the open state for a specified period of time.

[0097] After the target service is closed, if a target operation is detected, the B-side display screen is controlled to scroll and expand to a second length; wherein the second length is different from the first length; the first length represents the expanded length of the first body of the electronic device relative to the second body of the electronic device in the second configuration. In some embodiments, the specific implementation of controlling the first body of the electronic device to expand to the first length can be referred to the descriptions in the above embodiments, and will not be repeated here.

[0098] In some implementations, the second length is greater than the first length. This increases the display area of ​​the B-side display after the second length is extended, allowing for more information to be displayed to the user and optimizing the user experience.

[0099] As can be seen, in the embodiments provided in this application, the control functions triggered by the target operation differ when the target service is in a closed state and a started state. This expands the functional scope corresponding to the target operation; furthermore, if the target operation is a user's habitual operation, expanding the functional scope corresponding to the target operation makes device control more in line with the user's operating habits.

[0100] Below, in conjunction with Figure 8 This application will now describe one embodiment. In this embodiment, the electronic device is a laptop computer, the target operation is a double-click operation on the laptop's lid, and the control of the electronic device is achieved using an MCU in conjunction with a target application running in the operating system. Figure 8 As shown, this embodiment includes the following steps S81 to S89: Step S81: Receive the status information of the laptop computer; then, execute step S82. Here, the MCU in the laptop receives the laptop's status information from the laptop's embedded controller (EC).

[0101] Step S82: Determine whether the lid is closed; if yes, proceed to step S83; if no, proceed to step S81. Here, the MCU determines whether the electronic device is currently in a closed state based on the received status information of the laptop.

[0102] Step S83: Start the target service; then, proceed to step S84. Step S84: Obtain acceleration data collected by the gravity sensor; then, proceed to step S85. Here, the MCU receives acceleration data collected by the gravity sensor.

[0103] Step S85: Determine if a double-click operation has occurred; if yes, proceed to step S86; if no, proceed to step S84. Here, the MCU determines whether the user is performing a double-click operation on the laptop based on the acceleration data.

[0104] Step S86: Control the B-side display screen to scroll and unfold to a first length to form the target handle position; then, execute step S87. Here, the MCU sends a third control command to the drive motor, so that the drive motor scrolls and unfolds the B-side display screen by a first length based on the control command to form the target handle position.

[0105] Step S87: Send information about forming the target handhold position to the target application; then, execute steps S88 and S89. In some implementations, the MCU sends the information for forming the target handgrip position to the EC, which then sends it to the target application. Here, the target application runs at the operating system layer and is the upper-layer application that provides services to the target.

[0106] Step S88: Obtain the opening angle information and send the opening angle information to the target application; then, execute steps S810 and S813. In this way, the MCU receives the opening angle information from the angle sensor and sends the opening angle information to the target application.

[0107] Step S89: Receive information about forming the target handle position from the MCU; then, execute step S810. Here, the target application running on the operating system side receives information from the MCU to form the target buckle position.

[0108] Step S810: Receive the opening angle information from the MCU; then, execute step S811. Here, the target application receives the opening angle information.

[0109] In some implementations, after the target application receives the information to form the handle position from the MCU, if it does not receive the opening angle information after a first time threshold (e.g., 15s), it sends a rolling retraction command to the MCU, that is, it executes the following step S812.

[0110] Step S811: Determine whether the opening angle is greater than the angle threshold; if yes, proceed to step S812; if no, proceed to step S810. Here, the target application determines whether the current opening angle meets the requirements for normal use of the B-side display screen based on the opening angle returned by the MCU and the preset angle threshold (e.g., 90 degrees).

[0111] Step S812: Send a rollback command to the MCU; then, execute step S813. Here, when the opening angle is greater than the angle threshold, the target application generates a fourth control command to retract the B-side display screen and sends the fourth control command to the MCU.

[0112] Step S813: Control the B-side display screen to scroll back to eliminate the target handhold position.

[0113] Here, after the MCU receives the fourth control instruction from the target application, the MCU sends the fifth control instruction to the drive motor so that the drive motor can retract the B-side display screen based on the fifth control instruction.

[0114] In some implementations, after performing step S813, the MCU sends information about eliminating the target handgrip position to the EC.

[0115] Based on the foregoing embodiments, this application provides an electronic device. For example... Figure 9 As shown, the electronic device 900 includes a body, a memory 910, and a processor 920; The memory 910 stores a computer program that can run on the processor 920; When the processor 920 executes the computer program, it is configured to: initiate a target service in response to the electronic device being in a closed state; and control the electronic device to switch from a first state to a second state in response to detecting a target operation corresponding to the target service, so as to form a target handle position; wherein the target handle position is a force contact position for the electronic device to switch from the closed state to the open state. The body is used to form a target handhold position in response to the implementation of the step.

[0116] In some embodiments, the processor 920 is further configured to control the electronic device to switch from the second form to the first form after the electronic device switches from the closed state to the open state.

[0117] In some embodiments, the processor 920 is further configured to control the electronic device to switch from the second mode to the first mode in response to the electronic device maintaining a closed state and the duration of the second mode being greater than a first duration threshold.

[0118] In some implementations, the body includes a first body and a second body; The processor 920 is configured to control the first body to extend a first length at the end of the first body away from the connection end between the first body and the second body, so that the electronic device switches from the first form to the second form.

[0119] In some embodiments, the processor 920 is configured to perform at least one of the following: Control the A-side display screen to scroll and unfold to a first length; the A-side display screen is a display screen installed on the A-side of the first body of the electronic device; Control the B-side display screen to scroll and unfold to a first length; the B-side display screen is a display screen installed on the B side of the first body of the electronic device.

[0120] In some embodiments, a B-side display screen is provided on the B-side of the first body of the main body; After controlling the electronic device to switch from the second form to the first form, the processor 920 is further configured to: shut down the target service; and in response to detecting the target operation, control the B-side display screen to scroll and expand to a second length, the second length being different from the first length; the first length representing the expanded length of the first body relative to the second body of the electronic device in the second form.

[0121] In some embodiments, the processor 920 is configured to: after the electronic device switches from the closed state to the open state, acquire the opening angle of the electronic device; and if the opening angle is greater than an angle threshold, control the electronic device to switch from the second state to the first state.

[0122] In some embodiments, the processor 920 is configured to control the electronic device to switch from the second mode to the first mode when the opening angle is greater than an angle threshold and the duration at the opening angle is greater than a second duration threshold.

[0123] In some implementations, the target operation represents at least one of the following: A first operation performed by a user in a designated area of ​​the electronic device; the first operation representing a tapping operation; or, a second operation performed by the user in a designated manner; the second operation including semantic instruction information controlling the electronic device to switch from the first mode to the second mode.

[0124] It should be noted that the descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. In some embodiments, the functions or components of the device provided in this application can be used to perform the methods described in the above method embodiments. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0125] It should be noted that, in the embodiments of this application, if the above-described device control method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the related technology, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware, software, or firmware, or any combination of hardware, software, and firmware.

[0126] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements some or all of the steps in the above-described method. The computer-readable storage medium can be transient or non-transient.

[0127] This application provides a computer program including computer-readable code, wherein when the computer-readable code is run in a computer device, a processor in the computer device performs some or all of the steps in the above-described method.

[0128] This application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, it implements some or all of the steps in the above-described method. This computer program product can be implemented specifically through hardware, software, or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium; in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc.

[0129] It should be noted that the descriptions of the various embodiments above tend to emphasize the differences between them, while their similarities or commonalities can be referred to interchangeably. The descriptions of the above embodiments of the device, storage medium, computer program, and computer program product are similar to the descriptions of the above method embodiments and have similar beneficial effects. For technical details not disclosed in the embodiments of the device, storage medium, computer program, and computer program product of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0130] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above steps / processes do not imply a sequential order of execution; the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above embodiments of this application are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0131] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0132] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0133] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0134] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0135] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0136] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, or the part that contributes to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, magnetic disks, or optical disks.

[0137] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.

Claims

1. A device control method, comprising: The target service is initiated in response to the electronic device being closed. In response to detecting a target operation corresponding to the target service, the electronic device is controlled to switch from a first mode to a second mode to form a target grip position; The target handle position is the contact position where the electronic device switches from the closed state to the open state.

2. The method according to claim 1, further comprising: After the electronic device switches from the closed state to the open state, the electronic device is controlled to switch from the second state to the first state.

3. The method according to claim 1, further comprising: In response to the electronic device remaining in a closed state and the duration of the second state being greater than a first duration threshold, the electronic device is controlled to switch from the second state to the first state.

4. The method according to claim 1, wherein the electronic device comprises a first body and a second body; The control of the electronic device to switch from the first mode to the second mode includes: At the end of the first body away from the connection end between the first body and the second body, the first body is controlled to extend a first length so that the electronic device switches from the first form to the second form.

5. The method according to any one of claims 1 to 4, wherein controlling the electronic device to switch from the first form to the second form comprises at least one of the following: Control the A-side display screen to scroll and unfold to a first length; the A-side display screen is a display screen installed on the A-side of the first body of the electronic device; Control the B-side display screen to scroll and unfold to a first length; the B-side display screen is a display screen installed on the B side of the first body of the electronic device.

6. The method according to claim 2, wherein a B-side display screen is provided on the B-side of the first body of the electronic device; After the electronic device is switched from the second form to the first form, the method further includes: Shut down the target service; In response to detecting the target operation, the B-side display screen is controlled to scroll and unfold to a second length, which is different from the first length; the first length represents the unfolded length of the first body relative to the second body of the electronic device in the second configuration.

7. The method according to claim 2, wherein after the electronic device switches from the closed state to the open state, controlling the electronic device to switch from the second state to the first state comprises: After the electronic device switches from the closed state to the open state, the opening angle of the electronic device is obtained; When the opening angle is greater than the angle threshold, the electronic device is controlled to switch from the second mode to the first mode.

8. The method according to claim 7, wherein controlling the electronic device to switch from the second form to the first form when the opening angle is greater than an angle threshold comprises: When the opening angle is greater than an angle threshold and the duration at the opening angle is greater than a second duration threshold, the electronic device is controlled to switch from the second mode to the first mode.

9. The method according to claim 1, wherein the target operation characterizes at least one of the following: A first operation performed by the user in a designated area of ​​the electronic device; the first operation represents a tapping operation; or, A second operation performed by the user in a specified manner; the second operation includes semantic instruction information controlling the electronic device to switch from the first mode to the second mode.

10. An electronic device, comprising a body, a memory, and a processor; in, The memory stores a computer program that can run on a processor, and when the processor executes the program, it implements the steps of the method of claim 1; The body is used to form a target handhold position in response to the implementation of the step.