Rule Details
You can't wake up from unconsciousness while you have 0 Hit Points. If you're unconscious and have 1 or more Hit Points, you wake up in one of five ways.
You take damage, provided the damage doesn't drop you to 0 HP.
You receive healing, other than natural healing from resting.
Someone nudges or shakes you awake with an Interact action.
If there's loud noise, at the start of your turn attempt a Perception check against the noise's DC, waking up if you succeed. If creatures are attempting to stay quiet, this uses their Stealth DC.
The GM decides you wake up either because you have had a restful night's sleep or something disrupted that restful sleep.