I don't recall how farting in bed went with my first 2-year guy in my early 20s but with my next 10-year guy I had him toilet trained to bring his farts to the bathroom pretty quickly. I did suffer through his occasional bed wetting (I've mentioned he was raised as a physically abused child) because he didn't have control over that. So every so often in his sleep we had a little accident. But if he was awake, no, you take that fart where I don't have to breathe it.
My second 10 year guy was untrainable. He farted at will. So I kept him cross country in California. Before his death--died of a fart, I believe--we were planning to sail the seas and I was never quite sure how I was gonna deal with that. Open the portholes and risk a wave, I suppose. As luck would have it, that last fart of his killed him so I never did have to deal with the confining aspect of it.