Gassy baby question

Mrs. H
My baby wakes up every time he is about to fart and seems uncomfortable. He would sleep longer if it wasn't because he farts so much lol what can I do?