Opening / closing detection method for laptop, and laptop
By dividing the touchscreen of a laptop into opening and closing detection areas and using conductive grounding components to form a capacitor with the touch electrodes, the high cost of detecting opening and closing angles in existing technologies is solved, achieving the effects of reducing costs and increasing internal space.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- FOCALTECH ELECTRONICS (SHENZHEN) CO LTD
- Filing Date
- 2025-11-26
- Publication Date
- 2026-07-30
AI Technical Summary
Existing laptops detect opening and closing angles by setting up detection elements, which leads to high manufacturing costs and increases the difficulty of internal component layout.
The opening and closing detection area is divided in the touch screen of the laptop. A conductive grounding component and the touch electrode form a capacitor. The opening and closing angle is detected by the capacitance, eliminating the need for a dedicated detection component.
This reduces the manufacturing cost of laptops, increases the available internal space, and facilitates the layout of other computer components.
Smart Images

Figure CN2025137946_30072026_PF_FP_ABST
Abstract
Description
Methods for detecting the opening and closing of laptops and laptops
[0001] This application claims priority to Chinese Patent Application No. 202510099539.5, filed on January 21, 2025, entitled "Method for Detecting the Opening and Closing of a Laptop Computer and a Laptop Computer", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of touch technology, specifically to a method for detecting the opening and closing of a laptop computer and the laptop computer itself. Background Technology
[0003] In existing laptops, the opening and closing angle is typically detected by setting up detection elements. For example, Hall effect sensors are placed in the screen and base to detect changes in magnetic field strength during opening and closing operations, and the corresponding opening and closing angle is obtained based on the changes in magnetic field strength detected by the Hall effect sensors. Because additional detection elements are required to detect the opening and closing angle, the manufacturing cost of laptops is relatively high, and space needs to be reserved inside the laptop to house the detection elements, which in turn increases the difficulty of layout for other components in the laptop. Summary of the Invention
[0004] In view of this, this application provides a method for detecting the opening and closing of a laptop computer and a laptop computer in general, which eliminates the need for a dedicated component for detecting the opening and closing angle, thereby reducing the manufacturing cost of the laptop computer and increasing the usable space inside the laptop computer, facilitating the layout of other computer components. The technical solution of this application is as follows:
[0005] The first aspect of this application provides a method for detecting the opening and closing of a laptop computer. The laptop computer includes a conductive grounding component and a touch screen. The conductive grounding component is disposed on the base of the laptop computer. The method for detecting the opening and closing includes: dividing at least one opening and closing detection area from the touch screen and driving touch electrodes within the opening and closing detection area, wherein the opening and closing detection area includes at least one touch electrode; acquiring the capacitive sensing amount between each touch electrode in the opening and closing detection area and the conductive grounding component; and obtaining the opening and closing angle of the laptop computer based on the capacitive sensing amount.
[0006] In one embodiment of this application, the detection area of the opening / closing detection area is less than or equal to the area of the touch screen.
[0007] In one embodiment of this application, driving the touch electrode within the opening / closing detection area includes: driving one of the touch electrodes within the opening / closing detection area; obtaining the opening / closing angle of the laptop computer based on the capacitance sensing value includes: obtaining the opening / closing angle based on the detection area, the hinge distance, and the capacitance sensing value, wherein the hinge distance is the vertical distance between the center point of the opening / closing detection area and the hinge of the laptop computer.
[0008] In one embodiment of this application, obtaining the opening / closing angle based on the detection area, the pivot distance, and the capacitance sensing value includes: summing the capacitance sensing values of all the touch electrodes in the opening / closing detection area to obtain the total capacitance sensing value of the opening / closing detection area; and obtaining the opening / closing angle based on the total capacitance sensing value, the detection area, the pivot distance, and a preset opening / closing angle algorithm.
[0009] In one embodiment of this application, the formula for the opening / closing angle algorithm includes:
[0010] In the formula, θ is the opening and closing angle. Let L be the capacitance change per unit angle of the opening / closing detection area, L be the distance of the rotating shaft, C be the total capacitance induction, P be the detection area, ε be the dielectric constant, and k be the electrostatic constant.
[0011] In one embodiment of this application, dividing at least one opening / closing detection area from the touch screen includes: n opening / closing detection areas uniformly divided along the vertical direction of the laptop's hinge, where n is an integer greater than or equal to 2, and each opening / closing detection area has the same shape and detection area.
[0012] In one embodiment of this application, driving the touch electrodes within the opening / closing detection area includes: driving n touch electrodes within the opening / closing detection area; obtaining the opening / closing angle of the laptop computer based on the capacitance sensing value includes: obtaining the total capacitance sensing value of each opening / closing detection area based on the capacitance sensing value; obtaining the slope of the capacitance change of the touch screen along the vertical direction of the rotation axis based on the n total capacitance sensing values; and obtaining the opening / closing angle based on the capacitance change slope and a preset compensation coefficient.
[0013] In one embodiment of this application, obtaining the total capacitive sensing value of each of the opening / closing detection areas based on the capacitive sensing value includes: summing the capacitive sensing values of all the touch electrodes in the opening / closing detection areas to obtain the total capacitive sensing value of the opening / closing detection areas.
[0014] A second aspect of this application provides a laptop computer, including a conductive grounding component, a touch screen, and a processor. The conductive grounding component is disposed on the base of the laptop computer, and the processor is connected to the touch screen. The processor is used to execute the opening and closing detection method.
[0015] In one embodiment of this application, the conductive grounding component includes a keyboard support iron component or a computer motherboard copper ground.
[0016] It is understood that in the opening and closing detection method of the laptop computer of this application, at least one opening and closing detection area is divided in the touch screen of the laptop computer. When performing opening and closing detection, the touch electrodes in the opening and closing detection area are driven so that the touch electrodes in the opening and closing detection area and the conductive grounding component in the base of the laptop computer form a capacitor. By obtaining the capacitance induction between each touch electrode in the opening and closing detection area and the conductive grounding component, and then obtaining the corresponding opening and closing angle based on the capacitance induction, the laptop computer can eliminate the need for other components for detecting the opening and closing angle, thereby reducing the manufacturing cost of the laptop computer and increasing the usable space inside the laptop computer, which facilitates the layout of other computer components. Attached Figure Description
[0017] Figure 1 is a schematic block diagram of a laptop computer provided in an embodiment of this application.
[0018] Figure 2 is a schematic diagram of the structure of a laptop stand provided in an embodiment of this application.
[0019] Figure 3 is a flowchart illustrating a method for detecting the opening and closing of a laptop computer according to an embodiment of this application.
[0020] Figure 4 is a schematic block diagram of a touch screen and touch electrodes provided in an embodiment of this application.
[0021] Figure 5 is a schematic block diagram of an opening and closing detection area provided in an embodiment of this application.
[0022] Figure 6 is a schematic block diagram of the second type of opening and closing detection area provided in the embodiments of this application.
[0023] Figure 7 is a flowchart illustrating another method for detecting the opening and closing of a laptop computer provided in an embodiment of this application.
[0024] Figure 8 is a flowchart illustrating a method for calculating the opening and closing angle provided in an embodiment of this application.
[0025] Figure 9 is a flowchart illustrating the third method for detecting the opening and closing of a laptop computer provided in an embodiment of this application.
[0026] Figure 10 is a schematic block diagram of the third type of opening and closing detection area provided in the embodiments of this application.
[0027] Figure 11 is a schematic block diagram of the fourth type of opening and closing detection area provided in the embodiments of this application.
[0028] Figure 12 is a schematic diagram of the opening and closing angle and the slope of the capacitance change provided in an embodiment of this application. Detailed Implementation
[0029] It should be noted that in the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone, where A and B can be singular or plural. The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and drawings of this application are used to distinguish similar objects, not to describe a specific order or sequence.
[0030] It should also be noted that the methods disclosed in the embodiments of this application or the methods shown in the flowcharts include one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchanged, and some steps can also be deleted.
[0031] In existing laptops, the opening and closing angle is typically detected by setting up detection elements. For example, Hall effect sensors are placed in the screen and base to detect changes in magnetic field strength during opening and closing operations, and the corresponding opening and closing angle is obtained based on the changes in magnetic field strength detected by the Hall effect sensors. Because additional detection elements are required to detect the opening and closing angle, the manufacturing cost of laptops is relatively high, and space needs to be reserved inside the laptop to house the detection elements, which in turn increases the difficulty of layout for other components in the laptop.
[0032] This application provides a method for detecting the opening and closing of a laptop computer and a laptop computer, which eliminates the need for a dedicated component for detecting the opening and closing angle, thereby reducing the manufacturing cost of the laptop computer and increasing the usable space inside the laptop computer, facilitating the layout of other computer components.
[0033] Please refer to Figure 1, which is a schematic block diagram of a laptop computer provided in an embodiment of this application. The laptop computer 100 includes a conductive grounding component 110 and a touch screen 120.
[0034] The conductive grounding component 110 is disposed in the base 130 of the laptop computer. The conductive grounding component 110 is a conductive and grounded device within the base 130. The base 130 also includes various components of the laptop computer 100, such as the processor, graphics card, memory, motherboard, and keyboard. The base 130 is mechanically and communicatively connected to the touchscreen 120 via a hinge, enabling the opening and closing operation between the touchscreen 120 and the base 130. The touchscreen 120 is communicatively connected to the various components in the base 130. In this embodiment, the conductive grounding component 110 includes a keyboard support iron piece and a computer motherboard copper ground. The keyboard support iron piece supports the keyboard in the base 130 and also serves as grounding, thereby forming an inductive capacitor with the touch electrodes in the touchscreen 120. The computer motherboard copper ground is disposed on the motherboard, providing a grounding terminal for the various components in the laptop computer 100 and forming an inductive capacitor with the touch electrodes in the touchscreen 120.
[0035] Please refer to Figure 2, which is a structural schematic diagram of a laptop computer stand provided in an embodiment of this application. The stand 130 includes a keyboard 131, a touchpad and cover surface 132, a keyboard support iron piece 133, a computer motherboard 134, and a base plate 135. The copper ground of the computer motherboard in the keyboard support iron piece 133 or the computer motherboard 134 can constitute the aforementioned conductive grounding piece 110.
[0036] Next, referring to Figures 1 and 2, we will introduce a method for detecting the opening and closing of a laptop computer according to an embodiment of this application. Please refer to Figure 3, which specifically includes the following steps:
[0037] Step S31: Define at least one opening / closing detection area from the touch screen and drive the touch electrode within the opening / closing detection area. The opening / closing detection area includes at least one touch electrode.
[0038] It is understood that each step of the opening / closing detection method in this application embodiment can be executed by the touch chip in the touch screen, and the obtained opening / closing angle detection result is then transmitted to the processor of the laptop computer, where the processor applies the detection result. Alternatively, each step of the opening / closing detection method can be executed by the processor of the laptop computer, and the processor applies the detection result. Alternatively, the touch chip in the touch screen and the processor of the laptop computer can jointly execute each step of the opening / closing detection method, with the processor ultimately applying the detection result. This is not limited here; this application embodiment uses the execution of the opening / closing detection method steps by the touch chip of the laptop computer as an example for detailed explanation.
[0039] In this embodiment of the application, the touch chip of the touch screen can pre-divide at least one opening and closing detection area in the touch screen. When the opening and closing detection of the laptop needs to be performed, the touch chip can drive the opening and closing detection area so that the opening and closing detection area and the conductive grounding component form an inductive capacitor.
[0040] The driving signal for the opening and closing area can be different from the touch signal when the touch screen detects touch. For example, the amplitude of the driving signal can be greater than the amplitude of the touch signal, and the duty cycle of the driving signal can be greater than the duty cycle of the touch signal, thereby increasing the capacitive induction between the opening and closing detection area and the conductive grounding component, and thus improving the accuracy of the opening and closing detection.
[0041] To avoid the aforementioned driving signals affecting the normal use of the touchscreen, the opening and closing detection area can be driven only when the laptop is opened and closed. For example, a rotation detection unit can be installed in the laptop's hinge. When the touch chip detects a user opening or closing operation through the rotation detection unit, it then drives the opening and closing detection area for more precise opening and closing detection. This saves the power required for opening and closing detection and avoids interfering with the user's normal use of the touchscreen. Alternatively, the touch chip can drive the opening and closing detection area for more precise opening and closing detection after determining that there is no touch object (finger or pen) on the touchscreen. In some embodiments, during opening and closing detection, the touch chip can select one touch electrode from multiple divided opening and closing detection areas to drive, saving detection power. Alternatively, multiple touch electrodes in multiple opening and closing detection areas can be driven to improve detection accuracy. Furthermore, the optimal number of opening and closing detection areas to drive can be found through experimentation to balance power saving and accuracy; no limitation is made here.
[0042] Figure 4 shows a schematic diagram of the structure of a touch screen for a laptop computer according to an embodiment of this application. The touch screen 120 includes uniformly arranged touch electrodes 121. X01 to Xnn represent the capacitive sensing values between each touch electrode 121 and a grounding element. The opening / closing detection area can be composed of a single piece, a portion, or a single row of touch electrodes 121 perpendicular to the hinge 140. For example, the opening / closing detection area A in Figure 4 is composed of a single row of touch electrodes 121 perpendicular to the hinge 140.
[0043] Step S32: Obtain the capacitance induction between each touch electrode and the conductive grounding component in the opening / closing detection area.
[0044] In this embodiment, the touch chip acquires the capacitance sensing value between each touch electrode and the conductive grounding component after driving the opening / closing detection area. For example, if the touch screen uses a self-capacitance sensing method, the touch screen includes multiple self-capacitance touch electrodes. During opening / closing detection, the touch chip transmits a driving signal to the self-capacitance touch electrodes in the opening / closing detection area at the first moment, causing the capacitor formed between the self-capacitance touch electrodes and the conductive grounding component in the opening / closing detection area to charge. At the second moment, the capacitance value between the self-capacitance touch electrodes and the conductive grounding component is detected, which is the aforementioned capacitance sensing value.
[0045] Alternatively, the touchscreen employs a mutual capacitance sensing method, comprising multiple driving touch electrodes and sensing touch electrodes. The driving touch electrodes are connected in series to form a transmitting channel, and the sensing touch electrodes are connected in series to form a receiving channel. The transmitting and receiving channels are orthogonal, constituting a mutual capacitance touchscreen. The driving touch electrodes are parallel to the laptop's hinge. During opening / closing detection, the touch chip transmits a driving signal to the signal channel parallel to the laptop's hinge in the opening / closing detection area and detects its self-capacitance as the aforementioned capacitance sensing value. For example, if the laptop's transmitting channel is parallel to the hinge, a driving signal is transmitted to the transmitting channel in the opening / closing detection area, and the self-capacitance sensing value of each touch electrode in the transmitting channel within the opening / closing detection area is detected, which is the aforementioned capacitance sensing value.
[0046] Step S33: Obtain the opening angle of the laptop based on the capacitance sensing value.
[0047] In this embodiment, after obtaining the capacitance sensing values of each touch electrode in the opening / closing detection area, the touch chip can obtain the opening / closing angle of the laptop computer based on these values. For example, the touch chip first sums the capacitance sensing values of each touch electrode to obtain the total capacitance sensing value of the opening / closing detection area. Then, it matches the corresponding opening / closing angle from an opening / closing angle relationship table based on the total capacitance sensing value, or it calculates the corresponding opening / closing angle by substituting the total capacitance sensing value into an opening / closing angle relationship formula. The touch chip can pre-store a relationship table or formula between the total capacitance sensing value and the opening / closing angle. This relationship table or formula can be obtained experimentally and is not limited here.
[0048] Alternatively, a corresponding opening and closing angle relationship table or formula can be pre-set for each touch electrode in the opening and closing detection area. The touch chip obtains the corresponding opening and closing angle based on the capacitance sensing amount of a single touch electrode in the opening and closing detection area and the corresponding opening and closing angle relationship table or formula, so as to obtain the opening and closing angle corresponding to each touch electrode in the opening and closing detection area. Finally, the opening and closing angle of the laptop is obtained based on the opening and closing angle corresponding to each touch electrode.
[0049] It is understood that in the opening and closing detection method of the laptop computer of this application, at least one opening and closing detection area is divided in the touch screen of the laptop computer. When performing opening and closing detection, the touch electrodes in the opening and closing detection area are driven so that the touch electrodes in the opening and closing detection area and the conductive grounding component in the base of the laptop computer form a capacitor. By obtaining the capacitance induction between each touch electrode in the opening and closing detection area and the conductive grounding component, and then obtaining the corresponding opening and closing angle based on the capacitance induction, the laptop computer can eliminate the need for other components for detecting the opening and closing angle, thereby reducing the manufacturing cost of the laptop computer and increasing the usable space inside the laptop computer, which facilitates the layout of other computer components.
[0050] Please refer to Figure 5, which is a schematic block diagram of an opening / closing detection area provided in an embodiment of this application. The detection area of the opening / closing detection area 121 is less than or equal to the area of the touchscreen 120. Figure 5 shows an example of one opening / closing detection area 121; other embodiments may include multiple opening / closing detection areas 121, which is not limited here.
[0051] When the touch screen 120 is a self-capacitance touch screen, the opening and closing detection area 121 overlaps with the conductive grounding component when the laptop is in the closed state. The area of the opening and closing detection area 121 is less than or equal to the area of the conductive grounding component, and the projection of the opening and closing detection area 121 can completely fall within the range of the conductive grounding component. This ensures that each touch electrode in the opening and closing detection area 121 can form a capacitor with the conductive grounding component when the laptop is in the closed or half-closed state, thereby improving the detection accuracy of the opening and closing angle of the laptop from closed to half-closed.
[0052] In some embodiments, when the touch screen 120 is a self-capacitance touch screen, the shape and size of the opening and closing detection area 121 are consistent with the conductive grounding element, and when the laptop is in the closed state, the projection of the opening and closing detection area 121 completely coincides with the conductive grounding element.
[0053] In some embodiments, when the touch screen 120 is a mutual capacitance touch screen, as shown in FIG6, the channels of the touch electrodes connected in series in rows can be selected as the transmission channels, and multiple consecutive rows of transmission channels can be selected to form the opening and closing detection area 121. When the laptop is in the closed state, the opening and closing detection area 121 overlaps with the conductive grounding component. The area of the opening and closing detection area 121 can be greater than or equal to the area of the conductive grounding component, and the projection of the conductive grounding component can fall completely within the opening and closing detection area 121. This ensures that the laptop always has touch electrodes facing the conductive grounding component to form a capacitor in the closed or half-closed state, thereby improving the detection accuracy of the opening and closing angle of the laptop in the closed to half-closed state.
[0054] Please refer to Figure 7, which is a flowchart illustrating another method for detecting the opening and closing of a laptop computer according to an embodiment of this application. The opening and closing detection method shown in Figure 7 is based on the opening and closing detection area shown in Figure 5 or Figure 6, and specifically includes the following steps:
[0055] Step S71: Divide at least one opening / closing detection area from the touch screen and drive the touch electrode in one of the opening / closing detection areas.
[0056] Step S72: Obtain the capacitance induction between each touch electrode and the conductive grounding component in the opening / closing detection area.
[0057] Step S73: Obtain the opening and closing angle based on the detection area, the hinge distance, and the capacitance sensing value. The hinge distance is the vertical distance between the center point of the opening and closing detection area and the hinge of the laptop.
[0058] It is understandable that the capacitance value can be calculated using the formula. It can be seen that the capacitance induction of the capacitor formed by the opening and closing detection area and the conductive grounding component is related to the relative distance d and the relative area S between the two, where ε is the dielectric constant and k is the electrostatic constant.
[0059] In this embodiment, assuming that the vertical projection of the opening / closing detection area onto the base always falls within the range of the conductive grounding component during the process of closing the cover to partially closing it, the above-mentioned capacitance value calculation formula can be transformed into: Where P is the detection area of the opening / closing detection region, L is the rotation axis distance, and θ is the opening / closing angle. Therefore, after obtaining the capacitive sensing value of each touch electrode in the opening / closing detection region, the touch chip obtains the total capacitive sensing value C of the capacitance formed between the entire opening / closing detection region and the conductive grounding component by summing them. Then, the opening / closing angle θ can be obtained based on the detection area P, the rotation axis distance L, and the capacitive sensing value C.
[0060] In some embodiments, the touch chip can sequentially drive multiple opening and closing detection areas and obtain multiple opening and closing angles θ through the above steps. Finally, the multiple opening and closing angles θ are averaged by a formula to obtain the final opening and closing angle value, thereby further improving the accuracy of the laptop's opening and closing angle detection.
[0061] Please refer to Figure 8, which is a flowchart illustrating a method for calculating the opening angle provided in an embodiment of this application. The method specifically includes the following steps:
[0062] Step S81: Sum the capacitive sensing values of all touch electrodes in the opening / closing detection area to obtain the total capacitive sensing value of the opening / closing detection area.
[0063] Step S82: Obtain the opening angle based on the total capacitance sensing value, detection area, shaft distance, and preset opening angle algorithm.
[0064] In this embodiment of the application, the formula for the above-mentioned opening and closing angle algorithm includes:
[0065] In the formula, θ is the opening angle. Let L be the capacitance change per unit angle of the opening / closing detection area, C be the total capacitance induction, P be the detection area, ε be the dielectric constant, and k be the electrostatic constant. It can be understood that the capacitance change in the embodiments of this application... It can be obtained through experiments that calculating the opening / closing angle θ can further reduce the computational load of the touch chip and improve the speed of opening / closing angle detection.
[0066] Please refer to Figure 9, which is a flowchart illustrating the third method for detecting the opening and closing of a laptop computer according to an embodiment of this application. The method specifically includes the following steps:
[0067] Step S91: Divide the laptop into n opening and closing detection areas evenly along the vertical direction of the laptop's hinge, and drive the touch electrodes within the n opening and closing detection areas, where n is an integer greater than or equal to 2. Each opening and closing detection area has the same shape and detection area.
[0068] As shown in Figure 10, the touch screen 120 is divided into n opening and closing detection areas, which are neatly arranged in the vertical direction of the rotating axis 140 (in the example n=4 in the figure, including opening and closing detection areas 121, 122, 123 and 124). The interval between each opening and closing detection area is equal, and the shape and detection area of each opening and closing detection area are the same.
[0069] It is understandable that when a laptop is opened and closed, the relative distance between the opening / closing detection area farther from the hinge 140 and the conductive grounding component changes significantly with the opening / closing angle, resulting in a larger change in capacitive sensing. Conversely, the relative distance between the opening / closing detection area closer to the hinge 140 and the conductive grounding component changes less with the opening / closing angle, resulting in a smaller change in capacitive sensing. Therefore, at a given opening / closing angle, the capacitive sensing of the opening / closing detection area farther from the hinge 140 is smaller, and the capacitive sensing of the opening / closing detection area closer to the hinge 140 is larger. Following a decreasing trend in the vertical direction from the hinge 140, the capacitive sensing of the opening / closing detection areas 121–124 follows this pattern.
[0070] In some embodiments, when the touch screen 120 is a mutual capacitance touch screen, as shown in FIG11, the channels of the touch electrodes connected in series in rows can be selected as the transmission channels, and the opening and closing detection areas are formed according to the transmission channels (in the example n=4 in the figure, including opening and closing detection areas 121, 122, 123 and 124). The number of transmission channels in each opening and closing detection area is the same, and each opening and closing detection area includes at least one transmission channel.
[0071] Step S92: Obtain the capacitance induction between each touch electrode and the conductive grounding component in the opening / closing detection area.
[0072] Step S93: Obtain the total capacitance induction of each opening / closing detection area based on the capacitance induction.
[0073] In this embodiment, the touch chip can sum the capacitive sensing values of all touch electrodes in each opening / closing detection area to obtain the total capacitive sensing value of each opening / closing detection area.
[0074] Step S94: Obtain the slope of the capacitance change of the touch screen along the vertical direction of the rotation axis based on the n total capacitance sensing values.
[0075] Figure 12 shows a schematic diagram of the slope of the capacitance change along the vertical direction of the rotation axis for opening angles A1 and A2. The vertical axis represents the capacitance sensing value C, and the horizontal axis represents the n opening / closing detection areas of the touch screen along the vertical direction of the rotation axis (n=4 in the example). Since opening angle A1 is smaller than opening angle A2, the capacitance sensing values of each of the opening / closing detection areas 121–124 under opening angle A1 are greater than those under opening angle A2. Furthermore, the slope of the capacitance change at opening angle A2 is greater than the slope of the capacitance change at opening angle A1.
[0076] In this embodiment, after obtaining the total capacitance sensing amount of each opening and closing detection area, the touch chip can obtain the slope of the capacitance change along the vertical direction of the rotation axis.
[0077] Step S95: Obtain the opening and closing angle based on the slope of the capacitance change and the preset compensation coefficient.
[0078] In this embodiment of the application, the aforementioned preset compensation coefficient can be obtained through experimentation and stored in the touch chip in advance. After the touch chip obtains the slope of the capacitance change at the current opening and closing angle, it can multiply the slope of the capacitance change with the compensation coefficient to obtain the corresponding opening and closing angle.
[0079] This application also provides a computer storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the opening and closing detection method described above.
[0080] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer storage medium or transmitted through the computer storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital versatile discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).
[0081] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks. Unless otherwise specified, the technical features of this embodiment and its implementation can be combined arbitrarily.
[0082] The embodiments described above are merely preferred embodiments of this application and are not intended to limit the scope of this application. Any modifications and improvements made by those skilled in the art to the technical solutions of this application without departing from the spirit of this application should fall within the protection scope defined by the claims of this application.
Claims
1. A method for detecting the opening and closing of a laptop computer, characterized in that, The laptop computer includes a conductive grounding component and a touchscreen. The conductive grounding component is disposed on the base of the laptop computer. The opening / closing detection method includes: At least one opening / closing detection area is defined from the touch screen, and a touch electrode within the opening / closing detection area is driven, wherein the opening / closing detection area includes at least one of the touch electrodes; The capacitive sensing values between each of the touch electrodes in the opening / closing detection area and the conductive grounding component are obtained; The opening angle of the laptop is obtained based on the capacitance sensing value.
2. The opening and closing detection method as described in claim 1, characterized in that, The detection area of the opening / closing detection area is less than or equal to the area of the touch screen.
3. The opening and closing detection method as described in claim 2, characterized in that, The touch electrode driving the opening / closing detection area includes: Drive one of the touch electrodes within the opening / closing detection area; The step of obtaining the opening angle of the laptop computer based on the capacitance sensing value includes: The opening / closing angle is obtained based on the detection area, the hinge distance, and the capacitance sensing value. The hinge distance is the vertical distance between the center point of the opening / closing detection area and the hinge of the laptop.
4. The opening and closing detection method as described in claim 3, characterized in that, The step of obtaining the opening angle based on the detection area, the shaft distance, and the capacitance sensing value includes: The total capacitive sensing value of the opening and closing detection area is obtained by summing the capacitive sensing values of all the touch electrodes in the opening and closing detection area. The opening and closing angle is obtained based on the total capacitance sensing value, the detection area, the shaft distance, and a preset opening and closing angle algorithm.
5. The opening / closing detection method as described in claim 4, characterized in that, The formula for the opening and closing angle algorithm includes: C = X × cotθ; In the formula, θ is the opening and closing angle. Let L be the capacitance change per unit angle of the opening / closing detection area, L be the distance of the rotating shaft, C be the total capacitance induction, P be the detection area, ε be the dielectric constant, and k be the electrostatic constant.
6. The opening and closing detection method as described in claim 1, characterized in that, The step of dividing at least one opening / closing detection area from the touchscreen includes: The laptop is divided into n opening and closing detection areas that are evenly divided along the vertical direction of the laptop's hinge, where n is an integer greater than or equal to 2, and each opening and closing detection area has the same shape and detection area.
7. The opening and closing detection method as described in claim 6, characterized in that, The method for driving the touch electrodes within the opening / closing detection area includes: Drive the n touch electrodes within the opening / closing detection areas; The step of obtaining the opening angle of the laptop computer based on the capacitance sensing value includes: The total capacitance sensing value of each opening / closing detection area is obtained based on the capacitance sensing value. The slope of the capacitance change of the touch screen along the vertical direction of the rotation axis is obtained based on the n total capacitance sensing values. The opening and closing angle is obtained based on the slope of the capacitance change and a preset compensation coefficient.
8. The opening and closing detection method as described in claim 7, characterized in that, The step of obtaining the total capacitance sensing value of each opening / closing detection area based on the capacitance sensing value includes: The total capacitance of the opening / closing detection area is obtained by summing the capacitance values of all the touch electrodes in the opening / closing detection area.
9. A laptop computer, characterized in that, It includes a conductive grounding component, a touch screen, and a processor. The conductive grounding component is disposed on the base of the laptop computer, and the processor is connected to the touch screen. The processor is used to execute the opening / closing detection method as described in any one of claims 1 to 8.
10. The laptop computer as claimed in claim 9, characterized in that, The conductive grounding component includes the keyboard support iron component or the copper ground of the computer motherboard.