do i wake up my newborn to eat?

hello. i’m new to this mom thing & everyone is telling me different things. when i was in the hospital they told me to wake her up for feedings ever 3-4 hours. her pediatrician said wake her up every 2 hours to eat. others are saying let her wake up on her own to eat. i’m so confused. what is the right way???? she has or had jaundice but that still doesn’t make a difference