AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1397239
Accepted
Andrew Harlan
Andrew Harlan
Asked: 2022-03-13 08:44:56 +0800 CST2022-03-13 08:44:56 +0800 CST 2022-03-13 08:44:56 +0800 CST

Wi-Fi连接不断断开

  • 772

我在笔记本电脑上使用的 wifi 连接总是随机断开连接,并且一天中会发生很多次。首先,wifi信号开始闪烁,然后询问wifi密码,即使它已经保存了。我需要关闭无线网络,重新打开并重新连接到无线网络以重新连接。

我的网络适配器是:

02:00.0 Network controller: Intel Corporation Wireless 3160 (rev cb)

我不认为这是否是硬件相关问题,因为当我使用 Windows 时没有发生,也不是路由器问题,因为连接到网络的其他设备都可以。

我安装了 Ubuntu 20.04.4 LTS,但没有可用的其他驱动程序。你有什么解决方案可以提供给我吗?

iwlwifi 命令在这里:https ://pastebin.ubuntu.com/p/tjwzKRXZ6F/

$ uname -a
Linux SATELLITE-Radius-14-L40W-C-102 5.13.0-37-generic #42~20.04.1-Ubuntu SMP Tue Mar 15 15:44:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
$ sudo lshw -class network
*-network                 
       description: Wireless interface
       product: Wireless 3160
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlp2s0
       version: cb
       serial: b4:6d:83:ff:02:8f
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.13.0-37-generic firmware=17.3216344376.0 3160-17.ucode ip=192.168.1.242 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:49 memory:b1100000-b1101fff

$ lspci -knn | grep Net -A2
02:00.0 Network controller [0280]: Intel Corporation Wireless 3160 [8086:08b3] (rev cb)
    Subsystem: Intel Corporation Dual Band Wireless AC 3160 [8086:8170]
    Kernel driver in use: iwlwifi

$ls -al /etc/pm/config.d/
ls: cannot access '/etc/pm/config.d/': No such file or directory
$ ls -al /etc/modprobe.d/
total 56
drwxr-xr-x   2 root root  4096 Şub  7 12:50 .
drwxr-xr-x 130 root root 12288 Mar 23 12:34 ..
-rw-r--r--   1 root root  2507 Tem 31  2015 alsa-base.conf
-rw-r--r--   1 root root   154 Şub 16  2020 amd64-microcode-blacklist.conf
-rw-r--r--   1 root root   325 Mar 12  2020 blacklist-ath_pci.conf
-rw-r--r--   1 root root  1518 Mar 12  2020 blacklist.conf
-rw-r--r--   1 root root   210 Mar 12  2020 blacklist-firewire.conf
-rw-r--r--   1 root root   677 Mar 12  2020 blacklist-framebuffer.conf
-rw-r--r--   1 root root   156 Tem 31  2015 blacklist-modem.conf
lrwxrwxrwx   1 root root    41 Şub  7 12:28 blacklist-oss.conf -> /lib/linux-sound-base/noOSS.modprobe.conf
-rw-r--r--   1 root root   583 Mar 12  2020 blacklist-rare-network.conf
-rw-r--r--   1 root root   154 Haz 10  2020 intel-microcode-blacklist.conf
-rw-r--r--   1 root root   347 Mar 12  2020 iwlwifi.conf
$ sudo iwlist freq
lo        no frequency information.

wlp2s0    32 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz
          Channel 36 : 5.18 GHz
          Channel 40 : 5.2 GHz
          Channel 44 : 5.22 GHz
          Channel 48 : 5.24 GHz
          Channel 52 : 5.26 GHz
          Channel 56 : 5.28 GHz
          Channel 60 : 5.3 GHz
          Channel 64 : 5.32 GHz
          Channel 100 : 5.5 GHz
          Channel 104 : 5.52 GHz
          Channel 108 : 5.54 GHz
          Channel 112 : 5.56 GHz
          Channel 116 : 5.58 GHz
          Channel 120 : 5.6 GHz
          Channel 124 : 5.62 GHz
          Channel 128 : 5.64 GHz
          Channel 132 : 5.66 GHz
          Channel 136 : 5.68 GHz
          Channel 140 : 5.7 GHz
          Current Frequency:2.462 GHz (Channel 11)

$ iwlist scan | egrep -i 'ssid|quality'
lo        Interface doesn't support scanning.

                    Quality=70/70  Signal level=-36 dBm  
                    ESSID:"ardic"
$ sudo iwconfig
lo        no wireless extensions.

wlp2s0    IEEE 802.11  ESSID:"ardic"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 60:31:97:F0:0D:4D   
          Bit Rate=72.2 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=57/70  Signal level=-53 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:137   Missed beacon:0

$ inxi -Fxz
System:
  Kernel: 5.13.0-37-generic x86_64 bits: 64 compiler: N/A 
  Desktop: Gnome 3.36.9 Distro: Ubuntu 20.04.4 LTS (Focal Fossa) 
Machine:
  Type: Laptop System: TOSHIBA product: SATELLITE Radius 14 L40W-C-102 
  v: PSLZAE-00R00STE serial: <filter> 
  Mobo: FF40 model: 06A0 v: 2.0 serial: <filter> UEFI: INSYDE v: 5.00 
  date: 07/01/2015 
Battery:
  ID-1: BAT0 charge: 13.1 Wh condition: 22.7/46.3 Wh (49%) 
  model: TKBSS G71C000JV110 status: Discharging 
CPU:
  Topology: Dual Core model: Intel Core i3-5005U bits: 64 type: MT MCP 
  arch: Broadwell rev: 4 L2 cache: 3072 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 15999 
  Speed: 883 MHz min/max: 500/1900 MHz Core speeds (MHz): 1: 1026 2: 969 
  3: 800 4: 927 
Graphics:
  Device-1: Intel HD Graphics 5500 vendor: Toshiba driver: i915 v: kernel 
  bus ID: 00:02.0 
  Display: x11 server: X.Org 1.20.13 driver: i915 resolution: 1366x768~60Hz 
  OpenGL: renderer: Mesa Intel HD Graphics 5500 (BDW GT2) v: 4.6 Mesa 21.2.6 
  direct render: Yes 
Audio:
  Device-1: Intel Broadwell-U Audio vendor: Toshiba driver: snd_hda_intel 
  v: kernel bus ID: 00:03.0 
  Device-2: Intel Wildcat Point-LP High Definition Audio vendor: Toshiba 
  driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  Sound Server: ALSA v: k5.13.0-37-generic 
Network:
  Device-1: Intel Wireless 3160 driver: iwlwifi v: kernel port: 3040 
  bus ID: 02:00.0 
  IF: wlp2s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 111.79 GiB used: 14.19 GiB (12.7%) 
  ID-1: /dev/sda vendor: Gigabyte model: GP-GSTFS31120GNTD size: 111.79 GiB 
  temp: 33 C 
Partition:
  ID-1: / size: 109.04 GiB used: 14.18 GiB (13.0%) fs: ext4 dev: /dev/sda2 
Sensors:
  System Temperatures: cpu: 54.0 C mobo: 27.8 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 235 Uptime: 7h 36m Memory: 7.68 GiB used: 2.14 GiB (27.9%) 
  Init: systemd runlevel: 5 Compilers: gcc: N/A Shell: bash v: 5.0.17 
  inxi: 3.0.38 

$ nmcli device wifi list
IN-USE  BSSID              SSID                       MODE   CHAN  RATE        >
*       60:31:97:F0:0D:4D  ardic                      Infra  11    130 Mbit/s  >
        00:31:92:66:37:60  TurkTelekom_TP3760_2.4GHz  Infra  8     270 Mbit/s  >
        00:31:92:66:37:61  TurkTelekom_TP3760_5GHz    Infra  36    270 Mbit/s  >
        74:DA:88:22:03:20  TP-Link_0320               Infra  2     130 Mbit/s  >
        8C:DE:F9:0E:2B:48  TP-Link_0320_plus          Infra  2     130 Mbit/s  >
        8C:15:C7:E9:98:24  VodafoneNet-D7VDST         Infra  11    270 Mbit/s  >

  $ lsusb
Bus 001 Device 002: ID 8087:8001 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 04f2:b446 Chicony Electronics Co., Ltd TOSHIBA Web Camera - HD
Bus 002 Device 003: ID 04f3:20d3 Elan Microelectronics Corp. Touchscreen
Bus 002 Device 002: ID 048d:8350 Integrated Technology Express, Inc. ITE Device(8350)
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor pre>
     Active: active (running) since Tue 2022-03-29 10:17:38 +03; 9min ago
       Docs: man:bluetoothd(8)
   Main PID: 920 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 9356)
     Memory: 1.5M
     CGroup: /system.slice/bluetooth.service
             └─920 /usr/lib/bluetooth/bluetoothd

Mar 29 10:17:38 SATELLITE-Radius-14-L40W-C-102 systemd[1]: Starting Bluetooth s>
Mar 29 10:17:38 SATELLITE-Radius-14-L40W-C-102 bluetoothd[920]: Bluetooth daemo>
Mar 29 10:17:38 SATELLITE-Radius-14-L40W-C-102 systemd[1]: Started Bluetooth se>
Mar 29 10:17:38 SATELLITE-Radius-14-L40W-C-102 bluetoothd[920]: Starting SDP se>
Mar 29 10:17:38 SATELLITE-Radius-14-L40W-C-102 bluetoothd[920]: Bluetooth manag>
networking
  • 5 5 个回答
  • 1177 Views

5 个回答

  • Voted
  1. Best Answer
    sancho.s ReinstateMonicaCellio
    2022-03-29T02:45:36+08:002022-03-29T02:45:36+08:00

    编辑:

    根据您的 pastebin,您当前的驱动程序配置包括:

    bt_coex_active=enable
    power_save=enable
    power_level=1
    

    所以我想说值得尝试下面的选项1。


    根据规格,您的英特尔® 双频带 Wireless-AC 3160 具有 WiFi 频带 2.4GHz、5GHz 和蓝牙版本 4.0。在集成适配器中经常看到 WiFi 和蓝牙之间的干扰。根据驱动程序的配置选项,解决方案的难度会有所不同。

    我在下面列出了我在此发布的一些答案。在那里你可以找到有用的链接。至于您的特定情况,需要更多信息来缩小选项范围。一方面,我将提供一个命令列表来从您的系统中获取相关信息。OTOH,假设您有驱动程序iwlwifi(也是this),我将提供您可以尝试的选项列表。

    要发布的信息

    请发布以下信息

    1. 下面的命令输出。请在您的终端中逐字复制粘贴列出的命令。然后逐字复制粘贴,在这里,输入的命令和获得的输出。还要添加您可能观察到的任何值得注意的行为。将结果输入为正确的降价格式文本,而不是屏幕截图。如果需要很长的输出,您可以使用 pastebin。

       $ uname -a
       $ sudo lshw -class network
       $ lspci -knn | grep Net -A2
       $ ls -al /etc/pm/config.d/
       $ ls -al /etc/modprobe.d/
       $ sudo iwlist freq
       $ iwlist scan | egrep -i 'ssid|quality'
       $ sudo iwconfig
       $ inxi -Fxz
       $ nmcli device wifi list
       $ lsusb
       $ systemctl status bluetooth
       $ hcitool dev
       $ hciconfig -a
      
       $ modinfo iwlwifi
       $ sudo lsmod | grep iwlwifi
       $ cat /etc/modprobe.d/iwlwifi.conf
       $ grep [[:alnum:]] /sys/module/iwlwifi/parameters/*
      

      最后一系列命令假设您有 driver iwlwifi。用您拥有的任何驱动程序替换它。

    2. 您电脑的品牌/型号

    要尝试的事情

    发布结果行为/输出。假设您有 driver iwlwifi,请尝试:

    1. 使用驱动程序选项(parms)sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi bt_coex_active=N power_save=0 power_level=5":。如果这不起作用,您可以添加11n_disable=1, disable_11ac=1, disable_11ax=1. 重启。请注意,从文档中,不清楚最高数字 (5) 是否提供最大功率或最大功率节省,因此您也可以尝试另一端 ( power_level=1)。要检查电源水平,使用电池并运行 PCpowertop可能会有所帮助。
    2. 禁用蓝牙。您可以通过 CLI 使用systemctl stop bluetooth,通过 GUI 使用设置->蓝牙-> 移动右上角的滑块,或者通过 BIOS 配置来执行此操作。重启。
    3. 禁用路由器中的 5GHz 频段。
    4. 如果特定网络出现问题,这可能是您的解决方案,但请改为查看详细信息选项卡。我知道它会在你的 Ubuntu 不睡觉的情况下发生,但它仍然可能适用。即使它发生得更广泛,它也可能是解决方案,尽管在这种情况下不太可能。
    5. 用 更改频道iw wlp2s0 set channel <no.>。

    一些相关的回答

    1. 蓝牙适配器减慢 Ubuntu 18.04.1 上的 Wifi 连接
    2. 在 Ubuntu 20.04 中连接蓝牙耳机时 Wifi 变慢
    3. Wifi 和蓝牙不能同时工作
    4. 5.11 内核上的杀手 Wi-Fi 6 AX1650i WiFi 连接缓慢
    5. make defconfig-ath10k 中的错误 .. 使用 qualcomm Atheros QCA9377 的 wifi 速度较慢
    6. Atheros 蓝牙接收器定期掉线,Dell Inspiron 15
    7. 蓝牙在 HP 笔记本电脑上的 Ubuntu 中不起作用 - 15-di2000tu
    • 1
  2. Utkarsh Chandra Srivastava
    2022-03-26T20:44:51+08:002022-03-26T20:44:51+08:00

    也许是电源管理问题?将 wifi.powersave 值更改为 2

    sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
    #edit this line change from whatever to 2
    wifi.powersave=2 
    

    如果这不起作用,请尝试在 grub 中传递此参数

    sudo nano /etc/default/grub 
    
    # Edit the following line and add pcie_aspm=off
    
    GRUB_CMDLINE_LINUX_DEFAULT="splash pcie_aspm=off"
    
    sudo update-grub
    
    • 0
  3. WinEunuuchs2Unix
    2022-03-29T14:40:24+08:002022-03-29T14:40:24+08:00

    你可以看看几件事。就我自己而言/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf,它包含:

    [connection]
    #wifi.powersave = 3
    # Slow sleep fix: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1670041
    wifi.powersave = 2
    

    由于您已经在使用2,您可以尝试3.

    英特尔确实为 Linux 制作WiFi 驱动程序:

    在此处输入图像描述

    • 0
  4. QRP
    2022-03-31T11:48:09+08:002022-03-31T11:48:09+08:00

    大约一年前我遇到了同样的问题,我在设置>电源>暂停和电源按钮>自动暂停中找到了解决方案。将开启电池电源设置为关闭。现在我从来没有失去我的无线网络。我不知道为什么会这样,如果向我解释过,我相信我不会理解。

    Ubuntu 20.04.4 LTS

    • 0
  5. 6reg
    2022-07-14T12:55:53+08:002022-07-14T12:55:53+08:00

    我的问题原来是wifi扩展器离笔记本电脑太近了。将它移到几英尺外并解决了问题。

    • 0

相关问题

  • 如何设置 VLAN 转发?

  • 如何将主机 Ubuntu 上的 VPN (tun0) 网络适配器映射到 VirtualBox 来宾 Windows?

  • 如何限制下载/上传带宽?

  • 如何通过 Windows 网络共享文件?

  • 面板小程序以文本形式显示当前网络流量?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve