Posts: 15
Joined: Sun Oct 02, 2011 1:40 pm

SSH / SAMBA sleep issues

Fri May 16, 2014 9:25 pm

I'm running a Pi as a server of SSH and SAMBA.

I have read various accounts about the Pi going to sleep. Some say their monitor sleeps, for some it's SSH. I'm running a Pi server with no desktop on it. My desktop PC puts nearly all its data onto the Pi server. However, as others have reported, the Pi has 20 second sleep periods. This means that SSH stops for this period. SAMBA also stops but, it appears to be at different times to SSH ( though I could be mistaken).
This is what I have found so far.
1. 'ping' localhost on the server does not keep the server awake, it still drops out on my desktop machine.
2. 'ping' xbmcIP (my media centre) from the server. This also does not help to keep communications up on my desktop machine.
3. 'ping' my desktop, or desktop ping server, keeps all communications alive and nippy on my desktop machine. Videos etc. play immediately with no problems. Applications needing to pick up files launch quickly. SSH doesn't drop out.

As a temporary measure I have the server pinging my desktop computer every second.
EDIT: Every 10 seconds seems to work OK. Every 15 seconds results in the initial connection being delayed.

So, it seems that it isn't the Pi server going to sleep but the communication to any IP that isn't constantly busy. It can't be just SSH where the problem lies because pinging server to desktop keeps SAMBA alive too.

So, has anyone any ideas, please, on what might be causing this problem?

Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: SSH / SAMBA sleep issues

Tue Aug 05, 2014 4:56 pm

The pi running the Debian (Raspbian) will not sleep (I keep ssh and smb connections open for weeks).
You are likely experiencing a bug so check dmesg.
SBC with 32GB RAM:



User avatar
Posts: 68
Joined: Mon Apr 23, 2012 9:49 am
Location: Blackfield UK

Re: SSH / SAMBA sleep issues

Tue Aug 05, 2014 8:56 pm

are you using a wifi link? If so you need to turn off the power save functions. If you use the EDIMAX EW-7811UN or similar. This link explains why: ... ts-802-11n . If it is Ethernet, then I am not sure.

Return to “General discussion”