wifi不稳定

在ThinkPad X201i用ubuntu16.04已经很久了, wifi连接一直不稳定, 用几分钟就自动断开, 无奈只能重连. 查询无线网卡具体情况如下:

$ lspci

02:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000 [Condor Peak]

$ sudo lshw -class network
*-network
       description: Wireless interface
       product: Centrino Wireless-N 1000 [Condor Peak]
       vendor: Intel Corporation
       physical id: 0
       bus info: [email protected]:02:00.0
       logical name: wlp2s0
       version: 00
       serial: 00:26:c7:69:8d:d0
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=4.13.0-26-generic firmware=39.31.5.1 build 35138 ip=192.168.0.107 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:28 memory:f2400000-f2401fff

 

第一走

             将/etc/ppp/options 文件中的 lcp-echo-failure 4 改为 lcp-echo-failure 40

第二走, 把无线网卡的power management 关掉. 试过之后效果明显, 基本上没再掉过线:

关掉之前查看wifi连接情况如下

$ sudo iwconfig
enp0s25   no wireless extensions.

wlp2s0    IEEE 802.11  ESSID:"wonderful_world"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 8C:A6:DF:AE:E0:17   
          Bit Rate=121.5 Mb/s   Tx-Power=14 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          Link Quality=70/70  Signal level=-40 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:115  Invalid misc:121   Missed beacon:0

lo        no wireless extensions.

关掉wifi的power management 
$ sudo iwconfig wlp2s0 power off

查看关掉之后的WiFi情况

$ sudo iwconfig

enp0s25   no wireless extensions.

wlp2s0    IEEE 802.11  ESSID:"wonderful_world"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 8C:A6:DF:AE:E0:17   
          Bit Rate=121.5 Mb/s   Tx-Power=14 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=70/70  Signal level=-31 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:119  Invalid misc:132   Missed beacon:0

lo        no wireless extensions.

猜你喜欢

转载自blog.csdn.net/vivian_wanjin/article/details/81570006

相关文章