SUMMARY After resuming the PC from sleep the application will not reconnect unless the interface on PC is opened and the paired phone is clicked. STEPS TO REPRODUCE 1. Put the computer to sleep for a ~1h 2. Resume the computer to sleep 3. Check KDE Connect status OBSERVED RESULT The phone wont show as connected. Opening the kde connect application on the phone by itself wont reconnect, opening the main window on PC and clicking the phone icon will re-establish connection. EXPECTED RESULT KDE Connect automatedly re-establish connection without user interaction. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
Forgot to add the version details: SOFTWARE/OS VERSIONS Windows: Windows 10.0.19043 (21H1) Windows App Version: 0.0.878.0 (windows store version) Android: 10 (lineage 17.1, build: 10 QQ3A, 200805.001) Android App Version: 1.17.0 (not battery optimized)
*** Bug 451597 has been marked as a duplicate of this bug. ***
A possibly relevant merge request was started @ https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/497
I believe that https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/497 should fix the issue. I'm not completely sure, but several hour testing with this patch did not trigger this behavior.
Git commit bd796836c50bb8293ff6422d0bf24a34cac9c8ba by Albert Vaca Cintora, on behalf of ValdikSS ValdikSS. Committed on 04/03/2023 at 13:06. Pushed by albertvaka into branch 'master'. Enable socket Keep-Alive on Windows Windows does not use setsockopt for keep-alive configuration, requiring WSAIoctl call. https://learn.microsoft.com/en-us/windows/win32/winsock/sio-keepalive-vals Related: bug 451597 M +24 -0 core/backends/lan/lanlinkprovider.cpp https://invent.kde.org/network/kdeconnect-kde/commit/bd796836c50bb8293ff6422d0bf24a34cac9c8ba