← Back to team overview

touch-packages team mailing list archive

[Bug 1400203] Re: libsystemd-login sd_login_monitor_new not working

 

Verified the sd-test.c program, using systemd 208-8ubuntu8.2 in utopic-
proposed.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1400203

Title:
  libsystemd-login sd_login_monitor_new not working

Status in systemd package in Ubuntu:
  Fix Released
Status in systemd source package in Utopic:
  Fix Committed

Bug description:
  [Impact]
  The systemd login monitoring library (API: sd_login_monitor_new(3)) is not
  functional in Utopic. This library is a dependency in NetworkManager, for
  tracking user sessions. As a result, my laptop does not reconnect to
  the network after a suspend/resume cycle.

  There was a patch to fix this in the older, Trusty Tahr version of systemd
  (http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/systemd/trusty/view/head:/debian/patches/login-monitor-no-machine.patch).
  The patch isn't in the utopic systemd (208-8ubuntu8).

  This was discovered in a Gnome Fallback session, but I think this KDE issue
  may be the same thing: https://bugs.kde.org/show_bug.cgi?id=340568
  Note: This behavior is only seen when "All users may connect to this
  network" is un-selected in NetworkManager.
  NOTE: in order to get a fully working network, I also had to make a
  change to the upstart script, see:
  https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1400205

  [Test Case]
  A short C program to demonstrate sd_login_monitor_new is attached to the
  bug, to demonstrate whether sd_login_monitor_new() is working. 

  To do an end-to-end test, you can stop NetworkManager, re-run it with
  "NetworkManager --no-daemon", and look for the "Error getting login
  monitor:" error message.

  [Regression Potential]
  Fixing this simply means applying a patch which shipped along with
  Trusty Tahr's systemd. Since it was widely used already, adding it to
  Utopic does not appear overly risky.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1400203/+subscriptions


References