Total internal reflection and sleep