11-13-2019, 01:18 AM
(11-13-2019, 12:00 AM)hdk Wrote: My battery is no more than 20C environmental temperature.
VoxUnius already told you there is no proper temperature sensor in the battery. The battery driver is faking the temperature to 18.8 degree Celsius in include/linux/power/cw2015_battery.h
Code:
#define VIRTUAL_TEMPERATURE 188
Our battery driver is quite dumb hardcoding values which are not fixed but need to be retrieved from the battery. This hardcoding makes the battery look better to users than it is:
The heath of the battery is hardcoded to "good" and the last full charge (which degenerates over time) is hard-coded to always the same value 98.