ubuntu配置无线网卡

最近在新电脑上装了Ubuntu 16.04,结果wifi经常连不上,连上了过段时间就掉线,路由器就在电脑的旁边,而且信号非常的弱。

但是Windows系统没有任何问题,所以就在网上找解决办法,也按照网上的方法试了,结果好多方法都是没用的。

最后从askubuntu上找到了解决方法,首先要查看本机的无线网卡型号:

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是用来控制信号强度的.最主要的就是修改这几个参数的默认值.

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

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:~ sudomodproberrtl8723belinuxidc@linuxidc:  sudo modprobe rtl8723be

是不是信号强了许多?

Ubuntu 下通过Wine安装阿里旺旺并解决中文乱码 http://www.linuxidc.com/Linux/2016-05/131131.htm

Ubuntu 16.04 LTS正式发布下载,长达5年技术支持 http://www.linuxidc.com/Linux/2016-04/130508.htm

Ubuntu 16.04 U盘安装图文教程 http://www.linuxidc.com/Linux/2016-04/130520.htm

Ubuntu 16.04 LTS安装好需要设置的15件事 http://www.linuxidc.com/Linux/2016-04/130519.htm

Ubuntu 16.04 LTS 今日发布 Canonical公布系统新特性 http://www.linuxidc.com/Linux/2016-04/130466.htm

将Ubuntu 15.10升级到Ubuntu 16.04 http://www.linuxidc.com/Linux/2016-03/129158.htm

Ubuntu 16.04安装Lua游戏引擎Love http://www.linuxidc.com/Linux/2016-03/129108.htm

Ubuntu 16.04 LTS如何使用Snap软件包 http://www.linuxidc.com/Linux/2016-04/130679.htm

Ubuntu 16.04 需要你的帮助,让 GNOME Software 更美观 http://www.linuxidc.com/Linux/2016-03/129237.htm

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-05/131150.htm

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值