Having a hard time connecting to wifi after reboot

Current using XFCE, every time I start up my PC it has trouble connecting to wifi. I usually connect through the gui in the bottom right, where it spins for a bit and says “Network connection has been disconnected.” Occasionally, it will prompt me for my password, and very rarely will I actually be able to connect to the wifi, which works perfectly fine. I’m currently dual booting this with windows, and what I’ve noticed is my windows is also sharing a bit of the same characteristics, where it doesn’t connect to wifi on startup, but windows is actually able to connect to wifi quickly afterwards. I know its not a driver issue because the wifi actually works once connected, and inxi -N displays my driver, which is rtl8821cu. When I try nmcli, I get that “Connection activation failed: (53) The Wi-Fi network could not be found”

Can anyone solve this issue? It’s been plaguing me for weeks and it legit takes me like 30 minutes just to connect to wifi.
inxi --admin --verbosity=7 --filter --no-host --width output:

  Kernel: 5.13.15-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.13-x86_64 
  root=UUID=837a8f88-f9f2-4913-8773-75d5219b53e6 rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
  dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop Mobo: ASRock model: B450M Steel Legend serial: <filter> 
  UEFI-[Legacy]: American Megatrends v: P2.60 date: 07/31/2019 
Battery:
  Message: No system battery data found. Is one present? 
Memory:
  RAM: total: 15.56 GiB used: 1.58 GiB (10.2%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 6-Core model: AMD Ryzen 5 3600X bits: 64 type: MT MCP arch: Zen 2 
  family: 17 (23) model-id: 71 (113) stepping: 0 microcode: 8701013 cache: 
  L2: 3 MiB bogomips: 91069 
  Speed: 4292 MHz min/max: 2200/3800 MHz boost: enabled Core speeds (MHz): 
  1: 4292 2: 2140 3: 2190 4: 2196 5: 2145 6: 2194 7: 2189 8: 2194 9: 4292 
  10: 2146 11: 2146 12: 2194 
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 
  bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy 
  constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total cqm_occup_llc 
  cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid 
  fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibs irperf lahf_lm lbrv lm 
  mba mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc 
  nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq 
  pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse 
  pse36 rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sev sev_es sha_ni 
  skinit smap smca sme smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp 
  succor svm svm_lock syscall tce topoext tsc tsc_scale umip v_spec_ctrl 
  v_vmsave_vmload vgif vmcb_clean vme vmmcall wbnoinvd wdt xgetbv1 xsave 
  xsavec xsaveerptr xsaveopt xsaves 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
  always-on, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA TU116 [GeForce GTX 1660 Ti] vendor: Micro-Star MSI 
  driver: nvidia v: 470.63.01 alternate: nouveau,nvidia_drm bus-ID: 06:00.0 
  chip-ID: 10de:2182 class-ID: 0300 
  Device-2: AVerMedia Live Streamer CAM 313 type: USB 
  driver: snd-usb-audio,uvcvideo bus-ID: 5-1:2 chip-ID: 07ca:313a 
  class-ID: 0102 serial: <filter> 
  Display: x11 server: X.Org 1.20.13 compositor: xfwm4 v: 4.16.1 driver: 
  loaded: nvidia display-ID: :0.0 screens: 1 
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.7x15.0") 
  s-diag: 777mm (30.6") 
  Monitor-1: HDMI-0 res: 2560x1440 hz: 60 dpi: 92 size: 708x399mm (27.9x15.7") 
  diag: 813mm (32") 
  OpenGL: renderer: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.63.01 direct render: Yes 
Audio:
  Device-1: NVIDIA TU116 High Definition Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus-ID: 06:00.1 chip-ID: 10de:1aeb 
  class-ID: 0403 
  Device-2: AMD Starship/Matisse HD Audio vendor: ASRock driver: snd_hda_intel 
  v: kernel bus-ID: 08:00.4 chip-ID: 1022:1487 class-ID: 0403 
  Device-3: AVerMedia Live Streamer CAM 313 type: USB 
  driver: snd-usb-audio,uvcvideo bus-ID: 5-1:2 chip-ID: 07ca:313a 
  class-ID: 0102 serial: <filter> 
  Sound Server-1: ALSA v: k5.13.15-1-MANJARO running: yes 
  Sound Server-2: sndio v: N/A running: no 
  Sound Server-3: JACK v: 1.9.19 running: no 
  Sound Server-4: PulseAudio v: 15.0 running: yes 
  Sound Server-5: PipeWire v: 0.3.35 running: no 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASRock driver: r8169 v: kernel port: f000 bus-ID: 04:00.0 
  chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp4s0 state: down mac: <filter> 
  Device-2: Realtek 802.11ac NIC type: USB driver: rtl8821cu bus-ID: 1-2:2 
  chip-ID: 0bda:c811 class-ID: 0000 serial: <filter> 
  IF: wlp1s0f0u2 state: down mac: <filter> 
  IF-ID-1: enp8s0f3u4 state: unknown speed: -1 duplex: half mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Broadcom BCM92046DG-CL1ROM Bluetooth 2.1 Adapter type: USB 
  driver: btusb v: 0.8 bus-ID: 1-7.3:7 chip-ID: 0a5c:2148 class-ID: fe01 
  serial: <filter> 
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends 
  Device-2: Samsung Galaxy series misc. (tethering mode) type: USB 
  driver: rndis_host v: kernel bus-ID: 5-4:5 chip-ID: 04e8:6863 class-ID: 0a00 
  serial: <filter> 
  Report: This feature requires one of these tools: hciconfig/bt-adapter 
Logical:
  Message: No logical block device data found. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 588.73 GiB used: 22.55 GiB (3.8%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 850 EVO 120GB 
  size: 111.79 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  type: SSD serial: <filter> rev: 1B6Q scheme: MBR 
  ID-2: /dev/sdb maj-min: 8:16 vendor: Intel model: SSDSC2KW512G8 
  size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  type: SSD serial: <filter> rev: 004C scheme: MBR 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 111.79 GiB size: 109.47 GiB (97.93%) 
  used: 22.55 GiB (20.6%) fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: N/A 
  uuid: 837a8f88-f9f2-4913-8773-75d5219b53e6 
Swap:
  Alert: No swap data was found. 
Unmounted:
  ID-1: /dev/sdb1 maj-min: 8:17 size: 579 MiB fs: ntfs label: System Reserved 
  uuid: 7E40E7A140E75E81 
  ID-2: /dev/sdb2 maj-min: 8:18 size: 476.37 GiB fs: ntfs label: N/A 
  uuid: 8626ECAE26ECA103 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 10 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-2:2 info: Realtek 802.11ac NIC type: Network driver: rtl8821cu 
  interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 0bda:c811 
  class-ID: 0000 serial: <filter> 
  Device-2: 1-4:3 info: EVGA TORQ X3 EVGA TORQ X3 Gaming Mouse 
  type: Mouse,Keyboard,HID driver: hid-generic,usbhid interfaces: 3 rev: 1.1 
  speed: 12 Mb/s power: 100mA chip-ID: 3842:2403 class-ID: 0301 
  Hub-2: 1-7:4 
  info: Broadcom BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth) ports: 3 
  rev: 2.0 speed: 12 Mb/s power: 94mA chip-ID: 0a5c:4500 class-ID: 0900 
  Device-1: 1-7.1:5 info: Broadcom Keyboard (Boot Interface Subclass) 
  type: Keyboard driver: hid-generic,usbhid interfaces: 1 rev: 2.0 
  speed: 12 Mb/s power: 2mA chip-ID: 0a5c:4502 class-ID: 0301 
  Device-2: 1-7.2:6 info: Broadcom Mouse (Boot Interface Subclass) type: Mouse 
  driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 2mA 
  chip-ID: 0a5c:4503 class-ID: 0301 
  Device-3: 1-7.3:7 info: Broadcom BCM92046DG-CL1ROM Bluetooth 2.1 Adapter 
  type: Bluetooth driver: btusb interfaces: 4 rev: 2.0 speed: 12 Mb/s 
  power: 2mA chip-ID: 0a5c:2148 class-ID: fe01 serial: <filter> 
  Hub-3: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-4: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-5: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-6: 5-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 5-1:2 info: AVerMedia Live Streamer CAM 313 type: Video,Audio 
  driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s 
  power: 500mA chip-ID: 07ca:313a class-ID: 0102 serial: <filter> 
  Device-2: 5-3:3 info: KBDfans kbd67mkiirgb v2 type: Keyboard,HID 
  driver: hid-generic,usbhid interfaces: 3 rev: 1.1 speed: 12 Mb/s 
  power: 500mA chip-ID: 4b42:1225 class-ID: 0300 
  Device-3: 5-4:5 info: Samsung Galaxy series misc. (tethering mode) 
  type: Bluetooth,CDC-Data driver: rndis_host interfaces: 2 rev: 2.1 
  speed: 480 Mb/s power: 500mA chip-ID: 04e8:6863 class-ID: 0a00 
  serial: <filter> 
  Hub-7: 6-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 46.0 C mobo: N/A gpu: nvidia temp: 30 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 43% 
Info:
  Processes: 293 Uptime: 3m wakeups: 0 Init: systemd v: 249 tool: systemctl 
  Compilers: gcc: 11.1.0 clang: 12.0.1 Packages: pacman: 1157 lib: 335 
  flatpak: 0 Shell: Bash v: 5.1.8 running-in: xfce4-terminal inxi: 3.3.06```
What should I do in this situation?

:+1: Welcome to Manjaro! :+1:

  1. Please read this:
    How to provide good information
    and press the three dots below your post and press the :pencil2: to give us more information so we can see what’s really going on.
    Now we know the symptom of the disease, but we need some more probing to know where the origin lies… :grin:
  2. An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information for us to be able to help you. (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
    Also, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text.

:+1:

P.S. If you want to notify me that you did provide this information, please :heart: this message and I’ll come back and have another look.
P.P.S. If you enter a bit more details in your profile, we can also see which Desktop Environment you’re using, which exact CPU/GPU or Kernel, … you have without typing it every time

1 Like

Please read this:

Especially the Linux has multiple kernels section, then try an LTS kernel and hopefully the problem will go away “automagically”. :grin:

If that doesn’t solve the problem,

  • Activate the AUR
  • look for a Realtek RTL8111/8168/8411
  • follow the AUR instructions above to install said driver

Unrelated to your issue, but please read this too!
:crossed_fingers:

1 Like

Just curious: as you gave me a :heart: Did that make the issue go away?

If not: Are you rebooting from Windows to Linux when the problem appears or from Linux to Linux?

:thinking: