Public bug reported:

Binary package hint: gnome-user-share

On Jaunty, package gnome-user-share_2.25.92-0ubuntu2

There appears to be a race condition on suspend/resume and
hibernate/thaw which causes obexpushd and obexftp to not get correctly
shutdown on suspend/hibernate and it attempts to restart them on resume,
which fails. This makes any subsequent attempt to transfer files to the
system via bluetooth fail.

I've traced this to src/user-share.c consolekit_init() method and
sessionchanged_cb(). When the condition fails, sessionchanged_cb gets an
"Active" on suspend/hibernate rather than "Inactive" which causes the
services to not get stopped. It gets another "Active" on resume/thaw and
then all hell breaks loose.

I've attached a patch which simplifies the dbus code to register a
callback which is passed the active/inactive state, thus eliminating the
race condition. This same method is used in netbook-launcher.

** Affects: gnome-user-share (Ubuntu)
     Importance: Undecided
         Status: New

-- 
obexpushd and obexftp not correctly restarted after S3/S4
https://bugs.launchpad.net/bugs/369522
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to