Screen control method, device and storage medium
By detecting the touch operation time on multi-screen devices, each screen can be controlled to independently enter a screen-off state and release resources, thus solving the power consumption problem of multi-screen devices and optimizing system performance and battery life.
Patent Information
- Application Number
- CN202110281300.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-16
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2041-03-16
AI Technical Summary
On multi-screen devices, existing screen control methods cannot effectively save power consumption, resulting in unnecessary functional consumption.
By detecting the touch operation time of multiple touch screens, the duration of no touch operation detected on each touch screen is calculated. Based on the preset duration, the touch screen is controlled to enter the screen-off state, and application resources are released before the screen is turned off.
It enables flexible screen-off control for multi-screen devices, optimizes system performance, reduces unnecessary power consumption, and improves the battery life of terminal devices.
Smart Images

Figure CN112904993B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of control technology, and in particular to a screen control method, device and storage medium. Background Technology
[0002] In existing operating systems, each time a user interacts with a terminal device, the system records the time of that interaction and uses this time point in various subsequent state strategies, such as automatic screen-off. Its implementation principle is to use the user's last interaction time as the starting point, and automatically turn off the screen after a set automatic screen-off time has elapsed. Another example is the existing power-saving mechanism, which defines that after the user has turned off the screen and interacted with the system for more than 30 minutes, a series of power-saving strategies will begin. There are also other system optimization functions that are closely related to user interaction time. However, on multi-screen devices, the above control methods cannot achieve good power saving. Summary of the Invention
[0003] This disclosure provides a screen control method, apparatus, and storage medium.
[0004] According to a first aspect of the present disclosure, a screen control method is provided, comprising:
[0005] Detect touch operations applied to N touchscreens that are in the on state, and record the touch time of the touch operations, where N is a positive integer greater than or equal to 2;
[0006] Based on the touch time of the last touch operation detected on the nth touch screen, determine whether the duration for which the nth touch screen has not detected a touch operation has reached a preset duration, where n is a positive integer less than or equal to N;
[0007] If the duration for which no touch operation is detected on the nth touchscreen reaches the preset duration, then the nth touchscreen is controlled to enter a screen-off state.
[0008] Optionally, the method further includes:
[0009] Determine the application that was running on the nth touchscreen before it entered the screen-off state;
[0010] Release the resources occupied by the application; wherein the resources include: bandwidth resources, processing resources and / or storage resources.
[0011] Optionally, the method further includes:
[0012] Determine the type of application running on the nth touchscreen before the screen is turned off;
[0013] Releasing the resources occupied by the application includes:
[0014] Based on the type of application, release the resources occupied by the application.
[0015] Optionally, the type of application includes: a first type with resource download functionality;
[0016] The step of releasing resources occupied by the application according to the application type includes:
[0017] When the application is of type 1 and is in a resource download state, the storage and bandwidth resources of the application of type 1 are retained, and the processing resources of the application of type 1 are released.
[0018] Optionally, the type of application includes: a second type with computing capabilities;
[0019] The step of releasing resources occupied by the application according to the application type includes:
[0020] When the application type is the second type, release the processing resources, storage resources, and bandwidth resources of the second type of application.
[0021] Optionally, the recording of the touch operation's touch time includes:
[0022] Based on the identification information of the N touch screens, record the touch time of the touch operation of each of the N touch screens;
[0023] If the duration for which no touch operation is detected on the nth touchscreen reaches the preset duration, then controlling the nth touchscreen to enter a screen-off state includes:
[0024] If the duration for which no touch operation is detected on the nth touch screen reaches the preset duration, then a screen-off control command is generated based on the identification information of the nth touch screen.
[0025] According to the screen-off control command, the nth touch screen is controlled to enter the screen-off state.
[0026] Optionally, the method further includes:
[0027] Based on the identification information of the nth touch screen, the resources occupied by the application running on the nth touch screen before the screen is turned off are marked;
[0028] Releasing the resources occupied by the application includes:
[0029] Release the marked resources in the nth touchscreen.
[0030] Optionally, the method further includes:
[0031] If no touch operation is detected on the nth touchscreen for a duration that does not reach the preset duration, then the nth touchscreen remains in the on state.
[0032] According to a second aspect of the present disclosure, a screen control device is provided, comprising:
[0033] The detection module is used to detect touch operations on N touchscreens that are in the on state and record the touch time of the touch operations, where N is a positive integer greater than or equal to 2;
[0034] The duration determination module is used to determine whether the duration for which no touch operation has been detected on the nth touch screen has reached a preset duration based on the touch time of the last touch operation detected on the nth touch screen, where n is a positive integer less than or equal to N;
[0035] The first control module is used to control the nth touch screen to enter a screen-off state if the duration for which no touch operation is detected on the nth touch screen reaches the preset duration.
[0036] Optionally, the device further includes:
[0037] An application determination module is used to determine the nth application that was running on the touchscreen before it entered the screen-off state;
[0038] A release module is used to release the resources occupied by the application; wherein the resources include: bandwidth resources, processing resources and / or storage resources.
[0039] Optionally, the device further includes:
[0040] A type determination module is used to determine the type of the nth application running on the touchscreen before the screen is turned off;
[0041] The release module includes:
[0042] The release processing unit is used to release the resources occupied by the application according to the type of the application.
[0043] Optionally, the type of application includes: a first type with resource download functionality;
[0044] The release processing unit is further configured to:
[0045] When the application is of type 1 and is in a resource download state, the storage and bandwidth resources of the application of type 1 are retained, and the processing resources of the application of type 1 are released.
[0046] Optionally, the type of application includes: a second type with computing capabilities;
[0047] The release processing unit is further configured to:
[0048] When the application type is the second type, release the processing resources, storage resources, and bandwidth resources of the second type of application.
[0049] Optionally, the detection module includes:
[0050] The recording module is used to record the touch time of the touch operation of the N touch screens respectively according to the identification information of the N touch screens;
[0051] The first control module includes:
[0052] The instruction generation unit is used to generate a screen-off control instruction based on the identification information of the nth touch screen if the duration during which no touch operation is detected on the nth touch screen reaches the preset duration.
[0053] The screen-off control unit is used to control the nth touch screen to enter the screen-off state according to the screen-off control command.
[0054] Optionally, the device further includes:
[0055] The marking module is used to mark the resources occupied by the application running on the nth touch screen before the screen is turned off, based on the identification information of the nth touch screen.
[0056] The release module is also used for:
[0057] Release the marked resources in the nth touchscreen.
[0058] According to a third aspect of the present disclosure, a screen control device is provided, comprising:
[0059] processor;
[0060] Memory used to store processor-executable instructions;
[0061] The processor is configured to, when executing executable instructions stored in the memory, implement the method described in any of the first aspects above.
[0062] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein computer-executable instructions are stored therein, which, when executed by a processor, implement the steps of the method provided in any of the first aspects described above.
[0063] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0064] The screen control method provided in this disclosure, for a terminal device with multiple touchscreens, detects touch operations on N touchscreens that are in a lit state, records the touch time, and determines whether to control the corresponding touchscreen to enter a screen-off state based on the touch time of the last detected touch operation on each touchscreen. However, since there are multiple touchscreens, using the touch time of a single touchscreen as the user's interaction time would result in some touchscreens meeting the conditions for screen-off but failing to enter a screen-off state, causing unnecessary power consumption. Therefore, this disclosure separately detects the touch operations of the N touchscreens in a lit state and records the corresponding touch time, calculating the touch operation duration for each touchscreen separately. This achieves separation of user interaction time across multiple screens, allowing different screens to be controlled independently based on their respective touch times, optimizing the system performance of the terminal device and reducing unnecessary power consumption.
[0065] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0066] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0067] Figure 1 This is a flowchart illustrating a screen control method according to an exemplary embodiment. Figure 1 .
[0068] Figure 2 This is a flowchart illustrating a screen control method according to an exemplary embodiment. Figure 2 .
[0069] Figure 3 This is a flowchart illustrating a screen control method according to an exemplary embodiment. Figure 3 .
[0070] Figure 4 This is a schematic diagram of the structure of a screen control device according to an exemplary embodiment.
[0071] Figure 5 This is a block diagram illustrating a screen control device according to an exemplary embodiment. Detailed Implementation
[0072] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0073] This disclosure provides a screen control method. Figure 1 This is a flowchart illustrating a screen control method according to an exemplary embodiment. Figure 1 ,like Figure 1 As shown, the screen control method includes the following steps:
[0074] Step 101: Detect touch operations applied to N touchscreens that are in the on state, and record the touch time of the touch operations, where N is a positive integer greater than or equal to 2;
[0075] Step 102: Based on the touch time of the last touch operation detected on the nth touch screen, determine whether the duration during which the nth touch screen has not detected a touch operation has reached a preset duration, where n is a positive integer less than or equal to N;
[0076] Step 103: If the duration for which no touch operation is detected on the nth touch screen reaches the preset duration, then the nth touch screen is controlled to enter the screen-off state.
[0077] It should be noted that this screen control method can be applied to any terminal device with a touch screen, such as a smartphone, tablet, or wearable electronic device.
[0078] It should also be noted that the terminal device disclosed herein has multiple touchscreens, which can trigger corresponding functions after detecting a touch operation. The touch operation here can be a contact-triggered operation on the touchscreen. In some possible embodiments, the touch operation includes operations such as single-click, double-click, long-press, or swipe on the touchscreen.
[0079] The touchscreen disclosed herein features an automatic screen-off function. When the touchscreen is on, if a touch operation is detected within a preset time period, the touchscreen will remain on and execute the function triggered by the touch operation. If no touch operation is detected within a preset time period after the touchscreen is on, the touchscreen will automatically enter a screen-off state to save power.
[0080] The preset duration is the automatic screen-off duration pre-set on the terminal device. In some possible embodiments, the preset duration can be determined by statistically analyzing user habits; for example, by statistically analyzing the user's click frequency or the browsing time on a page. The determination of when to execute automatic screen-off can be based on a comparison between the interval determined by the touch time of the last touch operation detected on the touchscreen and the current time, and the preset duration.
[0081] If no further touch operation is detected on the nth touchscreen after the Xth touch operation is detected, then the Xth touch operation is the last touch operation detected on the nth touchscreen, where X is a positive integer greater than or equal to 1. Here, the difference between the touch time of the last touch operation detected on each touchscreen and the current time (i.e., the interval) can be used to determine whether the preset time has elapsed since no touch operation was detected.
[0082] Here, the touch time is the moment when the touch operation is detected. For example, if the first touch screen detects a touch operation at 15:01, then the touch time is 15:01.
[0083] It should be noted that in other embodiments, if the duration for which no touch operation is detected on the nth touchscreen does not reach the preset duration, the nth touchscreen remains in the on-screen state. That is, other touchscreens that have not yet met the conditions for entering the off-screen state cannot enter the off-screen state and remain in the on-screen state. Thus, at each detection moment, some touchscreens may enter the off-screen state while others remain in the on-screen state, rather than a uniform pattern, increasing the flexibility of control.
[0084] As a possible example, suppose the terminal device has two touchscreens, with a preset duration of 1 minute. If the first touchscreen detects a touch operation at 15:01, and then does not detect a touch operation on the first touchscreen between 15:01 and 15:02, then the preset duration of no touch operation on the first touchscreen has been reached, and the first touchscreen will enter a screen-off state. If the second touchscreen detects a touch operation at 15:01, but then detects a touch operation again at 15:01:30, then the preset duration of no touch operation on the second touchscreen has not been reached, and the second touchscreen will not enter a screen-off state, remaining in a screen-on state.
[0085] In this way, by detecting the touch operations of N touch screens in the on state and recording the corresponding touch times, this disclosure calculates the duration of touch operations for each touch screen separately, thereby achieving the separation of user interaction time on multiple screens. In this way, different screens can be controlled to turn off the screen independently based on their respective touch times, optimizing system performance, reducing unnecessary power consumption, and improving the battery life of terminal devices.
[0086] In some embodiments, to better record touch times on each touchscreen and form an automated processing flow, corresponding identification information can be set for each touchscreen to identify it. The identification information can be alphanumeric, symbolic, or a combination of these. Thus, after the sensing module in the touchscreen detection module detects a touch operation, it can first determine the identification information of the touched touchscreen. Based on this identification information, the touch operation is reported to the power management module in the terminal device. The power management module can then update the touch time corresponding to this touch operation to the corresponding touchscreen based on the acquired identification information. This establishes a correspondence between touchscreen identification information and touch time; that is, based on this correspondence, it can be determined which touch time corresponds to which touchscreen.
[0087] Here, once each touchscreen has corresponding identification information, the touch time of the touch operation can be recorded as follows: based on the identification information of the N touchscreens, the touch time of the touch operation of the N touchscreens is recorded respectively.
[0088] For example, suppose a terminal device has two touchscreens. The identification information corresponding to the first touchscreen is A, and the identification information corresponding to the second touchscreen is B. If a touch operation is detected on the first touchscreen at 10:30, the touch operation is reported to the power management module within the terminal device based on the identification information A. The power management module can then update the touch time corresponding to 10:30 for this touch operation to the corresponding first touchscreen based on the acquired identification information A. Therefore, the established correspondence between the touchscreen identification information and the touch time is the correspondence between A and 10:30, and the recorded touch time can be recorded in the form of this correspondence.
[0089] In another embodiment, the touch screen that has not reported a touch operation within a preset time period can also be determined based on the connection relationship between the touch screen and the processing module in the terminal device.
[0090] In other words, since different touchscreens are connected to the processing module using different cables, distinguishing touchscreens directly based on the different cables achieves the same effect. This method eliminates the need to set identification information for each touchscreen, thus reducing setup steps.
[0091] Here, when a touch operation occurs on the touch screen, there is a corresponding touch detection and reporting process. The data involved in this reporting process is transmitted to the processing module in the terminal device based on the connection cable. Therefore, this disclosure can directly distinguish which connection cable is transmitting touch data based on the data transmission on the connection cable. After determining the connection cable, it can be determined which touch screen the touch operation occurred on based on the connection relationship, so as to distinguish the touch screen.
[0092] In other embodiments, based on this identification information, the step of controlling the nth touchscreen to enter a screen-off state if the duration of no touch operation detected on the nth touchscreen reaches the preset duration includes:
[0093] If the duration for which no touch operation is detected on the nth touch screen reaches the preset duration, then a screen-off control command is generated based on the identification information of the nth touch screen.
[0094] According to the screen-off control command, the nth touch screen is controlled to enter the screen-off state.
[0095] Here, the screen-off control command includes: the identification information of the touchscreen whose screen-off operation is being performed, and the corresponding operation information. When the duration for which no touch operation is detected on the nth touchscreen reaches the preset duration, it means that the nth touchscreen has met the conditions for entering the screen-off state. At this time, the screen-off control command can be generated by combining the identification information of the nth touchscreen, and the screen-off control of the nth touchscreen can be realized through the screen-off control command.
[0096] In some embodiments, within the automatic screen-off control program of the terminal device, when the touchscreen is turned off and then triggered to enter the screen-on state again, the touchscreen displays the image from before the screen went off. For example, if the touchscreen displayed the chat page of application A before it went off, then when a touch operation is detected again after the screen goes off and enters the screen-on state, the touchscreen will still display the chat page of application A. Thus, this disclosure can determine the application running before the screen went off on the touchscreen, and then perform operations based on the determined application, such as the aforementioned screen-on display operation or resource release operation.
[0097] The screen-on display operation is the display operation that occurs when a touch operation is detected after the screen has been turned off, and the screen is turned on again. This corresponds to the restoration display of the chat page of application A mentioned above.
[0098] Resource release refers to the process of releasing the resources occupied by applications that were running before the screen went off. Since a touchscreen in screen-off mode is considered unused by the user, if the resources of the corresponding applications continue to be occupied, it will increase unnecessary power consumption and degrade system performance due to excessive system resource consumption. Therefore, this disclosure proposes to release the resources occupied by applications running before the screen went off when the touchscreen enters screen-off mode, thereby saving system resources and optimizing system performance.
[0099] For example, when performing a resource release operation, Figure 2 This is a flowchart illustrating a screen control method according to an exemplary embodiment. Figure 2 ,like Figure 2 As shown, the method further includes:
[0100] Step 104: Determine the application that was running on the nth touchscreen before the screen went out, which is now in the screen-off state;
[0101] Step 105: Release the resources occupied by the application; wherein the resources include: bandwidth resources, processing resources and / or storage resources.
[0102] Here, a monitoring program can be set up to identify the applications running on the touchscreen before it went into screen-off state. Specifically, the touchscreen's state is monitored; when the touchscreen changes from on to off state, the application identifier of the application running on the touchscreen is obtained, and based on this identifier, the application running on the touchscreen before it went into screen-off state is determined.
[0103] Once the application running before the touchscreen went off is identified, the resources it occupied can be released. For example, suppose the device has two touchscreens, the current time is 10:30, and the preset duration is 1 minute. If the last touch operation detected on the first touchscreen occurred at 10:28, and the screen displayed after that touch operation was the chat page of application A, then the first touchscreen has entered a screen-off state at that time. If the last touch operation detected on the second touchscreen occurred at 10:29:30, and the screen displayed after that touch operation was the video playback page of application B, then the second touchscreen is still in a screen-on state at that time. Therefore, at the current time, the touchscreen that has entered a screen-off state on the device is the first touchscreen, and the application running on the first touchscreen before it went off is application A. Here, since the first touchscreen has entered the off state, and the user is not currently using the first touchscreen, the resources occupied by application A can be released.
[0104] Here, the resources used by each application include: bandwidth resources, processing resources, and / or storage resources.
[0105] Bandwidth resources can refer to the bandwidth resources of the transmission bus within the terminal device, etc. Here, since the system's bandwidth resources are fixed, when the bandwidth resources corresponding to application A are released, the bandwidth resources available for applications running on other touchscreens will increase accordingly, thus ensuring the running speed of applications running on other touchscreens.
[0106] The processing resources include at least: resources with processing capabilities, represented by a central processing unit (CPU).
[0107] The storage resources include at least: memory, disk, bandwidth resources involved in input / output, and / or resources involved in file loading.
[0108] Since different applications prioritize resource release differently, for example, video applications consume bandwidth resources during video playback. Therefore, if the application running before the screen went out was a video application, the currently occupied bandwidth resources can be released. Thus, in some embodiments, resource release can be performed based on the application type.
[0109] The following is a detailed explanation of the resource release:
[0110] In some embodiments, Figure 3 This is a flowchart illustrating a screen control method according to an exemplary embodiment. Figure 2 ,like Figure 3 As shown, the method further includes:
[0111] Step 301: Determine the type of application running on the nth touchscreen before the screen is turned off.
[0112] Here, the application can be: video application, communication application, information application, photography application, data processing application, or document processing application, etc. In this disclosure, the type of application can be determined based on the classification number identified by the application; different classification numbers correspond to different application types.
[0113] After determining the type of application running before the screen went out (step 301), in step 105 above, releasing the resources occupied by the application includes:
[0114] Step 1051: Release the resources occupied by the application according to the type of the application.
[0115] As mentioned above, different types of applications have different focuses in releasing resources. Therefore, when each application needs to release resources, a release strategy can be determined for each application based on its type, and resource release can be executed based on the corresponding release strategy. This can achieve targeted release and reduce the operational chaos caused by all applications releasing resources according to the same release strategy.
[0116] In some embodiments, since applications of the same type may have similar resource requirements, the same release strategy can be determined for applications of the same type to release resources. For example, video applications can all be assigned to release strategy A. This makes the release more targeted and more in line with the operating characteristics of various applications, and is more practical.
[0117] In other embodiments, the same release strategy can be set for different types of applications that have the same or similar resource usage needs. For example, video applications and cloud storage applications both have video playback and caching functions, so when processing videos, both types of applications can use the same release strategy to release resources. In this way, the need for targeted release can also be achieved. This disclosure does not limit this.
[0118] Since the touchscreen still displays the previous screen image when the screen is turned on again after it has been off, releasing all resources for the currently running application would prevent it from reverting to its original interface after the screen is turned on again. Therefore, resources can be released selectively based on the application type.
[0119] Here, taking the first type of application with resource download function and the second type of application with computing function as examples, the release of resources occupied by the application is explained as follows:
[0120] For example, video applications consume bandwidth resources when playing videos, and downloading videos also consumes storage resources. Data processing applications perform data processing during runtime, consuming at least processing resources, and in some cases, storage and bandwidth resources. However, data processing applications only consume processing resources when interacting with the user. Therefore, if a data processing application was running before the screen was turned off, its processing resources are actually idle after the screen is turned off because there is no user interaction. In this case, the occupied processing resources can be released.
[0121] Specifically: For the first type of application with resource download functionality, releasing the resources occupied by the application according to its type includes:
[0122] When the application is of type 1 and is in a resource download state, the storage and bandwidth resources of the application of type 1 are retained, and the processing resources of the application of type 1 are released.
[0123] Here, the first type of application could be a video application or a cloud storage application, etc.
[0124] The first type of application being in a resource download state can be: the first type of application is currently downloading a video.
[0125] Since video downloading involves downloading resources from the internet to the local device, the first type of application will consume certain bandwidth resources. Furthermore, the cached data stored locally will also consume storage resources. Therefore, if the first type of application is in the resource downloading state before the screen goes off, and then the system automatically turns off the screen, all of these resources can be released to save power.
[0126] However, it should be noted that the application can download videos in the background. That is, in some embodiments, even if the touch screen enters a screen-off state, if a download task is triggered before the screen goes off, the download will continue after the screen goes off. In other words, the application downloading the video has requested the WakeLock function.
[0127] The wake lock feature prevents download tasks from being suspended, thus preventing the system from entering sleep mode. Therefore, even in screen-off mode, the application's task will not be interrupted and will continue downloading. The system only enters sleep mode when the wake lock requested by the application is released. In this case, all of the application's resources are released, the download task is suspended, and the download stops. However, if the wake lock is also released, the download task will stop, resulting in a poor user experience and hindering the download process. Therefore, for applications that triggered download tasks before screen-off, resource release could be handled by: preserving the storage and bandwidth resources of the first type of application while releasing its processing resources. This reduces the likelihood of downloads stopping due to resource release.
[0128] For the second type of application with computing capabilities, releasing the resources occupied by the application according to its type includes:
[0129] When the application type is the second type, release the processing resources, storage resources, and bandwidth resources of the application of the second type.
[0130] Here, the second type of application can be a data processing application, such as a calculator or rangefinder.
[0131] The second type of application primarily consumes processing resources. For example, when interacting with a user, it receives user input data, processes the data, and obtains a result (specifically, the user inputs data to be calculated). However, when not interacting with the user, the corresponding processing resources are idle and can be released.
[0132] For applications with computing capabilities, since there is little interaction with external data (processing data downloaded from the internet), releasing storage and bandwidth resources will not affect the recovery of the second type of application after the screen is turned on. Therefore, all three types of resources can be released.
[0133] It should be noted that for this type of application with computing capabilities, bandwidth resources are involved because the application interacts with external data. As for storage resources, data processing may be real-time or online. However, regardless of the type, this disclosure aims to minimize impact on subsequent screen recovery and background processing, and therefore does not release bandwidth and storage resources. Thus, in some embodiments, when the application type is type two, only the processing resources of the type two application may be released.
[0134] In some embodiments, resources corresponding to each touchscreen can be pre-marked based on their different characteristics. When releasing resources occupied by applications running before the screen is turned off, the release of resources can be performed directly based on the marked resources. Thus, the method further includes:
[0135] Based on the identification information of the nth touch screen, the resources occupied by the application running on the nth touch screen before the screen is turned off are marked;
[0136] Releasing the resources occupied by the application includes:
[0137] Release the marked resources in the nth touchscreen.
[0138] Here, when a terminal device has multiple touchscreens, different resources can be allocated to different touchscreens to ensure synchronous processing and smooth operation. For example, assuming the system has two processors, CPU0 and CPU1, and multiple touchscreens are simultaneously running applications—application A on the first touchscreen and application B on the second—processing resources can be allocated according to the application type. For instance, if application A requires faster processing speed, CPU0 can be allocated to A, and CPU1 to B, with CPU0 having a higher processing speed than B.
[0139] Before executing the automatic screen-off operation, resources can be allocated to each touchscreen based on the type of application running on each touchscreen. These allocated resources are then marked, and this marking determines which resources will be released and which will not during resource release—resources with the marked mark will be released, while those without the marked mark will not. After resource allocation and processing according to the allocation, if any touchscreen does not detect any touch operation within a preset time, that touchscreen will enter a screen-off state. At this point, based on the marked mark, the resources corresponding to the applications running on that touchscreen before the screen went off will be released.
[0140] In this way, during processing, resource release operations can be performed based on the detected markers, realizing automated resource release, reducing resource allocation issues in subsequent resource release processes, and improving the processing speed of resource release.
[0141] This disclosure also provides a screen control device. Figure 4 This is a schematic diagram illustrating the structure of a screen control device according to an exemplary embodiment, such as... Figure 4 As shown, the screen control device 400 includes:
[0142] The detection module 401 is used to detect touch operations on N touch screens that are in the on state and record the touch time of the touch operations, where N is a positive integer greater than or equal to 2;
[0143] The duration determination module 402 is used to determine whether the duration for which no touch operation is detected on the nth touch screen has reached a preset duration based on the touch time of the last touch operation detected on the nth touch screen, wherein n is a positive integer less than or equal to N;
[0144] The first control module 403 is used to control the nth touch screen to enter a screen-off state if the duration during which no touch operation is detected on the nth touch screen reaches the preset duration.
[0145] In some embodiments, the apparatus further includes:
[0146] An application determination module is used to determine the nth application that was running on the touchscreen before it entered the screen-off state;
[0147] A release module is used to release the resources occupied by the application; wherein the resources include: bandwidth resources, processing resources and / or storage resources.
[0148] In some embodiments, the apparatus further includes:
[0149] A type determination module is used to determine the type of the nth application running on the touchscreen before the screen is turned off;
[0150] The release module includes:
[0151] The release processing unit is used to release the resources occupied by the application according to the type of the application.
[0152] In some embodiments, the type of application includes: a first type having resource download functionality;
[0153] The release processing unit is further configured to:
[0154] When the application is of type 1 and is in a resource download state, the storage and bandwidth resources of the application of type 1 are retained, and the processing resources of the application of type 1 are released.
[0155] In some embodiments, the type of application includes: a second type having computing capabilities;
[0156] The release processing unit is further configured to:
[0157] When the application type is the second type, release the processing resources, storage resources, and bandwidth resources of the application of the second type.
[0158] In some embodiments, the detection module includes:
[0159] The recording module is used to record the touch time of the touch operation of the N touch screens respectively according to the identification information of the N touch screens;
[0160] The first control module includes:
[0161] The instruction generation unit is used to generate a screen-off control instruction based on the identification information of the nth touch screen if the duration during which no touch operation is detected on the nth touch screen reaches the preset duration.
[0162] The screen-off control unit is used to control the nth touch screen to enter the screen-off state according to the screen-off control command.
[0163] In some embodiments, the apparatus further includes:
[0164] The marking module is used to mark the resources occupied by the application running on the nth touch screen before the screen is turned off, based on the identification information of the nth touch screen.
[0165] The release processing module is also used for:
[0166] Release the marked resources in the nth touchscreen.
[0167] In some embodiments, the apparatus further includes:
[0168] The second control module is used to keep the nth touch screen in a lit state if the duration for which no touch operation is detected on the nth touch screen has not reached the preset duration.
[0169] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0170] Figure 5 This is a block diagram illustrating a screen control device 1800 according to an exemplary embodiment. For example, device 1800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc.
[0171] Reference Figure 5 The device 1800 may include one or more of the following components: a processing component 1802, a memory 1804, a power component 1806, a multimedia component 1808, an audio component 1810, an input / output (I / O) interface 1812, a sensor component 1814, and a communication component 1816.
[0172] Processing component 1802 typically controls the overall operation of device 1800, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 1802 may include one or more processors 1820 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 1802 may also include one or more modules to facilitate interaction between processing component 1802 and other components. For example, processing component 1802 may include a multimedia module to facilitate interaction between multimedia component 1808 and processing component 1802.
[0173] Memory 1804 is configured to store various types of data to support the operation of device 1800. Examples of this data include instructions for any application or method operating on device 1800, contact data, phonebook data, messages, images, videos, etc. Memory 1804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0174] The power supply component 1806 provides power to the various components of the device 1800. The power supply component 1806 may include: a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 1800.
[0175] Multimedia component 1808 includes a screen that provides an output interface between the device 1800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 1808 includes a front-facing camera and / or a rear-facing camera. When the device 1800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and / or rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0176] Audio component 1810 is configured to output and / or input audio signals. For example, audio component 1810 includes a microphone (MIC) configured to receive external audio signals when device 1800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 1804 or transmitted via communication component 1816. In some embodiments, audio component 1810 also includes a speaker for outputting audio signals.
[0177] I / O interface 1812 provides an interface between processing component 1802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0178] Sensor assembly 1814 includes one or more sensors for providing status assessments of various aspects of device 1800. For example, sensor assembly 1814 may detect the on / off state of device 1800, the relative positioning of components such as the display and keypad of device 1800, changes in the position of device 1800 or a component of device 1800, the presence or absence of user contact with device 1800, the orientation or acceleration / deceleration of device 1800, and temperature changes of device 1800. Sensor assembly 1814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 1814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0179] Communication component 1816 is configured to facilitate wired or wireless communication between device 1800 and other devices. Device 1800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 1816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 1816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, or other technologies.
[0180] In an exemplary embodiment, the apparatus 1800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0181] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1804 including instructions, which can be executed by a processor 1820 of the device 1800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0182] A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor, enable the execution of the above-described method.
[0183] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the appended claims.
[0184] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A screen control method, characterized in that, include: Detect touch operations applied to N touchscreens that are in the on state, where N is a positive integer greater than or equal to 2; Record the touch time of touch operations; The recording of touch operation time includes: sending the identification information of the touch screen that detected the touch operation to the power management module; The power management module determines whether the duration for which no touch operation has been detected on the nth touch screen has reached a preset duration based on the touch time of the last touch operation detected on the nth touch screen, where n is a positive integer less than or equal to N; If the duration for which no touch operation is detected on the nth touch screen reaches the preset duration, then the nth touch screen is controlled to enter the screen-off state. The nth application that was running on the touchscreen before it went into screen-off state is identified; wherein, the type of application includes: a first type with resource download function; Based on the identification information of the nth touch screen, the resources occupied by the application running on the nth touch screen before the screen is turned off are marked; Before the nth touchscreen is turned off, a wake-up lock function is requested for the first type of application running on the nth touchscreen before it is turned off. The wake-up lock function is used to prevent the release of storage resources and bandwidth resources of the first type of application running on the nth touchscreen before it is turned off. After the touchscreen is turned off, the resources occupied by the application running on the nth touchscreen before the screen was turned off are released; wherein, the release of the resources occupied by the application running on the nth touchscreen before the screen was turned off includes: when the type of the application running on the nth touchscreen before the screen was turned off is a first type and the first type of application is in a resource download state, based on the function of the wake lock, the storage resources and bandwidth resources of the first type of application are retained, and the marked processing resources of the first type of application running on the nth touchscreen before the screen was turned off are released.
2. The method according to claim 1, characterized in that, The types of applications include: a second type with computing capabilities; The process of releasing the resources occupied by the application running on the nth touchscreen before the screen is turned off also includes: When the application type is the second type, release the processing resources, storage resources, and bandwidth resources of the application of the second type.
3. The method according to claim 1, characterized in that, If the duration for which no touch operation is detected on the nth touchscreen reaches the preset duration, then controlling the nth touchscreen to enter a screen-off state includes: If the duration for which no touch operation is detected on the nth touch screen reaches the preset duration, then a screen-off control command is generated based on the identification information of the nth touch screen. According to the screen-off control command, the nth touch screen is controlled to enter the screen-off state.
4. The method according to claim 1, characterized in that, The method further includes: If the duration for which no touch operation is detected on the nth touchscreen does not reach the preset duration, then the nth touchscreen remains in the on state.
5. A screen control device, characterized in that, include: The detection module is used to detect touch operations on N touchscreens that are in the on state, and record the touch time of the touch operation, where N is a positive integer greater than or equal to 2; the recording of the touch time includes: sending the identification information of the touchscreen that detected the touch operation to the power management module; The duration determination module is used by the power management module to determine whether the duration for which no touch operation has been detected on the nth touch screen has reached a preset duration based on the touch time of the last touch operation detected on the nth touch screen, where n is a positive integer less than or equal to N; The first control module is used to control the nth touch screen to enter a screen-off state if the duration during which no touch operation is detected on the nth touch screen reaches the preset duration. An application determination module is used to determine the nth application that was running on the touchscreen before it entered the screen-off state; wherein, the type of the application includes: a first type with resource download function; A marking module is used to mark the resources occupied by the application running on the nth touchscreen before it is turned off, based on the identification information of the nth touchscreen. A release module is used to request a wake-up lock function for a first type of application running on the nth touchscreen before it is turned off, wherein the wake-up lock function is used to prevent the release of storage resources and bandwidth resources of the first type of application running on the nth touchscreen before it is turned off. When the type of the application running on the nth touchscreen before it is turned off is the first type and the first type of application is in a resource download state, based on the wake-up lock function, the storage resources and bandwidth resources of the first type of application are retained, and the marked processing resources of the first type of application running on the nth touchscreen before it is turned off are released.
6. The apparatus according to claim 5, characterized in that, The types of applications include: a second type with computing capabilities; The release module is also used for: When the application type is the second type, release the processing resources, storage resources, and bandwidth resources of the application of the second type.
7. The apparatus according to claim 6, characterized in that, The first control module includes: The instruction generation unit is used to generate a screen-off control instruction based on the identification information of the nth touch screen if the duration during which no touch operation is detected on the nth touch screen reaches the preset duration. The screen-off control unit is used to control the nth touch screen to enter the screen-off state according to the screen-off control command.
8. A screen control device, characterized in that, include: A processor and a memory for storing executable instructions capable of running on the processor, wherein: When the processor is used to run the executable instructions, the executable instructions perform the steps of the method provided in any one of claims 1 to 4.
9. A non-transitory computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the steps of the method provided in any one of claims 1 to 4.
Citation Information
Patent Citations
Screen layout control method, device, apparatus, and computer-readable storage medium
CN109101173A
A mobile terminal and a method, a device and a storage device for releasing a memory of the mobile terminal
CN109254848A
Screen brightness adjusting method, mobile terminal and computer readable storage medium
CN109842721A