WiFi not reconnecting automatically after sleep (KDE)  [Solved]

Help with the version of MX KDE officially released by the Development Team.
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
LearningMX
Posts: 15
Joined: Fri Feb 11, 2022 1:03 pm

WiFi not reconnecting automatically after sleep (KDE)  [Solved]

#1 Post by LearningMX »

I now installed MX Linux KDE on a ThinkBook 14 G3, WiFi didn't work out of the box and I had to manually install the drivers via https://github.com/lwfinger/rtw89 (are those drivers that could be bundled with MX for easier out of the box connectivity?)

Even though `connect automatically` is selected, after sleep the WiFi connection is not restored until `connect` is selected manually via the tray icon menu. Is there something I can tweak to get it working automatically? This is the Quick Sys Info of the machine. Thank you all very much :puppy:

Code: Select all

System:    Kernel: 5.15.0-3-amd64 x86_64 bits: 64 compiler: gcc v: 11.2.0
           parameters: BOOT_IMAGE=/vmlinuz-5.15.0-3-amd64 root=UUID=<filter> ro quiet splash
           Desktop: KDE Plasma 5.23.5 wm: kwin_x11 vt: 7 dm: SDDM Distro: MX-21_KDE_x64 Wildflower October 20  2021
           base: Debian GNU/Linux bookworm/sid
Machine:   Type: Laptop System: LENOVO product: 21A2 v: ThinkBook 14 G3 ACL serial: <filter> Chassis: type: 10
           v: ThinkBook 14 G3 ACL serial: <filter>
           Mobo: LENOVO model: LNVNB161216 v: SDK0J40697 WIN serial: <filter> UEFI: LENOVO v: GQCN26WW(V1.12) date: 08/23/2021
Battery:   ID-1: BAT1 charge: 22.2 Wh (49.8%) condition: 44.6/45.0 Wh (99.1%) volts: 11.5 min: 11.6
           model: 0x4C 0x47 0x43 0x00 0x32 0x30 0x 0x4C 0x31 0x39 0x4C 0x33 0x50 0x4500 type: Li-ion serial: <filter>
           status: Discharging cycles: 13
CPU:       Info: 8-Core model: AMD Ryzen 7 5700U with Radeon Graphics bits: 64 type: MT MCP arch: Zen 2 family: 17 (23)
           model-id: 68 (104) stepping: 1 microcode: 8608103 cache: L2: 4 MiB
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 57494
           Speed: 2022 MHz min/max: 1400/1800 MHz boost: enabled Core speeds (MHz): 1: 2022 2: 2510 3: 4094 4: 4127 5: 1429
           6: 1616 7: 1269 8: 1511 9: 1405 10: 1368 11: 1477 12: 1584 13: 1611 14: 2121 15: 1721 16: 1225
           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, IBRS_FW, STIBP: conditional, RSB filling
           Type: srbds status: Not affected
           Type: tsx_async_abort status: Not affected
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Lucienne vendor: Lenovo driver: amdgpu v: kernel bus-ID: 05:00.0
           chip-ID: 1002:164c class-ID: 0300
           Device-2: Acer Integrated Camera type: USB driver: uvcvideo bus-ID: 1-3:2 chip-ID: 5986:212b class-ID: 0e02
           Display: x11 server: X.Org 1.20.14 compositor: kwin_x11 driver: loaded: amdgpu,ati unloaded: fbdev,modesetting,vesa
           display-ID: :0 screens: 1
           Screen-1: 0 s-res: 3440x1440 s-dpi: 96 s-size: 907x380mm (35.7x15.0") s-diag: 983mm (38.7")
           Monitor-1: HDMI-A-0 res: 3440x1440 dpi: 109 size: 800x335mm (31.5x13.2") diag: 867mm (34.1")
           OpenGL: renderer: AMD RENOIR (DRM 3.42.0 5.15.0-3-amd64 LLVM 12.0.1) v: 4.6 Mesa 21.2.6 direct render: Yes
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Renoir Radeon High Definition Audio vendor: Lenovo driver: snd_hda_intel
           v: kernel bus-ID: 05:00.1 chip-ID: 1002:1637 class-ID: 0403
           Device-2: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo driver: N/A
           alternate: snd_pci_acp3x, snd_rn_pci_acp3x bus-ID: 05:00.5 chip-ID: 1022:15e2 class-ID: 0480
           Device-3: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel
           bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403
           Sound Server-1: ALSA v: k5.15.0-3-amd64 running: yes
           Sound Server-2: PulseAudio v: 15.0 running: yes
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8168 v: 8.048.03-NAPI
           port: 3000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
           IF: eth0 state: down mac: <filter>
           Device-2: Realtek RTL8852AE 802.11ax PCIe Wireless Network Adapter vendor: Lenovo driver: rtw89_pci v: N/A
           modules: rtw89pci,wl port: 2000 bus-ID: 04:00.0 chip-ID: 10ec:8852 class-ID: 0280
           IF: wlan0 state: up mac: <filter>
           IF-ID-1: br-3fb9e53663ec state: up speed: 10000 Mbps duplex: unknown mac: <filter>
           IF-ID-2: br-693b12243805 state: up speed: 10000 Mbps duplex: unknown mac: <filter>
           IF-ID-3: br-8ccbc49f0b57 state: up speed: 10000 Mbps duplex: unknown mac: <filter>
           IF-ID-4: br-d1aabe588d54 state: up speed: 10000 Mbps duplex: unknown mac: <filter>
           IF-ID-5: docker0 state: down mac: <filter>
           IF-ID-6: veth053b183 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-7: veth0cb754d state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-8: veth2b4f3fe state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-9: veth2bbee83 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-10: veth5820952 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-11: veth62e1191 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-12: veth6416ebe state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-13: veth734a8c7 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-14: veth7f133e3 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-15: veth8188a93 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-16: veth8ca6256 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-17: veth8d5d328 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-18: veth9020576 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-19: veth93055f6 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-20: veth95543fa state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-21: vetha0f7884 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-22: vetha65046c state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-23: vetha756c56 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-24: vethb1c0d78 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-25: vethb39c878 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-26: vethb81b38d state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-27: vethc4bb945 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-28: vethda0e247 state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-29: vethdd3a9ae state: up speed: 10000 Mbps duplex: full mac: <filter>
           IF-ID-30: vethde5e39e state: up speed: 10000 Mbps duplex: full mac: <filter>
Bluetooth: Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8 bus-ID: 3-4:3 chip-ID: 0bda:4852 class-ID: e001
           serial: <filter>
           Report: hciconfig ID: hci0 rfk-id: 18 state: up address: <filter> bt-v: 3.0 lmp-v: 5.2 sub-v: 1d69 hci-v: 5.2
           rev: d9a9
           Info: acl-mtu: 1021:6 sco-mtu: 255:12 link-policy: rswitch hold sniff park link-mode: peripheral accept
           service-classes: rendering, capturing, object transfer, audio, telephony
Drives:    Local Storage: total: 476.94 GiB used: 23.44 GiB (4.9%)
           SMART Message: Unable to run smartctl. Root privileges required.
           ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: PC SN530 SDBPMPZ-512G-1101 size: 476.94 GiB
           block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 21160001
           temp: 33.9 C scheme: GPT
Partition: ID-1: / raw-size: 339.83 GiB size: 333.43 GiB (98.12%) used: 23.06 GiB (6.9%) fs: ext4 dev: /dev/dm-0
           maj-min: 253:0 mapped: root.fsm
           ID-2: /boot raw-size: 1.95 GiB size: 1.89 GiB (96.54%) used: 358.8 MiB (18.6%) fs: ext4 dev: /dev/nvme0n1p5
           maj-min: 259:5
           ID-3: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%) used: 28.6 MiB (11.2%) fs: vfat dev: /dev/nvme0n1p1
           maj-min: 259:1
Swap:      Alert: No swap data was found.
Sensors:   Message: No sensor data found. Is lm-sensors configured?
Repos:     Packages: note: see --pkg apt: 2450 lib: 1369 flatpak: 0
           Active apt repos in: /etc/apt/sources.list
           1: deb [arch=amd64] https://download.docker.com/linux/ubuntu/ bullseye stable
           2: deb http://deb.debian.org/debian/ bookworm main
           Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
           1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
           1: deb http://deb.debian.org/debian/ bullseye-updates non-free contrib main
           Active apt repos in: /etc/apt/sources.list.d/debian.list
           1: deb http://deb.debian.org/debian/ bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/docker.list
           1: deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian/ bullseye stable
           Active apt repos in: /etc/apt/sources.list.d/mx.list
           1: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ bullseye main non-free
           2: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ bullseye ahs
           Active apt repos in: /etc/apt/sources.list.d/nodesource.list
           1: deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_12.x/ bullseye main
           2: deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_12.x/ bullseye main
           Active apt repos in: /etc/apt/sources.list.d/vscode.list
           1: deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code/ stable main
Info:      Processes: 553 Uptime: 3d 1h 12m wakeups: 31 Memory: 13.55 GiB used: 9.01 GiB (66.5%) Init: SysVinit v: 3.01
           runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 11.2.0 alt: 10/11 Shell: quick-system-in default: Bash
           v: 5.1.16 running-in: quick-system-in inxi: 3.3.06

User avatar
razor2021
Posts: 498
Joined: Mon Feb 08, 2021 4:49 pm

Re: WiFi not reconnecting automatically after sleep (KDE)

#2 Post by razor2021 »

Your BIOS -> LENOVO v: GQCN26WW(V1.12) date: 08/23/2021

Latest BIOS -> GQCN30WW_HFCN25WW date: 24 Jan 2022
Webrelease
1. Implement SPD table for Samsung 8G on-board RAM.
2. Add the panel brightness nits setting about BOE and HKC.
3. Add ELAN I2C touchpad support.
4. Add the SAR table ID about Realtek WLAN

There seems to be something updated on your Realtek WLAN for radiated power from antennas. Can you update and see if the BIOS update makes a difference?
Mixed of desktops and laptops, I have a Gravis Ultrasound Classic card (unfortunately its ISA-slot based) ... - I must be a dino. :popcorn:
Running on my DesktopPC - MX-23.4 AHS with latest Kernel: 6.12.17-1-liquorix-amd64

Huckleberry Finn

Re: WiFi not reconnecting automatically after sleep (KDE)

#3 Post by Huckleberry Finn »

Code: Select all

echo -e 'HOOK_BLACKLIST="wireless"\nSUSPEND_MODULES=”rtw89_pci”' | sudo tee /etc/pm/config.d/config

Code: Select all

echo -e "[device]\nwifi.scan-rand-mac-address=no" | sudo tee /etc/NetworkManager/conf.d/disable-random-mac.conf

User avatar
uncle mark
Posts: 857
Joined: Sat Nov 11, 2006 9:42 pm

Re: WiFi not reconnecting automatically after sleep (KDE)

#4 Post by uncle mark »

Open the network from the tray icon and check "use for all users" (or something of that nature).
Custom build Asus/AMD/nVidia circa 2011 -- MX 19.2 KDE
Acer Aspire 5250 -- MX 21 KDE
Toshiba Satellite C55 -- MX 18.3 Xfce
Assorted Junk -- assorted Linuxes

Huckleberry Finn

Re: WiFi not reconnecting automatically after sleep (KDE)

#5 Post by Huckleberry Finn »

Yep: download/file.php?id=24371&mode=view

(I thought you already did that)

LearningMX
Posts: 15
Joined: Fri Feb 11, 2022 1:03 pm

Re: WiFi not reconnecting automatically after sleep (KDE)

#6 Post by LearningMX »

Fantastic, this worked, thank you all very much. I'm amazing at the enthusiastic and friendly help in this forum! Not sure why kde decided to have a checkbox for 'connect automatically to network' and then runs the reconnection with a user that doesn't have the privileges to reconnect ..

Post Reply

Return to “MX KDE Official Release”