Camera Service Wake Locks Prevent Post-Photo Image Loss

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In electronic devices, the camera service process crashes and restarts when the operating system enters sleep mode shortly after photographing, leading to image loss and failure in reconnecting the camera application.

Innovation Solution

Implement a process control method that holds a wake-up lock for the camera service process after photographing, determines the image processing status, and releases the lock when the process is complete, using a timer to manage the lock release.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Use of energy by moving object

If the operating system enters sleep mode to save energy, then power consumption is reduced, but the camera service process crashes and images are lost

Engineering Contradiction:
Improvepower consumptionVSAvoidcamera service process stability
Core Design Contradiction:
Use of energy by moving objectVSReliability

Solution Approach 1:

The system applies preliminary anti-action by detecting when the camera application is disabled within a first duration threshold after photographing, and proactively preventing the operating system from entering sleep mode during this critical period. This is achieved by controlling the camera service process to hold a wake-up lock, which blocks the sleep mode entry and prevents the camera service process from crashing before image generation is complete.

Inventive Principle:
Principle #9Preliminary anti-action

2Reliability

If the camera service process runs continuously to ensure image generation, then image loss is prevented, but power consumption increases

Engineering Contradiction:
Improveimage generation completenessVSAvoidpower consumption
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The system applies dynamics by making the wake-up lock holding state dynamic rather than static. The camera service process holds the wake-up lock only during the critical period when the camera application is disabled within the first duration threshold after photographing. Once the image generation is complete or the threshold period expires, the lock is automatically released, allowing the system to enter sleep mode. This dynamic adjustment optimizes both image generation reliability and power consumption.

Inventive Principle:
Principle #15Dynamics

3Loss of energy

If the system enters sleep mode immediately after photographing, then power is saved, but the camera application cannot reconnect and images are lost

Engineering Contradiction:
Improvepower savingVSAvoidimage loss
Core Design Contradiction:
Loss of energyVSLoss of information

Solution Approach 1:

The system applies preliminary action by establishing a protective mechanism before the harmful effect occurs. When the camera application is disabled within the first duration threshold after photographing, the system preemptively controls the camera service process to hold the wake-up lock, preventing sleep mode entry. This preliminary protective action ensures that the camera service process remains stable and can complete image generation, thereby preventing image loss before it can occur.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12389110B2Process control method, electronic device, and readable storage medium
Publication Date: 2025.08.12 HONOR DEVICE CO LTD
  • US12389110B2 patent drawing
  • US12389110B2 patent drawing
  • US12389110B2 patent drawing

AI summary

This application discloses a process control method, an electronic device, and a readable storage medium, and belongs to the field of terminal technologies. The method includes: performing a photographing operation by using a camera application; if the camera application is disabled within a first duration threshold after photographing, controlling a camera service process to hold a wake-up lock, where the camera service process is used to provide an image processing service, the image processing service generates and calls back a corresponding image after the camera application performs the photographing operation, and the wake-up lock is used to prevent an operating system of the electronic device from entering a sleep state; determining an image processing service status of the camera service process; and controlling the camera service process to release the wake-up lock if the camera service process has completed the image processing service.