Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I an running the Dropbear SSH server on CyanogenMod 7.2. Is there any way to setup my phone so that I can connect to it over wifi even when it is in sleep mode? I don't mind if there is a small hit on the battery.

If not, is there a way to at least allow an rsync over ssh to proceed after the screen blanks out? The strange thing here is that if I initiate an ssh shell connection, the command line is still usable after the phone goes to sleep, however it is very slow (changing the CPU governor didn't seem to make a difference). Rsync seems to freeze when the phone sleeps.

I tried 'echo hello > /sys/power/wake_lock', to no effect.

share|improve this question
Have you setup your WiFi standby policy to keep it permanently on? Many devices automatically turn it off when the screen goes off. Check in Settings->WiFi->Advanced (via menu button), and set it accordingly if it's not. – Izzy Apr 17 '13 at 6:08
@Izzy: Yes. I set Wi-Fi sleep policy to Never. – Dan Stahlke Apr 17 '13 at 13:33
OK, then I don't know. Might be worth trying a different SSH server app, though. – Izzy Apr 17 '13 at 13:48

Your Answer


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

Browse other questions tagged or ask your own question.