added the linux implementation to the battery plugin