It doesn't seem clear without reading the source. But this sample turns off Aero when on battery power?