Call it the Sleep Catch-22: While it’s an essential part of the healing process, getting enough shut-eye can be a challenge for people rehabilitating hips, knees, shoulders, and other joints. Not only might you wake up with pain, but you also might find that your favorite positions are uncomfortable—or even harmful. Here, some general advice about protecting yourself, regardless of your injury. Bring any specific concerns—especially if they involve pain—to your doctor immediately.