Wifi not working after sleep/suspend in Ubuntu 18.04 LTS

Asked by Gaurav on 2019-08-11

I have Ubuntu 18.04 LTS, every time after suspending the session my wifi doesn't work anymore, although the wifi-interface confirms that the connection has been established.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2019-08-14
Last reply:
2019-08-14
Gaurav (imgaurav) said : #1

Here is the detail for the device:
 *-network
       description: Wireless interface
       product: RTL8821CE 802.11ac PCIe Wireless Network Adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: wlp1s0
       version: 00
       serial: b0:fc:36:78:e8:e7
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rtl8821ce ip=192.168.1.6 latency=0 multicast=yes wireless=IEEE 802.11bgn
       resources: irq:54 ioport:3000(size=256) memory:e0800000-e080ffff

Gaurav (imgaurav) said : #2

Here is the detail for the device:
 *-network
       description: Wireless interface
       product: RTL8821CE 802.11ac PCIe Wireless Network Adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: wlp1s0
       version: 00
       serial: b0:fc:36:78:e8:e7
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rtl8821ce ip=192.168.1.6 latency=0 multicast=yes wireless=IEEE 802.11bgn
       resources: irq:54 ioport:3000(size=256) memory:e0800000-e080ffff

Manfred Hampl (m-hampl) said : #3

What happens if you try the following commands after waking up the system from suspend:

sudo modprobe -r rtl8821ce
sudo modprobe rtl8821ce

Does the WLAN start working?

Gaurav (imgaurav) said : #4

I got below message:

dhruv@dhruv-Lenovo-ideapad-330-15ARR:~$ sudo modprobe -r rtl8821ce
[sudo] password for dhruv:
modprobe: FATAL: Module rtl8821ce not found.
dhruv@dhruv-Lenovo-ideapad-330-15ARR:~$ sudo modprobe rtl8821ce
modprobe: FATAL: Module rtl8821ce not found in directory /lib/modules/5.0.0-050000-generic
dhruv@dhruv-Lenovo-ideapad-330-15ARR:~$

Manfred Hampl (m-hampl) said : #5

This message is contradictory to the output "driver=rtl8821ce" above.

I suggest that you execute the command in step 2 of https://help.ubuntu.com/community/WirelessTroubleshootingProcedure and copy/paste the output into this question document.

Gaurav (imgaurav) said : #6

