Transmission doesn't prevent suspend when torrent is active

Bug #457123 reported by Julien Olivier
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Transmission
Fix Released
Unknown
transmission (Ubuntu)
Fix Released
Medium
Krzysztof Klimonda
Karmic
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: transmission

"In Karmic, Transmission fails to prevent me from suspending my computer with active torrents. This error appears in the journal: "the name org.freedesktop.powermanagement was not provided by any .service files"."

The bug is Fixed in 1.80 beta1 which is going to be uploaded to Lucid soon (with a small fix mentioned in the branch log).

TEST CASE: To reproduce bug launch Transmission and enable "Inhibit hibernation when torrents are active" in Desktop tab of settings and start downloading some torrent. Then try to suspend laptop using gnome-session dialog (you can launch it by using "gnome-session-save --shutdown-dialog"). Please note that neither indicator applet nor shutting down lid is affected by inhibitor - only gnome-session dialog.
When updated version is applied a new dialog is going to show up asking user whenever he really want to suspend session.

Regression potential is minimal - patch itself is small and related only to inhibition which is already broken.

Revision history for this message
Julien Olivier (julo) wrote :
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

This is because this interface has been removed from gnome-power-manager this cycle. In Karmic, all inhibitors need to be registered with gnome-session instead, using gnome-session's inhibit DBus API

Changed in transmission (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
tags: added: regression-release
Revision history for this message
lakiu (lakiu-deactivatedaccount-deactivatedaccount) wrote :

chirs, can you explain how can we fix this problem?

Changed in transmission:
status: Unknown → Confirmed
Revision history for this message
Ihar Hrachyshka (ihar-hrachyshka) wrote :

Iakiu, port it to SessionManager D-Bus API as in: http://blogs.gnome.org/hughsie/2009/01/28/inhibits-and-the-new-world-order/

Revision history for this message
Charles Kerr (charlesk) wrote :

This is fixed now in trunk for 1.80.

If anyone wants to backport to Karmic, it's a fairly minor patch. The diff can be found in the upstream ticket.

Changed in transmission:
status: Confirmed → Fix Released
Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :

I'm going to prepare SRU soon

Changed in transmission (Ubuntu):
assignee: nobody → Krzysztof Klimonda (kklimonda)
status: Confirmed → In Progress
description: updated
Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

This should be fixed in Ubuntu 10.04 now. I nominated it for karmic to keep track of it.

Changed in transmission (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Søren (soren-minorflaw) wrote :

Has this been backported for Ubuntu 9.10?

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

No, it hasn't. You may follow the instructions on "How to request new packages" at https://help.ubuntu.com/community/UbuntuBackports to request transmission 1.80 to be backported from Ubuntu 10.04 to 9.10.

Revision history for this message
Krzysztof Klimonda (kklimonda) wrote : Re: [Bug 457123] Re: Transmission doesn't prevent suspend when torrent is active

On Wed, Dec 9, 2009 at 9:58 AM, Søren <email address hidden> wrote:
> Has this been backported for Ubuntu 9.10?
>
> --
> Transmission doesn't prevent suspend when torrent is active
> https://bugs.launchpad.net/bugs/457123
> You received this bug notification because you are a bug assignee.
>

I have prepared SRU for this bug and it's waiting for an ACK from the
SRU team. Then it's going to be uploaded to the -proposed for testing.

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 457123] Re: Transmission doesn't prevent suspend when torrent is active

Krzysztof Klimonda [2009-12-09 11:30 -0000]:
> I have prepared SRU for this bug and it's waiting for an ACK from the
> SRU team. Then it's going to be uploaded to the -proposed for testing.

As the SRU policy explains, just go ahead and upload. It will be
reviewed in the queue.

(By the sound of it this seems fine to me)

Revision history for this message
Søren (soren-minorflaw) wrote :

thanks for answering ;)

Revision history for this message
Søren (soren-minorflaw) wrote :

If there are other people with this problem who needs it fixed, you can install from source pretty easily:

sudo apt-get install build-essential automake autoconf libtool pkg-config libcurl4-openssl-dev intltool libxml2-dev libgtk2.0-dev libnotify-dev libglib2.0-dev

wget http://download.m0k.org/transmission/files/transmission-1.80b3.tar.bz2
tar xf transmission-*
cd transmission-*
./configure --prefix=/usr -q
make -s
sudo make install

This will overwrite Transmission 1.75 with 1.80b3 and I can confirm suspend now is prevented.

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

I've just uploaded this now (attached is the debdiff of the package I uploaded).

Just one small comment though - our patch tagging guidelines [1] have changed recently [2], and we're now using a new format shared with Debian [3]. I've updated the patch to use the new format.

[1] - https://wiki.ubuntu.com/UbuntuDevelopment/PatchTaggingGuidelines
[2] - https://lists.ubuntu.com/archives/ubuntu-devel-announce/2009-November/000638.html
[3] - http://dep.debian.net/deps/dep3/

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted transmission into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in transmission (Ubuntu Karmic):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Ioannis Vranos (cppdeveloper) wrote : Re: [Bug 457123] Re: Transmission doesn't prevent suspend when torrent is active

On Fri, 2009-12-18 at 11:13 +0000, Martin Pitt wrote:
> Accepted transmission into karmic-proposed, the package will build now
> and be available in a few hours. Please test and give feedback here.

Which version of transmission?

Best regards,

--
Ioannis Vranos

C95 / C++03 Software Developer

http://www.cpp-software.net

Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :

version 1.75-0ubuntu2.1 from karmic-proposed

description: updated
Revision history for this message
Ioannis Vranos (cppdeveloper) wrote :

On Fri, 2009-12-18 at 23:06 +0000, Krzysztof Klimonda wrote:
> version 1.75-0ubuntu2.1 from karmic-proposed

What about the latest bug-fix version 1.76? I have installed it from
source code.

--
Ioannis Vranos

C95 / C++03 Software Developer

http://www.cpp-software.net

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

On Sat, 2009-12-19 at 00:05 +0000, Ioannis Vranos wrote:
> On Fri, 2009-12-18 at 23:06 +0000, Krzysztof Klimonda wrote:
> > version 1.75-0ubuntu2.1 from karmic-proposed
>
>
> What about the latest bug-fix version 1.76? I have installed it from
> source code.
>
>
>
>
> --
> Ioannis Vranos
>
> C95 / C++03 Software Developer
>
> http://www.cpp-software.net
>

We already have the most important bug fixes from 1.76 backported to our
current 1.75 version, so updating to 1.76 wouldn't really provide any
benefit (this bug isn't even fixed in 1.76 anyway). Please test the
version uploaded to karmic-proposed using the test-case provided.

Regards
Chris

Revision history for this message
Sam Townsend (stownsend42) wrote :
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

The karmic-proposed version has been superseded by 1.75-0ubuntu2.2 in http://www.ubuntu.com/usn/USN-885-1.

Martin Pitt (pitti)
Changed in transmission (Ubuntu Karmic):
status: Fix Committed → In Progress
tags: removed: verification-needed
Revision history for this message
Ihar Hrachyshka (ihar-hrachyshka) wrote :

I use Ubuntu 10.10 and I still have this problem: both gnome-session-save and lid close results in laptop suspend even if a torrent is active.

Revision history for this message
Ihar Hrachyshka (ihar-hrachyshka) wrote :

This bug is shown again on Ubuntu 10.10. Here is the upstream bug with fix: https://trac.transmissionbt.com/ticket/3639

Changed in transmission (Ubuntu Karmic):
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.