Add dock battery support

Credit to CM