RTL8812AU lag spikes

Hello,

My wireless adapter is a D-Link DWA 182, usb, with a Realtek RTL8812AU chipset. After installing the driver from here “https://github.com/gnab/rtl8812au” (since the one from Realtek and D-Link sites would not for for kernels above 3.9) the adapter was up and running. Playing CS:GO i found some massive lag spikes (which do not happen if i move the usb adapter to a windows pc connected to the same network). Pinging both google and my router, i found out that every 10-15 secconds i have a delay of over 2000 Ms to the router. Switching the network from Network Manager to Wicked solves the problem a bit, instead of 2000 Ms i get now between 150-200Ms spikes to the router. Packet loss is down to 0% on all pings. I played a bit with the MTU but it didn’t change anything. Any ideeas how can i trace what my wireless adapter is doing every 10-15 secconds to identify the problem ? IPV 6 is turned off on both the router and card. Below some info :


linux-oiv7:/home/nradu/Downloads/rtl8812au-master # iwconfig
wlan0     IEEE 802.11AC  ESSID:"Huawei"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:5.24 GHz  Access Point: 20:08:ED:E2:F4:44   
          Bit Rate:867 Mb/s   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=100/100  Signal level=100/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


The security mode is not “Open” (it must be a mistake), it’s actually WPA2-PSK

Wanted to check my card capabilities but something strange happened :


linux-oiv7:/home/nradu/Downloads/rtl8812au-master # iw wlan0 info
command failed: No such device (-19)

On iw list command it only shows my other adapters (have an old PCI-E Asus N adapter)


linux-oiv7:/home/nradu/Downloads/rtl8812au-master # iwconfig
wlan0     IEEE 802.11AC  ESSID:"Huawei"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:5.24 GHz  Access Point: 20:08:ED:E2:F4:44   
          Bit Rate:867 Mb/s   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=100/100  Signal level=100/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

wlp2s0    IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:off
          
eno1      no wireless extensions.

lo        no wireless extensions.

Opensuse 13.2 x64, KDE

things get a bit weirder (or i’m not doing something right) :


linux-oiv7:/home/nradu/Downloads/rtl8812au-master # lshw -C Network  
  *-network DISABLED      
       description: Ethernet interface
       product: 82579V Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 19
       bus info: pci@0000:00:19.0
       logical name: eno1
       version: 05
       serial: 14:da:e9:43:1b:a7
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi 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.4.2-NAPI firmware=0.13-4 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:60 memory:f7c00000-f7c1ffff memory:f7c29000-f7c29fff ioport:f080(size=32)
  *-network DISABLED
       description: Wireless interface
       product: RTL8192CE PCIe Wireless Network Adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlp2s0
       version: 01
       serial: 50:46:5d:af:81:c2
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rtl8192ce driverversion=3.16.7-21-desktop firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
       resources: irq:16 ioport:d000(size=256) memory:f7b00000-f7b03fff
  *-usb
       description: Wireless interface
       product: D-Link Wireless Adapter
       vendor: Realtek
       physical id: 2
       bus info: usb@5:2
       logical name: wlan0
       version: 0.00
       serial: 123456
       capabilities: usb-2.00 ethernet physical wireless
       configuration: broadcast=yes driver=rtl8812au ip=192.168.8.100 maxpower=500mA multicast=yes speed=480Mbit/s wireless=IEEE 802.11AC
linux-oiv7:/home/nradu/Downloads/rtl8812au-master # modinfo rtl8812au
modinfo: ERROR: Module rtl8812au not found.

pinging the router :

— 192.168.8.1 ping statistics —
2145 packets transmitted, 2126 received, 0% packet loss, time 2146882ms
rtt min/avg/max/mdev = 0.980/41.756/11078.767/496.256 ms, pipe 12

What Distribution are you using, what Desktop?

Show us as root:

lspci --nnk | grep -iA3 net
lsusb

Opensuse 13.2, x64, KDE. Wrote it in first post :).


linux-oiv7:/home/nradu/Downloads/rtl8812au-master # lsusb
Bus 002 Device 004: ID 1e7d:2e22 ROCCAT 
Bus 002 Device 003: ID 1e7d:3138 ROCCAT 
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 002: ID 2001:3315 D-Link Corp. 
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


linux-oiv7:/home/nradu/Downloads/rtl8812au-master # lspci -nnk | grep -iA3 net
00:19.0 Ethernet controller [0200]: Intel Corporation 82579V Gigabit Network Connection [8086:1503] (rev 05)
        Subsystem: ASUSTeK Computer Inc. P8P67 Deluxe Motherboard [1043:849c]
        Kernel driver in use: e1000e
        Kernel modules: e1000e
--
02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8192CE PCIe Wireless Network Adapter [10ec:8178] (rev 01)
        Subsystem: ASUSTeK Computer Inc. Device [1043:84b6]
        Kernel driver in use: rtl8192ce
        Kernel modules: rtl8192ce

Strangely enough, my adapter is not shown even here.

That is at the top of the page (above the title), where it says: openSUSE 13.2 RTL8812 … And it is also posted at the end of his first post:

Opensuse 13.2 x64, KDE


PING 192.168.8.1 (192.168.8.1) 56(84) bytes of data.
64 bytes from 192.168.8.1: icmp_seq=1 ttl=64 time=55.7 ms
64 bytes from 192.168.8.1: icmp_seq=2 ttl=64 time=6.46 ms
64 bytes from 192.168.8.1: icmp_seq=3 ttl=64 time=11.5 ms
64 bytes from 192.168.8.1: icmp_seq=4 ttl=64 time=9.91 ms
64 bytes from 192.168.8.1: icmp_seq=5 ttl=64 time=7.89 ms
64 bytes from 192.168.8.1: icmp_seq=6 ttl=64 time=6.01 ms
64 bytes from 192.168.8.1: icmp_seq=7 ttl=64 time=6.66 ms
64 bytes from 192.168.8.1: icmp_seq=8 ttl=64 time=6.62 ms
64 bytes from 192.168.8.1: icmp_seq=9 ttl=64 time=12.7 ms
64 bytes from 192.168.8.1: icmp_seq=10 ttl=64 time=10.7 ms
64 bytes from 192.168.8.1: icmp_seq=11 ttl=64 time=8.89 ms
64 bytes from 192.168.8.1: icmp_seq=12 ttl=64 time=3400 ms
64 bytes from 192.168.8.1: icmp_seq=13 ttl=64 time=2400 ms
64 bytes from 192.168.8.1: icmp_seq=14 ttl=64 time=1400 ms
64 bytes from 192.168.8.1: icmp_seq=15 ttl=64 time=400 ms
64 bytes from 192.168.8.1: icmp_seq=16 ttl=64 time=1.99 ms

There is no other device connected to the network. There is no traffic at the moment. Placing the usb adapter in my wife’s laptop (windows) all pings are at 4-5 ms. It might be the driver, but then again, switching from network manager to wicked (as mentioned) improves the situation (but does not solve it).

That is at the top of the page (above the title), where it says: openSUSE 13.2 RTL8812 … And it is also posted at the end of his first post:

Sorry, not seen

Strangely enough, my adapter is not shown even here.

Here it is.

Bus 005 Device 002: ID 2001:3315 D-Link Corp. 

https://wikidevi.com/wiki/D-Link_DWA-182_rev_C1

And here:

Cd to the directory where your source is and compile

cd /usr/src/rtl8812AU_8821AU_linux
sudo make clean
sudo make
sudo make install
sudo modprobe -a 8812au

M8, the driver is installed, also specified this in the first post :). My problem is with the lag spikes every 10 seconds, not driver installation.