[arch-general] POWER_SUPPLY_CHARGE_FULL(_DESIGN) semantics
Hi, I am wondering what the semantics of POWER_SUPPLY_CHARGE_FULL(_DESIGN) are. I am using a ~3 years old thinkpad with its first battery so aging is something normal I guess. (see below). [watnuss@tp ~]$ cat /sys/class/power_supply/BAT0/uevent POWER_SUPPLY_NAME=BAT0 POWER_SUPPLY_STATUS=Unknown POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_TECHNOLOGY=Li-ion POWER_SUPPLY_CYCLE_COUNT=0 POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000 POWER_SUPPLY_VOLTAGE_NOW=12484000 POWER_SUPPLY_CURRENT_NOW=0 POWER_SUPPLY_CHARGE_FULL_DESIGN=7800000 POWER_SUPPLY_CHARGE_FULL=5052000 POWER_SUPPLY_CHARGE_NOW=4551000 POWER_SUPPLY_CAPACITY=90 POWER_SUPPLY_CAPACITY_LEVEL=Normal POWER_SUPPLY_MODEL_NAME=42T4799 POWER_SUPPLY_MANUFACTURER=SANYO POWER_SUPPLY_SERIAL_NUMBER= 5878 As I understand POWER_SUPPLY_CHARGE_FULL_DESIGN would be the capacity of a fully charged new battery and POWER_SUPPLY_CHARGE_FULL is the maximum capacity of the battery today. I am asking because I am using i3status to show my battery loading state and it shows me 58% which would be (CHARGE_NOW / CHARGE_FULL_DESIGN). If I understand correctly this doesn't make any sense if I am not able to reach the CHARGE_FULL_DESIGN capacity anyways, today. So if anyone with a bit more knowledge about this mechanic could confirm my guess I would contact upstream what they think about it. (In my opinion they should read CHARGE_FULL to determine the current battery %) Another issue I have is that the POWER_SUPPLY_STATUS shows 'Unknown' on AC but 'Discharging' on Battery. Do you have any idea why? My guess is that i3 uses this property to show the battery/AC state in i3status and because of the 'Unkown' value I don't get updates on the state there. Best regards and thanks for your help Christian
On 08/15/14 at 12:27pm, Chrisitan Burkard wrote:
I am asking because I am using i3status to show my battery loading state and it shows me 58% which would be (CHARGE_NOW / CHARGE_FULL_DESIGN). If I understand correctly this doesn't make any sense if I am not able to reach the CHARGE_FULL_DESIGN capacity anyways, today.
So if anyone with a bit more knowledge about this mechanic could confirm my guess I would contact upstream what they think about it. (In my opinion they should read CHARGE_FULL to determine the current battery %)
See the i3status man page about this. It can be used either way, but the default is to use the stated capacity of the battery's design.
Another issue I have is that the POWER_SUPPLY_STATUS shows 'Unknown' on AC but 'Discharging' on Battery. Do you have any idea why? My guess is that i3 uses this property to show the battery/AC state in i3status and because of the 'Unkown' value I don't get updates on the state there.
No idea about why it would be telling you 'Unknown' sorry. -- Curtis Shimamoto
On 15.08.14 at 12:27, Chrisitan Burkard wrote:
... Another issue I have is that the POWER_SUPPLY_STATUS shows 'Unknown' on AC but 'Discharging' on Battery. Do you have any idea why? My guess is that i3 uses this property to show the battery/AC state in i3status and because of the 'Unkown' value I don't get updates on the state there.
The values for POWER_SUPPLY_STATUS on my laptop are: - when running on battery, it is always 'Discharging' - when running on AC: - 'Full' for 100% - 'Unknown' for 95%-99% - 'Charging' for <95% Note that my battery is not getting charged if the level is between 95% and 99% when I plug in AC. -- jlk
Hi, I am wondering what the semantics of POWER_SUPPLY_CHARGE_FULL(_DESIGN) are. I am using a ~3 years old thinkpad with its first battery so aging is something normal I guess. (see below). [watnuss@tp ~]$ cat /sys/class/power_supply/BAT0/uevent POWER_SUPPLY_NAME=BAT0 POWER_SUPPLY_STATUS=Unknown POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_TECHNOLOGY=Li-ion POWER_SUPPLY_CYCLE_COUNT=0 POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000 POWER_SUPPLY_VOLTAGE_NOW=12484000 POWER_SUPPLY_CURRENT_NOW=0 POWER_SUPPLY_CHARGE_FULL_DESIGN=7800000 POWER_SUPPLY_CHARGE_FULL=5052000 POWER_SUPPLY_CHARGE_NOW=4551000 POWER_SUPPLY_CAPACITY=90 POWER_SUPPLY_CAPACITY_LEVEL=Normal POWER_SUPPLY_MODEL_NAME=42T4799 POWER_SUPPLY_MANUFACTURER=SANYO POWER_SUPPLY_SERIAL_NUMBER= 5878 As I understand POWER_SUPPLY_CHARGE_FULL_DESIGN would be the capacity of a fully charged new battery and POWER_SUPPLY_CHARGE_FULL is the maximum capacity of the battery today. I am asking because I am using i3status to show my battery loading state and it shows me 58% which would be (CHARGE_NOW / CHARGE_FULL_DESIGN). If I understand correctly this doesn't make any sense if I am not able to reach the CHARGE_FULL_DESIGN capacity anyways, today. So if anyone with a bit more knowledge about this mechanic could confirm my guess I would contact upstream what they think about it. (In my opinion they should read CHARGE_FULL to determine the current battery %) Another issue I have is that the POWER_SUPPLY_STATUS shows 'Unknown' on AC but 'Discharging' on Battery. Do you have any idea why? My guess is that i3 uses this property to show the battery/AC state in i3status and because of the 'Unkown' value I don't get updates on the state there. Best regards and thanks for your help Christian Am 16.08.2014 22:11, schrieb Jakub Klinkovský:
On 15.08.14 at 12:27, Chrisitan Burkard wrote:
... Another issue I have is that the POWER_SUPPLY_STATUS shows 'Unknown' on AC but 'Discharging' on Battery. Do you have any idea why? My guess is that i3 uses this property to show the battery/AC state in i3status and because of the 'Unkown' value I don't get updates on the state there.
The values for POWER_SUPPLY_STATUS on my laptop are: - when running on battery, it is always 'Discharging' - when running on AC: - 'Full' for 100% - 'Unknown' for 95%-99% - 'Charging' for <95% Note that my battery is not getting charged if the level is between 95% and 99% when I plug in AC.
-- jlk
First of all: sorry for the last mail. I copy pasted the wrong email. Needed to resend it as I sent it with the wrong mail account to the list. @Curtis: Thanks. The hint to the manpage and the "last_full_capacity" property did their job. On 16.08.2014 22:11, Jakub Klinkovský wrote:
On 15.08.14 at 12:27, Chrisitan Burkard wrote:
... Another issue I have is that the POWER_SUPPLY_STATUS shows 'Unknown' on AC but 'Discharging' on Battery. Do you have any idea why? My guess is that i3 uses this property to show the battery/AC state in i3status and because of the 'Unkown' value I don't get updates on the state there.
The values for POWER_SUPPLY_STATUS on my laptop are: - when running on battery, it is always 'Discharging' - when running on AC: - 'Full' for 100% - 'Unknown' for 95%-99% - 'Charging' for <95% Note that my battery is not getting charged if the level is between 95% and 99% when I plug in AC.
-- jlk
You are right. I can confirm this behaviour but with different thresholds. Because of the age of the battery a FULL is never reached. The battery just has to get really low in order to come to its charging status. I just remembered a thing and would be interested what you think. Today only arch runs on my notebook but some time ago I was using dualboot windows, too. At that time the lenovo energy manager realized I mainly use the notebook on AC and switched the maximum battery capacity to around 70% (cannot recall the ecact value). I did not switch that back to 100% before wiping windows. -Is it possible that's (partially) the reason for the low CHARGE_FULL value compared to the CHARGE_FULL_DESIGN value? Or to put it different: Is it possible that the lenovos' windows energy manager driver set CHARGE_FULL to a lower value and linux drivers cannot overwrite this value? -Is there a possibility to change propertys displayed in /sys/class/power_supply/BAT0 without reinstalling windows and fixing it there? If you have links or knowledge for me, I would be really glad as I didn't find anything on my own. Best regards, Christian
On 18/08/14 05:00 AM, Chrisitan Burkard wrote:
First of all: sorry for the last mail. I copy pasted the wrong email. Needed to resend it as I sent it with the wrong mail account to the list.
@Curtis: Thanks. The hint to the manpage and the "last_full_capacity" property did their job.
On 16.08.2014 22:11, Jakub Klinkovský wrote:
... Another issue I have is that the POWER_SUPPLY_STATUS shows 'Unknown' on AC but 'Discharging' on Battery. Do you have any idea why? My guess is that i3 uses this property to show the battery/AC state in i3status and because of the 'Unkown' value I don't get updates on the state there. The values for POWER_SUPPLY_STATUS on my laptop are: - when running on battery, it is always 'Discharging' - when running on AC: - 'Full' for 100% - 'Unknown' for 95%-99% - 'Charging' for <95% Note
On 15.08.14 at 12:27, Chrisitan Burkard wrote: that my battery is not getting charged if the level is between 95% and 99% when I plug in AC.
-- jlk
You are right. I can confirm this behaviour but with different thresholds. Because of the age of the battery a FULL is never reached. The battery just has to get really low in order to come to its charging status.
I just remembered a thing and would be interested what you think.
Today only arch runs on my notebook but some time ago I was using dualboot windows, too. At that time the lenovo energy manager realized I mainly use the notebook on AC and switched the maximum battery capacity to around 70% (cannot recall the ecact value). I did not switch that back to 100% before wiping windows.
-Is it possible that's (partially) the reason for the low CHARGE_FULL value compared to the CHARGE_FULL_DESIGN value? Or to put it different: Is it possible that the lenovos' windows energy manager driver set CHARGE_FULL to a lower value and linux drivers cannot overwrite this value? -Is there a possibility to change propertys displayed in /sys/class/power_supply/BAT0 without reinstalling windows and fixing it there?
If you have links or knowledge for me, I would be really glad as I didn't find anything on my own.
Best regards,
Christian
I also get the Unknown value, but I've set the thresholds of my T530 to something lower, using TLP [ https://wiki.archlinux.org/index.php/TLP ]. I don't think the value of CHARGE_FULL related because the charging thresholds seem to be completely independent, and I've been watching mine go down slowly ever since I bough my laptop. Also, reduced capacity over time is expected for any battery. Additionally, TLP lets you change the charging thresholds arbitrarily at runtime, and that value doesn't follow. ~Matthew
participants (4)
-
Chrisitan Burkard
-
Curtis Shimamoto
-
Jakub Klinkovský
-
Matthew J.P Walker