tomaspinho / rtl8821ce

Other
1.6k stars 409 forks source link

can't make wifi work on Lenovo IdeaPad L340-17 #347

Closed jazzl0ver closed 8 months ago

jazzl0ver commented 8 months ago

Hi,

Can't make wifi work. Any advice is appreciated!

[root@vitalmutton ~]# uname -a
Linux vitalmutton 6.1.81-un-def-alt1 #1 SMP PREEMPT_DYNAMIC Tue Mar 12 14:02:38 UTC 2024 x86_64 GNU/Linux

[root@vitalmutton ]# modinfo 8821ce
filename:       /lib/modules/6.1.81-un-def-alt1/updates/dkms/8821ce.ko
version:        v5.5.2_34066.20200325_COEX20180712-3232
...

[root@vitalmutton ~]# lspci
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 07)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:15.0 Serial bus controller: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #0 (rev 10)
00:15.1 Serial bus controller: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #1 (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 SATA controller: Intel Corporation Cannon Lake Mobile PCH SATA AHCI Controller (rev 10)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 (rev f0)
00:1d.4 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #13 (rev f0)
00:1d.5 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #14 (rev f0)
00:1e.0 Communication controller: Intel Corporation Cannon Lake PCH Serial IO UART Host Controller (rev 10)
00:1f.0 ISA bridge: Intel Corporation HM470 Chipset LPC/eSPI Controller (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
06:00.0 Non-Volatile memory controller: Micron Technology Inc 2200S NVMe SSD [Cassandra] (rev 01)
07:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)

[root@vitalmutton ~]# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 04f2:b6d9 Chicony Electronics Co., Ltd Integrated Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

[root@vitalmutton ~]# grep aspm /etc/default/grub 
GRUB_CMDLINE_LINUX_DEFAULT=' resume=/dev/disk/by-uuid/021cd933-4d65-41de-84d6-7d281d0fd061 panic=30 quiet loglevel=3 splash psi=1 pcie_aspm=off'

[root@vitalmutton ~]# grep DEBUG rtl8821ce/Makefile 
CONFIG_RTW_DEBUG = y

root@vitalmutton ~]# iwlist scan
lo        Interface doesn't support scanning.

enp8s0    Interface doesn't support scanning.

wlp7s0    No scan results

[root@vitalmutton ~]# iwconfig 
lo        no wireless extensions.

enp8s0    no wireless extensions.

wlp7s0    unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Log entries:

Mar 13 18:46:32 vitalmutton NetworkManager[2536]: <info>  [1710344792.1350] device (wlan0): driver supports Access Point (AP) mode
Mar 13 18:46:32 vitalmutton NetworkManager[2536]: <info>  [1710344792.1358] manager: (wlan0): new 802.11 Wi-Fi device (/org/freedesktop/NetworkManager/Devices/5)
Mar 13 18:46:32 vitalmutton (udev-worker)[4026]: Using default interface naming scheme 'v249'.
Mar 13 18:46:32 vitalmutton NetworkManager[2536]: <info>  [1710344792.1382] rfkill3: found Wi-Fi radio killswitch (at /sys/devices/pci0000:00/0000:00:1d.4/0000:07:00.0/ieee80211/phy1/rfkil>
Mar 13 18:46:32 vitalmutton kernel: rtl8821ce 0000:07:00.0 wlp7s0: renamed from wlan0
Mar 13 18:46:32 vitalmutton NetworkManager[2536]: <info>  [1710344792.1494] device (wlan0): interface index 4 renamed iface from 'wlan0' to 'wlp7s0'
Mar 13 18:46:32 vitalmutton NetworkManager[2536]: <info>  [1710344792.1554] device (wlp7s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Mar 13 18:46:32 vitalmutton (udev-worker)[4033]: Using default interface naming scheme 'v249'.
Mar 13 18:46:32 vitalmutton NetworkManager[2536]: <info>  [1710344792.6043] device (wlp7s0): set-hw-addr: set MAC address to 52:AB:E0:23:ED:47 (scanning)
Mar 13 18:46:32 vitalmutton NetworkManager[2536]: <info>  [1710344792.6366] device (wlp7s0): supplicant interface state: internal-starting -> disconnected
Mar 13 18:46:32 vitalmutton NetworkManager[2536]: <info>  [1710344792.6368] Wi-Fi P2P device controlled by interface wlp7s0 created
Mar 13 18:46:32 vitalmutton NetworkManager[2536]: <info>  [1710344792.6374] manager: (p2p-dev-wlp7s0): new 802.11 Wi-Fi P2P device (/org/freedesktop/NetworkManager/Devices/6)
Mar 13 18:46:32 vitalmutton NetworkManager[2536]: <info>  [1710344792.6379] device (p2p-dev-wlp7s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Mar 13 18:46:32 vitalmutton NetworkManager[2536]: <info>  [1710344792.6388] device (wlp7s0): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'man>
Mar 13 18:46:32 vitalmutton NetworkManager[2536]: <info>  [1710344792.6402] device (p2p-dev-wlp7s0): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
Mar 13 18:46:34 vitalmutton ModemManager[2416]: <info>  [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:1d.4/0000:07:00.0': not supported by any plugin
dubhater commented 8 months ago

What seems to be the problem? Everything looks fine to me.

jazzl0ver commented 8 months ago

No wifi networks are found - that's the problem

dubhater commented 8 months ago

That is strange. Have you tried rtw88? Or the newer version of rtl8821ce?

https://github.com/lwfinger/rtw88/

https://github.com/lwfinger/rtw88/tree/master/alt_rtl8821ce

jazzl0ver commented 8 months ago

I'll try and let you know. Thank you very much!

dubhater commented 8 months ago

Also check the output of rfkill list. It should say

        Soft blocked: no
        Hard blocked: no
jazzl0ver commented 8 months ago
[root@vitalmutton ~]# rfkill list
0: ideapad_wlan: Wireless LAN
        Soft blocked: no
        Hard blocked: no
1: ideapad_bluetooth: Bluetooth
        Soft blocked: no
        Hard blocked: no
2: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
jazzl0ver commented 8 months ago

I've tried both drivers - same result :( Any other ideas?

jazzl0ver commented 8 months ago

I'm sorry for bothering. After installing the latest platform update and drivers (under Windows), both wifi and Bluetooth started to work. Anyway thank you for your help!