How do you know when a guinea pig is sleeping?

Your piggy will lay on its side and close his eyes. It is rare that you see them sleep because they sleep in 6 minutes intervales. Most of the time they're awake and playing.