maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   Wireless connection lost (https://talk.maemo.org/showthread.php?t=81215)

sysedit 2011-12-30 16:04

Wireless connection lost
 
Hi,

My N9 has some issues keeping wireless connection. It happens at home with a Linksys WAP54G or in the office (we've a Zyxel there, don't know which one). Other devices like my dell laptop have no issue. Home and Offie are using WPA2.

Symptoms: after a while, even if the Wifi symbol is displayed, and that the configuration panel says I'm connected, none of the applications can access to the Internet. Twitter feeds on the notification area are blocked, Twitter app can't connect, browser can't display requested pages, calendar sync displays "can't connect to google" in the notification area.

Simply turn internet connection off and on again solves the issue. But that's a bit odd.

Is it a known issue ? I'd like to fill a bug into the harmattan bugzilla, but I've no idea on how to log or give debug hints.

On the other hand, I wanted to run a script that would turn wlan off and on every quarter or so, to work around the problem, but I can't find how to do it. I tried ("user" user or devel-su) if-down wlan0, ifconfig wlan0 down, but this does not work - or it seems so.

Any hint would be greatly appreciated !

jalyst 2011-12-30 16:24

Re: Wireless connection lost
 
See this thread....
http://talk.maemo.org/showthread.php?t=80094&page=5
watergate was having issues until he re-jigged his AP/router config.
It may not have any impact, but tis worth a try...
There's other revealing threads but can't find them OTTOMH.

qorax 2011-12-30 17:24

Re: Wireless connection lost
 
It also happens with me if I keep the power saver to 'ON'... while in 'AUTO' it doesn't.

Qorax

sysedit 2011-12-30 17:39

Re: Wireless connection lost
 
Actually I've no issue to connect to my access point - this works like a charm, but it does not stay connected.

Nevertheless, I just changed the channel - no reason to not give a try. I was running channel 5 while InSSIDer tells me a bunch of neighbours are using channel 4 (how do they survive ?), so I moved to channel 9 which is unused, as well as 7, 8 and 10, so the frequency is less crowded.

Let see if this goes better tonight ;)

AlMehdi 2011-12-30 17:42

Re: Wireless connection lost
 
Yeah, you could download the wireless-tool from the sdk repo and then do "iwconfig wlan0 power off".. i have put it in a while-loop which i turn on when i need wifi.. or i do as you and just update the ap. I think could have with the ps-poll.. but are not sure. Hopefullt they solve it.. have set up a bug on it before.

sysedit 2011-12-30 17:42

Re: Wireless connection lost
 
Quote:

Originally Posted by qorax (Post 1143554)
It also happens with me if I keep the power saver to 'ON'... while in 'AUTO' it doesn't.

Qorax

I've it set to auto (30%), and it also happened to me when it was set to OFF.

BTW, I also reflashed the device, but no change.

AlMehdi 2011-12-30 17:45

Re: Wireless connection lost
 
Quote:

Originally Posted by sysedit (Post 1143557)
Actually I've no issue to connect to my access point - this works like a charm, but it does not stay connected.

Nevertheless, I just changed the channel - no reason to not give a try. I was running channel 5 while InSSIDer tells me a bunch of neighbours are using channel 4 (how do they survive ?), so I moved to channel 9 which is unused, as well as 7, 8 and 10, so the frequency is less crowded.

Let see if this goes better tonight ;)

Will not work... i got a slight improvement on ch 13 but it regressed after that. The only thing that seams to work is turning off power save.

AlMehdi 2011-12-30 17:46

Re: Wireless connection lost
 
Quote:

Originally Posted by sysedit (Post 1143559)
I've it set to auto (30%), and it also happened to me when it was set to OFF.

BTW, I also reflashed the device, but no change.

Will not work either... you will need to turn it off from the terminal. If you have installed wireless-tools.. then i have an option for it in n9tweak.

sysedit 2011-12-30 20:10

Re: Wireless connection lost
 
Quote:

Originally Posted by AlMehdi (Post 1143558)
Yeah, you could download the wireless-tool from the sdk repo and then do "iwconfig wlan0 power off".. i have put it in a while-loop which i turn on when i need wifi.. or i do as you and just update the ap. I think could have with the ps-poll.. but are not sure.

Is there any pre-requisite to be able to turn power management off for wlan ?

Code:

~ $ devel-su -c "/sbin/iwconfig wlan0 power off"
Password:
Error for wireless request "Set Power Management" (8B2C) :
    SET failed on device wlan0 ; Operation not permitted.
~ $

I'm always getting this error (I tried: from terminal as root, as user, connecting via ssh over usb, with or without internet connection set).

Quote:

Originally Posted by AlMehdi (Post 1143558)
Hopefullt they solve it.. have set up a bug on it before.

Do you have the bug id so I (and everyone else on this thread) can vote for it ?

Thanks !

AlMehdi 2011-12-31 02:50

Re: Wireless connection lost
 
Quote:

Originally Posted by sysedit (Post 1143607)
Is there any pre-requisite to be able to turn power management off for wlan ?
I'm always getting this error (I tried: from terminal as root, as user, connecting via ssh over usb, with or without internet connection set).



Do you have the bug id so I (and everyone else on this thread) can vote for it ?

Thanks !

You need develsh... so

Code:

echo rootme | devel-su -c "develsh -c 'while true;
                do
                        date \"+%T\"
                        /sbin/iwconfig wlan0 power off
                        count=0
                        while [ \$count -le 5 ];
                        do
                                /usr/bin/bmestat|sed -n '/current/p'
                                /sbin/iwlist wlan0 power
                                sleep 10
                                count=\$((count+1))
                        done
                done'"

This is the code i have in n9tweak.. just configure it to your needs.

The basic would be..

Code:

devel-su -c "develsh -c '/sbin/iwconfig wlan0 power off'"

sysedit 2012-01-02 09:48

Re: Wireless connection lost
 
Actually, I have now something that seems an ok workaround: I'm turning wlan0 down every 15 minutes, thanks to

Code:

develsh -c "ifconfig wlan0 down"
The interface goes automatically up immediately, and the first try this night shows no connection issue.

I'll try this night without being charging the phone to see if this completely kills the battery or not, and then compare with turning off power management as you do in n9tweak.

thanks again for the develsh tip !


All times are GMT. The time now is 03:32.

vBulletin® Version 3.8.8