Skip to content

Change suggestion: poll upower's DisplayDevice #38

@HyperfocusSurfer

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!

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