Input ground loop hum only when p10 cables or XLR without phantom power are connected


I own a Scarlett 2i4 (USB interface) and all of a sudden a ground loop appeared that only makes noise when p10 cables or XLR cables without phantom power (when I turn it on, it disappears) are connected. I’ve changed the cables several times and nothing seems to work. Please help!
128x128pedropmk_
TRS cables. Sorry, that's what they called them here in Brasil, forgot to translate
So help me out a little more please. You are going from a Scarlett to your preamp, and those are the cables that cause hum?


No preamp, just a Scarlett connected via USB cables into my notebook. The cables causing the problems are the one on the Scarlett inputs, that I use whem I connect my guitar or bass with TRS cables or a mic with XLR ones...I've read that post, but what intrigues me is that the interference/hum only appears when I'm recording, when there's something connected on the inputs. When there's nothing there, the output sound/playback is perfect