<?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>324981</bug_id>
          
          <creation_ts>2013-09-17 05:37:25 +0000</creation_ts>
          <short_desc>safely remove device option doesn&apos;t power off usb hdd</short_desc>
          <delta_ts>2014-06-25 18:13:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>solid</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>270808</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Harrison">harrisonf100</reporter>
          <assigned_to name="Alex Fiestas">afiestas</assigned_to>
          <cc>alivema4ever</cc>
    
    <cc>frank78ac</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1397654</commentid>
    <comment_count>0</comment_count>
    <who name="Harrison">harrisonf100</who>
    <bug_when>2013-09-17 05:37:25 +0000</bug_when>
    <thetext>Since version 4.10, when kde started supporting udisks2 the option to safely remove a usb device doesnt work properly:
it should umount and eject/shutdown the device, it works fine on a device that supports eject (like a card reader), but on a usb hdd that only supports power off, it just unmounts and thats it (the disks remains spinning, the led remains on, and i can remount if i want)


Reproducible: Always

Steps to Reproduce:
1. Plug a usb hdd and mount it
2. Use the option on dolphin or device notifier
3. A device with &quot;CanEject: true&quot; will behave properly, otherwise the device is umounted but not removed
Actual Results:  
device still on

Expected Results:  
device powered off

the safely remove option on the device notifier has the same behavior, so the problem may be in kdelibs and not dolphin (sorry about that)
i did &quot;udisksctl dump&quot; and it shows &quot;CanPowerOff:  true&quot; so i dont think the problem is with udisks itself (i will do more tests and post the results here later)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1397672</commentid>
    <comment_count>1</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2013-09-17 08:23:03 +0000</bug_when>
    <thetext>Thanks for the bug report!

(In reply to comment #0)
&gt; the problem may be in kdelibs and not dolphin

You&apos;re probably right - I&apos;ll reassign to Solid, the part of kdelibs that handles this kind of interactions with devices for us.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1451597</commentid>
    <comment_count>2</comment_count>
    <who name="Alivema4ever">alivema4ever</who>
    <bug_when>2014-05-28 07:40:43 +0000</bug_when>
    <thetext>I also found this bug is so important to fix.
* What is expected to happen?
External HDD spin itself down and turned off when ejected via device notifier applet.

* What is actually happened?
External HDD did not spin down and did not turn off.

* Steps to reproduce problem:
Attach an external USB harddisk.
Click device notifier applet (the USB icon) on the KDE panel.
Select the external HDD and click eject button. It says &quot;click to safely remove the drive&quot; on mouse hover.

* Suggested temporary workaround to safely remove USB HDD
Unmount all mounted partition on the external HDD via udisks (sudo udisks --unmount /dev/sdb1)
Instruct udisks to detach the external HDD (sudo udisks --detach /dev/sdb)

I hope kdelibs will be better integrated with udisks for mount, unmount, and detach operation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1457797</commentid>
    <comment_count>3</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-06-25 18:13:26 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 270808 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>