關于ubuntu16無線網卡RTL8723BE頻繁掉線及信号不足的解決辦法
最近在新電腦上裝了ubuntu16,結果wifi經常連不上,連上了過段時間就掉線,路由器就在電腦的旁邊,而且信号非常的若.
但是windows系統沒有任何問題,是以就在網上找解決辦法,也按照網上的方法試了,結果好多方法都是沒用的.
最後從askubuntu上找到了解決方法.
首先要檢視本機的無線網卡型号:
1 [email protected]:~$ lspci2 00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)3 00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09)4 00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)5 00:04.0 Signal processing controller: Intel Corporation Broadwell-U Camarillo Device (rev 09)6 00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)7 00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)8 00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)9 00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1(rev e3)10 00:1c.1 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #2(rev e3)11 00:1c.2 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #3(rev e3)12 00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4(rev e3)13 00:1c.4 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #5(rev e3)14 00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)15 00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)16 00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)17 00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)18 02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)19 08:00.0Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter20 09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 0a)21 0a:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940M] (rev a2)
看到第19行的是無線網卡資訊,且型号為RTL8723BE.
從網上看到RTL8723系列網卡都有這個頻繁掉線的問題,隻不過BE版本是更新的版本,添加了一個參數.
再來檢視RTL8723BE這塊網卡驅動的參數資訊,
1 [email protected]:~$ modinfo rtl8723be2 filename: /lib/modules/4.4.0-22-generic/kernel/drivers/net/wireless/realtek/rtlwifi/rtl8723be/rtl8723be.ko3 firmware: rtlwifi/rtl8723befw.bin4 description: Realtek 8723BE 802.11n PCI wireless5 license: GPL6 author: Realtek WlanFAE
7 author: PageHe
8 srcversion: 00619764255210776FAB54D9 alias: pci:v000010ECd0000B723sv*sd*bc*sc*i*
10 depends: rtlwifi,rtl_pci,btcoexist,mac8021111 vermagic: 4.4.0-22-generic SMP mod_unload modversions12 parm: swlps:bool
13 parm: swenc:using hardware crypto (default 0[hardware])14 (bool)15 parm: ips:using no link power save (default 1is open)16 (bool)17 parm: fwlps:using linked fw control power save (default 1is open)18 (bool)19 parm: msi:Set to 1 to use MSI interrupts mode (default 0)20 (bool)21 parm: debug:Set debug level (0-5) (default 0) (int)22 parm: disable_watchdog:Set to 1 to disable the watchdog (default 0)23 (bool)24 parm: ant_sel:Set to 1 or 2 to force antenna number (default 0)25 (int)
看第12行到25行這幾個參數,ips和fwlps是用來控制節能的,ant_sel是用來控制信号強度的.最主要的就是修改這幾個參數的預設值.
首先我們把配置驅動的檔案打開
[email protected]:~$ sudo nano /etc/modprobe.d/rtl8723be.conf
将如下參數黏貼到配置檔案中:
options rtl8723be debug=1options rtl8723be disable_watchdog=N
options rtl8723be fwlps=Y
options rtl8723be ips=Y
options rtl8723be msi=N
options rtl8723be swenc=N
options rtl8723be swlps=N
options rtl8723be ant_sel=2
儲存配置檔案後,運作如下指令來應用配置
[email protected]:~$ sudo modprobe -r rtl8723be
[email protected]:~$ sudo modprobe rtl8723be
是不是信号強了許多?
參考位址:
http://askubuntu.com/questions/526214/how-to-set-parameters-for-realtek-wifi-rtl8723
http://askubuntu.com/questions/635625/realtek-8723be-wifi-problem
http://askubuntu.com/questions/756748/inconsistent-connection-and-super-slow-speed-with-rtl8723be