Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use-case: provide a battery draining rate indication for application #126

Open
taste1981 opened this issue Sep 19, 2022 · 2 comments
Open
Labels

Comments

@taste1981
Copy link

Application not well optimized/configured may have higher power consumption and drains battery quicker.

If compute-pressure API could provide indication on how fast your app is draining battery (by estimated battery life if the application keeps running), this will help application update configuration at runtime (for example, decide whether to use HW encoder or SW encoder for a video conferencing app.).

Current PressureState definition uses battery level as one of the factor for reporting pressure. However, battery draining speed should also be considered.

If you set a quota that you expect your application to run continuously on the platform, PressureState will switch accordingly on draining rate and expected battery draining out time.

@kenchris
Copy link
Contributor

This is related to #119

@arskama arskama added the V2 label Nov 9, 2023
@arskama
Copy link
Contributor

arskama commented Nov 9, 2023

Would this also involve that compute-pressure API would be per process (app)?

@kenchris kenchris changed the title Battery-pressure: provide a battery draining rate indication for application Use-case: provide a battery draining rate indication for application Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants