Forum Home
Press F1
 
Thread ID: 145496 2017-11-17 19:36:00 Ubuntu 16.04 WiFi Drop Out SurferJoe46 (51) Press F1
Post ID Timestamp Content User
1442138 2017-11-17 19:36:00 Starting a new post for this problem.

I don't get a pattern to this yet - but I suspect that Firefox is a possible troublemaker.

As it is I have Ubuntu 16.04, the latest (guaranteed!) driver for my WiFi WSKY adapter (150mbs) and Ubuntu is up-to-date.

I've read some posts on Ubuntu Sites about the same problem and one suggested the following to be entered into TERMINAL:



sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

This is supposed to eliminate the problem by changing the powersaver settings.

I just ran another TERMINAL QUERY:


joe@joe-ThinkCentre-M52:~$ sudo lshw -class network
[sudo] password for joe:
*-network
description: Ethernet interface
product: 82573E Gigabit Ethernet Controller (Copper)
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:02:00.0
logical name: enp2s0
version: 03
serial: 00:14:85:9f:6d:02
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=1.0-7 latency=0 link=no multicast=yes port=twisted pair
resources: irq:26 memory:d0080000-d009ffff memory:d0000000-d007ffff ioport:4000(size=32)
*-network
description: Wireless interface
physical id: 1
bus info: usb@3:1.2
logical name: xxxxxxxxxxxx
serial: 16:88:11:c3:74:68
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8812au ip=xxx:xxx:xx:xxx multicast=yes wireless=IEEE 802.11bgn
joe@joe-ThinkCentre-M52:~$



And thoughts? Does it look like I have the wrong driver? This also happened with a different WiFi adapter too.

(signed) The Village Idiot
SurferJoe46 (51)
1442139 2017-11-17 20:13:00 I also pulled a LOG of my network:


joe@joe-ThinkCentre-M52:~$ tail -f /var/log/kern.log
Nov 17 12:06:30 joe-ThinkCentre-M52 kernel: [ 4582.372656] RTL871X: set group key camid:5, addr:00:22:3f:9e:66:b8, kid:2, type:TKIP
Nov 17 12:15:26 joe-ThinkCentre-M52 kernel: [ 5117.534708] perf: interrupt took too long (6263 > 6253), lowering kernel.perf_event_max_sample_rate to 31750
Nov 17 12:16:30 joe-ThinkCentre-M52 kernel: [ 5182.372229] RTL871X: send eapol packet
Nov 17 12:16:30 joe-ThinkCentre-M52 kernel: [ 5182.384157] RTL871X: set group key camid:6, addr:00:22:3f:9e:66:b8, kid:1, type:TKIP
Nov 17 12:26:30 joe-ThinkCentre-M52 kernel: [ 5782.364447] RTL871X: send eapol packet
Nov 17 12:26:30 joe-ThinkCentre-M52 kernel: [ 5782.377200] RTL871X: set group key camid:5, addr:00:22:3f:9e:66:b8, kid:2, type:TKIP
Nov 17 12:36:30 joe-ThinkCentre-M52 kernel: [ 6382.365687] RTL871X: send eapol packet
Nov 17 12:36:30 joe-ThinkCentre-M52 kernel: [ 6382.378299] RTL871X: set group key camid:6, addr:00:22:3f:9e:66:b8, kid:1, type:TKIP
Nov 17 12:46:30 joe-ThinkCentre-M52 kernel: [ 6982.410116] RTL871X: send eapol packet
Nov 17 12:46:30 joe-ThinkCentre-M52 kernel: [ 6982.422145] RTL871X: set group key camid:5, addr:00:22:3f:9e:66:b8, kid:2, type:TKIP
Nov 17 12:56:31 joe-ThinkCentre-M52 kernel: [ 7582.481684] RTL871X: send eapol packet
Nov 17 12:56:31 joe-ThinkCentre-M52 kernel: [ 7582.496731] RTL871X: set group key camid:6, addr:00:22:3f:9e:66:b8, kid:1, type:TKIP


...and here is my iwpconfig information:

joe@joe-ThinkCentre-M52:~$ iwconfig
enp2s0 no wireless extensions.

wlp0s29f1u1u2 IEEE 802.11bgn ESSID:"BassPlayer" Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency:2.412 GHz Access Point: xx:xx:xx:xx:xx
Bit Rate:150 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=92/100 Signal level=74/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

lo no wireless extensions.

joe@joe-ThinkCentre-M52:~$

Hopefully I didn't put any secret :eek: information out there.
SurferJoe46 (51)
1442140 2017-11-17 22:34:00 There is no point using that suggestion in your first post about changing power management.
According to the info you have posted it is already disabled.
Sounds more likely that it is interference from another source to me.
Are there other wireless networks nearby? Or cordless phones or other equipment that uses 2.4GHz?
Or are you near a microwave?
Does the adapter have an external antenna? Try adjusting its angle.
Or you could try a USB extension to bring the adapter out closer to the access point.
As for the driver, leave it be, if it is working at all it is very likely the right one

