Ubuntu 14 - 使用 rtl8723be 时 WIFI 不稳定且速度慢

Ubuntu 14 - 使用 rtl8723be 时 WIFI 不稳定且速度慢

我对这篇文章有非常类似的问题:

Ubuntu 14.04 无线网络连接缓慢且不稳定

但我无法在那里发表评论,这就是我提出新问题的原因。

我有一台双启动 Windows 8/Ubuntu 14 的笔记本电脑。我的 wifi 互联网在 Windows 上运行良好,但在 Ubuntu 下非常慢且不稳定:连接每隔 5 分钟左右就会断开一次。

我尝试了很多不同的解决方案(包括将内核升级到 3.17.1)。我还尝试了上述链接中 Chili555 提出的解决方案(但将“rtl8188ee”改为“rtl8723be”),但似乎没有任何效果。

以下是有关我的笔记本的一些信息

 $sudo lshw -C network
 *-network               
       descrição: Ethernet interface
       produto: RTL8101E/RTL8102E PCI Express Fast Ethernet controller
       fabricante: Realtek Semiconductor Co., Ltd.
       ID físico: 0
       informações do barramento: pci@0000:08:00.0
       nome lógico: eth0
       versão: 07
       serial: 34:64:a9:75:ff:7a
       tamanho: 10Mbit/s
       capacidade: 100Mbit/s
       largura: 64 bits
       clock: 33MHz
       capacidades: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuração: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8106e-1_0.0.1 06/29/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       recursos: irq:41 porta de E/S:5000(tamanho=256) memória:b5600000-b5600fff memória:b5400000-b5403fff

  *-network
       descrição: Interface sem fio
       produto: RTL8723BE PCIe Wireless Network Adapter
       fabricante: Realtek Semiconductor Co., Ltd.
       ID físico: 0
       informações do barramento: pci@0000:0a:00.0
       nome lógico: wlan0
       versão: 00
       serial: 10:08:b1:3b:3d:11
       largura: 64 bits
       clock: 33MHz
       capacidades: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuração: broadcast=yes driver=rtl8723be driverversion=3.17.1-031701-generic firmware=N/A ip=10.110.80.14 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
       recursos: irq:46 porta de E/S:3000(tamanho=256) memória:b5500000-b5503fff


$ifconfig -a

eth0      Link encap:Ethernet  Endereço de HW 34:64:a9:75:ff:7a  
          UP BROADCAST MULTICAST  MTU:1500  Métrica:1
          pacotes RX:0 erros:0 descartados:0 excesso:0 quadro:0
          Pacotes TX:0 erros:0 descartados:0 excesso:0 portadora:0
          colisões:0 txqueuelen:1000 
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo        Link encap:Loopback Local  
          inet end.: 127.0.0.1  Masc:255.0.0.0
          endereço inet6: ::1/128 Escopo:Máquina
          UP LOOPBACK RUNNING  MTU:65536  Métrica:1
          pacotes RX:156 erros:0 descartados:0 excesso:0 quadro:0
          Pacotes TX:156 erros:0 descartados:0 excesso:0 portadora:0
          colisões:0 txqueuelen:0 
          RX bytes:11241 (11.2 KB) TX bytes:11241 (11.2 KB)

wlan0     Link encap:Ethernet  Endereço de HW 10:08:b1:3b:3d:11  
          inet end.: 10.110.80.14  Bcast:10.110.255.255  Masc:255.255.0.0
          endereço inet6: fe80::1208:b1ff:fe3b:3d11/64 Escopo:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Métrica:1
          pacotes RX:19710 erros:0 descartados:0 excesso:0 quadro:0
          Pacotes TX:1455 erros:0 descartados:0 excesso:0 portadora:0
          colisões:0 txqueuelen:1000 
          RX bytes:2757117 (2.7 MB) TX bytes:218735 (218.7 KB)



$nm-tool

State: connecting

