Charging icon shows charging when not plugged in
What problem did you encounter
Icon shows the battery charging icon when it is not plugged in
What is the actual behaviour?
Charging icon when not charging
What is the expected behaviour?
Charging icon to match cable and power charging accurately.
How to reproduce
purism-librem-5-evergreen-charging-icon-issue-2020-11-21
What hardware are you running on?
- Librem 5 Evergreen
Relevant OS information
purism@pureos:~$ uname -a
Linux pureos 5.9.0-1-librem5 #1 SMP PREEMPT Fri Nov 13 03:06:12 PST 2020 aarch64 GNU/Linux
purism@pureos:~$ dpkg -s phosh | grep Version
Version: 0.6.0
purism@pureos:~$ dpkg -s phoc | grep Version
Version: 0.5.0
purism@pureos:~$ cat uevent.txt
==> /sys/class/power_supply/bq25890-charger/uevent <==
POWER_SUPPLY_NAME=bq25890-charger
POWER_SUPPLY_TYPE=USB
POWER_SUPPLY_MANUFACTURER=Texas Instruments
POWER_SUPPLY_MODEL_NAME=BQ25895
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_CHARGE_TYPE=N/A
POWER_SUPPLY_ONLINE=0
POWER_SUPPLY_HEALTH=Good
POWER_SUPPLY_CONSTANT_CHARGE_CURRENT_MAX=1472000
POWER_SUPPLY_CONSTANT_CHARGE_VOLTAGE=0
POWER_SUPPLY_CONSTANT_CHARGE_VOLTAGE_MAX=4192000
POWER_SUPPLY_PRECHARGE_CURRENT=128000
POWER_SUPPLY_CHARGE_TERM_CURRENT=128000
POWER_SUPPLY_INPUT_CURRENT_LIMIT=500000
POWER_SUPPLY_VOLTAGE_NOW=2304000
POWER_SUPPLY_CURRENT_NOW=0
==> /sys/class/power_supply/max170xx_battery/uevent <==
POWER_SUPPLY_NAME=max170xx_battery
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Unknown
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=141
POWER_SUPPLY_VOLTAGE_MAX=4200000
POWER_SUPPLY_VOLTAGE_MIN=3100000
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=3300000
POWER_SUPPLY_VOLTAGE_NOW=3684062
POWER_SUPPLY_VOLTAGE_AVG=3721328
POWER_SUPPLY_VOLTAGE_OCV=3848828
POWER_SUPPLY_CAPACITY=75
POWER_SUPPLY_CHARGE_FULL_DESIGN=3000000
POWER_SUPPLY_CHARGE_FULL=2621000
POWER_SUPPLY_CHARGE_NOW=1986000
POWER_SUPPLY_CHARGE_COUNTER=32611500
POWER_SUPPLY_TEMP=309
POWER_SUPPLY_TEMP_ALERT_MIN=-1280
POWER_SUPPLY_TEMP_ALERT_MAX=1270
POWER_SUPPLY_TEMP_MIN=-2147483648
POWER_SUPPLY_TEMP_MAX=700
POWER_SUPPLY_HEALTH=Good
POWER_SUPPLY_SCOPE=System
POWER_SUPPLY_CURRENT_NOW=-338208
POWER_SUPPLY_CURRENT_AVG=-251160
POWER_SUPPLY_TIME_TO_EMPTY_NOW=27500
==> /sys/class/power_supply/tcpm-source-psy-0-003f/uevent <==
POWER_SUPPLY_NAME=tcpm-source-psy-0-003f
POWER_SUPPLY_TYPE=USB
POWER_SUPPLY_USB_TYPE=[C] PD PD_DRP PD_PPS
POWER_SUPPLY_ONLINE=0
purism@pureos:~$