Here is the output:
[sudo] password for dhruv:
Hit:1 http://in.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:4 http://archive.canonical.com/ubuntu bionic InRelease [10.2 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [710 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [571 kB]
Get:8 http://archive.canonical.com/ubuntu bionic/partner amd64 Packages [2,320 B]
Get:9 http://in.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [259 kB]
Get:10 http://archive.canonical.com/ubuntu bionic/partner i386 Packages [2,316 B]
Get:11 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [282 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [66.7 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [134 kB]
Get:14 http://in.archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages [8,600 B]
Get:15 http://in.archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [11.9 kB]
Get:16 http://in.archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [4,156 B]
Get:17 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [988 kB]
Get:18 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [965 kB]
Get:19 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [351 kB]
Get:20 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [301 kB]
Get:21 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [252 kB]
Get:22 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [194 kB]
Get:23 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [435 kB]
Get:24 http://in.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [6,636 B]
Get:25 http://in.archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [6,784 B]
Get:26 http://in.archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [3,556 B]
Get:27 http://in.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:28 http://in.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [7,712 B]
Get:29 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [477 kB]
Get:30 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [162 kB]
Get:31 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [22.7 kB]
Get:32 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [10.4 kB]
Get:33 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [31.7 kB]
Get:34 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [4,976 B]
Get:35 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [2,476 B]
Get:36 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [581 kB]
Get:37 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [570 kB]
Get:38 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [191 kB]
Get:39 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42.1 kB]
Get:40 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [16.4 kB]
Get:41 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [111 kB]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [4,148 B]
Get:43 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [4,004 B]
Get:44 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Fetched 8,059 kB in 9s (914 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
grep is already the newest version (3.1-2).
usbutils is already the newest version (1:007-4build1).
pciutils is already the newest version (1:3.5.2-1ubuntu1.1).
rfkill is already the newest version (2.31.1-0.4ubuntu3.3).
The following additional packages will be installed:
  libhd21 libx86emu1
The following NEW packages will be installed:
  hwinfo libhd21 libx86emu1
0 upgraded, 3 newly installed, 0 to remove and 34 not upgraded.
Need to get 760 kB of archives.
After this operation, 3,292 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 libx86emu1 amd64 1.12-1 [48.1 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 libhd21 amd64 21.52-1 [694 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 hwinfo amd64 21.52-1 [18.0 kB]
Fetched 760 kB in 1s (851 kB/s)
Selecting previously unselected package libx86emu1:amd64.
(Reading database ... 210113 files and directories currently installed.)
Preparing to unpack .../libx86emu1_1.12-1_amd64.deb ...
Unpacking libx86emu1:amd64 (1.12-1) ...
Selecting previously unselected package libhd21:amd64.
Preparing to unpack .../libhd21_21.52-1_amd64.deb ...
Unpacking libhd21:amd64 (21.52-1) ...
Selecting previously unselected package hwinfo.
Preparing to unpack .../hwinfo_21.52-1_amd64.deb ...
Unpacking hwinfo (21.52-1) ...
Setting up libx86emu1:amd64 (1.12-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up libhd21:amd64 (21.52-1) ...
Setting up hwinfo (21.52-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
  *-network
       description: Wireless interface
       product: RTL8821CE 802.11ac PCIe Wireless Network Adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: wlp1s0
       version: 00
       serial: b0:fc:36:78:e8:e7
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rtl8821ce ip=192.168.1.6 latency=0 multicast=yes wireless=IEEE 802.11bgn
       resources: irq:54 ioport:3000(size=256) memory:e0800000-e080ffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: enp2s0
       version: 10
       serial: 8c:16:45:af:fd:1a
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=half firmware=rtl8168g-3_0.0.1 04/23/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:49 ioport:2000(size=256) memory:e0704000-e0704fff memory:e0700000-e0703fff
0: ideapad_wlan: Wireless LAN
 Soft blocked: no
 Hard blocked: no
1: ideapad_bluetooth: Bluetooth
 Soft blocked: yes
 Hard blocked: no
2: phy0: Wireless LAN
 Soft blocked: no
 Hard blocked: no
3: hci0: Bluetooth
 Soft blocked: yes
 Hard blocked: no
lo Interface doesn't support scanning.

enp2s0 Interface doesn't support scanning.

                    ESSID:"Gaurav"
                    Frequency:2.432 GHz (Channel 5)
                    ESSID:"D-Link_DIR-600M"
                    Frequency:2.412 GHz (Channel 1)
                    ESSID:"TP-LINK_2AB8"
                    Frequency:2.412 GHz (Channel 1)
                    ESSID:"cottonhill"
                    Frequency:2.412 GHz (Channel 1)
                    ESSID:"TP-Link_242A"
                    Frequency:2.422 GHz (Channel 3)
                    ESSID:"tulpide26"
                    Frequency:2.432 GHz (Channel 5)
                    ESSID:"8C805"
                    Frequency:2.432 GHz (Channel 5)
                    ESSID:"0LA AUTOCONNECT 7RD6X"
                    Frequency:2.437 GHz (Channel 6)
                    ESSID:"8c1005"
                    Frequency:2.452 GHz (Channel 9)
                    ESSID:"Atharv"
                    Frequency:2.457 GHz (Channel 10)
                    ESSID:"buddies"
                    Frequency:2.457 GHz (Channel 10)
                    ESSID:"Te Amo"
                    Frequency:2.462 GHz (Channel 11)
                    ESSID:"D-Link_DIR-816"
                    Frequency:2.472 GHz (Channel 13)
                    ESSID:"Gaurav-5G"
                    Frequency:5.745 GHz (Channel 149)
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"
01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
 Subsystem: Lenovo RTL8821CE 802.11ac PCIe Wireless Network Adapter [17aa:c024]
 Kernel driver in use: rtl8821ce
 Kernel modules: 8821ce
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
 Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [17aa:38a8]
 Kernel driver in use: r8169
 Kernel modules: r8169
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 0bda:c024 Realtek Semiconductor Corp.
Bus 003 Device 002: ID 174f:116a Syntek
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Error: argument 'nm' not understood. Try passing --help instead.
H/W path Device Class Description
=========================================================
                               system 81D2 (LENOVO_MT_81D2_BU_idea_FM_id
/0 bus LNVNB161216
/0/0 memory 128KiB BIOS
/0/4 processor AMD Ryzen 5 2500U with Radeon Vega
/0/4/5 memory 384KiB L1 cache
/0/4/6 memory 2MiB L2 cache
/0/4/7 memory 4MiB L3 cache
/0/1e memory 8GiB System Memory
/0/1e/0 memory 4GiB SODIMM DDR4 Synchronous Unbuf
/0/1e/1 memory 4GiB SODIMM DDR4 Synchronous Unbuf
/0/100 bridge Advanced Micro Devices, Inc. [AMD]
/0/100/0.2 generic Advanced Micro Devices, Inc. [AMD]
/0/100/1.2 bridge Advanced Micro Devices, Inc. [AMD]
/0/100/1.2/0 wlp1s0 network RTL8821CE 802.11ac PCIe Wireless N
/0/100/1.3 bridge Advanced Micro Devices, Inc. [AMD]
/0/100/1.3/0 enp2s0 network RTL8111/8168/8411 PCI Express Giga
/0/100/8.1 bridge Advanced Micro Devices, Inc. [AMD]
/0/100/8.1/0 display Raven Ridge [Radeon Vega Series /
/0/100/8.1/0.1 multimedia Advanced Micro Devices, Inc. [AMD/
/0/100/8.1/0.2 generic Advanced Micro Devices, Inc. [AMD]
/0/100/8.1/0.3 bus Advanced Micro Devices, Inc. [AMD]
/0/100/8.1/0.3/0 usb1 bus xHCI Host Controller
/0/100/8.1/0.3/0/3 input Microsoft Basic Optical Mouse v2.0
/0/100/8.1/0.3/1 usb2 bus xHCI Host Controller
/0/100/8.1/0.4 bus Advanced Micro Devices, Inc. [AMD]
/0/100/8.1/0.4/0 usb3 bus xHCI Host Controller
/0/100/8.1/0.4/0/1 multimedia EasyCamera
/0/100/8.1/0.4/0/2 communication Bluetooth Radio
/0/100/8.1/0.4/1 usb4 bus xHCI Host Controller
/0/100/8.1/0.6 multimedia Advanced Micro Devices, Inc. [AMD]
/0/100/8.2 bridge Advanced Micro Devices, Inc. [AMD]
/0/100/8.2/0 storage FCH SATA Controller [AHCI mode]
/0/100/14 bus FCH SMBus Controller
/0/100/14.3 bridge FCH LPC Bridge
/0/101 bridge Family 17h (Models 00h-0fh) PCIe D
/0/102 bridge Family 17h (Models 00h-0fh) PCIe D
/0/103 bridge Advanced Micro Devices, Inc. [AMD]
/0/104 bridge Advanced Micro Devices, Inc. [AMD]
/0/105 bridge Advanced Micro Devices, Inc. [AMD]
/0/106 bridge Advanced Micro Devices, Inc. [AMD]
/0/107 bridge Advanced Micro Devices, Inc. [AMD]
/0/108 bridge Advanced Micro Devices, Inc. [AMD]
/0/109 bridge Advanced Micro Devices, Inc. [AMD]
/0/10a bridge Advanced Micro Devices, Inc. [AMD]
/0/1 scsi0 storage
/0/1/0.0.0 /dev/sda disk 1TB WDC WD10SPZX-24Z
/0/1/0.0.0/1 /dev/sda1 volume 511MiB Windows FAT volume
/0/1/0.0.0/2 /dev/sda2 volume 931GiB EXT4 volume
Linux dhruv-Lenovo-ideapad-330-15ARR 5.0.0-050000-generic #201903032031 SMP Mon Mar 4 01:33:18 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[ 0.005773] No NUMA configuration found
[ 0.094614] APIC: Switch to symmetric I/O mode setup
[ 0.095469] AMD-Vi: [Firmware Bug]: : IOAPIC[4] not in IVRS table
[ 0.095472] AMD-Vi: [Firmware Bug]: : IOAPIC[5] not in IVRS table
[ 0.095473] AMD-Vi: [Firmware Bug]: : No southbridge IOAPIC found
[ 0.095481] Switched APIC routing to physical flat.
[ 0.124026] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[ 0.163319] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.184160] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-3f] only partially covers this bridge
[ 0.187899] pci 0000:02:00.0: [10ec:8168] type 00 class 0x020000
[ 0.187942] pci 0000:02:00.0: reg 0x10: [io 0x2000-0x20ff]
[ 0.187979] pci 0000:02:00.0: reg 0x18: [mem 0xe0704000-0xe0704fff 64bit]
[ 0.188002] pci 0000:02:00.0: reg 0x20: [mem 0xe0700000-0xe0703fff 64bit]
[ 0.188136] pci 0000:02:00.0: supports D1 D2
[ 0.188138] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.195060] usbcore: registered new interface driver usbfs
[ 0.195060] usbcore: registered new interface driver hub
[ 0.195060] usbcore: registered new device driver usb
[ 0.383869] clocksource: Switched to clocksource tsc-early
[ 0.408636] pnp: PnP ACPI: found 5 devices
[ 1.189457] iommu: Adding device 0000:02:00.0 to group 7
[ 1.190259] AMD-Vi: Found IOMMU at 0000:00:00.2 cap 0x40
[ 1.350213] Console: switching to colour frame buffer device 170x48
[ 1.459297] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0
[ 1.459320] ACPI: Lid Switch [LID]
[ 1.464668] tpm_crb: probe of MSFT0101:00 failed with error -16
[ 1.472067] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.00
[ 1.472069] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.472071] usb usb1: Product: xHCI Host Controller
[ 1.472072] usb usb1: Manufacturer: Linux 5.0.0-050000-generic xhci-hcd
[ 1.472073] usb usb1: SerialNumber: 0000:03:00.3
[ 1.472235] hub 1-0:1.0: USB hub found
[ 1.472909] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 1.472928] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.00
[ 1.472930] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.472931] usb usb2: Product: xHCI Host Controller
[ 1.472932] usb usb2: Manufacturer: Linux 5.0.0-050000-generic xhci-hcd
[ 1.472934] usb usb2: SerialNumber: 0000:03:00.3
[ 1.473059] hub 2-0:1.0: USB hub found
[ 1.474248] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.00
[ 1.474250] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.474251] usb usb3: Product: xHCI Host Controller
[ 1.474252] usb usb3: Manufacturer: Linux 5.0.0-050000-generic xhci-hcd
[ 1.474254] usb usb3: SerialNumber: 0000:03:00.4
[ 1.474385] hub 3-0:1.0: USB hub found
[ 1.474709] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 1.474732] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.00
[ 1.474734] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.474735] usb usb4: Product: xHCI Host Controller
[ 1.474737] usb usb4: Manufacturer: Linux 5.0.0-050000-generic xhci-hcd
[ 1.474739] usb usb4: SerialNumber: 0000:03:00.4
[ 1.474855] hub 4-0:1.0: USB hub found
[ 1.690117] RAS: Correctable Errors collector initialized.
[ 1.701617] ima: No TPM chip found, activating TPM-bypass!
[ 1.701641] No architecture policies found
[ 1.749531] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 1.814641] usb 3-1: new high-speed USB device number 2 using xhci_hcd
[ 1.838708] i2c_hid i2c-ELAN061E:00: i2c-ELAN061E:00 supply vdd not found, using dummy regulator
[ 1.838750] i2c_hid i2c-ELAN061E:00: i2c-ELAN061E:00 supply vddl not found, using dummy regulator
[ 1.862005] r8169 0000:02:00.0 eth0: RTL8168g/8111g, 8c:16:45:af:fd:1a, XID 509, IRQ 52
[ 1.862009] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[ 1.880039] r8169 0000:02:00.0 enp2s0: renamed from eth0
[ 1.988889] usb 3-1: New USB device found, idVendor=174f, idProduct=116a, bcdDevice=12.05
[ 1.988893] usb 3-1: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[ 1.988896] usb 3-1: Product: EasyCamera
[ 1.988898] usb 3-1: Manufacturer: 201607290001
[ 1.988900] usb 3-1: SerialNumber: 200901010001
[ 2.122663] usb 3-2: new full-speed USB device number 3 using xhci_hcd
[ 2.289793] usb 3-2: New USB device found, idVendor=0bda, idProduct=c024, bcdDevice= 1.10
[ 2.289796] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.289799] usb 3-2: Product: Bluetooth Radio
[ 2.289801] usb 3-2: Manufacturer: Realtek
[ 2.289803] usb 3-2: SerialNumber: 00e04c000001
[ 2.298912] clocksource: Switched to clocksource tsc
[ 20.639026] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
[ 21.409160] lp: driver loaded but no devices found
[ 28.176950] elan_i2c i2c-ELAN061E:00: i2c-ELAN061E:00 supply vcc not found, using dummy regulator
[ 28.293595] elan_i2c i2c-ELAN061E:00: Elan Touchpad: Module ID: 0x005b, Firmware: 0x0001, Sample: 0x0002, IAP: 0x000d
[ 28.647764] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 28.732984] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 28.900038] RTW: rtl8821ce v5.2.5_1.26055.20180108.1
[ 28.900039] RTW: rtl8821ce BT-Coex version = COEX20170310-1212
[ 28.926449] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[ 28.927602] RTW: rtw_ndev_init(wlan0) if1 mac_addr=b0:fc:36:78:e8:e7
[ 29.833956] usbcore: registered new interface driver btusb
[ 29.835780] Bluetooth: hci0: RTL: rtl: examining hci_ver=08 hci_rev=826c lmp_ver=08 lmp_subver=a99e
[ 29.835783] Bluetooth: hci0: RTL: rtl: unknown IC info, lmp subver a99e, hci rev 826c, hci ver 0008
[ 31.103561] rtl8821ce 0000:01:00.0 wlp1s0: renamed from wlan0
[ 31.479423] uvcvideo: Found UVC 1.00 device EasyCamera (174f:116a)
[ 31.484731] input: EasyCamera: EasyCamera as /devices/pci0000:00/0000:00:08.1/0000:03:00.4/usb3/3-1/3-1:1.0/input/input8
[ 31.484841] usbcore: registered new interface driver uvcvideo
[ 31.648621] snd_hda_intel 0000:03:00.1: Handle vga_switcheroo audio client
[ 31.671404] fb0: switching to amdgpudrmfb from EFI VGA
[ 31.671483] Console: switching to colour dummy device 80x25
[ 31.747993] input: HD-Audio Generic HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:08.1/0000:03:00.1/sound/card0/input9
[ 32.265033] input: HD-Audio Generic Mic as /devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1/input10
[ 32.265137] input: HD-Audio Generic Headphone as /devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1/input11
[ 33.426147] [drm] Found VCN firmware Version: 1.73 Family ID: 18
[ 33.426159] [drm] PSP loading VCN firmware
[ 33.736749] kfd kfd: device 1002:15dd NOT added due to errors
[ 33.752570] Console: switching to colour frame buffer device 170x48
[ 37.125362] audit: type=1400 audit(1565802397.915:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/ippusbxd" pid=770 comm="apparmor_parser"
[ 49.289124] r8169 0000:02:00.0 enp2s0: Link is Down
[ 49.824693] RTW: wlp1s0- hw port(0) mac_addr =b0:fc:36:78:e8:e7
[ 54.013048] RTW: wlp1s0- hw port(0) mac_addr =b0:fc:36:78:e8:e7
[ 54.013425] RTW: rtw_set_802_11_connect(wlp1s0) fw_state=0x00000000
[ 54.359314] IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready
[ 815.909023] usb 1-3: new low-speed USB device number 2 using xhci_hcd
[ 816.074443] usb 1-3: New USB device found, idVendor=045e, idProduct=00cb, bcdDevice= 1.04
[ 816.074447] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 816.074451] usb 1-3: Product: Microsoft Basic Optical Mouse v2.0
[ 816.074453] usb 1-3: Manufacturer: Microsoft
[ 816.496824] usbcore: registered new interface driver usbhid
[ 816.496826] usbhid: USB HID core driver
[ 816.542877] input: Microsoft Microsoft Basic Optical Mouse v2.0 as /devices/pci0000:00/0000:00:08.1/0000:03:00.3/usb1/1-3/1-3:1.0/0003:045E:00CB.0001/input/input12
[ 816.543072] hid-generic 0003:045E:00CB.0001: input,hidraw0: USB HID v1.11 Mouse [Microsoft Microsoft Basic Optical Mouse v2.0 ] on usb-0000:03:00.3-3/input0
 Release Date: 06/15/2018
 Manufacturer: LENOVO
 Product Name: 81D2
 Serial Number: PF18XSBY
 Manufacturer: LENOVO
 Product Name: LNVNB161216
 Serial Number: PF18XSBY
 Manufacturer: LENOVO
 Serial Number: PF18XSBY
 Manufacturer: Advanced Micro Devices, Inc.
 Serial Number: Unknown
 String 1: String1 for Original Equipment Manufacturer
 String 2: String2 for Original Equipment Manufacturer
 String 3: String3 for Original Equipment Manufacturer
 String 4: String4 for Original Equipment Manufacturer
 String 5: String5 for Original Equipment Manufacturer
 Option 1: String1 for Type12 Equipment Manufacturer
 Option 2: String2 for Type12 Equipment Manufacturer
 Option 3: String3 for Type12 Equipment Manufacturer
 Option 4: String4 for Type12 Equipment Manufacturer
 Manufacturer: Samsung
 Serial Number: 968288D9
 Manufacturer: Hynix
 Serial Number: 00000000
