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

Battery charging threshold #62

Closed
tsitavets opened this issue May 9, 2020 · 2 comments
Closed

Battery charging threshold #62

tsitavets opened this issue May 9, 2020 · 2 comments
Assignees

Comments

@tsitavets
Copy link

It would be great to implement battery charging threshold to increase battery lifespan when working a lot from AC. For example stop charging at 80% and start charging again at 60%. It would be nice to have keyboard shortcut to enable/disable feature and to have a possibility to change thresholds somehow (because optimal thresholds levels depend on battery usage). Also we can blink by power led to tell user is feature enabled (one time blink) /disabled (two times blink) upon pressing keyboard shortcut.

@crawfxrd
Copy link
Member

Battery charging thresholds are implemented. Currently compile-time only. Need to add ACPI support and expose it in sysfs.

@crawfxrd
Copy link
Member

Charging thresholds can now be set/queried with SBCT/GBCT ACPI methods [1].

system76_acpi has been updated to expose data in standard sysfs entries /sys/class/power_supply/BAT0/charge_control_{start,end}_threshold [2].

See also: pop-os/gnome-control-center#101

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

No branches or pull requests

2 participants