Stuck in a wifi connecting loop after suspend

Hello,
I am running Fedora 35 on an MSI GS65 Laptop, after switching from Manjaro KDE. This laptop does not play very well with Linux. After the I close the laptop lid, the wifi is hardware blocked when I open it. I have already done the fix mentioned in here. This re-enables the wifi, which is awesome, but it refuses to connect to any network. It will be stuck in a loop of constantly trying to connect to wifi. I don’t know what details I should be showing to help solve the issue - sorry, but I will try to provide as much detail as I can.

Any help would be appreciated, I really like Fedora but this is really killing my productivity.

Have you done a full sudo dnf upgrade to ensure that all the latest modules, firmware, and software are onboard? If not then please do so and test again.

If the issue continues after the update then we will need more info about the system before we can provide any additional assistance. Please post the output of inxi -Fzxx in the </> Preformatted text tags found above so we can see what hardware is installed and the related driver info.

Welcome to the askfedora community and we hope to be able to assist.

Thank you for the reply. I ran sudo dnf upgrade and nothing needed to be updated.

Here is the output from inxi -Fzxx:

System:
  Kernel: 5.15.16-200.fc35.x86_64 x86_64 bits: 64 compiler: gcc
    v: 2.37-10.fc35 Desktop: GNOME 41.3 tk: GTK 3.24.31 wm: gnome-shell dm: GDM
    Distro: Fedora release 35 (Thirty Five)
Machine:
  Type: Laptop System: Micro-Star product: GS65 Stealth Thin 8RF v: REV:1.0
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Micro-Star model: MS-16Q2 v: REV:1.0 serial: <superuser required>
    UEFI: American Megatrends v: E16Q2IMS.112 date: 05/21/2019
Battery:
  ID-1: BAT1 charge: 81.5 Wh (100.0%) condition: 81.5/81.8 Wh (99.7%)
    volts: 17.3 min: 15.2 model: MSI BIF0_9 serial: N/A status: Full
CPU:
  Info: 6-core model: Intel Core i7-8750H bits: 64 type: MT MCP
    arch: Coffee Lake rev: A cache: L1: 384 KiB L2: 1.5 MiB L3: 9 MiB
  Speed (MHz): avg: 1498 high: 3503 min/max: 800/4100 cores: 1: 838 2: 900
    3: 3503 4: 2898 5: 2238 6: 1434 7: 1026 8: 900 9: 900 10: 900 11: 900
    12: 1543 bogomips: 52799
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Micro-Star MSI
    driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:3e9b
  Device-2: NVIDIA GP104M [GeForce GTX 1070 Mobile] vendor: Micro-Star MSI
    driver: nouveau v: kernel bus-ID: 01:00.0 chip-ID: 10de:1ba1
  Device-3: Acer HD Webcam type: USB driver: uvcvideo bus-ID: 1-11:3
    chip-ID: 5986:211c
  Display: wayland server: X.Org 1.21.1.4 compositor: gnome-shell driver:
    loaded: nouveau note: n/a (using device driver) - try sudo/root
    resolution: 1920x1080~144Hz s-dpi: 96
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
    v: 4.6 Mesa 21.3.4 direct render: Yes
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a348
  Device-2: NVIDIA GP104 High Definition Audio driver: snd_hda_intel
    v: kernel bus-ID: 01:00.1 chip-ID: 10de:10f0
  Sound Server-1: ALSA v: k5.15.16-200.fc35.x86_64 running: yes
  Sound Server-2: PipeWire v: 0.3.43 running: yes
Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:a370
  IF: wlo1 state: up mac: <filter>
  Device-2: Qualcomm Atheros Killer E2500 Gigabit Ethernet
    vendor: Micro-Star MSI driver: alx v: kernel port: 3000 bus-ID: 3c:00.0
    chip-ID: 1969:e0b1
  IF: enp60s0 state: down mac: <filter>
  IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 1-14:4 chip-ID: 8087:0aaa
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Drives:
  Local Storage: total: 476.94 GiB used: 5.58 GiB (1.2%)
  ID-1: /dev/sda vendor: SanDisk model: SD9SN8W512G size: 476.94 GiB
    speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: / size: 180.75 GiB used: 5.34 GiB (3.0%) fs: btrfs dev: /dev/sda7
  ID-2: /boot size: 973.4 MiB used: 202.3 MiB (20.8%) fs: ext4
    dev: /dev/sda5
  ID-3: /boot/efi size: 296 MiB used: 39.7 MiB (13.4%) fs: vfat
    dev: /dev/sda1
  ID-4: /home size: 180.75 GiB used: 5.34 GiB (3.0%) fs: btrfs
    dev: /dev/sda7
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 54.0 C pch: 50.0 C mobo: N/A gpu: nouveau
    temp: 56.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 321 Uptime: 1h 34m Memory: 15.46 GiB used: 3.09 GiB (20.0%)
  Init: systemd v: 249 runlevel: 5 target: graphical.target Compilers:
  gcc: 11.2.1 Packages: N/A note: see --pkg Shell: Bash v: 5.1.8
  running-in: gnome-terminal inxi: 3.3.11

Hello,
I have an update on the situation. I think there was an update for the kernel (not sure if that really affected anything) but I can now “reconnect” to the wifi. The wifi settings claim that I am connected to the wifi network, but nothing on my web browser loads. I have no idea why this happens.

If you don’t mine to disable the suspend action when the monitor lid closed, may be you can avoid the problem. There some report on internet that said the wifi won’t able to work after the lid closed.

To disable it:

# Create folder `/etc/systemd/logind.conf.d`
sudo mkdir /etc/systemd/logind.conf.d

# Create custom config
sudo cp /etc/systemd/logind.conf /etc/systemd/logind.conf.d/

# Edit
sudo nano /etc/systemd/logind.conf.d/logind.conf

# Find these two parameter, uncomment it and set to ignore

HandleSuspendKey=ignore
#HandleHibernateKey=hibernate
HandleLidSwitch=ignore

To make sure everything work, you can reboot it first.

Thank you for the suggestion. There was a recent kernel update and it actually fixed this issue now.