Bug 334341 - KDE Connect Service does not reconnect to the phone on wake from sleep
Summary: KDE Connect Service does not reconnect to the phone on wake from sleep
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: 0.5
Platform: unspecified Linux
: NOR major
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-04 17:49 UTC by Uzair Shamim
Modified: 2015-12-01 18:09 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uzair Shamim 2014-05-04 17:49:57 UTC
When my computer goes to sleep (for example if I am away for a while) and I come back and wake it, the KDE Connect service is still running but it has disconnected from the phone. The only way to get them to connect is to restart the service from System Settings > Startup And Shutdown > Service Manager. Sometimes I also have to unpair from KDE and then send a pair request from the phone to get them to work. 

Reproducible: Always

Steps to Reproduce:
1. Connect phone and computer using KDE Connect
2. Put computer to sleep/let it sleep on its own
3. Wake computer
4. Attempt to use KDE Connect
Actual Results:  
KDE Connect cannot see the phone from the computer, and the phone thinks it is still paired to the computer but is unable to use any features.

Expected Results:  
The service should be able to pair the devices on its own when the computer wakes up

openSUSE 13.1
KDE 4.13 from KDE:Current and KDE:Extra repos
Phone is Galaxy Ace (GT-S5830) running 4.1.1 rom
Comment 1 Uzair Shamim 2014-05-05 00:08:56 UTC
It seems this also occurs when you log out of the computer and then back in.
Comment 2 Julian Schmidt 2014-05-06 08:11:24 UTC
for me I have to reconnect each time I reboot the computer, although the session is still active in the app.
Comment 3 Uzair Shamim 2014-05-11 05:28:49 UTC
It seems we are experiencing similar issues then. I am marking this as major because any idle time on the computer/rebooting (like a kernel update) and the connection is ruined which takes quite a bit away from the experience.
Comment 4 Albert Vaca Cintora 2014-05-11 17:25:08 UTC
Can anybody confirm if this still happens in the latest version from git master? I think it should be fixed there now.
Comment 5 Julian Schmidt 2014-05-11 17:30:15 UTC
sure, but where can i find the git repository?
I can't seem to find a link in your log or via google
Comment 6 Albert Vaca Cintora 2014-05-11 17:45:55 UTC
In the KDE projects page, this is the link: https://projects.kde.org/projects/playground/base/kdeconnect-kde/repository
Comment 7 Julian Schmidt 2014-05-11 18:25:01 UTC
I did a
Cmake
make 
make install
re-added the plasmoid to the desktop
connected my phone and rebootet.
it did not automatically reconnect.
My computer moved to the "remembered devices" list again (which gets longer with every reconnect/reboot)

I reconnected manually
send the computer in sleep mode
this time the connection staced active in the app, even with the computer in sleep.
after waking the computer up and logging in I am still connected to the app.

I then tried the re-boot again.
as soon as I hit the shutdown button in kde, the connection in the app disappears and my computer name moves to the "remebered devices" list.

after rebooting a new entry with my computer name appears under not connected devices and the entry under remembered devices stays there.
I have to manually reconnect again.
Comment 8 Uzair Shamim 2014-05-12 18:20:44 UTC
I updated from the KDE repos on opensuse and it seems to have been fixed now. I reboot and the connection still exists. Nice work!
Comment 9 Julian Schmidt 2014-06-05 13:38:25 UTC
after the latest update from the repository it seems to work for me, too. :)
Comment 10 Navid Zamani 2015-12-01 18:09:13 UTC
This still happens when the phone is unavailable. (E.g. when it’s not online.)
When it comes back online, it should automatically reconnect. But it doesn’t.