Skip to content

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