<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>362542</bug_id>
          
          <creation_ts>2016-05-01 12:11:41 +0000</creation_ts>
          <short_desc>Inhibit suspend when a file transfer is in progress</short_desc>
          <delta_ts>2025-05-14 15:43:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-kio</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=504220</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>usability</keywords>
          <priority>HI</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>adr.fantini</reporter>
          <assigned_to name="KIO Bugs">kio-bugs-null</assigned_to>
          <cc>4wy78uwh</cc>
    
    <cc>ahmed.com</cc>
    
    <cc>bugseforuns</cc>
    
    <cc>hoobeboo</cc>
    
    <cc>ilikefoss</cc>
    
    <cc>kde</cc>
    
    <cc>kdebugs</cc>
    
    <cc>kdelibs-bugs-null</cc>
    
    <cc>nate</cc>
    
    <cc>postix</cc>
    
    <cc>stereomato</cc>
          
          <cf_commitlink>https://invent.kde.org/frameworks/kio/-/commit/60191c0473a96c41279519845030efa12fdd0bb4</cf_commitlink>
          <cf_versionfixedin>6.15</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1591949</commentid>
    <comment_count>0</comment_count>
    <who name="">adr.fantini</who>
    <bug_when>2016-05-01 12:11:41 +0000</bug_when>
    <thetext>Powerdevil should inhibit any suspend / hibernate action when a file transfer (at least a Dolphin file transfer) is in progress.

Reproducible: Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1591953</commentid>
    <comment_count>1</comment_count>
    <who name="Kai Uwe Broulik">kde</who>
    <bug_when>2016-05-01 12:35:16 +0000</bug_when>
    <thetext>It&apos;s the application&apos;s job (or in this case KIO) to request that from PowerDevil, re-assigning to KIO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1592083</commentid>
    <comment_count>2</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2016-05-02 06:57:24 +0000</bug_when>
    <thetext>But how? KIO can&apos;t depend on powerdevil (which is in workspace).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1592085</commentid>
    <comment_count>3</comment_count>
    <who name="Kai Uwe Broulik">kde</who>
    <bug_when>2016-05-02 07:02:51 +0000</bug_when>
    <thetext>It just needs to send a DBus message to PowerDevil (and as a fallback to the FDO interface). Also, if... this [1] lands there&apos;ll be a Tier 1(?) solution for that.

[1] https://git.reviewboard.kde.org/r/126650/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1841233</commentid>
    <comment_count>4</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2019-03-01 20:10:11 +0000</bug_when>
    <thetext>The problem persists. Computer sleeps while dolphin copies data to another internal partition. When computer resumes, copy process continues from the point where it stopped.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.15.2
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2275739</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-12-21 21:30:30 +0000</bug_when>
    <thetext>*** Bug 478785 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2283197</commentid>
    <comment_count>6</comment_count>
    <who name="Prajna Sariputra">putr4.s</who>
    <bug_when>2024-01-25 16:33:46 +0000</bug_when>
    <thetext>*** Bug 466704 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2417193</commentid>
    <comment_count>7</comment_count>
    <who name="Luis">stereomato</who>
    <bug_when>2025-04-19 18:33:09 +0000</bug_when>
    <thetext>I just went through this...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2417292</commentid>
    <comment_count>8</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-04-20 10:51:59 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1868</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2420992</commentid>
    <comment_count>9</comment_count>
    <who name="Kai Uwe Broulik">kde</who>
    <bug_when>2025-05-04 10:17:10 +0000</bug_when>
    <thetext>Git commit 60191c0473a96c41279519845030efa12fdd0bb4 by Kai Uwe Broulik.
Committed on 04/05/2025 at 09:29.
Pushed by broulik into branch &apos;master&apos;.

CopyJob: Inhibit suspend during copy operation

Avoids the system going to sleep during a lengthy copy operation.

M  +21   -0    src/core/copyjob.cpp

https://invent.kde.org/frameworks/kio/-/commit/60191c0473a96c41279519845030efa12fdd0bb4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2422788</commentid>
    <comment_count>10</comment_count>
    <who name="John">ilikefoss</who>
    <bug_when>2025-05-10 14:41:17 +0000</bug_when>
    <thetext>Why is this fixed only for the copy operation?
Shouldn&apos;t be fixed also for the move operation?
Which is actually even more dangerous than the copy operation!
As with a broken copy you can just delete all the already copied folders and files in the destination ans start over the copy.
But with an interrupted move operation, it&apos;s hard to know what has already been moved and what happens when you try to move again the remaining items.

Another thing, can&apos;t this also be extended to inhibit the suspend for the archive / unarchive operations too?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2422789</commentid>
    <comment_count>11</comment_count>
    <who name="postix">postix</who>
    <bug_when>2025-05-10 14:44:17 +0000</bug_when>
    <thetext>John, that&apos;s just the terminology. If you look at the commit: 
https://invent.kde.org/frameworks/kio/-/commit/60191c0473a96c41279519845030efa12fdd0bb4#a255943687657ca8eb60300f623327855b34bd67_739_752
it covers also move transfers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2422790</commentid>
    <comment_count>12</comment_count>
    <who name="Mr BEEDELL Roke Julian Lockhart">4wy78uwh</who>
    <bug_when>2025-05-10 14:52:51 +0000</bug_when>
    <thetext>(In reply to postix from comment #11)

&gt; it covers also move transfers.

As someone who can&apos;t necessarily parse CPP well, does it also include (un)archival, like John mentions?

&gt; can&apos;t this also be extended to inhibit the suspend for the archive / unarchive operations too?

I ask because I&apos;ve NVMe drives, so intra and inter-drive transferral never takes much time, but my CPU can&apos;t unarchive &gt; 3 GiB Tape Archive files particularly quickly. That&apos;s when I&apos;d use this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2423896</commentid>
    <comment_count>13</comment_count>
    <who name="postix">postix</who>
    <bug_when>2025-05-14 15:21:36 +0000</bug_when>
    <thetext>&gt; As someone who can&apos;t necessarily parse CPP well, does it also include (un)archival, like John mentions?

Please see https://blog.broulik.de/2025/05/kio-goodies/#comment-214149
&gt; Unfortunately it does not. The infrastructure (and corresponding job API) is private to KIO right now.
&gt; That’s a good point, though, and might justify making this feature available to all of KJob.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>