Realtek Wifi 适配器:互联网连接软件(Discord、TF2、Portal 2 等)上的超高 Ping

Realtek Wifi 适配器:互联网连接软件(Discord、TF2、Portal 2 等)上的超高 Ping

我有一台 HP 笔记本电脑,装有 Kubuntu 16.10 和 Windows 10 双启动。

我刚刚从 16.04 更新了它,突然 TF2、Discord、Portal 2 和其他程序的 ping 值开始波动,从正常(20-50 毫秒范围)到非常糟糕(430-500 毫秒)。我尝试将内核更新到 4.10.5(最新稳定版本),但重启后它没有任何反应。

我有一个 Realtek RTL8188EE 无线网络适配器作为我的 Wifi 卡。

当我 ping 我的路由器时:`

evan@evan-computer-a:~$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=2.09 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=5.61 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=3.61 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=64 time=4.06 ms
64 bytes from 192.168.0.1: icmp_seq=5 ttl=64 time=3.95 ms
64 bytes from 192.168.0.1: icmp_seq=6 ttl=64 time=4.34 ms
64 bytes from 192.168.0.1: icmp_seq=7 ttl=64 time=2.97 ms
64 bytes from 192.168.0.1: icmp_seq=8 ttl=64 time=6.61 ms
64 bytes from 192.168.0.1: icmp_seq=9 ttl=64 time=4.63 ms
64 bytes from 192.168.0.1: icmp_seq=10 ttl=64 time=2.72 ms
64 bytes from 192.168.0.1: icmp_seq=11 ttl=64 time=4.01 ms
64 bytes from 192.168.0.1: icmp_seq=12 ttl=64 time=2.75 ms
64 bytes from 192.168.0.1: icmp_seq=13 ttl=64 time=2.92 ms
64 bytes from 192.168.0.1: icmp_seq=14 ttl=64 time=6.31 ms
64 bytes from 192.168.0.1: icmp_seq=15 ttl=64 time=4.75 ms
64 bytes from 192.168.0.1: icmp_seq=16 ttl=64 time=2.72 ms
64 bytes from 192.168.0.1: icmp_seq=17 ttl=64 time=3.80 ms
64 bytes from 192.168.0.1: icmp_seq=18 ttl=64 time=3.81 ms
64 bytes from 192.168.0.1: icmp_seq=19 ttl=64 time=2.40 ms
64 bytes from 192.168.0.1: icmp_seq=20 ttl=64 time=6.69 ms
^C
--- 192.168.0.1 ping statistics ---
20 packets transmitted, 20 received, 0% packet loss, time 19032ms
rtt min/avg/max/mdev = 2.097/4.042/6.694/1.352 ms

当我 ping Google 时:

evan@evan-computer-a:~$ ping www.google.com
PING www.google.com (74.125.21.106) 56(84) bytes of data.
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=1 ttl=45 time=28.9 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=2 ttl=45 time=23.4 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=3 ttl=45 time=25.1 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=4 ttl=45 time=23.6 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=5 ttl=45 time=31.7 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=6 ttl=45 time=104 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=7 ttl=45 time=26.8 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=8 ttl=45 time=33.7 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=9 ttl=45 time=31.8 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=10 ttl=45 time=24.1 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=11 ttl=45 time=22.6 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=12 ttl=45 time=22.5 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=13 ttl=45 time=180 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=14 ttl=45 time=27.6 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=15 ttl=45 time=25.5 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=16 ttl=45 time=24.7 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=17 ttl=45 time=22.4 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=18 ttl=45 time=37.5 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=19 ttl=45 time=40.3 ms
64 bytes from yv-in-f106.1e100.net (74.125.21.106): icmp_seq=20 ttl=45 time=27.5 ms
^C
--- www.google.com ping statistics ---
20 packets transmitted, 20 received, 0% packet loss, time 19031ms
rtt min/avg/max/mdev = 22.430/39.290/180.588/36.788 ms

可以看到,两个网络都没有丢包,ping 也完全正常,除了 Google ping 中的几个地方。

我尝试过查看许多其他网站来修复该问题,但都没有奏效。笔记本电脑电源管理已关闭(我的笔记本电脑直接连接到电源 - 里面没有电池)。内核是最新的(不会不稳定)。我完全不知道为什么我在 TF2、Discord 和其他程序上的 ping 如此之高且波动如此之大。

答案1

以下是我修复 ping 问题的方法:

sudo apt-get install build-essential linux-headers-generic git dkms
git clone http://github.com/lwfinger/rtlwifi_new.git
cd ~/rtlwifi_new
make
sudo modprobe -rv rtl8188ee
sudo make install
sudo modprobe -v rtl8188ee

第一个 modprobe 命令将断开您的计算机与互联网的连接,第二个命令将重新连接。完成命令后,我重新启动了系统,一切都已修复并正常运行。

这也适用于大多数其他 Realtek 适配器,您只需将您的型号替换为“rtl8188ee”。(下载的文件也包括其他型号。)

相关内容