The Following 5 Users Say Thank You to Dak For This Useful Post: | ||
![]() |
2010-01-14
, 22:03
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#2
|
Does anyone with deeper knowledge of sshd have any insight into what is causing this unreliable behavior? When I'm at my desk I like to just SSH into my N900 while it's stashed in my jacket.....I don't want to have to retrieve it and give it a virtual kick....kinda kills the whole point.
The Following User Says Thank You to egoshin For This Useful Post: | ||
![]() |
2010-01-14
, 22:07
|
Posts: 22 |
Thanked: 14 times |
Joined on Dec 2009
@ The Netherlands
|
#3
|
After following the advice given here...
http://talk.maemo.org/showpost.php?p...8&postcount=41
...my net connection returned to life, but then I noticed quirky behavior with SSH.
At first I attempted to just uninstall/reinstall SSH and reboot - this seemed to fix things....I could SSH to my N900 from my PC just fine.
Later, I noticed that the sshd seemed to have timed-out, and was inaccessible from the outside. I opened a terminal on my N900 and "ssh root@localhost", which worked fine and seemed to kick sshd back into life, and I could connect again from my PC. Very odd behavior.
After leaving it alone for a while, I tried to SSH into my N900 from my PC - failure. This time I simply opened a browser bookmark...the network activity seemed to kick sshd into life, as I could SSH into my N900 once again.
Does anyone with deeper knowledge of sshd have any insight into what is causing this unreliable behavior? When I'm at my desk I like to just SSH into my N900 while it's stashed in my jacket.....I don't want to have to retrieve it and give it a virtual kick....kinda kills the whole point.
EDIT: When the sshd 'times-out', the actual daemon is still there, according to ps. However, when I load a web page, it fires up two new processes "sshd: root [priv]" and "sshd: root [net]" and then I can connect from the outside.
![]() |
2010-01-14
, 22:55
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#4
|
The Following User Says Thank You to egoshin For This Useful Post: | ||
![]() |
2010-01-14
, 22:57
|
Posts: 152 |
Thanked: 41 times |
Joined on Dec 2009
@ Sydney
|
#5
|
The Following User Says Thank You to DaveQB For This Useful Post: | ||
![]() |
2010-01-14
, 23:01
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#6
|
The Following User Says Thank You to mikec For This Useful Post: | ||
![]() |
2010-01-14
, 23:08
|
Posts: 41 |
Thanked: 33 times |
Joined on Sep 2007
|
#7
|
2. Can you install package 'sysklogd' (which includes 'klogd') and repeat? After repeat - copy the file /var/log/syslog in compressed form to that bug report. You may edit out your IMEI and WiFi network name for privacy reason first.
![]() |
2010-01-14
, 23:16
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#8
|
egoshin, I don't think we have to open a new bug for it. Have a look at Bug #7277. I think that's it. We should probably reopen that one, IMNSHO.
The Following User Says Thank You to egoshin For This Useful Post: | ||
![]() |
2010-01-14
, 23:26
|
Posts: 41 |
Thanked: 33 times |
Joined on Sep 2007
|
#9
|
OK, I think I know that is it - do you see in /var/log/syslog the repeating messages "wlan0: driver reports beacon loss from AP cf1bb52c - sending probe request" ?
![]() |
2010-01-15
, 12:47
|
Posts: 41 |
Thanked: 33 times |
Joined on Sep 2007
|
#10
|
[...] do you see in /var/log/syslog the repeating messages "wlan0: driver reports beacon loss from AP cf1bb52c - sending probe request" ?
Jan 15 09:28:11 Nokia-N900-51-1 kernel: [ 6370.995574] wlan0: deauthenticated Jan 15 09:28:12 Nokia-N900-51-1 kernel: [ 6371.098876] wlan0: direct probe to AP 02:c8:40:36:c4:c0 try 1 Jan 15 09:28:12 Nokia-N900-51-1 kernel: [ 6371.104217] wlan0 direct probe responded Jan 15 09:28:12 Nokia-N900-51-1 kernel: [ 6371.104248] wlan0: authenticate with AP 02:c8:40:36:c4:c0 Jan 15 09:28:12 Nokia-N900-51-1 kernel: [ 6371.108673] wlan0: authenticated Jan 15 09:28:12 Nokia-N900-51-1 kernel: [ 6371.108734] wlan0: associate with AP 02:c8:40:36:c4:c0 Jan 15 09:28:12 Nokia-N900-51-1 kernel: [ 6371.131561] wlan0: RX AssocResp from 02:c8:40:36:c4:c0 (capab=0x431 status=0 aid=6) Jan 15 09:28:12 Nokia-N900-51-1 kernel: [ 6371.131622] wlan0: associated
The Following 2 Users Say Thank You to chrget For This Useful Post: | ||
http://talk.maemo.org/showpost.php?p...8&postcount=41
...my net connection returned to life, but then I noticed quirky behavior with SSH.
At first I attempted to just uninstall/reinstall SSH and reboot - this seemed to fix things....I could SSH to my N900 from my PC just fine.
Later, I noticed that the sshd seemed to have timed-out, and was inaccessible from the outside. I opened a terminal on my N900 and "ssh root@localhost", which worked fine and seemed to kick sshd back into life, and I could connect again from my PC. Very odd behavior.
After leaving it alone for a while, I tried to SSH into my N900 from my PC - failure. This time I simply opened a browser bookmark...the network activity seemed to kick sshd into life, as I could SSH into my N900 once again.
Does anyone with deeper knowledge of sshd have any insight into what is causing this unreliable behavior? When I'm at my desk I like to just SSH into my N900 while it's stashed in my jacket.....I don't want to have to retrieve it and give it a virtual kick....kinda kills the whole point.
EDIT: Thanks to egoshin's suggestion, troubleshooting the actual WiFi connection seems to reveal the culprit. Apparently a change has been made to the "maximum" power saving profile for the internet connections (a consequence of fixing the WiFi power drain bug perhaps?) that powers down the Tx/Rx radio hardware after it has been idle for x minutes. Normally this isn't a problem for most people (or me for the majority of the time) but for those of us that use SSH to hack around inside our N900s it's a real Painus In The Anus.
Setting the power saving setting to "intermediate" does not seem to cure the problem, and looking at my router's "connected devices" page reveals that my N900 has vanished. Looking at my N900 desktop, however, shows the WiFi connection up and my wlan0 IP is still set.
If I ping google.com from my N900 terminal, my router sees the N900 again and all is well.
Unsurprisingly, turning off WiFi power saving completely 'fixes' the problem...but not really
Clearly there's an issue here - we absolutely need power saving for WiFi, but it mustn't drop the connection...
Most people won't be affected by this, I reckon, because as soon as you try to reach out from the N900 onto the net, it wakes up and everything is OK - you don't notice the flaw. But for developers like me that are shoving stuff back and forth via SSH or SCP etc...it's a total rectal prolapse.
Quick temp hackery fix - set email to check every 5 mins?
Last edited by Dak; 2010-01-15 at 03:07.