Bug 408508 - wake up from sleep/ logoff kills kdeconnect
Summary: wake up from sleep/ logoff kills kdeconnect
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-10 05:06 UTC by johnathan
Modified: 2023-08-31 19:12 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description johnathan 2019-06-10 05:06:39 UTC
SUMMARY
whenever kde neon wakes up from sleep and it had been connected to for example hotspot of the phone having kde connect, it continues the wifi as normal but kde connect does not restart itself.


i am on kde connect 1.12.7 on android.

STEPS TO REPRODUCE
1. connect to kdeconnect and let system go to sleep. wake up and wifi gets connected but kdeconnect does not.
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT
wakeup and wifi gets connected, so should kdeconnect.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 

KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.3

ADDITIONAL INFORMATION
Comment 1 robin 2021-10-16 01:27:48 UTC
I can confirm I am getting this bug too, using UbUntu 20.04, kdeconnect 20.12 and a recent debug build of the kdeconnect Android app.

At present I have to close kdeconnect-sms on my laptop, then restart it manually, I assume doing so kills the existing, hanging connection then creates a new network connection as soon as I relaunch it.
Comment 2 robin 2021-10-16 01:28:21 UTC
Android version 1.17
Comment 3 Renn 2022-06-21 14:42:03 UTC
I'm having the same issue with KDE Connect. Once I opened the GUI of KDE Connect from tray, it reconnects to the phone without issues.
Comment 4 ©TriMoon™ 2023-03-15 10:20:37 UTC
Maybe they should drop the XDG-Autostart desktopfile and create a proper global systemd-user-unit, that includes dependencies for the suspend/resume targets also...
Maybe ill make such a unit myself in due time and post somewhere or here...
Comment 5 Oded Arbel 2023-08-26 20:31:52 UTC
The kdeconnectd should still be running after the system comes back from sleep, which should make it connect to the device once the network is up. Maybe the service has crashed?

I can't reproduce this issue with KDE Connect 23.04.3 on Plasma 5.27.7

If you can still reproduce this issue - can you please check if the kdeconnectd process is running after coming back from sleep and not connecting to the phone?
Comment 6 Albert Vaca Cintora 2023-08-31 19:12:11 UTC
We don't need an autostart, kdeconnect is dbus-activated so simply trying to use kdeconnect after it has crashed should start it. This bug is very old and I don't think it can be reproduced nowadays, closing.