Skip to content

Change suggestion: poll upower's DisplayDevice #38

Description

@HyperfocusSurfer

Upower provides DisplayDevice that returns the cumulative status across all present batteries. It is relevant on systems with multiple batteries, e.g. some thinkpads.

Basically, you can use self.upowerservice.display_device here instead of binding to the 1st battery. Not sure if smth else can be rewritten to beautify the code, so not a PR. Works fine with just that change, tho.

Cheers!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions