Screen state control method and apparatus, and storage medium
The present application provides a screen state control method and apparatus, and a storage medium. The method includes: detecting a coupling capacitance generated when a folding event occurs, determining whether the coupling capacitance meets a first preset condition; and controlling the screen state based on the coupling capacitance meeting the first preset condition.
1 . A screen state control method, comprising:
detecting a coupling capacitance generated when a folding event occurs;
determining whether the coupling capacitance meets a first preset condition; and
controlling a screen state in response to the coupling capacitance meeting the first preset condition.
2 . The method of claim 1 , wherein the determining whether the coupling capacitance meets the first preset condition comprises:
detecting a capacitance change value of a capacitance sensing region corresponding to the coupling capacitance to determine whether the capacitance change value is greater than a preset threshold value.
3 . The method of claim 2 , wherein the detecting the capacitance change value of the capacitance sensing region corresponding to the coupling capacitance comprises:
detecting a first data list of the capacitance sensing region at a first designated moment; and
calculating the capacitance change value according to the first data list and a pre-stored basic data list to determine whether the capacitance change value is greater than the preset threshold value.
4 . The method of claim 2 , wherein the detecting the capacitance change value of a capacitance sensing region corresponding to the coupling capacitance comprises:
detecting a first data list of the capacitance sensing region at a first designated moment, wherein the first designated moment is a moment after the folding event, and the first data list records a first capacitance value of each of capacitance sensors in the capacitance sensing region after the folding event; and
calculating the capacitance change value of the capacitance sensing region according to the first data list and a pre-stored basic data list to determine whether the capacitance change value is greater than the preset threshold value, wherein the basic data list records a second capacitance value corresponding to each of the capacitance sensors in the capacitance sensing region before the folding event.
5 . The method of claim 2 , wherein the determining whether the coupling capacitance meets the first preset condition comprises:
detecting whether a capacitance change rule of the capacitance sensing region corresponding to the coupling capacitance meets a preset rule.
6 . The method of claim 5 , wherein the detecting whether the capacitance change rule of the capacitance sensing region corresponding to the coupling capacitance meets the preset rule comprises:
detecting a first data list of the capacitance sensing region at a first designated moment; and
calculating the capacitance change value of the capacitance sensing region according to the first data list and a pre-stored basic data list to obtain the capacitance change rule of the capacitance sensing region and determining whether the capacitance change rule meets the preset rule.
7 . The method of claim 5 , wherein the detecting whether the capacitance change rule of the capacitance sensing region corresponding to the coupling capacitance meets the preset rule comprises:
detecting a first data list of the capacitance sensing region at a first designated moment, wherein the first designated moment is a moment after the folding event, and the first data list records a first capacitance value of each of capacitance sensors in the capacitance sensing region after the folding event; and
calculating the capacitance change value of the capacitance sensing region according to the first data list and a pre-stored basic data list to obtain the capacitance change rule of the capacitance sensing region and determine whether the capacitance change value meets the preset rule.
8 . The method of claim 2 , wherein the determining whether the coupling capacitance meets the first preset condition comprises:
detecting whether a capacitance change area of the capacitance sensing region corresponding to the coupling capacitance is greater than a preset area threshold value.
9 . The method of claim 8 , wherein the detecting whether the capacitance change area of the capacitance sensing region corresponding to the coupling capacitance is greater than the preset area threshold value comprises:
determining a number of capacitance sensors in the capacitance sensing region and a size of each of the capacitance sensors to determine the capacitance change area of the capacitance sensing region; and
detecting whether the capacitance change area of the capacitance sensor is greater than the preset area threshold value.
10 . The method of claim 8 , wherein the detecting whether the capacitance change area of the capacitance sensing region corresponding to the coupling capacitance is greater than the preset area threshold value comprises:
detecting an arrangement number of the capacitance sensing region or coordinates of the capacitance sensing region in a preset two-dimensional coordinate system;
determining a number of capacitance sensors in the capacitance sensing region based on the arrangement number or the number of the coordinates;
determine the capacitance change area of the capacitance sensing region based on the number of capacitance sensors and a size of each of the capacitance sensors; and
detecting whether the capacitance change area is greater than the preset area threshold value.
11 . The method of claim 1 , further comprising:
monitoring data acquired by a first sensor;
determining whether the acquired data meets a second preset condition; and
in response to the acquired data meeting the second preset condition, determining that the folding event occurs.
12 . The method of claim 1 , further comprising:
monitoring data acquired by a first sensor;
calculating an angle change value of a capacitance sensing region on which the first sensor is disposed from the acquired data;
determining whether the angle change value is within a preset angle range; and
in response to the angle change value being within the preset angle range, determining that the folding event occurs.
13 . The method of claim 1 , further comprising, after determining whether the coupling capacitance meets the first preset condition:
in response to the coupling capacitance meeting the first preset condition, determining that a screen is in a folding state, and controlling the screen to be displayed in a first display state; and
in response to the coupling capacitance not meeting the first preset condition, determining that a screen is in an unfolding state, and controlling the screen to be displayed in a second display state.
14 . The method of claim 1 , wherein the method is performed by a terminal having a screen divided into a first capacitance sensing region and a second capacitance sensing region and comprises:
generating a coupling capacitance by interacting the first capacitance sensing region and the second capacitance sensing region when the folding event occurs;
detecting the coupling capacitance generated when the folding event occurs;
determining whether the coupling capacitance meets the first preset condition; and
controlling the screen state based on the coupling capacitance meeting the first preset condition.
15 . The method of claim 14 , wherein further comprising:
adjusting a magnitude of a voltage applied to a driving line of at least one of the first capacitance sensing region and the second capacitance sensing region; and
adjusting a waveform of the voltage applied to the driving line of at least one of the first capacitance sensing region and the second capacitance sensing region.
16 . A non-transitory computer readable storage medium storing a computer program which, when executed by a computer, causes the computer to perform following operations:
detecting a coupling capacitance generated when a folding event occurs;
detecting a capacitance change value of a capacitance sensing region corresponding to the coupling capacitance to determine whether the capacitance change value is greater than a preset threshold value; and
controlling a screen state based on the capacitance change value being greater than the preset threshold value.
17 . The non-transitory computer readable storage medium of claim 16 , wherein the detecting the capacitance change value comprises:
detecting a first data list of the capacitance sensing region at a first designated moment, wherein the first designated moment is a moment after the folding event, and the first data list records a first capacitance value of each of capacitance sensors in the capacitance sensing region after the folding event; and
calculating the capacitance change value of the capacitance sensing region according to the first data list and a pre-stored basic data list to determine whether the capacitance change value is greater than the preset threshold value, wherein the basic data list records a second capacitance value corresponding to each of the capacitance sensors in the capacitance sensing region before the folding event.
18 . The non-transitory computer readable storage medium of claim 16 , wherein the operations further comprise:
detecting a coupling capacitance generated when the folding event occurs;
detecting a capacitance change rule of a capacitance sensing region corresponding to the coupling capacitance to determine whether the capacitance change rule meets a preset rule; and
controlling the screen state based on the capacitance change rule meeting the preset rule.
19 . The non-transitory computer readable storage medium of claim 16 , wherein the operations further comprise:
detecting a coupling capacitance generated when the folding event occurs;
detecting a capacitance change area of a capacitance sensing region corresponding to the coupling capacitance to determine whether the capacitance change area is greater than a preset area threshold value; and
controlling the screen state based on the capacitance change area being greater than the preset area threshold value.
20 . A screen state control apparatus, comprising:
a detection circuit for detecting a coupling capacitance generated when a folding event occurs;
a determination circuit for determining whether the coupling capacitance meets a first preset condition; and
a control circuit for controlling the screen state based on the coupling capacitance meeting the first preset condition.