I've had different shoulder issues in each shoulder over the past 6 years. First shoulder was fixed by hanging from a pull up bar progressively over the course of a month and I've made hanging a part of my routine and it hasn't come back since..
Second shoulder is the side I sleep on and I always sleep on the same side. Sleeping on it is the #1 thing that gets it fired up. Once its fired up the only thing that works is to force myself to sleep on the opposite side and sleep with a bath towel rolled up and jammed into the armpit so that the weight of the arm leverages the ball of the humorous lightly out of the socket. Over the course of a few days of sleeping that way it will quiet down until the next time.
Second shoulder is the side I sleep on and I always sleep on the same side. Sleeping on it is the #1 thing that gets it fired up. Once its fired up the only thing that works is to force myself to sleep on the opposite side and sleep with a bath towel rolled up and jammed into the armpit so that the weight of the arm leverages the ball of the humorous lightly out of the socket. Over the course of a few days of sleeping that way it will quiet down until the next time.