Repository navigation
fix: read the G Pro X Wireless battery through G Hub's own curves (#1) - #32
Merged
Merged
Conversation
HeadsetControl's G Pro points read 3924 mV as 65% while G Hub showed 79%, and any charging voltage as 100% while G Hub showed 87%. G Hub ships a power model for the 0ABA (pro_x_wireless_headset_battery.xml) with a discharge curve and a charge curve; the headset now reads through points sampled from both. The charge curve rises to about 4275 mV at 87%, then falls while the battery fills to 100%, so a charge is followed per device path: the turn is a drop of 5 mV below the peak, and the reading never goes down during one charge. The hardware test that prints the raw voltage now covers the headset too.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
HeadsetControl's G Pro points read 3924 mV as 65% while G Hub showed 79%, and any charging voltage as 100% while G Hub showed 87%. G Hub ships a power model for the 0ABA (pro_x_wireless_headset_battery.xml) with a discharge curve and a charge curve; the headset now reads through points sampled from both.
The charge curve rises to about 4275 mV at 87%, then falls while the battery fills to 100%, so a charge is followed per device path: the turn is a drop of 5 mV below the peak, and the reading never goes down during one charge.
The hardware test that prints the raw voltage now covers the headset too.
Checklist
dotnet buildanddotnet testpass locally.below). If you could not, say so explicitly rather than presenting it as tested.
Device/hardware tested against (if applicable)
Logitech Pro X Wireless, Windows 11, Wired/Wireless
AI assistance
Assisted by Claude Code (Opus 5.5)