lo no wireless extensions.

enp2s0 no wireless extensions.

wlp1s0 IEEE 802.11bgn ESSID:"Gaurav" Nickname:"<WIFI@REALTEK>"
          Mode:Managed Frequency:2.432 GHz Access Point: 70:C7:F2:F4:F2:0C
          Bit Rate:72.2 Mb/s Sensitivity:0/0
          Retry:off RTS thr:off Fragment thr:off
          Power Management:off
          Link Quality=100/100 Signal level=-57 dBm Noise level=0 dBm
          Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
          Tx excessive retries:0 Invalid misc:0 Missed beacon:0

/etc/modprobe.d/alsa-base.conf:install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; : ; }
/etc/modprobe.d/blacklist-ath_pci.conf:# which ath5k cannot recover. To prevent this condition, stop
/etc/modprobe.d/blacklist-ath_pci.conf:blacklist ath_pci
/etc/modprobe.d/blacklist.conf:blacklist eth1394
/etc/modprobe.d/blacklist.conf:# replaced by p54pci
/etc/modprobe.d/blacklist.conf:blacklist prism54
/etc/modprobe.d/blacklist.conf:# replaced by b43 and ssb.
/etc/modprobe.d/blacklist.conf:blacklist bcm43xx
/etc/modprobe.d/blacklist-oss.conf:blacklist uart6850
/etc/modprobe.d/iwlwifi.conf:# /etc/modprobe.d/iwlwifi.conf
/etc/modprobe.d/iwlwifi.conf:# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the
/etc/modprobe.d/iwlwifi.conf:# microcode file installed on the system. When removing iwlwifi, first
/etc/modprobe.d/iwlwifi.conf:# remove the iwl?vm module and then iwlwifi.
/etc/modprobe.d/iwlwifi.conf:remove iwlwifi \
/etc/modprobe.d/iwlwifi.conf:(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
/etc/modprobe.d/iwlwifi.conf:&& /sbin/modprobe -r mac80211
[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
12: PCI 200.0: 0200 Ethernet controller
  [Created at pci.378]
  Unique ID: c3qJ.ygUJKoaF0nB
  Parent ID: VRCs.fA+tdbAkMSD
  SysFS ID: /devices/pci0000:00/0000:00:01.3/0000:02:00.0
  SysFS BusID: 0000:02:00.0
  Hardware Class: network
  Model: "Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"
  Vendor: pci 0x10ec "Realtek Semiconductor Co., Ltd."
  Device: pci 0x8168 "RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"
  SubVendor: pci 0x17aa "Lenovo"
  SubDevice: pci 0x38a8
  Revision: 0x10
  Driver: "r8169"
  Driver Modules: "r8169"
  Device File: enp2s0
  I/O Ports: 0x2000-0x2fff (rw)
  Memory Range: 0xe0704000-0xe0704fff (rw,non-prefetchable)
  Memory Range: 0xe0700000-0xe0703fff (rw,non-prefetchable)
  IRQ: 49 (no events)
  HW Address: 8c:16:45:af:fd:1a
  Permanent HW Address: 8c:16:45:af:fd:1a
  Link detected: no
  Module Alias: "pci:v000010ECd00008168sv000017AAsd000038A8bc02sc00i00"
  Driver Info #0:
    Driver Status: r8169 is active
    Driver Activation Cmd: "modprobe r8169"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #23 (PCI bridge)

15: PCI 100.0: 0282 WLAN controller
  [Created at pci.378]
  Unique ID: yWPJ.gPiMLKqSje6
  Parent ID: e6j0.fA+tdbAkMSD
  SysFS ID: /devices/pci0000:00/0000:00:01.2/0000:01:00.0
  SysFS BusID: 0000:01:00.0
  Hardware Class: network
  Model: "Realtek WLAN controller"
  Vendor: pci 0x10ec "Realtek Semiconductor Co., Ltd."
  Device: pci 0xc821
  SubVendor: pci 0x17aa "Lenovo"
  SubDevice: pci 0xc024
  Driver: "rtl8821ce"
  Driver Modules: "8821ce"
  Device File: wlp1s0
  Features: WLAN
  I/O Ports: 0x3000-0x3fff (rw)
  Memory Range: 0xe0800000-0xe080ffff (rw,non-prefetchable)
  IRQ: 54 (53309 events)
  HW Address: b0:fc:36:78:e8:e7
  Permanent HW Address: b0:fc:36:78:e8:e7
  Link detected: yes
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 149 153 157 161 165
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 2.467 2.472 5.18 5.2 5.22 5.24 5.745 5.765 5.785 5.805 5.825
  WLAN bitrates: 1 2 5.5 11
  WLAN encryption modes: TKIP CCMP
  WLAN authentication modes: open wpa-psk wpa-eap
  Module Alias: "pci:v000010ECd0000C821sv000017AAsd0000C024bc02sc80i00"
  Driver Info #0:
    Driver Status: 8821ce is active
    Driver Activation Cmd: "modprobe 8821ce"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #10 (PCI bridge)
root 815 0.0 0.2 177688 17360 ? Ssl 22:36 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
root 904 0.0 0.1 45472 7856 ? Ss 22:36 0:00 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
root 905 0.0 0.2 566056 17288 ? Ssl 22:36 0:00 /usr/sbin/NetworkManager --no-daemon
root 1050 0.0 0.0 25988 6440 ? S 22:36 0:00 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /run/dhclient-wlp1s0.pid -lf /var/lib/NetworkManager/dhclient-eade4c21-6cc5-448d-8f1a-397d3c6a34f7-wlp1s0.lease -cf /var/lib/NetworkManager/dhclient-wlp1s0.conf wlp1s0
dhruv 2236 0.0 0.0 370396 7536 ? Sl 22:39 0:00 /usr/lib/gvfs/gvfsd-network --spawner :1.22 /org/gtk/gvfs/exec_spaw/1
dhruv 3881 0.0 0.0 21532 1060 pts/0 S+ 23:05 0:00 grep --color=auto -E wpa|icd|etwork

Command 'netstat' not found, but can be installed with:

sudo apt install net-tools

# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "systemd-resolve --status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 127.0.0.53
options edns0
total 177364
20709377 drwxr-xr-x 4 root root 4096 Aug 12 21:37 .
       2 drwxr-xr-x 23 root root 4096 Aug 12 21:36 ..
20709389 -rw-r--r-- 1 root root 218357 Jun 27 12:34 config-4.18.0-25-generic
20709673 -rw-r--r-- 1 root root 223824 Mar 4 07:10 config-5.0.0-050000-generic
20709677 -rw-r--r-- 1 root root 224446 Jul 29 21:16 config-5.0.0-23-generic
       1 drwx------ 3 root root 4096 Jan 1 1970 efi
20709379 drwxr-xr-x 5 root root 4096 Aug 12 21:37 grub
20709390 -rw-r--r-- 1 root root 21561472 Aug 12 21:37 initrd.img-4.18.0-25-generic
20709380 -rw-r--r-- 1 root root 39864139 Aug 9 20:43 initrd.img-5.0.0-050000-generic
20709670 -rw-r--r-- 1 root root 39863859 Jul 12 23:04 initrd.img-5.0.0-050000-generic.old-dkms
20709679 -rw-r--r-- 1 root root 40203140 Aug 9 20:29 initrd.img-5.0.0-23-generic
20709382 -rw-r--r-- 1 root root 182704 Jan 28 2016 memtest86+.bin
20709383 -rw-r--r-- 1 root root 184380 Jan 28 2016 memtest86+.elf
20709384 -rw-r--r-- 1 root root 184840 Jan 28 2016 memtest86+_multiboot.bin
20709388 -rw------- 1 root root 4268427 Jun 27 12:34 System.map-4.18.0-25-generic
20709672 -rw------- 1 root root 4361895 Mar 4 07:10 System.map-5.0.0-050000-generic
20709391 -rw------- 1 root root 4289273 Jul 29 21:16 System.map-5.0.0-23-generic
20709387 -rw------- 1 root root 8550272 Jun 27 12:34 vmlinuz-4.18.0-25-generic
20709671 -rw------- 1 root root 8677248 Mar 4 07:10 vmlinuz-5.0.0-050000-generic
20709678 -rw------- 1 root root 8707832 Jul 29 21:19 vmlinuz-5.0.0-23-generic
Support status summary of 'dhruv-Lenovo-ideapad-330-15ARR':

You have 1684 packages (87.1%) supported until April 2023 (Canonical - 5y)
You have 3 packages (0.2%) supported until April 2021 (Canonical - 3y)
You have 224 packages (11.6%) supported until April 2021 (Community - 3y)

You have 4 packages (0.2%) that can not/no-longer be downloaded
You have 18 packages (0.9%) that are unsupported

Your Hardware Enablement Stack (HWE) is supported until April 2023.

Run with --show-unsupported, --show-supported or --show-all to see more details
Downloaded daily snapshot dated 2019-08-08 03:15:02
--2019-08-14 23:05:25-- http://www.linux-usb.org/usb.ids
Resolving www.linux-usb.org (www.linux-usb.org)... 216.105.38.10
Connecting to www.linux-usb.org (www.linux-usb.org)|216.105.38.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 610813 (596K) [text/plain]
Saving to: ‘/var/lib/usbutils/usb.ids.new’

/var/lib/usbutils/u 100%[===================>] 596.50K 228KB/s in 2.6s

2019-08-14 23:05:29 (228 KB/s) - ‘/var/lib/usbutils/usb.ids.new’ saved [610813/610813]

Done.
Module Size Used by
hid_generic 16384 0
usbhid 53248 0
bnep 24576 2
nls_iso8859_1 16384 1
snd_hda_codec_generic 77824 1
ledtrig_audio 16384 1 snd_hda_codec_generic
snd_hda_codec_hdmi 53248 1
amdgpu 3534848 24
snd_hda_intel 40960 8
snd_hda_codec 126976 3 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel
snd_hda_core 86016 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_hwdep 20480 1 snd_hda_codec
snd_pcm 106496 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
uvcvideo 98304 0
snd_seq_dummy 16384 0
chash 16384 1 amdgpu
snd_seq_oss 40960 0
amd_iommu_v2 20480 1 amdgpu
joydev 24576 0
edac_mce_amd 28672 0
snd_seq_midi 20480 0
snd_seq_midi_event 16384 2 snd_seq_midi,snd_seq_oss
videobuf2_vmalloc 20480 1 uvcvideo
videobuf2_memops 20480 1 videobuf2_vmalloc
videobuf2_v4l2 24576 1 uvcvideo
snd_rawmidi 36864 1 snd_seq_midi
gpu_sched 32768 1 amdgpu
ttm 102400 1 amdgpu
videobuf2_common 49152 2 videobuf2_v4l2,uvcvideo
videodev 200704 3 videobuf2_v4l2,uvcvideo,videobuf2_common
btusb 49152 0
ccp 86016 0
drm_kms_helper 180224 1 amdgpu
snd_seq 69632 6 snd_seq_midi,snd_seq_oss,snd_seq_midi_event,snd_seq_dummy
drm 479232 17 gpu_sched,drm_kms_helper,amdgpu,ttm
kvm 634880 0
media 53248 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
i2c_algo_bit 16384 1 amdgpu
irqbypass 16384 1 kvm
fb_sys_fops 16384 1 drm_kms_helper
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
btrtl 20480 1 btusb
crct10dif_pclmul 16384 1
crc32_pclmul 16384 0
btbcm 16384 1 btusb
btintel 24576 1 btusb
ghash_clmulni_intel 16384 0
snd_seq_device 16384 4 snd_seq,snd_seq_midi,snd_seq_oss,snd_rawmidi
snd_timer 36864 2 snd_seq,snd_pcm
snd 86016 27 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_seq_oss,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm,snd_rawmidi
aesni_intel 372736 0
bluetooth 561152 12 btrtl,btintel,btbcm,bnep,btusb
aes_x86_64 20480 1 aesni_intel
crypto_simd 16384 1 aesni_intel
ecdh_generic 28672 1 bluetooth
cryptd 24576 3 crypto_simd,ghash_clmulni_intel,aesni_intel
8821ce 2093056 0
ideapad_laptop 36864 0
soundcore 16384 1 snd
k10temp 16384 0
glue_helper 16384 1 aesni_intel
sparse_keymap 16384 1 ideapad_laptop
input_leds 16384 0
cfg80211 671744 1 8821ce
wmi_bmof 16384 0
serio_raw 20480 0
elan_i2c 40960 0
mac_hid 16384 0
sch_fq_codel 20480 6
parport_pc 40960 0
ppdev 24576 0
lp 20480 0
parport 53248 3 parport_pc,lp,ppdev
ip_tables 28672 0
x_tables 40960 1 ip_tables
autofs4 45056 2
ahci 40960 2
r8169 86016 0
libahci 32768 1 ahci
realtek 20480 0
i2c_piix4 28672 0
wmi 28672 2 wmi_bmof,ideapad_laptop
i2c_hid 28672 0
video 49152 1 ideapad_laptop
hid 135168 3 i2c_hid,usbhid,hid_generic
dhruv@dhruv-Lenovo-ideapad-330-15ARR:~$

Manfred Hampl (m-hampl) said : #7

ok, there seems to be a difference in naming of the kernel module and the file providing it.
Let's try again.

What happens if you try the following commands after waking up the system from suspend:

sudo modprobe -r 8821ce
sudo modprobe 8821ce

Does the WLAN start working?

Gaurav (imgaurav) said : #8

I have already tried once, below is the output i got:

dhruv@dhruv-Lenovo-ideapad-330-15ARR:~$ sudo modprobe -r rtl8821ce
[sudo] password for dhruv:
modprobe: FATAL: Module rtl8821ce not found.
dhruv@dhruv-Lenovo-ideapad-330-15ARR:~$ sudo modprobe rtl8821ce
modprobe: FATAL: Module rtl8821ce not found in directory /lib/modules/5.0.0-050000-generic
dhruv@dhruv-Lenovo-ideapad-330-15ARR:~$

Do you want me to try again?

Gaurav (imgaurav) said : #9

This time wifi started working after executing the commands, here is the output from terminal:

dhruv@dhruv-Lenovo-ideapad-330-15ARR:~$ sudo modprobe -r 8821ce
[sudo] password for dhruv:
dhruv@dhruv-Lenovo-ideapad-330-15ARR:~$ sudo modprobe 8821ce
dhruv@dhruv-Lenovo-ideapad-330-15ARR:~$

Do i need to execute the command every time I sleep/suspend the system, in order to make wifi work?

Gaurav (imgaurav) said : #10

it's wierd:

1st time when i executed the command "sudo modprobe 8821ce", wifi started working, i did not select the network.
2nd time after sleep mode when i executed the same command, i had to select the network.

How can i have a permanent fix for the issue.

Manfred Hampl (m-hampl) said : #11

If the two modprobe commands work, then it can be set up to execute these commands automatically after each wakeup/resume.
see e.g. https://askubuntu.com/q/1102424
I am sorry, but I cannot tell which one of the answers in that documents might work for you.

Can you help with this problem?

Provide an answer of your own, or ask Gaurav for more information if necessary.

To post a message you must log in.