The invention discloses a terminal and method for automatically pausing a music play function during 
sleep time of a user. The method can be applied to terminals, systems and programs. The terminal and the method are used for automatically pausing the music play function when the user gets into a 
sleep state with earphones so as to protect the hearing of the user and save 
electric energy. According to the invention, when the 
system orderly detects that the music play function is started and the earphones are inserted into the terminal, the 
system starts a user 
motion monitoring module capable of sensing user motion conditions, and a time monitoring module. When the time monitoring module judges that the time from the last 
effective response operation of the user to the absence of the 
effective response action exceeds a preset time threshold, the 
system prompts the user and reminds the user of executing the 
effective response operation. If the user makes no response within 
fixed time, the system defaults that the user is in a 
sleep state, pauses the music play function and stops monitoring. Otherwise, the system monitors sequentially. The method is very humanized and accurate, is close to the user, and can promote the user experience and enhance the competitiveness of the terminal.