wlan0 timesout-Solved(Linux)

Discuss various technical topics not related to Mozilla.
Post Reply
User avatar
Grumpus
Posts: 13246
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

wlan0 timesout-Solved(Linux)

Post by Grumpus »

Recently performed the HWE update for Ubuntu 12.04LTS and noticed a difference in the wireless connection designation.
Normally this would show up as ra0 but was changed to wlan0.
I saw some suggestions to power down the on board wlan for later versions (14.04), did so, re-installed the N900 driver with no errors showing figuring the name might revert to ra0, stayed at wlan0 and still timed out

Posted this problem in the Ubuntu Forums and have received a temporary fix from varunendra
Using the command: sudo iwconfig wlan0 power off
. . . and following up with iwconfig shows the wlan0 with power management - off.
So far this has resolved the connection break/timeout with the dongle but has to be re-done each time the system is booted as the wlan0 - power control on- condition returns as a default.
Last edited by Grumpus on September 8th, 2014, 6:47 am, edited 3 times in total.
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
User avatar
Grumpus
Posts: 13246
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: wlan0 replaced ra0- times out-Temporary Fix(Linux)

Post by Grumpus »

Made an attempt to a suggested blacklisting of the rt2800usb module but apparently after the HWE update the original rt3573sta module might not have been present and the newer hardware setup recognized the N900 device and by passed the original driver.
At this point this is "best guess" as I tried the blacklist and lost all connectivity.
A re-install of the rt3573sta module failed at modprobe rt3573sta with a "failed to insert driver error."
Un-blacklisted the rt2800sta module and returned connectivity but in order to maintain stability have to use the sudo iwconfig wlan0 power off when booting into the Ubuntu 12.04.5 LTS system.
If anything changes will update thread.

Additional: Installed Linux Mint 17 this morning and the N900 was recognized and was able to make a connection.
The command sudo iwconfig wlan0 power off to turn off the power management appears to function there as well.
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
User avatar
Grumpus
Posts: 13246
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: wlan0 timesout-Final Fix ??(Linux)

Post by Grumpus »

Was provided with several options by varunendrato have the wlan0 power management turn off automatically.
in a terminal: sudo touch /etc/pm/power.d/wireless

This will create a blank file named "wireless" in /etc/pm/power.d, which disables the default power management script located in /usr/lib/pm-utils/power.d directory. Then turn the PM off using the "sudo iwconfig wlan0 power off" command like before > reboot > check if it is still off. If it is, nothing else is required. This first instruction created the file but did not turn off the power management on reboot so I went for the code set below

But if not, try making the "wireless" file we just created executable, putting the command in it -
Code:
echo "/sbin/iwconfig wlan0 power off" | sudo tee /etc/pm/power.d/wireless
sudo chmod +x /etc/pm/power.d/wireless

Then turn PM off with iwconfig command > reboot to make sure it remains off.

This functioned as forecast and on reboot the power management for the N900 is turned off.
There still appears to be occasional momentary breaks but there doesn't seem to be the frequency and the "logged off" effect, in other probably less than a millisecond break, just enough for the "Edit Connections" panel to indicate length of time on as changed.
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
User avatar
Grumpus
Posts: 13246
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: wlan0 timesout-Final Fix ??(Linux)

Post by Grumpus »

Just a small addition, these commands seem to work with Linux Mint 17 - 64bit and if the power management is left on the connection breaks and a logout will occur.
Also there seems to be a native driver for the N900 which is detected if it's plugged into the USB port and requires nothing else except the account info for your ISP.
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
User avatar
Grumpus
Posts: 13246
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: wlan0 timesout-Final Fix ??(Linux)

Post by Grumpus »

It was suggested to set the ipv6 in Network Manager to "Ignore" to help stop the interference..
I have been running this on Linux Mint17 64 bit and Ubuntu 12.05.5LTS for a day now with no ill effects.
I seem to remember ipv6 was not that long from implementation.
Changing the setting in the network Manager is easy enough but there was also a more permanent method for turning it off presented with the same suggestion?
My concern is whether it is necessary to perform both and whether it will affect a transition, any thoughts would be appreciated?
The connection edit still shows an occasional break and change in time connected from now to 2 minutes ago to four minutes ago.
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
User avatar
Grumpus
Posts: 13246
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: wlan0 timesout-Final Fix(Linux)

Post by Grumpus »

In order to set the ipv6 to "ignore" in Network Manager for Mint or Ubuntu, open the Edit Connections link, go to the "Wireless" tab and highlight the account, click the edit button and go to the "ipv6 Settings" tab and in the list for "Mehod" hit ignore.
To make this permanent :
Either add the following lines to the /etc/sysctl.conf file:
# disable IPv6
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1

. . . or use this Command to turn off ipv6
"echo -e "\n# disable IPv6\nnet.ipv6.conf.all.disable_ipv6=1\nnet.ipv6.conf.default.disable_ipv6=1\nnet.ipv6.conf.lo.disable_ipv6=1" | sudo tee -a /etc/sysctl.conf"
Remove the quotes.

Something else to note is some people do not have their systems set to their country of use and this may add to the confusions;
Code: iw reg get
if it says 00, it's not set and you should set it.
Country Codes
Warning on this: Should you change the country there is a strong possibility your wireless account password will need to be re-installed
Changing the country code in one of my systems managed to dump the password for the mifi device. The password for the device had to be redone but also the permission to make the changes was needed (administrative)
Make it permanent with:
gksudo pluma(or gedit) /etc/default/crda
edit regdomain to REGDOMAIN=US

You can open the file to see.

It still appears the connection can sometimes close and log you out of a site so there is still some kind of hidden power close out or timeout option I haven't found yet. It may be relative to logind.conf as there were changes in the poweroff, suspend, hibernate and lidswitch items. Plus an additional string in the controllers item which did not exist in previous logind. conf files. It also seems Ubuntu 12.04.5 does not have the logond.conf file under the systemd folder.

Again Thanks to the folks and varunendra in the Network Wireless forum in the Ubuntu Forums.
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
User avatar
Grumpus
Posts: 13246
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: wlan0 timesout-Solved(Linux)

Post by Grumpus »

The above changes are holding in both Ubuntu 12.04.5LTS, 14.04.01LTS and Linux Mint 17.
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
Post Reply