Skip to content

Battery never marked as full #1622

@howardjohn

Description

@howardjohn

Describe the issue

Using the battery module and full-at, the format-full format is never used.

Expected behavior:
When the battery level passes the full-at, format-full format should be used.

Actual behavior:
The format-full format is never used.

Was it working before?
Never worked for me.

To Reproduce

A minimal but complete config with which the problem occurs:

[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP1
full-at = 90

format-charging = charging
format-discharging = discharging
format-full = full

Polybar Log

No errors.

Environment:

  • WM: i3
  • Output of polybar -vvv:

Features: +alsa +curl +i3 +mpd +network(libnl) +pulseaudio +xkeyboard

X extensions: +randr (+monitors) -render -damage -sync +composite +xkb +xrm +xcursor

Build type: RelWithDebInfo
Compiler: /usr/bin/c++
Compiler flags: -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -Wextra -Werror -Wno-noexcept-type -pedantic -pedantic-errors
Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now

Additional context

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

I have a two battery setup (Thinkpad t450s)

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