Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

Whenever I leave my Pi for too long, especially overnight, it shuts down rather than goes to sleep. Or sleep mode makes it shut down. I see the power LED off. I move the mouse and type on the keyboard and then it wakes up! Only problem is it boots from the beginning... it doesn't leave me where I last left the Pi on the desktop.

What's going on? Is there a setting so that sleep mode is not shut off?

I'm using the Debian Linux distribution from Raspberry Pi's download page.

UPDATE: When the Pi is in sleep mode, the monitor is blank but still on and the LEDs are all off. However, when I choose Log off->Shut down from X in the Debian operating system, the monitor reports there's no longer an HDMI connection and goes into that semi-sleep mode itself when a computer is unplugged. And the Power LED on the Pi remains lit red. Finally, of course, moving the mouse or typing on the keyboard does NOT wake up the computer after I've powered down.

share|improve this question
1  
possible duplicate of How do I disable suspend mode? –  John La Rooy Aug 7 '12 at 2:39
2  
@gnibbler, no this seems very different from that question. I like my Pi going to sleep, I just don't like it rebooting when it wakes up... –  at. Aug 7 '12 at 2:44
    
It shouldn't reboot if it is going to sleep. I suspect that you have it changed to something else. –  Bryan Dunsmore Aug 7 '12 at 3:03
    
Ah ok. Is it possible that it is crashing when going into sleep mode? Here's how you can connect a serial cable to see if there are any helpful console messages raspberrypi.stackexchange.com/a/1231/590 –  John La Rooy Aug 7 '12 at 4:53
1  
Posting your logs to pastebin and editing in links could be useful. However, are you sure it's the PWR LED going off? As this is directly connected to the power supply... –  Alex Chamberlain Aug 7 '12 at 6:21
show 11 more comments

2 Answers 2

This could definitely be a hardware issue so I recommend continuing the current line of troubleshooting recommended in the comments. However, I wanted to suggest a possible answer that I found. It looks like this might be a known kernel bug. Here is one of the original reports back from kernel version 3.0.0-1:

http://web.archiveorange.com/archive/v/qwAvJanP37ukqDD9rBH3

This was reported on a different system (Ideapad S10-3) but the symptoms look very similar. According to the most recent correspondence concerning this bug (http://thread.gmane.org/gmane.linux.kernel/1136253/focus=1185250 - May 6, 2012), it is still present, even in the latest kernel, 3.4 (and Raspberry Pi Debian uses 3.1.9). If this is the solution, it's odd that we haven't seen more reports. However, it isn't unheard of for a bug to only appear in certain system configurations.

share|improve this answer
add comment
up vote 0 down vote accepted

It turned out to be the power adapter surprisingly. I was using a Motorola plug to micro-USB, it was rated well above the wattage requirements. But as soon as I switched to another power to micro-USB adapter the shutting down issue went completely away.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.