我在笔记本电脑上使用的 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>
编辑:
根据您的 pastebin,您当前的驱动程序配置包括:
所以我想说值得尝试下面的选项1。
根据规格,您的英特尔® 双频带 Wireless-AC 3160 具有 WiFi 频带 2.4GHz、5GHz 和蓝牙版本 4.0。在集成适配器中经常看到 WiFi 和蓝牙之间的干扰。根据驱动程序的配置选项,解决方案的难度会有所不同。
我在下面列出了我在此发布的一些答案。在那里你可以找到有用的链接。至于您的特定情况,需要更多信息来缩小选项范围。一方面,我将提供一个命令列表来从您的系统中获取相关信息。OTOH,假设您有驱动程序iwlwifi(也是this),我将提供您可以尝试的选项列表。
要发布的信息
请发布以下信息
下面的命令输出。请在您的终端中逐字复制粘贴列出的命令。然后逐字复制粘贴,在这里,输入的命令和获得的输出。还要添加您可能观察到的任何值得注意的行为。将结果输入为正确的降价格式文本,而不是屏幕截图。如果需要很长的输出,您可以使用 pastebin。
最后一系列命令假设您有 driver
iwlwifi
。用您拥有的任何驱动程序替换它。您电脑的品牌/型号
要尝试的事情
发布结果行为/输出。假设您有 driver
iwlwifi
,请尝试:parm
s)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
可能会有所帮助。systemctl stop bluetooth
,通过 GUI 使用设置->蓝牙-> 移动右上角的滑块,或者通过 BIOS 配置来执行此操作。重启。iw wlp2s0 set channel <no.>
。一些相关的回答
也许是电源管理问题?将 wifi.powersave 值更改为 2
如果这不起作用,请尝试在 grub 中传递此参数
你可以看看几件事。就我自己而言
/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
,它包含:由于您已经在使用
2
,您可以尝试3
.英特尔确实为 Linux 制作WiFi 驱动程序:
大约一年前我遇到了同样的问题,我在设置>电源>暂停和电源按钮>自动暂停中找到了解决方案。将开启电池电源设置为关闭。现在我从来没有失去我的无线网络。我不知道为什么会这样,如果向我解释过,我相信我不会理解。
Ubuntu 20.04.4 LTS
我的问题原来是wifi扩展器离笔记本电脑太近了。将它移到几英尺外并解决了问题。