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

Exclude external batteries from sensors_battery #2305

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

Conversation

RodoMa92
Copy link

@RodoMa92 RodoMa92 commented Sep 13, 2023

Summary

  • OS: Linux
  • Bug fix: yes
  • Type: core

Description

The single check for battery in power_supply was causing sometimes to grab external device battery statuses since they have the form of hid_<mac>_battery, which match the bat filter.

However they do not have an ACPI path to the system itself.

This takes into account that detail and properly exclude them from being included as an internal battery.

The single check for battery in power_supply was causing sometimes to grab external device battery statuses since they have the form of hid_<mac>_battery, which match the bat filter. 

However they do not have an ACPI path to the system itself. 

This takes into account that detail and properly exclude them from being included as an internal battery.
@jardon
Copy link

jardon commented Aug 21, 2024

@RodoMa92 @giampaolo if this only requires signing the commit, can we get this pushed through?

@RodoMa92
Copy link
Author

RodoMa92 commented Aug 24, 2024

@RodoMa92 @giampaolo if this only requires signing the commit, can we get this pushed through?

I'm not sure if this will not break under other platforms like arm, so it should be properly tested before a merge. Might not behave like on x86, but I do not have such hardware available to me.

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