<?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>393632</bug_id>
          
          <creation_ts>2018-04-29 08:24:31 +0000</creation_ts>
          <short_desc>USB unmount should poweroff device too</short_desc>
          <delta_ts>2018-04-29 12:46:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Disks &amp; Devices widget</component>
          <version>master</version>
          <rep_platform>Manjaro</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>1.0</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>fademind</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>fademind</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>1748783</commentid>
    <comment_count>0</comment_count>
    <who name="">fademind</who>
    <bug_when>2018-04-29 08:24:31 +0000</bug_when>
    <thetext>Issue:
After unmount external hdd via applet, device is not poweroff automatically. 

Workaround:
Using `udisksctl power-off -b /dev/sdb` and so on. For safety poweroff external hdd after unmount.

Please consider allow poweroff external HDD after unmount them via applet.

For now I using this code:

#!/usr/bin/env bash

if [ &quot;$(id -u)&quot; = &quot;0&quot; ]; then
   echo &quot;This script must be run as normal user&quot; 1&gt;&amp;2
   exit 1
fi

if [ -e /dev/sdb ] ; then
    udisksctl unmount --block-device /dev/sdb1
    udisksctl power-off -b /dev/sdb
fi

if [ -e /dev/sdc ] ; then
    udisksctl unmount --block-device /dev/sdc1
    udisksctl power-off -b /dev/sdc
fi

if [ -e /dev/sdd ] ; then
    udisksctl unmount --block-device /dev/sdd1
    udisksctl power-off -b /dev/sdd
fi

but should be able to power off device after unmount.

Regards</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1748838</commentid>
    <comment_count>1</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2018-04-29 12:46:20 +0000</bug_when>
    <thetext>

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

    </bug>

</bugzilla>