GNOME Bugzilla – Bug 549606
potential data loss when computer is suspended
Last modified: 2011-09-29 07:57:57 UTC
There are similar problems to #504266 when suspending. For instance, with a Jabber account, messages can get lost because my TCP connection to the Jabber server hasn't timed out. The Jabber server still thinks I'm connected, so doesn't store messages for when I next connect. If there's some way of disconnecting connections before suspend, we should definitely do that.
Do you know if GnomePowerManager sends a signal before suspend? If yes I guess Empathy should just have to catch it and change user's status to offline.
I'm surprised XMPP don't have an ACK system for messages. Too bad! I agree we could investigate if there is some DBus signal to disconnect all accounts before suspend the computer.
This is not possible to be done through network-manager?
I think it is, but not everyone uses network-manager (me for instance). I would think using DBUS would be better just because more people will be using it.
Dafydd, were you using NetworkManager when it stayed connected during suspend?
(In reply to comment #5) > Dafydd, were you using NetworkManager when it stayed connected during suspend? I'm describing a hypothetical situation as opposed to something that happened to me. I don't think NM can make a difference either way: Gabble isn't closing the TCP socket whether the interface comes down or not, and in my understanding bringing the interface down doesn't close any TCP connections active on that interface.
MC is suppose is to disconnect all CM's when network is disconnected, isn'it? So, does NetworkManager properly shutdown the network when we suspend?
*** Bug 589042 has been marked as a duplicate of this bug. ***
I can reproduce this with Empathy 2.2792, GNOME Version: 2.26.1, Ubuntu 9.04. Repro steps: 1. Suspend 2. Have a confederate send me messages (via AIM & GTalk) 3. Wake computer up again Desired behavior: Messages await me when Empathy gets online again Actual behavior: Messages disappear into the void What logs should I give -- Empathy, gabble, haze, other?
I just tried and when suspending our status is set to away (because gnome-screen-saver is running) but connections are not properly disconnected. Richard: Does gnome-power-manager have a mechanism to notify apps when the system is about to suspend? If no, could we imagine having one?
(In reply to comment #10) > Richard: Does gnome-power-manager have a mechanism to notify apps when the > system is about to suspend? If no, could we imagine having one? g-p-m doesn't, but UPower does. Just watch for the AboutToSleep() signal on org.freedesktop.UPower and you've got one second to do anything you like.
Great; thanks for the info. Let's do that in 2.31 then.
Plan is now to do that in mission-control instead of Empathy : https://bugs.freedesktop.org/show_bug.cgi?id=28370
You'll be happy to know that we are, finally, about the fix this bug in MC. :)