Skip to content

batterymonitor@pdcurtis: battery percent calculation, fix for ageing batteries #7330

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jtMUMT
Copy link

@jtMUMT jtMUMT commented Jun 13, 2025

This applet previously relied on the 'capacity' file to obtain percent charge remaning. However, with my 2012 macbook pro whose battery is not capable of reaching the design spec for full charge, this capacity is incorrect. Instead, the real effective charge percentage should be calculated using the 'charge_now' and 'charge_full' files. Matches linux mint cinnamon default battery applet % calculation now.

@pdcurtis
Linux Mint 22.1
Cinnamon 6.4.8

This applet previously relied on the 'capacity' file to obtain percent charge remaning. However, with my 2012 macbook pro whose battery is not capable of reaching the design spec for full charge, this capacity is incorrect. Instead, the real effective charge percentage should be calculated using the 'charge_now' and 'charge_full' files. Matches default battery applet % charge now.
@rcalixte
Copy link
Member

This should probably be an option rather than globally overriding the calculation for everyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants