elementary / elementary/panel-power

Report laptop battery as missing if % Calculation takes too long

Open
#159 1 comment 1 reaction 0 assignees View on GitHub
Status: Incomplete
Dominant language
Vala
Stars
28
Forks
16
Avg merge
3h 26m
Merged PRs (30d)
3

Description

## Problem
My 2012 HP ENVY laptop has a completely non-functional battery that only allows it to be used when plugged into AC power. Middle clicking the indicator/Toggling "Show Percentage" would report the battery as being at 0%:
![image](https://user-images.githubusercontent.com/39870226/103491276-02396780-4de8-11eb-9e3c-10e9116cc26a.png)
And opening it would show the percentage as "Calculating..." rather than "Missing" or something along those lines:
![image](https://user-images.githubusercontent.com/39870226/103491319-78d66500-4de8-11eb-8445-c3583ea53163.png)

## Proposal
If the battery takes over 30 seconds to a minute to Calculate percentage, or if the percentage stays at 0% after 5 minutes, the battery would be reported as missing and the icons would be replaced with battery-missing-symbolic and battery-missing. To avoid incorrect labeling, it would be labeled "Not charging or Missing"

## Prior Art
![image](https://user-images.githubusercontent.com/39870226/103491934-264b7780-4ded-11eb-95cc-aaad0ea9840b.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.