This issue is very similar to this launchpad bug which happens in Gnome.
Problem
I have MSI GF63 Thin 11UC, which has a keyboard shortcut Fn+F10 for toggling airplane mode. On Windows, it worked. From the time I bought this laptop, I used to use Gnome (Ubuntu), where this combination of buttons does nothing. No change at all, and due to the Gnome Settings Daemon taking over the control of rfkill
subsystem from the kernel, I was never able to know the real issue. In Plasma, this button disables both Bluetooth and Wi-Fi, but it’s never detected as airplane mode, as if the wireless and other connections are disabled separately.
Discussion
In KDE or in a tty, pressing this button sends a SW_RFKILL_ALL
event which soft blocks both bluetooth and wireless (wifi, wwan etc). This is a standard input event handled in the kernel, which one can see here
Now, toggling the airplane mode via the plasma-nm
applet, does soft block the wireless but it doesn’t soft block bluetooth.
Possible Solution
A possible solution to fix this problem can be to make sure that plasma detects a soft block of bluetooth adapters as airplane mode too. But I think there is a bigger problem underneath. So, I’d like everyone else’s opinion on this matter.
Key events
Sharing the key event code capture through evtest
Event: time 1750440566.575001, type 5 (EV_SW), code 3 (SW_RFKILL_ALL), value 0
Event: time 1750440566.575001, -------------- SYN_REPORT ------------
Screenshots,
This is how it looks when I press my airplane mode button combo from my keyboard, Fn+F10
This is how it’s with plasma’s airplane mode
rfkill status
- With my airplane mode button keyboard combo (Fn+F10)
rfkill --output-all ID TYPE DEVICE TYPE-DESC SOFT HARD 0 bluetooth hci0 Bluetooth blocked unblocked 1 wlan phy0 Wireless LAN blocked unblocked
- With Plasma’s software airplane mode enabled
rfkill --output-all ID TYPE DEVICE TYPE-DESC SOFT HARD 0 bluetooth hci0 Bluetooth unblocked unblocked 1 wlan phy0 Wireless LAN blocked unblocked