If you don't interact with Magical Dobby after some time, Dobby will fall asleep. Wake Dobby up by pressing the button on his hand.