Hi @frangimeno2000 not quite sure what you mean. Do you want the M5stack device to turn on when USB is connected or to put it into deep sleep and wake it up again when some condition is met, such as shaking the device or pressing one of the A, B or C buttons?