The second post, first code box, seems to indicate that the other WIFI adapter is being used too, I would remove it to eliminate it as a source of problems
KarameaDave (15222)
1442141 2017-11-18 04:49:00 The Alpha has been moved to my other desktop, running Puppy and Ubuntu Studio and has yet to drop out .

All household appliances are status-quo, and nothing has changed except the new WiFi adapter and driver .

Ubuntu on (this 'puter) has always had some trouble holding a WiFi hookup when it was on the Alpha --- and now the same for the WSKY .

The Alpha had an enormous 'rubber ducky', 18 inch long antenna that frankly had no better gain that this much smaller antenna on the WSKY . Go figger!

The WSKY antenna is a small stick that can be turned, and is currently running in a powered USB hub, and although that sounds likely to fail, it has been on and playing Pithos "Harmonica Sha Radio" for over 7 hours . I appreciate that it has been running that long without breaking down yet .

SIDEBAR: I understand that Pithos is some kind of wrapper for Pandora --- without the advertisements --- good for that!

Absolutely nothing has changed on this desktop except for the good fortune and help from F1 coming to my rescue to get the RealTec 8821AU driver running for the WSKY .

I never had this sort of fallout in (dare I say?) Windoze, Puppy or Studio .

I honestly believe this is solely an Ubuntu problem - I think .

Do you believe that I could/should remove the other RealTec driver (RTL871X) for the Alpha adapter? I don't recognize that RT871X number at all .

Those LOG entries seem to be 10 minutes and a second or two apart . Is there some significance with that?

I read that the TKIP is a possible problem too . But is the Network card being polled every 10 minutes to see if it's happy and running?
SurferJoe46 (51)
1442142 2017-11-18 06:01:00 So it would appear that there are many versions of this driver on github
the one I pointed you to was over a year old and was version 4.3.14

this one below is newer, version 5.1.5

You will need to install it, instructions are at the bottom of the page
I don't think you will need to remove the other one first, but I'm not certain of that.


github.com

Also I noted on one page where someone was having the same problem as you
that the suggested solution was to use a USB3 port for the extra power it provides, I don't know if your machine has
one but it would be worth trying if it does, also you could try without the hub, they are often sources of problems.
KarameaDave (15222)
1442143 2017-11-18 06:31:00 One post suggests the issue may be TKIP, you could switch to WPA2 AES and see if that helps.
And yes it would appear that this issue is Ubuntu only it is happening to people with with different WIFI adapters
so the driver may not be the issue.
I once had problems with WIFI not reconnecting after suspending to RAM
I had to use a different network manager called WICD
I had to disable the built-in network manager to do this.
KarameaDave (15222)
1442144 2017-11-18 06:34:00 I had both adapters - one at a time - in the USB3 port for a while - nothing changed .

:thanks

Running the commands listed below:

$ make
$ sudo make install
$ sudo modprobe -a 8812au

. . . and I get this result (notice that I left out the 'a' in the first attempt - but I corrected it) .



joe@joe-ThinkCentre-M52:~$ make
make: *** No targets specified and no makefile found . Stop .
joe@joe-ThinkCentre-M52:~$ sudo make install
[sudo] password for joe:
make: *** No rule to make target 'install' . Stop .
joe@joe-ThinkCentre-M52:~$ sudo modprobe - 8812au
modprobe: FATAL: Module - not found in directory /lib/modules/4 . 10 . 0-38-generic
joe@joe-ThinkCentre-M52:~$ sudo modprobe -a 8812au
modprobe: WARNING: Module 8812au not found in directory /lib/modules/4 . 10 . 0-38-generic
joe@joe-ThinkCentre-M52:~$

It's getting late here - 23:30, Friday, and I've had a very long day .

I will return to this at 12:00 or soon afterwards (Saturday) tomorrow . OK? :sleep
SurferJoe46 (51)
1442145 2017-11-18 06:35:00 One post suggests the issue may be TKIP, you could switch to WPA2 AES and see if that helps.

I saw that too. I'll try this tomorrow after much-o sleep-o ... although I have no idea on how to do it.

:thanks
SurferJoe46 (51)
1442146 2017-11-18 06:38:00 To make and make install you need to be in the directory for the driver not in home as you are.
So cd to that directory first OK?
And good night Joe
KarameaDave (15222)
1442147 2017-11-19 09:55:00 Joe,

In a previous post I told you of a wireless-info script that would pull numerous information that would help.

lshw is only the tip of the ice berg.

Anyways, you should not be trying to build a driver, it can seriously ruin network manager or worse.

Change TKIP to AES, TKIP been long dropped to being insecure. So pick WPA2 Personal and ensure every device uses it.

Is this wireless a USB dongle? or builtin?

If you do run the wireless-info script we will have more to work with.

Anyways my suggestion would be to install a newer kernel, repos should be at 4.13, they normally have driver fixes.

Why your build failed, you need to be inside the directory of the extracted file you downloaded, also you would have needed to remove the old module, blacklist it from loading before adding the other driver. It seems instructions are given for drivers that don't exist.

By the way, that driver is quite common and realtek aint to bad with their releases.
Kame (312)
1 2