crosvm/power_monitor
Yuan Yao 18f43226d2 devices: bat: get power property before first read
Previously, before powerd monitor is set up and receives first broadcast
signal from powerd, the read() function will return default initial
power property, which does not reflect the real host battery.

This Cl makes goldfish battery device request to get power property
before first time read. It is achieved by sending
GetPowerSupplyProperties dbus request to powerd.

BUG=b:361281568
TEST=deploy to DUT & test

Change-Id: I5044ded5efc744525dfe87fe81370f202f0a43fb
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5918906
Commit-Queue: Yuan Yao <yuanyaogoog@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
2024-10-16 09:16:32 +00:00
..
src devices: bat: get power property before first read 2024-10-16 09:16:32 +00:00
build.rs power_monitor: switch to proto_build_tools 2023-01-03 22:22:11 +00:00
Cargo.toml power_monitor: make system_api dep optional 2024-10-16 00:02:54 +00:00
power_supply_properties.proto power_monitor: Enable feature in all-linux 2022-09-20 21:06:47 +00:00