Added support for battery state and Linux sysfs implementation