Do note that hyperventilating is a Bad Idea, particularly when diving. Lack of oxygen is what knocks you unconscious, but it's the build up of CO which forces you to breathe. If CO build up is retarded you can lose consciousness before the breathing reflex has forced you to the surface.
It's so common that it's even got a name: shallow water drowning