windows和ubuntu双系统下无线网络连接问题 - Something TO DO

windows和ubuntu双系统下无线网络连接问题

Something TO DO posted @ 2017年11月23日 09:13 in Ubuntu , 2049 阅读

符合下列配置和问题的请尝试,其他的不保证可行,不要随便尝试,修改文件前保存备份。

(呵呵,果然出现了大家都吐槽的问题,RTL8723BE在linux下不稳定,即使按照下面这样修改了还是不稳定,但是从头重新来一遍就又好了,等待长久解决方案!)

系统配置:win7和ubuntu16.04双系统

无线网卡:RTL8723BE

问题:

1, win7正常连接网络,无线和有线都能正常连接网络;

2,ubuntu16.04有线正常连接网络,无线网络有时能连接上,有时连不上,连上之后网速也奇慢。

 

解决方法:

一、驱动安装问题:

sudo apt-get install linux-headers-generic build-essential git

git clone https://github.com/lwfinger/rtlwifi_new

cd rtlwifi_new

sudo make install 
sudo modprobe rtl8723be 

二、无线信号太弱的问题:

首先要查看本机的无线网卡型号:

1 linuxidc@linuxidc:~$ lspci
 2 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.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
20 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 linuxidc@linuxidc:~$ modinfo rtl8723be
 2 filename:      /lib/modules/4.4.0-22-generic/kernel/drivers/net/wireless/realtek/rtlwifi/rtl8723be/rtl8723be.ko
 3 firmware:      rtlwifi/rtl8723befw.bin
 4 description:    Realtek 8723BE 802.11n PCI wireless
 5 license:        GPL
 6 author:        Realtek WlanFAE    <wlanfae@realtek.com>
 7 author:        PageHe    <page_he@realsil.com.cn>
 8 srcversion:    00619764255210776FAB54D
 9 alias:          pci:v000010ECd0000B723sv*sd*bc*sc*i*
10 depends:        rtlwifi,rtl_pci,btcoexist,mac80211
11 vermagic:      4.4.0-22-generic SMP mod_unload modversions
12 parm:          swlps:bool
13 parm:          swenc:using hardware crypto (default 0 [hardware])
14  (bool)
15 parm:          ips:using no link power save (default 1 is open)
16  (bool)
17 parm:          fwlps:using linked fw control power save (default 1 is 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有三个设置等级0,1,2,强度依次递增,默认是0所以最弱!!!

首先我们把配置驱动的文件打开

linuxidc@linuxidc:~$ sudo nano /etc/modprobe.d/rtl8723be.conf

将如下参数黏贴到配置文件中:

options rtl8723be debug=1
options 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

保存配置文件后,运行如下命令来应用配置

linuxidc@linuxidc:~$ sudo modprobe -r rtl8723be
linuxidc@linuxidc:~$ sudo modprobe rtl8723be

 

我的问题到此就解决了,无线连接网速多3个格,效果明显。

参考:

[1] http://blog.csdn.net/chenhao0428/article/details/51885805

[2]http://www.linuxidc.com/Linux/2016-05/131150.htm

Avatar_small
celeb networth 说:
2021年8月24日 22:46

Checking out the information of any celebrity on celeb networth post to know how much their name and fame worth and their family members.

Avatar_small
How to Cancel Netfli 说:
2022年8月10日 17:05

Netflix has become one of the world’s largest streaming services. It is an absolute beast when it comes to providing some of the best streaming TV series and movies online. The reason it has become such a huge trend and hype is due to growth in the modern gadgets and better Internet all across the world. How to Cancel Netflix But at the same time people have made a change in their mindset so as to seek comfort and entertainment from their homes, phones or laptop without the hassle of going to movies which has become a boon for some people.

Avatar_small
BSNL Recharge Plan 说:
2023年1月31日 16:58

You may check the specific daily prepaid recharge offers, one year plan of Bharat Sanchar Nigam Limited introduced in circles like Tamilnadu, Kerala, Karnataka, Gujarat, Maharashtra etc BSNL Recharge Plan and also find BSNL all India free roaming facility including Mumbai and Delhi by allowing new prepaid mobile plan with unlimited data and calls, free SMS, even in roaming, and to attract more customers into their web.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee