View Single Post
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#42
Originally Posted by javispedro View Post
Do you mean when using a ssh _client_ on the phone?
no. Connecting to the phone's ssh server.

Originally Posted by javispedro View Post
Otherwise it would be weird -- because by changing ClientAliveInterval on the phone it is actually the phone the one that should be sending ClientAlive messages. But the phone is suspended!
YES. And it seems that sshd has such priorities (tjsp) in this case that it can wake up from the suspend to send the packet. OR more likely, phone does not yet suspend in 15 seconds, and this keeps it alive.

I made simple daemon which logs timestamp to a file and sleeps 10 seconds. When i have ssh open (from my pc to the phone) it does not miss a single entry.
If if disconnect ssh, it will start extending the 10 sec sleep to like 5 minutes.
Just to be sure, i commented ClentAliveInterval and restart sshd, ssh connection comes non-responsive and timestamps are not appearing every 10sec even when the ssh is open.

(note: waving your hand over the proximity sensor wakes the phone)
 

The Following 2 Users Say Thank You to kimmoli For This Useful Post: