162306a36Sopenharmony_ci**General Properties** 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/manufacturer 462306a36Sopenharmony_ciDate: May 2007 562306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 662306a36Sopenharmony_ciDescription: 762306a36Sopenharmony_ci Reports the name of the device manufacturer. 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci Access: Read 1062306a36Sopenharmony_ci Valid values: Represented as string 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/model_name 1362306a36Sopenharmony_ciDate: May 2007 1462306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 1562306a36Sopenharmony_ciDescription: 1662306a36Sopenharmony_ci Reports the name of the device model. 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci Access: Read 1962306a36Sopenharmony_ci Valid values: Represented as string 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/serial_number 2262306a36Sopenharmony_ciDate: January 2008 2362306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 2462306a36Sopenharmony_ciDescription: 2562306a36Sopenharmony_ci Reports the serial number of the device. 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ci Access: Read 2862306a36Sopenharmony_ci Valid values: Represented as string 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/type 3162306a36Sopenharmony_ciDate: May 2010 3262306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 3362306a36Sopenharmony_ciDescription: 3462306a36Sopenharmony_ci Describes the main type of the supply. 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci Access: Read 3762306a36Sopenharmony_ci Valid values: "Battery", "UPS", "Mains", "USB", "Wireless" 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_ci**Battery and USB properties** 4062306a36Sopenharmony_ci 4162306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/current_avg 4262306a36Sopenharmony_ciDate: May 2007 4362306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 4462306a36Sopenharmony_ciDescription: 4562306a36Sopenharmony_ci Battery: 4662306a36Sopenharmony_ci 4762306a36Sopenharmony_ci Reports an average IBAT current reading for the battery, over 4862306a36Sopenharmony_ci a fixed period. Normally devices will provide a fixed interval 4962306a36Sopenharmony_ci in which they average readings to smooth out the reported 5062306a36Sopenharmony_ci value. 5162306a36Sopenharmony_ci 5262306a36Sopenharmony_ci USB: 5362306a36Sopenharmony_ci 5462306a36Sopenharmony_ci Reports an average IBUS current reading over a fixed period. 5562306a36Sopenharmony_ci Normally devices will provide a fixed interval in which they 5662306a36Sopenharmony_ci average readings to smooth out the reported value. 5762306a36Sopenharmony_ci 5862306a36Sopenharmony_ci Access: Read 5962306a36Sopenharmony_ci 6062306a36Sopenharmony_ci Valid values: Represented in microamps. Negative values are 6162306a36Sopenharmony_ci used for discharging batteries, positive values for charging 6262306a36Sopenharmony_ci batteries and for USB IBUS current. 6362306a36Sopenharmony_ci 6462306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/current_max 6562306a36Sopenharmony_ciDate: October 2010 6662306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 6762306a36Sopenharmony_ciDescription: 6862306a36Sopenharmony_ci Battery: 6962306a36Sopenharmony_ci 7062306a36Sopenharmony_ci Reports the maximum IBAT current allowed into the battery. 7162306a36Sopenharmony_ci 7262306a36Sopenharmony_ci USB: 7362306a36Sopenharmony_ci 7462306a36Sopenharmony_ci Reports the maximum IBUS current the supply can support. 7562306a36Sopenharmony_ci 7662306a36Sopenharmony_ci Access: Read 7762306a36Sopenharmony_ci Valid values: Represented in microamps 7862306a36Sopenharmony_ci 7962306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/current_now 8062306a36Sopenharmony_ciDate: May 2007 8162306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 8262306a36Sopenharmony_ciDescription: 8362306a36Sopenharmony_ci 8462306a36Sopenharmony_ci Battery: 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_ci Reports an instant, single IBAT current reading for the 8762306a36Sopenharmony_ci battery. This value is not averaged/smoothed. 8862306a36Sopenharmony_ci 8962306a36Sopenharmony_ci Access: Read 9062306a36Sopenharmony_ci 9162306a36Sopenharmony_ci USB: 9262306a36Sopenharmony_ci 9362306a36Sopenharmony_ci Reports the IBUS current supplied now. This value is generally 9462306a36Sopenharmony_ci read-only reporting, unless the 'online' state of the supply 9562306a36Sopenharmony_ci is set to be programmable, in which case this value can be set 9662306a36Sopenharmony_ci within the reported min/max range. 9762306a36Sopenharmony_ci 9862306a36Sopenharmony_ci Access: Read, Write 9962306a36Sopenharmony_ci 10062306a36Sopenharmony_ci Valid values: Represented in microamps. Negative values are 10162306a36Sopenharmony_ci used for discharging batteries, positive values for charging 10262306a36Sopenharmony_ci batteries and for USB IBUS current. 10362306a36Sopenharmony_ci 10462306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/temp 10562306a36Sopenharmony_ciDate: May 2007 10662306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 10762306a36Sopenharmony_ciDescription: 10862306a36Sopenharmony_ci Battery: 10962306a36Sopenharmony_ci 11062306a36Sopenharmony_ci Reports the current TBAT battery temperature reading. 11162306a36Sopenharmony_ci 11262306a36Sopenharmony_ci USB: 11362306a36Sopenharmony_ci 11462306a36Sopenharmony_ci Reports the current supply temperature reading. This would 11562306a36Sopenharmony_ci normally be the internal temperature of the device itself 11662306a36Sopenharmony_ci (e.g TJUNC temperature of an IC) 11762306a36Sopenharmony_ci 11862306a36Sopenharmony_ci Access: Read 11962306a36Sopenharmony_ci 12062306a36Sopenharmony_ci Valid values: Represented in 1/10 Degrees Celsius 12162306a36Sopenharmony_ci 12262306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/temp_alert_max 12362306a36Sopenharmony_ciDate: July 2012 12462306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 12562306a36Sopenharmony_ciDescription: 12662306a36Sopenharmony_ci Battery: 12762306a36Sopenharmony_ci 12862306a36Sopenharmony_ci Maximum TBAT temperature trip-wire value where the supply will 12962306a36Sopenharmony_ci notify user-space of the event. 13062306a36Sopenharmony_ci 13162306a36Sopenharmony_ci USB: 13262306a36Sopenharmony_ci 13362306a36Sopenharmony_ci Maximum supply temperature trip-wire value where the supply 13462306a36Sopenharmony_ci will notify user-space of the event. 13562306a36Sopenharmony_ci 13662306a36Sopenharmony_ci This is normally used for the charging scenario where 13762306a36Sopenharmony_ci user-space needs to know if the temperature has crossed an 13862306a36Sopenharmony_ci upper threshold so it can take appropriate action (e.g. warning 13962306a36Sopenharmony_ci user that the temperature is critically high, and charging has 14062306a36Sopenharmony_ci stopped). 14162306a36Sopenharmony_ci 14262306a36Sopenharmony_ci Access: Read 14362306a36Sopenharmony_ci 14462306a36Sopenharmony_ci Valid values: Represented in 1/10 Degrees Celsius 14562306a36Sopenharmony_ci 14662306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/temp_alert_min 14762306a36Sopenharmony_ciDate: July 2012 14862306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 14962306a36Sopenharmony_ciDescription: 15062306a36Sopenharmony_ci 15162306a36Sopenharmony_ci Battery: 15262306a36Sopenharmony_ci 15362306a36Sopenharmony_ci Minimum TBAT temperature trip-wire value where the supply will 15462306a36Sopenharmony_ci notify user-space of the event. 15562306a36Sopenharmony_ci 15662306a36Sopenharmony_ci USB: 15762306a36Sopenharmony_ci 15862306a36Sopenharmony_ci Minimum supply temperature trip-wire value where the supply 15962306a36Sopenharmony_ci will notify user-space of the event. 16062306a36Sopenharmony_ci 16162306a36Sopenharmony_ci This is normally used for the charging scenario where user-space 16262306a36Sopenharmony_ci needs to know if the temperature has crossed a lower threshold 16362306a36Sopenharmony_ci so it can take appropriate action (e.g. warning user that 16462306a36Sopenharmony_ci temperature level is high, and charging current has been 16562306a36Sopenharmony_ci reduced accordingly to remedy the situation). 16662306a36Sopenharmony_ci 16762306a36Sopenharmony_ci Access: Read 16862306a36Sopenharmony_ci 16962306a36Sopenharmony_ci Valid values: Represented in 1/10 Degrees Celsius 17062306a36Sopenharmony_ci 17162306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/temp_max 17262306a36Sopenharmony_ciDate: July 2014 17362306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 17462306a36Sopenharmony_ciDescription: 17562306a36Sopenharmony_ci Battery: 17662306a36Sopenharmony_ci 17762306a36Sopenharmony_ci Reports the maximum allowed TBAT battery temperature for 17862306a36Sopenharmony_ci charging. 17962306a36Sopenharmony_ci 18062306a36Sopenharmony_ci USB: 18162306a36Sopenharmony_ci 18262306a36Sopenharmony_ci Reports the maximum allowed supply temperature for operation. 18362306a36Sopenharmony_ci 18462306a36Sopenharmony_ci Access: Read 18562306a36Sopenharmony_ci 18662306a36Sopenharmony_ci Valid values: Represented in 1/10 Degrees Celsius 18762306a36Sopenharmony_ci 18862306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/temp_min 18962306a36Sopenharmony_ciDate: July 2014 19062306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 19162306a36Sopenharmony_ciDescription: 19262306a36Sopenharmony_ci Battery: 19362306a36Sopenharmony_ci 19462306a36Sopenharmony_ci Reports the minimum allowed TBAT battery temperature for 19562306a36Sopenharmony_ci charging. 19662306a36Sopenharmony_ci 19762306a36Sopenharmony_ci USB: 19862306a36Sopenharmony_ci 19962306a36Sopenharmony_ci Reports the minimum allowed supply temperature for operation. 20062306a36Sopenharmony_ci 20162306a36Sopenharmony_ci Access: Read 20262306a36Sopenharmony_ci 20362306a36Sopenharmony_ci Valid values: Represented in 1/10 Degrees Celsius 20462306a36Sopenharmony_ci 20562306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/voltage_max, 20662306a36Sopenharmony_ciDate: January 2008 20762306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 20862306a36Sopenharmony_ciDescription: 20962306a36Sopenharmony_ci Battery: 21062306a36Sopenharmony_ci 21162306a36Sopenharmony_ci Reports the maximum safe VBAT voltage permitted for the 21262306a36Sopenharmony_ci battery, during charging. 21362306a36Sopenharmony_ci 21462306a36Sopenharmony_ci USB: 21562306a36Sopenharmony_ci 21662306a36Sopenharmony_ci Reports the maximum VBUS voltage the supply can support. 21762306a36Sopenharmony_ci 21862306a36Sopenharmony_ci Access: Read 21962306a36Sopenharmony_ci 22062306a36Sopenharmony_ci Valid values: Represented in microvolts 22162306a36Sopenharmony_ci 22262306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/voltage_min, 22362306a36Sopenharmony_ciDate: January 2008 22462306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 22562306a36Sopenharmony_ciDescription: 22662306a36Sopenharmony_ci Battery: 22762306a36Sopenharmony_ci 22862306a36Sopenharmony_ci Reports the minimum safe VBAT voltage permitted for the 22962306a36Sopenharmony_ci battery, during discharging. 23062306a36Sopenharmony_ci 23162306a36Sopenharmony_ci USB: 23262306a36Sopenharmony_ci 23362306a36Sopenharmony_ci Reports the minimum VBUS voltage the supply can support. 23462306a36Sopenharmony_ci 23562306a36Sopenharmony_ci Access: Read 23662306a36Sopenharmony_ci 23762306a36Sopenharmony_ci Valid values: Represented in microvolts 23862306a36Sopenharmony_ci 23962306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/voltage_now, 24062306a36Sopenharmony_ciDate: May 2007 24162306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 24262306a36Sopenharmony_ciDescription: 24362306a36Sopenharmony_ci Battery: 24462306a36Sopenharmony_ci 24562306a36Sopenharmony_ci Reports an instant, single VBAT voltage reading for the 24662306a36Sopenharmony_ci battery. This value is not averaged/smoothed. 24762306a36Sopenharmony_ci 24862306a36Sopenharmony_ci Access: Read 24962306a36Sopenharmony_ci 25062306a36Sopenharmony_ci USB: 25162306a36Sopenharmony_ci 25262306a36Sopenharmony_ci Reports the VBUS voltage supplied now. This value is generally 25362306a36Sopenharmony_ci read-only reporting, unless the 'online' state of the supply 25462306a36Sopenharmony_ci is set to be programmable, in which case this value can be set 25562306a36Sopenharmony_ci within the reported min/max range. 25662306a36Sopenharmony_ci 25762306a36Sopenharmony_ci Access: Read, Write 25862306a36Sopenharmony_ci 25962306a36Sopenharmony_ci Valid values: Represented in microvolts 26062306a36Sopenharmony_ci 26162306a36Sopenharmony_ci**Battery Properties** 26262306a36Sopenharmony_ci 26362306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/capacity 26462306a36Sopenharmony_ciDate: May 2007 26562306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 26662306a36Sopenharmony_ciDescription: 26762306a36Sopenharmony_ci Fine grain representation of battery capacity. 26862306a36Sopenharmony_ci 26962306a36Sopenharmony_ci Access: Read 27062306a36Sopenharmony_ci 27162306a36Sopenharmony_ci Valid values: 0 - 100 (percent) 27262306a36Sopenharmony_ci 27362306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/capacity_alert_max 27462306a36Sopenharmony_ciDate: July 2012 27562306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 27662306a36Sopenharmony_ciDescription: 27762306a36Sopenharmony_ci Maximum battery capacity trip-wire value where the supply will 27862306a36Sopenharmony_ci notify user-space of the event. This is normally used for the 27962306a36Sopenharmony_ci battery discharging scenario where user-space needs to know the 28062306a36Sopenharmony_ci battery has dropped to an upper level so it can take 28162306a36Sopenharmony_ci appropriate action (e.g. warning user that battery level is 28262306a36Sopenharmony_ci low). 28362306a36Sopenharmony_ci 28462306a36Sopenharmony_ci Access: Read, Write 28562306a36Sopenharmony_ci 28662306a36Sopenharmony_ci Valid values: 0 - 100 (percent) 28762306a36Sopenharmony_ci 28862306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/capacity_alert_min 28962306a36Sopenharmony_ciDate: July 2012 29062306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 29162306a36Sopenharmony_ciDescription: 29262306a36Sopenharmony_ci Minimum battery capacity trip-wire value where the supply will 29362306a36Sopenharmony_ci notify user-space of the event. This is normally used for the 29462306a36Sopenharmony_ci battery discharging scenario where user-space needs to know the 29562306a36Sopenharmony_ci battery has dropped to a lower level so it can take 29662306a36Sopenharmony_ci appropriate action (e.g. warning user that battery level is 29762306a36Sopenharmony_ci critically low). 29862306a36Sopenharmony_ci 29962306a36Sopenharmony_ci Access: Read, Write 30062306a36Sopenharmony_ci 30162306a36Sopenharmony_ci Valid values: 0 - 100 (percent) 30262306a36Sopenharmony_ci 30362306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/capacity_error_margin 30462306a36Sopenharmony_ciDate: April 2019 30562306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 30662306a36Sopenharmony_ciDescription: 30762306a36Sopenharmony_ci Battery capacity measurement becomes unreliable without 30862306a36Sopenharmony_ci recalibration. This values provides the maximum error 30962306a36Sopenharmony_ci margin expected to exist by the fuel gauge in percent. 31062306a36Sopenharmony_ci Values close to 0% will be returned after (re-)calibration 31162306a36Sopenharmony_ci has happened. Over time the error margin will increase. 31262306a36Sopenharmony_ci 100% means, that the capacity related values are basically 31362306a36Sopenharmony_ci completely useless. 31462306a36Sopenharmony_ci 31562306a36Sopenharmony_ci Access: Read 31662306a36Sopenharmony_ci 31762306a36Sopenharmony_ci Valid values: 0 - 100 (percent) 31862306a36Sopenharmony_ci 31962306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/capacity_level 32062306a36Sopenharmony_ciDate: June 2009 32162306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 32262306a36Sopenharmony_ciDescription: 32362306a36Sopenharmony_ci Coarse representation of battery capacity. 32462306a36Sopenharmony_ci 32562306a36Sopenharmony_ci Access: Read 32662306a36Sopenharmony_ci 32762306a36Sopenharmony_ci Valid values: 32862306a36Sopenharmony_ci "Unknown", "Critical", "Low", "Normal", "High", 32962306a36Sopenharmony_ci "Full" 33062306a36Sopenharmony_ci 33162306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/charge_control_limit 33262306a36Sopenharmony_ciDate: Oct 2012 33362306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 33462306a36Sopenharmony_ciDescription: 33562306a36Sopenharmony_ci Maximum allowable charging current. Used for charge rate 33662306a36Sopenharmony_ci throttling for thermal cooling or improving battery health. 33762306a36Sopenharmony_ci 33862306a36Sopenharmony_ci Access: Read, Write 33962306a36Sopenharmony_ci 34062306a36Sopenharmony_ci Valid values: Represented in microamps 34162306a36Sopenharmony_ci 34262306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/charge_control_limit_max 34362306a36Sopenharmony_ciDate: Oct 2012 34462306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 34562306a36Sopenharmony_ciDescription: 34662306a36Sopenharmony_ci Maximum legal value for the charge_control_limit property. 34762306a36Sopenharmony_ci 34862306a36Sopenharmony_ci Access: Read 34962306a36Sopenharmony_ci 35062306a36Sopenharmony_ci Valid values: Represented in microamps 35162306a36Sopenharmony_ci 35262306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/charge_control_start_threshold 35362306a36Sopenharmony_ciDate: April 2019 35462306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 35562306a36Sopenharmony_ciDescription: 35662306a36Sopenharmony_ci Represents a battery percentage level, below which charging will 35762306a36Sopenharmony_ci begin. 35862306a36Sopenharmony_ci 35962306a36Sopenharmony_ci Access: Read, Write 36062306a36Sopenharmony_ci Valid values: 0 - 100 (percent) 36162306a36Sopenharmony_ci 36262306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/charge_control_end_threshold 36362306a36Sopenharmony_ciDate: April 2019 36462306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 36562306a36Sopenharmony_ciDescription: 36662306a36Sopenharmony_ci Represents a battery percentage level, above which charging will 36762306a36Sopenharmony_ci stop. Not all hardware is capable of setting this to an arbitrary 36862306a36Sopenharmony_ci percentage. Drivers will round written values to the nearest 36962306a36Sopenharmony_ci supported value. Reading back the value will show the actual 37062306a36Sopenharmony_ci threshold set by the driver. 37162306a36Sopenharmony_ci 37262306a36Sopenharmony_ci Access: Read, Write 37362306a36Sopenharmony_ci 37462306a36Sopenharmony_ci Valid values: 0 - 100 (percent) 37562306a36Sopenharmony_ci 37662306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/charge_type 37762306a36Sopenharmony_ciDate: July 2009 37862306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 37962306a36Sopenharmony_ciDescription: 38062306a36Sopenharmony_ci Represents the type of charging currently being applied to the 38162306a36Sopenharmony_ci battery. "Trickle", "Fast", and "Standard" all mean different 38262306a36Sopenharmony_ci charging speeds. "Adaptive" means that the charger uses some 38362306a36Sopenharmony_ci algorithm to adjust the charge rate dynamically, without 38462306a36Sopenharmony_ci any user configuration required. "Custom" means that the charger 38562306a36Sopenharmony_ci uses the charge_control_* properties as configuration for some 38662306a36Sopenharmony_ci different algorithm. "Long Life" means the charger reduces its 38762306a36Sopenharmony_ci charging rate in order to prolong the battery health. "Bypass" 38862306a36Sopenharmony_ci means the charger bypasses the charging path around the 38962306a36Sopenharmony_ci integrated converter allowing for a "smart" wall adaptor to 39062306a36Sopenharmony_ci perform the power conversion externally. 39162306a36Sopenharmony_ci 39262306a36Sopenharmony_ci Access: Read, Write 39362306a36Sopenharmony_ci 39462306a36Sopenharmony_ci Valid values: 39562306a36Sopenharmony_ci "Unknown", "N/A", "Trickle", "Fast", "Standard", 39662306a36Sopenharmony_ci "Adaptive", "Custom", "Long Life", "Bypass" 39762306a36Sopenharmony_ci 39862306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/charge_term_current 39962306a36Sopenharmony_ciDate: July 2014 40062306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 40162306a36Sopenharmony_ciDescription: 40262306a36Sopenharmony_ci Reports the charging current value which is used to determine 40362306a36Sopenharmony_ci when the battery is considered full and charging should end. 40462306a36Sopenharmony_ci 40562306a36Sopenharmony_ci Access: Read 40662306a36Sopenharmony_ci 40762306a36Sopenharmony_ci Valid values: Represented in microamps 40862306a36Sopenharmony_ci 40962306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/health 41062306a36Sopenharmony_ciDate: May 2007 41162306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 41262306a36Sopenharmony_ciDescription: 41362306a36Sopenharmony_ci Reports the health of the battery or battery side of charger 41462306a36Sopenharmony_ci functionality. 41562306a36Sopenharmony_ci 41662306a36Sopenharmony_ci Access: Read 41762306a36Sopenharmony_ci 41862306a36Sopenharmony_ci Valid values: 41962306a36Sopenharmony_ci "Unknown", "Good", "Overheat", "Dead", 42062306a36Sopenharmony_ci "Over voltage", "Unspecified failure", "Cold", 42162306a36Sopenharmony_ci "Watchdog timer expire", "Safety timer expire", 42262306a36Sopenharmony_ci "Over current", "Calibration required", "Warm", 42362306a36Sopenharmony_ci "Cool", "Hot", "No battery" 42462306a36Sopenharmony_ci 42562306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/precharge_current 42662306a36Sopenharmony_ciDate: June 2017 42762306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 42862306a36Sopenharmony_ciDescription: 42962306a36Sopenharmony_ci Reports the charging current applied during pre-charging phase 43062306a36Sopenharmony_ci for a battery charge cycle. 43162306a36Sopenharmony_ci 43262306a36Sopenharmony_ci Access: Read 43362306a36Sopenharmony_ci 43462306a36Sopenharmony_ci Valid values: Represented in microamps 43562306a36Sopenharmony_ci 43662306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/present 43762306a36Sopenharmony_ciDate: May 2007 43862306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 43962306a36Sopenharmony_ciDescription: 44062306a36Sopenharmony_ci Reports whether a battery is present or not in the system. If the 44162306a36Sopenharmony_ci property does not exist, the battery is considered to be present. 44262306a36Sopenharmony_ci 44362306a36Sopenharmony_ci Access: Read 44462306a36Sopenharmony_ci 44562306a36Sopenharmony_ci Valid values: 44662306a36Sopenharmony_ci 44762306a36Sopenharmony_ci == ======= 44862306a36Sopenharmony_ci 0: Absent 44962306a36Sopenharmony_ci 1: Present 45062306a36Sopenharmony_ci == ======= 45162306a36Sopenharmony_ci 45262306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/status 45362306a36Sopenharmony_ciDate: May 2007 45462306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 45562306a36Sopenharmony_ciDescription: 45662306a36Sopenharmony_ci Represents the charging status of the battery. Normally this 45762306a36Sopenharmony_ci is read-only reporting although for some supplies this can be 45862306a36Sopenharmony_ci used to enable/disable charging to the battery. 45962306a36Sopenharmony_ci 46062306a36Sopenharmony_ci Access: Read, Write 46162306a36Sopenharmony_ci 46262306a36Sopenharmony_ci Valid values: 46362306a36Sopenharmony_ci "Unknown", "Charging", "Discharging", 46462306a36Sopenharmony_ci "Not charging", "Full" 46562306a36Sopenharmony_ci 46662306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/charge_behaviour 46762306a36Sopenharmony_ciDate: November 2021 46862306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 46962306a36Sopenharmony_ciDescription: 47062306a36Sopenharmony_ci Represents the charging behaviour. 47162306a36Sopenharmony_ci 47262306a36Sopenharmony_ci Access: Read, Write 47362306a36Sopenharmony_ci 47462306a36Sopenharmony_ci Valid values: 47562306a36Sopenharmony_ci ================ ==================================== 47662306a36Sopenharmony_ci auto: Charge normally, respect thresholds 47762306a36Sopenharmony_ci inhibit-charge: Do not charge while AC is attached 47862306a36Sopenharmony_ci force-discharge: Force discharge while AC is attached 47962306a36Sopenharmony_ci ================ ==================================== 48062306a36Sopenharmony_ci 48162306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/technology 48262306a36Sopenharmony_ciDate: May 2007 48362306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 48462306a36Sopenharmony_ciDescription: 48562306a36Sopenharmony_ci Describes the battery technology supported by the supply. 48662306a36Sopenharmony_ci 48762306a36Sopenharmony_ci Access: Read 48862306a36Sopenharmony_ci 48962306a36Sopenharmony_ci Valid values: 49062306a36Sopenharmony_ci "Unknown", "NiMH", "Li-ion", "Li-poly", "LiFe", 49162306a36Sopenharmony_ci "NiCd", "LiMn" 49262306a36Sopenharmony_ci 49362306a36Sopenharmony_ci 49462306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/voltage_avg, 49562306a36Sopenharmony_ciDate: May 2007 49662306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 49762306a36Sopenharmony_ciDescription: 49862306a36Sopenharmony_ci Reports an average VBAT voltage reading for the battery, over a 49962306a36Sopenharmony_ci fixed period. Normally devices will provide a fixed interval in 50062306a36Sopenharmony_ci which they average readings to smooth out the reported value. 50162306a36Sopenharmony_ci 50262306a36Sopenharmony_ci Access: Read 50362306a36Sopenharmony_ci 50462306a36Sopenharmony_ci Valid values: Represented in microvolts 50562306a36Sopenharmony_ci 50662306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/cycle_count 50762306a36Sopenharmony_ciDate: January 2010 50862306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 50962306a36Sopenharmony_ciDescription: 51062306a36Sopenharmony_ci Reports the number of full charge + discharge cycles the 51162306a36Sopenharmony_ci battery has undergone. 51262306a36Sopenharmony_ci 51362306a36Sopenharmony_ci Access: Read 51462306a36Sopenharmony_ci 51562306a36Sopenharmony_ci Valid values: 51662306a36Sopenharmony_ci Integer > 0: representing full cycles 51762306a36Sopenharmony_ci Integer = 0: cycle_count info is not available 51862306a36Sopenharmony_ci 51962306a36Sopenharmony_ci**USB Properties** 52062306a36Sopenharmony_ci 52162306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/input_current_limit 52262306a36Sopenharmony_ciDate: July 2014 52362306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 52462306a36Sopenharmony_ciDescription: 52562306a36Sopenharmony_ci Details the incoming IBUS current limit currently set in the 52662306a36Sopenharmony_ci supply. Normally this is configured based on the type of 52762306a36Sopenharmony_ci connection made (e.g. A configured SDP should output a maximum 52862306a36Sopenharmony_ci of 500mA so the input current limit is set to the same value). 52962306a36Sopenharmony_ci Use preferably input_power_limit, and for problems that can be 53062306a36Sopenharmony_ci solved using power limit use input_current_limit. 53162306a36Sopenharmony_ci 53262306a36Sopenharmony_ci Access: Read, Write 53362306a36Sopenharmony_ci 53462306a36Sopenharmony_ci Valid values: Represented in microamps 53562306a36Sopenharmony_ci 53662306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/input_voltage_limit 53762306a36Sopenharmony_ciDate: May 2019 53862306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 53962306a36Sopenharmony_ciDescription: 54062306a36Sopenharmony_ci This entry configures the incoming VBUS voltage limit currently 54162306a36Sopenharmony_ci set in the supply. Normally this is configured based on 54262306a36Sopenharmony_ci system-level knowledge or user input (e.g. This is part of the 54362306a36Sopenharmony_ci Pixel C's thermal management strategy to effectively limit the 54462306a36Sopenharmony_ci input power to 5V when the screen is on to meet Google's skin 54562306a36Sopenharmony_ci temperature targets). Note that this feature should not be 54662306a36Sopenharmony_ci used for safety critical things. 54762306a36Sopenharmony_ci Use preferably input_power_limit, and for problems that can be 54862306a36Sopenharmony_ci solved using power limit use input_voltage_limit. 54962306a36Sopenharmony_ci 55062306a36Sopenharmony_ci Access: Read, Write 55162306a36Sopenharmony_ci 55262306a36Sopenharmony_ci Valid values: Represented in microvolts 55362306a36Sopenharmony_ci 55462306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/input_power_limit 55562306a36Sopenharmony_ciDate: May 2019 55662306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 55762306a36Sopenharmony_ciDescription: 55862306a36Sopenharmony_ci This entry configures the incoming power limit currently set 55962306a36Sopenharmony_ci in the supply. Normally this is configured based on 56062306a36Sopenharmony_ci system-level knowledge or user input. Use preferably this 56162306a36Sopenharmony_ci feature to limit the incoming power and use current/voltage 56262306a36Sopenharmony_ci limit only for problems that can be solved using power limit. 56362306a36Sopenharmony_ci 56462306a36Sopenharmony_ci Access: Read, Write 56562306a36Sopenharmony_ci 56662306a36Sopenharmony_ci Valid values: Represented in microwatts 56762306a36Sopenharmony_ci 56862306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/online, 56962306a36Sopenharmony_ciDate: May 2007 57062306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 57162306a36Sopenharmony_ciDescription: 57262306a36Sopenharmony_ci Indicates if VBUS is present for the supply. When the supply is 57362306a36Sopenharmony_ci online, and the supply allows it, then it's possible to switch 57462306a36Sopenharmony_ci between online states (e.g. Fixed -> Programmable for a PD_PPS 57562306a36Sopenharmony_ci USB supply so voltage and current can be controlled). 57662306a36Sopenharmony_ci 57762306a36Sopenharmony_ci Access: Read, Write 57862306a36Sopenharmony_ci 57962306a36Sopenharmony_ci Valid values: 58062306a36Sopenharmony_ci 58162306a36Sopenharmony_ci == ================================================== 58262306a36Sopenharmony_ci 0: Offline 58362306a36Sopenharmony_ci 1: Online Fixed - Fixed Voltage Supply 58462306a36Sopenharmony_ci 2: Online Programmable - Programmable Voltage Supply 58562306a36Sopenharmony_ci == ================================================== 58662306a36Sopenharmony_ci 58762306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/usb_type 58862306a36Sopenharmony_ciDate: March 2018 58962306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 59062306a36Sopenharmony_ciDescription: 59162306a36Sopenharmony_ci Reports what type of USB connection is currently active for 59262306a36Sopenharmony_ci the supply, for example it can show if USB-PD capable source 59362306a36Sopenharmony_ci is attached. 59462306a36Sopenharmony_ci 59562306a36Sopenharmony_ci Access: Read-Only 59662306a36Sopenharmony_ci 59762306a36Sopenharmony_ci Valid values: 59862306a36Sopenharmony_ci "Unknown", "SDP", "DCP", "CDP", "ACA", "C", "PD", 59962306a36Sopenharmony_ci "PD_DRP", "PD_PPS", "BrickID" 60062306a36Sopenharmony_ci 60162306a36Sopenharmony_ci**Device Specific Properties** 60262306a36Sopenharmony_ci 60362306a36Sopenharmony_ciWhat: /sys/class/power/ds2760-battery.*/charge_now 60462306a36Sopenharmony_ciDate: May 2010 60562306a36Sopenharmony_ciKernelVersion: 2.6.35 60662306a36Sopenharmony_ciContact: Daniel Mack <daniel@caiaq.de> 60762306a36Sopenharmony_ciDescription: 60862306a36Sopenharmony_ci This file is writeable and can be used to set the current 60962306a36Sopenharmony_ci coloumb counter value inside the battery monitor chip. This 61062306a36Sopenharmony_ci is needed for unavoidable corrections of aging batteries. 61162306a36Sopenharmony_ci A userspace daemon can monitor the battery charging logic 61262306a36Sopenharmony_ci and once the counter drops out of considerable bounds, take 61362306a36Sopenharmony_ci appropriate action. 61462306a36Sopenharmony_ci 61562306a36Sopenharmony_ciWhat: /sys/class/power/ds2760-battery.*/charge_full 61662306a36Sopenharmony_ciDate: May 2010 61762306a36Sopenharmony_ciKernelVersion: 2.6.35 61862306a36Sopenharmony_ciContact: Daniel Mack <daniel@caiaq.de> 61962306a36Sopenharmony_ciDescription: 62062306a36Sopenharmony_ci This file is writeable and can be used to set the assumed 62162306a36Sopenharmony_ci battery 'full level'. As batteries age, this value has to be 62262306a36Sopenharmony_ci amended over time. 62362306a36Sopenharmony_ci 62462306a36Sopenharmony_ciWhat: /sys/class/power_supply/max14577-charger/device/fast_charge_timer 62562306a36Sopenharmony_ciDate: October 2014 62662306a36Sopenharmony_ciKernelVersion: 3.18.0 62762306a36Sopenharmony_ciContact: Krzysztof Kozlowski <krzk@kernel.org> 62862306a36Sopenharmony_ciDescription: 62962306a36Sopenharmony_ci This entry shows and sets the maximum time the max14577 63062306a36Sopenharmony_ci charger operates in fast-charge mode. When the timer expires 63162306a36Sopenharmony_ci the device will terminate fast-charge mode (charging current 63262306a36Sopenharmony_ci will drop to 0 A) and will trigger interrupt. 63362306a36Sopenharmony_ci 63462306a36Sopenharmony_ci Valid values: 63562306a36Sopenharmony_ci 63662306a36Sopenharmony_ci - 5, 6 or 7 (hours), 63762306a36Sopenharmony_ci - 0: disabled. 63862306a36Sopenharmony_ci 63962306a36Sopenharmony_ciWhat: /sys/class/power_supply/max77693-charger/device/fast_charge_timer 64062306a36Sopenharmony_ciDate: January 2015 64162306a36Sopenharmony_ciKernelVersion: 3.19.0 64262306a36Sopenharmony_ciContact: Krzysztof Kozlowski <krzk@kernel.org> 64362306a36Sopenharmony_ciDescription: 64462306a36Sopenharmony_ci This entry shows and sets the maximum time the max77693 64562306a36Sopenharmony_ci charger operates in fast-charge mode. When the timer expires 64662306a36Sopenharmony_ci the device will terminate fast-charge mode (charging current 64762306a36Sopenharmony_ci will drop to 0 A) and will trigger interrupt. 64862306a36Sopenharmony_ci 64962306a36Sopenharmony_ci Valid values: 65062306a36Sopenharmony_ci 65162306a36Sopenharmony_ci - 4 - 16 (hours), step by 2 (rounded down) 65262306a36Sopenharmony_ci - 0: disabled. 65362306a36Sopenharmony_ci 65462306a36Sopenharmony_ciWhat: /sys/class/power_supply/max77693-charger/device/top_off_threshold_current 65562306a36Sopenharmony_ciDate: January 2015 65662306a36Sopenharmony_ciKernelVersion: 3.19.0 65762306a36Sopenharmony_ciContact: Krzysztof Kozlowski <krzk@kernel.org> 65862306a36Sopenharmony_ciDescription: 65962306a36Sopenharmony_ci This entry shows and sets the charging current threshold for 66062306a36Sopenharmony_ci entering top-off charging mode. When charging current in fast 66162306a36Sopenharmony_ci charge mode drops below this value, the charger will trigger 66262306a36Sopenharmony_ci interrupt and start top-off charging mode. 66362306a36Sopenharmony_ci 66462306a36Sopenharmony_ci Valid values: 66562306a36Sopenharmony_ci 66662306a36Sopenharmony_ci - 100000 - 200000 (microamps), step by 25000 (rounded down) 66762306a36Sopenharmony_ci - 200000 - 350000 (microamps), step by 50000 (rounded down) 66862306a36Sopenharmony_ci - 0: disabled. 66962306a36Sopenharmony_ci 67062306a36Sopenharmony_ciWhat: /sys/class/power_supply/max77693-charger/device/top_off_timer 67162306a36Sopenharmony_ciDate: January 2015 67262306a36Sopenharmony_ciKernelVersion: 3.19.0 67362306a36Sopenharmony_ciContact: Krzysztof Kozlowski <krzk@kernel.org> 67462306a36Sopenharmony_ciDescription: 67562306a36Sopenharmony_ci This entry shows and sets the maximum time the max77693 67662306a36Sopenharmony_ci charger operates in top-off charge mode. When the timer expires 67762306a36Sopenharmony_ci the device will terminate top-off charge mode (charging current 67862306a36Sopenharmony_ci will drop to 0 A) and will trigger interrupt. 67962306a36Sopenharmony_ci 68062306a36Sopenharmony_ci Valid values: 68162306a36Sopenharmony_ci 68262306a36Sopenharmony_ci - 0 - 70 (minutes), step by 10 (rounded down) 68362306a36Sopenharmony_ci 68462306a36Sopenharmony_ciWhat: /sys/class/power_supply/bq24257-charger/ovp_voltage 68562306a36Sopenharmony_ciDate: October 2015 68662306a36Sopenharmony_ciKernelVersion: 4.4.0 68762306a36Sopenharmony_ciContact: Andreas Dannenberg <dannenberg@ti.com> 68862306a36Sopenharmony_ciDescription: 68962306a36Sopenharmony_ci This entry configures the overvoltage protection feature of bq24257- 69062306a36Sopenharmony_ci type charger devices. This feature protects the device and other 69162306a36Sopenharmony_ci components against damage from overvoltage on the input supply. See 69262306a36Sopenharmony_ci device datasheet for details. 69362306a36Sopenharmony_ci 69462306a36Sopenharmony_ci Valid values: 69562306a36Sopenharmony_ci 69662306a36Sopenharmony_ci - 6000000, 6500000, 7000000, 8000000, 9000000, 9500000, 10000000, 69762306a36Sopenharmony_ci 10500000 (all uV) 69862306a36Sopenharmony_ci 69962306a36Sopenharmony_ciWhat: /sys/class/power_supply/bq24257-charger/in_dpm_voltage 70062306a36Sopenharmony_ciDate: October 2015 70162306a36Sopenharmony_ciKernelVersion: 4.4.0 70262306a36Sopenharmony_ciContact: Andreas Dannenberg <dannenberg@ti.com> 70362306a36Sopenharmony_ciDescription: 70462306a36Sopenharmony_ci This entry configures the input dynamic power path management voltage of 70562306a36Sopenharmony_ci bq24257-type charger devices. Once the supply drops to the configured 70662306a36Sopenharmony_ci voltage, the input current limit is reduced down to prevent the further 70762306a36Sopenharmony_ci drop of the supply. When the IC enters this mode, the charge current is 70862306a36Sopenharmony_ci lower than the set value. See device datasheet for details. 70962306a36Sopenharmony_ci 71062306a36Sopenharmony_ci Valid values: 71162306a36Sopenharmony_ci 71262306a36Sopenharmony_ci - 4200000, 4280000, 4360000, 4440000, 4520000, 4600000, 4680000, 71362306a36Sopenharmony_ci 4760000 (all uV) 71462306a36Sopenharmony_ci 71562306a36Sopenharmony_ciWhat: /sys/class/power_supply/bq24257-charger/high_impedance_enable 71662306a36Sopenharmony_ciDate: October 2015 71762306a36Sopenharmony_ciKernelVersion: 4.4.0 71862306a36Sopenharmony_ciContact: Andreas Dannenberg <dannenberg@ti.com> 71962306a36Sopenharmony_ciDescription: 72062306a36Sopenharmony_ci This entry allows enabling the high-impedance mode of bq24257-type 72162306a36Sopenharmony_ci charger devices. If enabled, it places the charger IC into low power 72262306a36Sopenharmony_ci standby mode with the switch mode controller disabled. When disabled, 72362306a36Sopenharmony_ci the charger operates normally. See device datasheet for details. 72462306a36Sopenharmony_ci 72562306a36Sopenharmony_ci Valid values: 72662306a36Sopenharmony_ci 72762306a36Sopenharmony_ci - 1: enabled 72862306a36Sopenharmony_ci - 0: disabled 72962306a36Sopenharmony_ci 73062306a36Sopenharmony_ciWhat: /sys/class/power_supply/bq24257-charger/sysoff_enable 73162306a36Sopenharmony_ciDate: October 2015 73262306a36Sopenharmony_ciKernelVersion: 4.4.0 73362306a36Sopenharmony_ciContact: Andreas Dannenberg <dannenberg@ti.com> 73462306a36Sopenharmony_ciDescription: 73562306a36Sopenharmony_ci This entry allows enabling the sysoff mode of bq24257-type charger 73662306a36Sopenharmony_ci devices. If enabled and the input is removed, the internal battery FET 73762306a36Sopenharmony_ci is turned off in order to reduce the leakage from the BAT pin to less 73862306a36Sopenharmony_ci than 1uA. Note that on some devices/systems this disconnects the battery 73962306a36Sopenharmony_ci from the system. See device datasheet for details. 74062306a36Sopenharmony_ci 74162306a36Sopenharmony_ci Valid values: 74262306a36Sopenharmony_ci 74362306a36Sopenharmony_ci - 1: enabled 74462306a36Sopenharmony_ci - 0: disabled 74562306a36Sopenharmony_ci 74662306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/manufacture_year 74762306a36Sopenharmony_ciDate: January 2020 74862306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 74962306a36Sopenharmony_ciDescription: 75062306a36Sopenharmony_ci Reports the year (following Gregorian calendar) when the device has been 75162306a36Sopenharmony_ci manufactured. 75262306a36Sopenharmony_ci 75362306a36Sopenharmony_ci Access: Read 75462306a36Sopenharmony_ci 75562306a36Sopenharmony_ci Valid values: Reported as integer 75662306a36Sopenharmony_ci 75762306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/manufacture_month 75862306a36Sopenharmony_ciDate: January 2020 75962306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 76062306a36Sopenharmony_ciDescription: 76162306a36Sopenharmony_ci Reports the month when the device has been manufactured. 76262306a36Sopenharmony_ci 76362306a36Sopenharmony_ci Access: Read 76462306a36Sopenharmony_ci 76562306a36Sopenharmony_ci Valid values: 1-12 76662306a36Sopenharmony_ci 76762306a36Sopenharmony_ciWhat: /sys/class/power_supply/<supply_name>/manufacture_day 76862306a36Sopenharmony_ciDate: January 2020 76962306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 77062306a36Sopenharmony_ciDescription: 77162306a36Sopenharmony_ci Reports the day of month when the device has been manufactured. 77262306a36Sopenharmony_ci 77362306a36Sopenharmony_ci Access: Read 77462306a36Sopenharmony_ci Valid values: 1-31 775