Bug 307175 - Offline presence set to Online after suspend/resume when using "Restore last presence on login"
Summary: Offline presence set to Online after suspend/resume when using "Restore last ...
Status: RESOLVED FIXED
Alias: None
Product: telepathy
Classification: Unmaintained
Component: kded-module (show other bugs)
Version: git-latest
Platform: unspecified Linux
: NOR normal
Target Milestone: 0.6-next
Assignee: Dominik Cermak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-21 20:08 UTC by Elias Probst
Modified: 2013-03-31 18:02 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.7.0
Sentry Crash Report:
d.cermak: ReviewRequest+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2012-09-21 20:08:08 UTC
When using the "Restore last presence on login" option and setting the presence to "Offline", the presence is set to online again after suspend/resume.

I'm not sure, but I feel like the network status reported by KDE's networkmanagement is actually involved here, which changes from offline to online again after resuming, triggering KTP to restore the last presence.
As the last presence stored from a previous reboot was "Online", it is set to "Online" again.
Comment 1 Dominik Cermak 2012-09-22 09:32:31 UTC
I have to look further into that, but some first thoughts:
If mission-control is build with networkmanager support (so it knows the connection state) and the connection changes from offline to online it will try to restore the presence. That's what I would expect at least.
There is a bug with "Restore last presence on login". If one goes offline this status isn't restored at login, instead the last online status is restored. This is because mission-control doesn't allow to set the automatic-presence to offline. I have some changes locally, trying to solve that, but it's not ready yet.
With the above fixed, this bug should be fixed too.
Comment 2 Kai Uwe Broulik 2013-01-04 16:39:27 UTC
Telepathy also doesn't reliably reconnect when waking up from suspend. Sometimes it works but most of the cases I end up offline when I wake my notebook.
Comment 3 Dominik Cermak 2013-03-31 18:02:31 UTC
Git commit 9b8f17433a7b14b256c1eb9272186c0f00ab416f by Dominik Cermak.
Committed on 31/03/2013 at 19:53.
Pushed by cermak into branch 'master'.

Stop using mission-control for autoconnect

Instead use our kded-module.
FIXED-IN: 0.7.0
REVIEW: 109807

M  +14   -26   autoconnect.cpp
M  +6    -4    autoconnect.h
M  +3    -14   telepathy-module.cpp

http://commits.kde.org/telepathy-kded-module/9b8f17433a7b14b256c1eb9272186c0f00ab416f