AC_POWER_STATE
last_state = AC_POWER_STATE;
if (last_state != AC_POWER_STATE) {
if (p -> direction == AC_POWER_STATE &&