[Bug 1196752] Re: Suspend only works once when using upower with logind

Martin Pitt martin.pitt at ubuntu.com
Fri Aug 2 10:31:43 UTC 2013


So it seems part of the problem is that upower forgets to install
/lib/systemd/system-sleep/notify-upower.sh. I just fixed that in the
packaging git. However, systemd-shim does not call these scripts, this
needs to happen until this can work a second time.

** Also affects: upower (Ubuntu)
   Importance: Undecided
       Status: New

** Bug watch added: Debian Bug tracker #718458
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718458

** Also affects: upower (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718458
   Importance: Unknown
       Status: Unknown

** Changed in: upower (Ubuntu)
     Assignee: (unassigned) => Martin Pitt (pitti)

** Changed in: upower (Ubuntu)
       Status: New => Fix Committed

** Summary changed:

- Suspend only works once when using upower with logind
+ Suspend only works once when using upower with logind -- s-shim needs to call /lib/systemd/system-sleep/*

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1196752

Title:
  Suspend only works once when using upower with logind -- s-shim needs
  to call /lib/systemd/system-sleep/*

Status in “systemd” package in Ubuntu:
  Triaged
Status in “systemd-shim” package in Ubuntu:
  Confirmed
Status in “upower” package in Ubuntu:
  Fix Committed
Status in “upower” package in Debian:
  Unknown

Bug description:
  On saucy with upower 0.9.20-1ubuntu2, suspending via UPower (or the KDE suspend menu) only works once:
  dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend

  and resuming works the first time. However, calling it again after resume returns:
  "Sleep has already been requested and is pending"

  Sleeping directly via logind works every time:
  dbus-send --print-reply --system --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Suspend boolean:true

  Returning FALSE for the LOGIND_AVAILABLE() case in gboolean
  up_backend_emits_resuming (UpBackend *backend) in src/linux/up-
  backend.c allows suspending multiple times via UPower (or the KDE
  suspend menu). UPower is somehow not getting the resume signal from
  logind.

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




More information about the foundations-bugs mailing list