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.
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.

None yet

1 participant