Get desktop application:
View/edit binary Protocol Buffers messages
Power supply status sent from powerd to Chrome.
Current state of the external power source.
ID of the PowerSource that is currently providing power to the system.
Currently-connected external power sources.
Current state of the battery.
Estimated battery charge as a percent of its total capacity, in the range [0.0, 100.0]. Unset if a battery isn't present.
Estimated time until the battery is empty, in seconds, or zero if the battery isn't discharging. -1 if the estimated time would be huge (e.g. because the current is zero or close to zero). Unset if a battery isn't present.
Estimated time until the battery is full, in seconds, or zero if the battery isn't charging. -1 if the estimated time would be huge (e.g. because the current is zero or close to zero). Contains the best estimate for when the battery will be full when Adaptive Charging is delaying charge. If there is no current estimate for when Adaptive Charging will finish, the value is zero. Unset if a battery isn't present.
True when |battery_time_to_*| can't be trusted, e.g. because the power source just changed. Unset if a battery isn't present.
The battery discharge rate measured in W. Positive if the battery is being discharged, negative if it's being charged, or unset if a battery isn't present.
True if it is possible for some connected devices to function as either sources or sinks (i.e. to either deliver or receive charge).
Current battery voltage level.
Battery manufacturer reported in sysfs as either "manufacturer" or "vendor". Ex.: "SIMPLO"
Battery cycle count representing the total number of times all the battery's power has been used.
Battery serial number reported in sysfs.
Battery design capacity measured in ampere-hours (Ah).
Battery full capacity measured in ampere-hours (Ah).
Battery voltage min design measured in V.
Current battery charge right now, measured in ampere-hours (Ah).
Battery model name reported by |model_name|.
Battery current as of now, measured in amperes (A).
Battery technology read from sysfs.
Battery status read from sysfs.
The device's preferred minimum external power input in watts (W). When requesting the user use a higher-power external power source, this value can be displayed.
Indicates if the system supports Adaptive Charging required functionality.
Indicates whether charging to full is delayed by adaptive charging. If so, |battery_time_to_full_sec| indicates the time until the battery is planned to be fully charged. The planned time to fully charge the battery may change over time based on predictions from adaptive battery.
Indicates if Adaptive Charging is currently allowed by its heuristic, which disables Adaptive Charging if the charging behavior of the user won't benefit from the feature. Unused unless Adaptive Charging is supported on the system.
Next ID to use: 36
Used in:
The battery is full or close to full.
The battery is being charged but is not yet full.
The battery is discharging. Note that an external power source may be connected but not supplying enough power to offset the system's instantaneous power consumption. This state is also used if the battery is neither charging nor discharging (i.e. current is zero) in a non-full state, which may indicate a battery defect.
The system doesn't have a battery.
Next value to use: 4
For any of these power sources, the system may be consuming power at a high enough rate that the battery is discharging rather than charging; see BatteryState. See the PowerSource submessage's |type| field for more details about the active power source.
Used in:
AC/line/mains or USB PD power is connected. This is typically the highest-power source that can be attached to the system.
A low-power USB source (SDP, DCP, CDP, or ACA) is connected.
No external power source is connected.
Next value to use: 4
Details about a potential source of power to the system.
Used in:
Opaque ID corresponding to the device. Do not use this for any purpose beyond comparisons with |external_power_source_id| or as an argument to powerd's SetPowerSource D-Bus method.
The charging port to which this power source is connected.
Power source type.
Raw strings read from |manufacturer| and |model_name| files in sysfs.
Maximum power this source is capable of delivering, in watts.
True if the power source will automatically deliver charge to the system when connected (assuming there isn't another |active_by_default| source doing so). If false, the source will not deliver charge unless requested to do so by the user.
Next ID to use: 9
Used in:
The location of the port is unknown, or there's only one port.
Various positions on the device. The first word describes the side of the device where the port is located while the second clarifies the position. For example, LEFT_BACK means the farthest-back port on the left side, while BACK_LEFT means the leftmost port on the back of the device.
Next value to use: 11
Used in:
Unspecified type.
Dedicated charger. Typically single-purpose and non-USB (e.g. barrel jack plugs). Corresponds to kernel-reported type "Mains". This source is reported by the ACPI driver and may also appear (along with a USB_PD source) on Type-C-only systems if the ACPI driver is present.
USB Type-C, including dedicated Type-C chargers. Typically >= 7.5W. Corresponds to kernel-reported types "USB_C", "USB_PD", "USB_PD_DRP", and "BrickID".
USB Battery Charging r1.2. Typically <= 7.5W. Corresponds to kernel-reported types "USB", "USB_ACA", "USB_CDP", and "USB_DCP".
Next value to use: 4