[PR #1481] [MERGED] fix(battery): sysfs based threshold battery time calculation #9827

Closed
opened 2026-05-23 03:57:41 +01:00 by JakeStanger · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/ironbar/pull/1481
Author: @slowsage
Created: 5/9/2026
Status: Merged
Merged: 5/9/2026
Merged by: @JakeStanger

Base: masterHead: fix/battery_ttf


📝 Commits (1)

  • b5cd37f fix(battery): sysfs based threshold battery time calculation

📊 Changes

1 file changed (+33 additions, -3 deletions)

View changed files

📝 src/clients/upower/client.rs (+33 -3)

📄 Description

upower time to full does not take into account threshold caps (sometimes 80% to prolong battery life). This reads from sysfs to account for one time 100% charge limits as well.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/JakeStanger/ironbar/pull/1481 **Author:** [@slowsage](https://github.com/slowsage) **Created:** 5/9/2026 **Status:** ✅ Merged **Merged:** 5/9/2026 **Merged by:** [@JakeStanger](https://github.com/JakeStanger) **Base:** `master` ← **Head:** `fix/battery_ttf` --- ### 📝 Commits (1) - [`b5cd37f`](https://github.com/JakeStanger/ironbar/commit/b5cd37f9e7c0e64ed789aecc0466950d6a7ea9b7) fix(battery): sysfs based threshold battery time calculation ### 📊 Changes **1 file changed** (+33 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/clients/upower/client.rs` (+33 -3) </details> ### 📄 Description upower time to full does not take into account threshold caps (sometimes 80% to prolong battery life). This reads from sysfs to account for one time 100% charge limits as well. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
JakeStanger 2026-05-23 03:57:41 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#9827
No description provided.