Battery Logger What? A small Python program/script/magical incantation to log information regarding your battery, using information from tp_smapi. Why? I bought a new battery for my ThinkPad X220 and it kept shutting down under full load.