[Bug 68758] New: Should watch systemd suspend signals

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 30 08:36:25 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=68758

          Priority: medium
            Bug ID: 68758
          Assignee: telepathy-bugs at lists.freedesktop.org
           Summary: Should watch systemd suspend signals
        QA Contact: telepathy-bugs at lists.freedesktop.org
          Severity: major
    Classification: Unclassified
                OS: Linux (All)
          Reporter: accounts+bugs.freedesktop.org at florianjacob.de
          Hardware: All
            Status: NEW
           Version: git master
         Component: mission-control
           Product: Telepathy

Similar as "Should watch UPower AboutToSleep signal",
https://bugs.freedesktop.org/show_bug.cgi?id=28370 , telepathy mission control
should watch systemd signals / create inhibitor locks for suspend.

On my system, current Chakra, the UPower AboutToSleep Signal isn't sent anymore
as it has completely transitioned to systemd. This results in telepathy not
being able to log out prior to suspend, and because XEP-0198 is not implemented
in telepathy, I stay online for others in my contact list until the server
disconnects me according to his TCP Keepalive settings, which defaults to 4
hours on Debian systems.

During that time, all messages sent to me are getting lost without any notice
for the sender's or the receiver's side.

I could reproduce this with the KDE-Version of Fedora using KTelepathy like on
my own system.


Information on the way systemd handles this:
http://www.freedesktop.org/wiki/Software/systemd/logind/

Unlike UPower, Systemd doesn't just spit out a signal and waits a second and
then shuts down, one can create something called inhibitor locks, which one
cand hold and release when one is done with cleaning up. No general one second
until everything is suspended, but exactly the time everything needs.
Disadvandage is more implementation effort than just listening to a signal.

Implementation in NetworkManager:
http://code.metager.de/source/xref/freedesktop/NetworkManager/NetworkManager/src/nm-sleep-monitor-systemd.c

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the telepathy-bugs mailing list