@LaF0rge I know little about the setup, so might be very off the mark: have you considered shutting down on (sufficiently long) inactivity? If the device can detect that it's being used and can shut itself down, that should work and might be significantly simpler.