PMU_ENV_LID_CLOSED
pm_lid_sens.value = !(env & PMU_ENV_LID_CLOSED);
if (!(old & PMU_ENV_LID_CLOSED) && (env & PMU_ENV_LID_CLOSED))