Skip to content

Charge thresholds confuse kernel #17

Open
@haarp

Description

@haarp

This is on a W701:

When charge thresholds are set, the kernel does not know about the current battery state. While the battery is idling at the threshold with AC attached for example, I get this:

$ cat /sys/class/power_supply/BAT0/status
Unknown

I am aware that tp_smapi exports its own interface under /sys/devices/platform/smapi, but many tools and daemons such as Upower are unaware of it and will not implemented driver-specific interfaces.
The result is that Upower assumes that the battery is charging, while it is not.

It would be very useful if tp_smapi could also override the power_supply entries in sysfs to provide the correct status, among other things.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions