From 81f224dc969ed72a1611f3101718d13b716d447f Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Sat, 23 Aug 2025 02:22:30 -0700 Subject: [PATCH] log more --- system/ui/lib/wifi_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/ui/lib/wifi_manager.py b/system/ui/lib/wifi_manager.py index 18fb71671a..eead99dd50 100644 --- a/system/ui/lib/wifi_manager.py +++ b/system/ui/lib/wifi_manager.py @@ -178,6 +178,8 @@ class WifiManager: state_reason = props_dev.Get(NM_DEVICE_IFACE, "StateReason") # (u state, u reason) reason = int(state_reason[1]) if isinstance(state_reason, (list, tuple)) and len(state_reason) == 2 else 0 + print(f"Device state: {dev_state}, reason: {state_reason}") + if dev_state != prev_state: print(f"------------ WiFi device state change: {dev_state}, reason: {reason}") if dev_state == NMDeviceState.NEED_AUTH and reason == NM_DEVICE_STATE_REASON_SUPPLICANT_DISCONNECT and self._connecting_to_ssid: