I had gone to bed and fallen asleep when my guardian knocked at the door of my room and begged me to get up directly. 
I was asleep when my guardian knocked at the door of my room and begged me to get up directly. 