Sleep Management Device Predicts Latency to Merge State Switches

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for portable devices, such as mobile phones and tablets, result in frequent light sleep states during frame drawing processes, leading to increased state switching operations that burden the operating system and consume unnecessary resources.

Innovation Solution

A method and device for sleep management that predicts and waits for sleep latency time before sending a completion notification, allowing for prolonged deep sleep and reducing the number of state switching operations by merging short sleep durations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If the application enters light sleep state frequently during frame drawing processes, then the system can maintain responsiveness and meet frame rate requirements, but the operating system experiences increased state switching operations and resource consumption

Engineering Contradiction:
Improveframe rate maintenanceVSAvoidoperating system resource consumption
Core Design Contradiction:
ProductivityVSLoss of energy

Solution Approach 1:

The patent merges multiple short light sleep periods into a single extended sleep period by delaying the completion notification until after the predicted sleep latency. This combines what would have been separate state transitions (drawing→sleep→buffer switching→sleep→drawing) into a more efficient sequence, reducing the total number of state switching operations and associated resource consumption while still maintaining the required frame rate.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The system performs preliminary prediction of sleep latency time based on historical data from previous frames before actually entering the sleep state. This preliminary action allows the system to optimize the sleep duration in advance, ensuring that the application wakes up at the optimal moment to maintain frame rate while maximizing sleep duration and minimizing unnecessary state transitions.

Inventive Principle:
Principle #10Preliminary action

2Speed

If the completion notification is sent immediately after buffer preparation, then the application can quickly resume drawing, but the sleep duration is shortened and state switching increases

Engineering Contradiction:
Improvedrawing resume speedVSAvoidsleep duration
Core Design Contradiction:
SpeedVSDuration of action of moving object

Solution Approach 1:

The system performs preliminary prediction of sleep latency time based on historical data from previous frames before actually entering the sleep state. This allows the system to determine in advance how long the application should sleep, ensuring it wakes up at the optimal moment to maintain frame rate while maximizing sleep duration.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system uses periodic historical sleep data from previous frames (n frames) to predict future sleep latency. This periodic analysis of past patterns enables the system to establish an optimal sleep-wake cycle that maintains frame rate while maximizing energy-saving sleep duration.

Inventive Principle:
Principle #19Periodic action

3Adaptability or versatility

If multiple state switching operations are performed during frame drawing, then the system can handle variable OS busy states, but the operating system becomes more busy and resource-constrained

Engineering Contradiction:
ImproveOS busy state handlingVSAvoidstate switching operations
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent merges multiple short light sleep periods into a single extended sleep period by delaying the completion notification until after the predicted sleep latency. This reduces the number of state switching operations from potentially multiple per frame to just one, simplifying the system state management while still adapting to variable OS conditions through the predictive mechanism.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS10901491B2Sleep management method and device, and computer storage medium
Publication Date: 2021.01.26 ONEPLUS TECH SHENZHEN
  • US10901491B2 patent drawing
  • US10901491B2 patent drawing
  • US10901491B2 patent drawing

AI summary

Provided are a sleep management method and device, and a computer storage medium. The method includes that: after completion of a drawing task in a current frame, preparing a drawing buffer region for a drawing task in a next frame; after completion of preparation of the drawing buffer region, estimating a sleep delay time D; and after waiting for the sleep delay time D to elapse, transmitting an end notification to wake up an application in a sleeping state. Compared with the prior art techniques, the method of the invention transmits an end notification after predicting and waiting for a sleep time delay D to elapse rather than transmitting an end notification immediately after completion of preparation of a drawing buffer region for a drawing task in a next frame.