Skip to content

[Feature]: Add option to filter/select specific batteries #1937

@StarsEnd33A2D17

Description

@StarsEnd33A2D17

Welcome!

  • I have searched open and closed feature requests to make sure this or similar feature request does not already exist.
  • This is a feature request, not a bug report or support question.

Component

Agent

Description

When a system has multiple batteries (e.g., laptop battery + wireless mouse/keyboard battery), beszel averages the capacity of all batteries found in /sys/class/power_supply/. This results in inaccurate readings - a laptop with 80% battery and a wireless mouse at 50% would show ~65%.
Currently there's no environment variable or config to filter which batteries to monitor. It would be useful to have something like BESZEL_AGENT_BATTERY to specify which battery device(s) to use (e.g., BAT0).

Motivation / Use Case

Users should be able to specify which battery device(s) to monitor or exclude certain batteries (e.g., peripheral batteries) from monitoring. This ensures accurate battery readings on systems with multiple batteries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions