You are not logged in.

#1 2025-04-01 17:03:35

spuddle
Member
Registered: 2025-04-01
Posts: 1

Wifi Turns off every time I open laptop lid, unknown wlan button acpi

System Info:

  • Distro: Arch Linux (Latest)

  • Kernel: Initially linux (latest), now linux-lts (6.6.x at time of writing)

  • WiFi Card: Intel Wi-Fi 6 AX201

  • Desktop Environment: KDE Plasma

  • Laptop: HP-ENVY-x360-Convertible-13-bdOxxx

  • Bootloader: GRUB, managed by a separate Manjaro installation (dual boot), using os-prober.

WiFi disconnects when opening laptop lid (phantom rfkill event)

My first issue with wifi was that it allowed me to connect once after initial setup, then the wifi device and interface disappeared completely from network manager etc after a reboot, I solved this by switching to Linux LTS.

Now, the WiFi connection is stable during use and even when the lid is closed (configured to only turn off screen, not sleep). However, upon opening the lid, the WiFi immediately disconnects, and KDE shows a notification that the WiFi network has been disabled. It requires manually re-enabling WiFi via NetworkManager.

What I've tried so far...

Power Saving: Confirmed WiFi power saving was disabled via NetworkManager conf
(/etc/NetworkManager/conf.d/wifi-powersave-off.conf set to wifi.powersave = 2) and module option (options iwlwifi power_save=0).
This did not prevent the lid-open issue.

Logs: journalctl -f during lid open revealed something interesting....:
systemd-logind[...]: Lid opened.
kernel: wlo1: deauthenticating from ... by local choice (Reason: 3=DEAUTH_LEAVING)
wpa_supplicant[...]: rfkill: WLAN soft blocked
NetworkManager[...]: manager: rfkill: Wi-Fi now disabled by radio killswitch This clearly showed a software rfkill block was being triggered by the lid open event.

Power Management Daemons: Checked for tlp and power-profiles-daemon; neither were installed.

ACPI Events: Used acpi_listen and observed the following sequence during close/open:
button/lid LID close
button/wlan WLAN 00000080 00000000 K  # <-- This must be it but I haven't been able to find a way to disable this event
button/lid LID open


systemd-logind Configuration: Attempted to tell logind to ignore this event:
Looked into if i could disable this 'wlan key' in /etc/systemd/logind.conf but no luck.

acpid Checks:
Verified /etc/acpi/handler.sh has no specific action for button/wlan.
Verified /etc/acpi/events/ has no custom rules for WLAN toggling.
Temporarily stopped acpid.service. The rfkill block still occurred on lid open, confirming acpid itself wasn't the direct trigger (pointing back to logind or lower).

I've exhausted all the options I know/could find in forums...

Is there another layer (kernel module like iwlwifi itself, a platform driver like hp_wmi, or a udev rule) that could be intercepting this ACPI event and forcing the rfkill action before logind's ignore rule applies, or is this a potential bug in systemd-logind's handling on this specific hardware?

Any insights into why this is happening or other ways to prevent the system from reacting to this specific button/wlan event would be much, much appreciated!
Thanks in advance!

Last edited by spuddle (2025-04-01 17:23:40)

Offline

#2 2025-04-02 06:33:18

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,244
Website

Re: Wifi Turns off every time I open laptop lid, unknown wlan button acpi

Please upload a Journal from a boot where the issue occurs to a pastebin service and link it here, so that we can see what's going on with your system during.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#3 2025-04-02 08:44:47

seth
Member
Registered: 2012-09-03
Posts: 62,929

Re: Wifi Turns off every time I open laptop lid, unknown wlan button acpi

This could be down to a mere mechnical issue where the actual key fires, does it show up in acpid/evtest/xev?
Sanity check: it's not a triple boot where there's also a (hibernating) windows?

Offline

Board footer

Powered by FluxBB