18.04:没有可见的无线网络 Realtek 8822CE

18.04:没有可见的无线网络 Realtek 8822CE

大纲

我遇到了一个问题,我的新电脑在网络设置中没有可见的无线网络,我无法连接到它们。这台电脑是联想 v14-IIL,带有 Realtek 设备 c82f,即 Realtek 8822CE。


迄今已完成

当在这台电脑上启动 Ubuntu 18.04 时,它首先没有显示任何连接到无线网络的可能性。我使用了此线程中的答案:在 ubuntu 18.04 中未找到 Wifi 适配器;没有设备 rtl8822ce 的驱动程序,并且它帮助使无线网卡可见。但是现在问题仍然存在,我无法连接到任何 wifi。

当尝试选择网络时,它只是显示“无网络”。我浏览了其他帖子,试图找到答案。到目前为止,我已经运行了这些命令并得到了以下结果:

lspci -nnk | grep 0280 -A3

01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:c82f]
    Subsystem: Lenovo Device [17aa:c02f]
    Kernel driver in use: rtw_pci
    Kernel modules: rtwpci

rfkill list all

0: ideapad_wlan: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: hci0: Bluetooth
    Soft blocked: yes
    Hard blocked: no
2: ideapad_bluetooth: Bluetooth
    Soft blocked: yes
    Hard blocked: no
3: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no

sudo lshw -C network

  *-network                 
       description: Wireless interface
       product: Realtek Semiconductor Co., Ltd.
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: wlp1s0
       version: 00
       serial: 28:39:26:c4:51:39
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rtw_pci driverversion=5.7.0-rc3+ firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:137 ioport:4000(size=256) memory:94000000-9400ffff

dmesg | grep -i rtw_pci

[   25.398709] rtw_pci 0000:01:00.0: enabling device (0000 -> 0003)
[   25.407821] rtw_pci 0000:01:00.0: Firmware version 7.3.0, H2C version 14
[   25.408830] rtw_pci 0000:01:00.0: Firmware version 7.3.0, H2C version 14
[   25.533550] rtw_pci 0000:01:00.0 wlp1s0: renamed from wlan0
[   26.793496] rtw_pci 0000:01:00.0: start vif 28:39:26:c4:51:39 on port 0

首先固件不工作所以我将其更新到最新版本,现在它没有出现任何错误并显示这个。

inxi -Fxz

System:    Host: usrname-Lenovo-V14-IIL Kernel: 5.7.0-rc3+ x86_64
           bits: 64 gcc: 7.5.0
           Desktop: Gnome 3.28.4 (Gtk 3.22.30-1ubuntu4)
           Distro: Ubuntu 18.04.4 LTS
Machine:   Device: laptop System: LENOVO product: 82C4 v: Lenovo V14-IIL serial: N/A
           Mobo: LENOVO model: LNVNB161216 v: SDK0J40697 WIN serial: N/A
           UEFI: LENOVO v: DKCN24WW date: 11/26/2019
Battery    BAT0: charge: 35.8 Wh 100.1% condition: 35.8/35.0 Wh (102%)
           model: SMP L16M2PB2 status: Full
CPU:       Quad core Intel Core i5-1035G1 (-MT-MCP-) 
           arch: N/A cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9523
           clock speeds: max: 3600 MHz 1: 1105 MHz 2: 1230 MHz 3: 760 MHz
           4: 1269 MHz 5: 1169 MHz 6: 811 MHz 7: 667 MHz 8: 1226 MHz
Graphics:  Card: Intel Device 8a56 bus-ID: 00:02.0
           Display Server: x11 (X.Org 1.20.5 )
           drivers: (unloaded: modesetting,fbdev,vesa)
           Resolution: [email protected]
           OpenGL: renderer: Mesa DRI Intel UHD Graphics (Ice Lake 4x8 GT1)
           version: 4.5 Mesa 19.2.8 Direct Render: Yes
Audio:     Card Intel Device 34c8 driver: snd_hda_intel bus-ID: 00:1f.3
           Sound: Advanced Linux Sound Architecture v: k5.7.0-rc3+
Network:   Card: Realtek Device c82f
           driver: rtw_pci port: 4000 bus-ID: 01:00.0
           IF: wlp1s0 state: down mac: <filter>
Drives:    HDD Total Size: 256.1GB (14.3% used)
           ID-1: /dev/nvme0n1 model: WDC_PC_SN520_SDAPMUW size: 256.1GB
Partition: ID-1: / size: 234G used: 35G (16%) fs: ext4 dev: /dev/nvme0n1p2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 41.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 301 Uptime: 27 min Memory: 1593.9/7757.2MB
           Init: systemd runlevel: 5 Gcc sys: 7.5.0
           Client: Shell (bash 4.4.201) inxi: 2.3.56 

ip link show

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
    link/ether 28:39:26:c4:51:39 brd ff:ff:ff:ff:ff:ff
4: enp0s20f0u2c4i2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 6e:8d:c1:0e:5c:5c brd ff:ff:ff:ff:ff:ff

iwconfig

lo        no wireless extensions.

wlp1s0    IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

enp0s20f0u2c4i2  no wireless extensions.

sudo iwlist wlp1s0 scanning

此命令显示周围所有可见的 wifi,以便无线网络可以找到它们。

sudo gedit /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

在这个文件中我添加了下面的文本以使用网卡,因为我在一些线程上发现了它,这是错误的吗?

auto wlp1s0
iface wlp1s0 inet dhcp

lsmod

rtwpci                 24576  0 

这是网卡应该使用的模块,但我认为由于它没有连接到 wifi,所以没有使用该模块(尽管该模块本身使用另一个模块,rtw88)

现在的问题

现在我不知道要做什么才能让它工作。我尝试使用 nmcli 和 wpa_supplicant 的终端连接到 wifi,但都没有成功。nmcli 找不到 wifi,并说 wifi 是“未管理的”。

我使用 wpa_supplicant 安装并将网络规范添加到配置文件中,然后运行:

sudo wpa_supplicant -B -i wlp1s0 -c /etc/wpa_supplicant.conf -D nl80211

Successfully initialized wpa_supplicant

但运行时sudo dhclient wlp1s0什么也没发生,并ps -e | grep wpa出现:

  702 ?        00:00:00 wpa_supplicant
 6666 ?        00:00:25 wpa_supplicant
 6694 ?        00:00:25 wpa_supplicant
 6702 ?        00:00:24 wpa_supplicant

我对 Linux 系统和 Ubuntu 的经验不足,不知道如何解码。从我所看到的情况来看,我不明白为什么我无法连接,因为网卡是可见的,驱动程序在那里,而且它可以在扫描时找到 wifi。我猜我遗漏了什么或做错了什么。欢迎并感谢任何和所有的输入!

相关内容