Your message dated Sat, 03 Aug 2013 01:34:25 +0200
with message-id <[email protected]>
and subject line Re: [Pkg-utopia-maintainers] Bug#718491: Bug#718491: 
Bug#718458: Processed: Reassigning to upower
has caused the Debian Bug report #718491,
regarding Does not resume properly with logind backend
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
718491: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718491
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: upower
Version: 0.9.21-1
Severity: important

upower now uses logind/systemd as backend, when it detects
org.freedesktop.login1 at runtime, and then just defers the Suspend to
logind by calling org.freedesktop.login1.Manager's Suspend() method.

This only works once. Trying to run 
dbus-send --print-reply --system --dest=org.freedesktop.UPower 
/org/freedesktop/UPower org.freedesktop.UPower.Suspend
you'll get

Error org.freedesktop.UPower.GeneralError: Sleep has already been
requested and is pending

As e.g. network-manager in Debian sid is currently still built against
the upower backend, the missing Resuming signal also means, that NM is
not woken up on resume and all devices are in unmanaged mode.



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages upower depends on:
ii  dbus                   1.6.12-1
ii  libc6                  2.17-91
ii  libdbus-1-3            1.6.12-1
ii  libdbus-glib-1-2       0.100.2-1
ii  libglib2.0-0           2.36.3-3
ii  libgudev-1.0-0         204-2
ii  libimobiledevice2      1.1.1-4
ii  libplist1              1.8-1
ii  libpolkit-gobject-1-0  0.105-3
ii  libupower-glib1        0.9.21-1
ii  libusb-1.0-0           2:1.0.16-3
ii  pm-utils               1.4.1-11
ii  systemd                204-2
ii  udev                   204-2

Versions of packages upower recommends:
ii  policykit-1  0.105-3

upower suggests no packages.

-- no debconf information

-- debsums errors found:
sh: 1: /usr/sbin/dpkg-divert: not found

--- End Message ---
--- Begin Message ---
Version: 0.9.21-2

Am 02.08.2013 22:06, schrieb brian m. carlson:
> On Fri, Aug 02, 2013 at 04:44:52AM +0200, Michael Biebl wrote:
>> Am 02.08.2013 04:37, schrieb Michael Biebl:
>>> You are using systemd, correct?
> 
> Yes.
> 
>>> /lib/systemd/system-sleep/notify-upower.sh
>>> which is supposed to notify upower to send the Resume signal after a
>>> successful resume.
>>>
>>> Can you copy the attached file to /lib/systemd/system-sleep/, make it
>>
>> I have to add: This requires systemd 204 from experimental. The version
>> in unstable doesn't have support for suspend/hibernate (which was added
>> in v183).
> 
> I've already upgraded to that version in hopes it would make it work, so
> it isn't a problem.  Adding the script does make it work.
> 
>> While we should get 204 in unstable hopefully soon, I guess the safest
>> action for now is, to patch upower to always use the pm-utils backend
>> directly, unless this causes an unwanted side-effect if one is actually
>> running systemd 204.
> 
> I haven't seen such a side effect, so I don't see a problem with that.
> Even if there were such a side effect, I suspect people would be more
> likely to object about their laptop refusing to suspend than about the
> side effect.

Agreed. So what I've done is change upower to always use the pm-utils
backend for now, even if logind is running.
Once systemd 204 hits unstable (and once we have systemd-shim [1] for
sysvinit) we might consider reenabling the logind backend in upower. So
we also install the notify-upower.sh script, just so we don't forget.

Michael

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718493


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to