- Device: wlan0  [SmartCampus] -------------------------------------------------
  Type:              802.11 WiFi
  Driver:            rtl8723be
  State:             connecting (configuring)
  Default:           no
  HW Address:        10:08:B1:3B:3D:11

  Capabilities:

  Wireless Properties
    WEP Encryption:  yes
    WPA Encryption:  yes
    WPA2 Encryption: yes

  Wireless Access Points 
    Tatane:          Infra, 00:26:F2:52:53:D7, Freq 2462 MHz, Rate 54 Mb/s, Strength 30 WPA WPA2
    JH cherche JF plutot canon: Infra, 88:9F:FA:0F:E7:35, Freq 2462 MHz, Rate 54 Mb/s, Strength 40 WEP
   NUMERICABLE-6B42:Infra, 24:EC:99:FF:A8:CB, Freq 2452 MHz, Rate 54 Mb/s, Strength 40 WPA WPA2
    SmartCampus:     Infra, E0:1C:41:AB:80:54, Freq 2437 MHz, Rate 54 Mb/s, Strength 35
    NUMERICABLE-1AB1:Infra, 00:1A:2B:9B:1F:01, Freq 2462 MHz, Rate 54 Mb/s, Strength 37 WPA WPA2
    Livebox-1E06:    Infra, 40:F2:01:5E:1E:06, Freq 2462 MHz, Rate 54 Mb/s, Strength 34 WPA WPA2
    NUMERICABLE-CAAC:Infra, 00:1A:2B:6C:B1:DC, Freq 2462 MHz, Rate 54 Mb/s, Strength 44 WEP
    FreeWifi:        Infra, 14:0C:76:70:C5:82, Freq 2462 MHz, Rate 54 Mb/s, Strength 57
    SFR WiFi FON:    Infra, AA:17:33:E0:E7:91, Freq 2462 MHz, Rate 54 Mb/s, Strength 74
    SmartCampus:     Infra, E0:1C:41:AB:7F:94, Freq 2462 MHz, Rate 54 Mb/s, Strength 100


- Device: eth0 -----------------------------------------------------------------
  Type:              Wired
  Driver:            r8169
  State:             unavailable
  Default:           no
  HW Address:        34:64:A9:75:FF:7A

  Capabilities:
    Carrier Detect:  yes

  Wired Properties
    Carrier:         off

答案1

最重要的是,如果您的 wifi 不断断开连接,则问题出在 Ubuntu 内核,您需要做两件事:

  1. 更新至最新内核 3.17

    下载 .deb 包:

    • 对于 32 位系统:

      $ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17.3-vivid/linux-headers-3.17.3-031703_3.17.3-031703.201411141335_all.deb
      $ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17.3-vivid/linux-headers-3.17.3-031703-generic_3.17.3-031703.201411141335_i386.deb
      $ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17.3-vivid/linux-image-3.17.3-031703-generic_3.17.3-031703.201411141335_i386.deb
      
    • 对于 64 位系统:

      $ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17.3-vivid/linux-headers-3.17.3-031703_3.17.3-031703.201411141335_all.deb
      $ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17.3-vivid/linux-headers-3.17.3-031703-generic_3.17.3-031703.201411141335_amd64.deb
      $ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17.3-vivid/linux-image-3.17.3-031703-generic_3.17.3-031703.201411141335_amd64.deb
      

    安装并重启:

    $ sudo dpkg -i linux-headers-3.17.3*.deb linux-image-3.17.3*.deb; sudo reboot
    
  2. 下载最新rtl8723be驱动程序

GitHub 上有此驱动程序的新版本。
您需要安装包含内核头文件的软件包。

git clone http://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
make
sudo make install

该版本的驱动程序将提交并纳入内核 3.18。

答案2

请打开终端并执行:

echo "options rtl8723be fwlps=N ips=N" | sudo tee /etc/modprobe.d/rtl8723be.conf

重新启动并告诉我们无线是否正常工作。

如果出现进一步的问题,请按照此处所述运行无线脚本:我的无线/WiFi 连接无法使用。诊断问题需要哪些信息?由于输出很长,请将结果粘贴到这里并在您的回复中给我们链接:http://paste.ubuntu.com

相关内容