power: Add get_powerd_initial_backlight_level.
This adds a helper program that exercises enough powerd code
to print the default backlight brightness level.
It's intended to be used by battery-life tests that need to
stop the powerd process but also want to use the brightness
that would be set by default on a given system.
TEST=manual: used brightness keys and then ran tool with AC
plugged and unplugged
Commit-Queue: Daniel Erat <firstname.lastname@example.org>
Tested-by: Daniel Erat <email@example.com>
Reviewed-by: Todd Broch <firstname.lastname@example.org>
10 files changed