Description of the battery values

Is there any description about the meaning and the units of these battery values:

purism@pureos:~$ cd /sys/class/power_supply/max170xx_battery
purism@pureos:/sys/class/power_supply/max170xx_battery$ ls
capacity             current_now  scope           temp_max           voltage_min
charge_counter       cycle_count  status          temp_min           voltage_min_design
charge_full          device       subsystem       time_to_empty_now  voltage_now
charge_full_design   health       technology      type               voltage_ocv
charge_now           hwmon4       temp            uevent             wakeup2
charge_term_current  power        temp_alert_max  voltage_avg
current_avg          present      temp_alert_min  voltage_max
purism@pureos:/sys/class/power_supply/max170xx_battery$ cat current_now
428351
purism@pureos:/sys/class/power_supply/max170xx_battery$ cat capacity
93
...

Well, 93 is clear, means 93% actual :slight_smile: , but the others?

1 Like
3 Likes

Thanks for that pointer. It gives also from line 354 on a good explanation about the used units:

struct power_supply_battery_info {
	unsigned int technology;	    /* from the enum above */
	int energy_full_design_uwh;	    /* microWatt-hours */
	int charge_full_design_uah;	    /* microAmp-hours */
	int voltage_min_design_uv;	    /* microVolts */
	int voltage_max_design_uv;	    /* microVolts */...

but not a technical description what the files in the file system mean technically.

1 Like

… at the same time, there’s a lot of coding work to be done and I would rather that get done than documentation. At this stage, documentation is a “would be nice to have”.

I too have wondered about some of the data items. What are they? Would they be useful to me? How do they work?

1 Like