Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565534 - Shutdown usb component
Summary: Shutdown usb component
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-11 19:15 UTC by Lagu
Modified: 2015-11-15 16:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge,21.77 KB, text/plain)
2015-11-11 19:16 UTC, Lagu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lagu 2015-11-11 19:15:53 UTC
Hi, sorry for be non concret but i now the problem but i don't know where is.

Basically is the option to shutdown the external components, for example a hdd, because if we shutdown it, then the system inmediatly recognizes it and its up again D:

may be is for the way i shutdown it, i search but i can't found to much ways to do it, well an example with a hdd:

1) connect an external hdd
2) open disk utility of gnome (i can't found other to literally shutdown it)
3) select the hdd, unmount the partitions and shutdown the hdd (are a icon there)
4) magically the hdd is recognized again (time of step 3 to 4, 0.0000000001 segs)

i try with others dispositives and i get the same result...

Note: shutdown different of sleep or standby
Comment 1 Lagu 2015-11-11 19:16:59 UTC
Created attachment 416706 [details]
emerge --info
Comment 2 Tomáš Mózes 2015-11-11 19:56:47 UTC
Hello Lagu, seems like this is not a Gentoo specific bug so I would recommend asking on the forums, ok?
Comment 3 Lagu 2015-11-15 16:55:58 UTC
Hi again, well searching and asking in forums i found the same problem, bit now its more specific.

i now with a example of hdd, i have connected it and is mounted on /dev/sdc

so to shutdown it i run:

udisksctl power-off --block-device /dev/sdc

but then its reconnected again, logs:

nov 15 13:25:57 K2rI sudo[19124]: pipe : TTY=pts/10 ; PWD=/var/lib/layman/gnome/gnome-base ; USER=root ; COMMAND=/usr/bin/udisksctl power-off --block-device /dev/sdc
nov 15 13:25:57 K2rI sudo[19124]: pam_unix(sudo:session): session opened for user root by pipe(uid=0)
nov 15 13:25:57 K2rI udisksd[2221]: Successfully sent SCSI command SYNCHRONIZE CACHE to /dev/sdc
nov 15 13:25:57 K2rI udisksd[2221]: Successfully sent SCSI command START STOP UNIT to /dev/sdc
nov 15 13:25:57 K2rI kernel: sd 14:0:0:0: [sdc] Synchronizing SCSI cache
nov 15 13:25:57 K2rI udisksd[2221]: Powered off /dev/sdc - successfully wrote to sysfs path /sys/devices/pci0000:00/0000:00:14.0/usb4/4-1/remove
nov 15 13:25:57 K2rI systemd-udevd[1708]: error opening USB device 'descriptors' file
nov 15 13:25:57 K2rI kernel: usb 4-1: USB disconnect, device number 11
nov 15 13:25:57 K2rI sudo[19124]: pam_unix(sudo:session): session closed for user root
nov 15 13:25:57 K2rI kernel: usb 4-1: new SuperSpeed USB device number 12 using xhci_hcd
nov 15 13:25:57 K2rI kernel: usb 4-1: New USB device found, idVendor=174c, idProduct=1053
nov 15 13:25:57 K2rI kernel: usb 4-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
nov 15 13:25:57 K2rI kernel: usb 4-1: Product: USB3.0 Device
nov 15 13:25:57 K2rI kernel: usb 4-1: Manufacturer: Generic
nov 15 13:25:57 K2rI kernel: usb 4-1: SerialNumber: AC0000000001
nov 15 13:25:57 K2rI kernel: usb-storage 4-1:1.0: USB Mass Storage device detected
nov 15 13:25:57 K2rI kernel: scsi host15: usb-storage 4-1:1.0
nov 15 13:25:57 K2rI mtp-probe[19151]: checking bus 4, device 12: "/sys/devices/pci0000:00/0000:00:14.0/usb4/4-1"
nov 15 13:25:57 K2rI mtp-probe[19151]: bus: 4, device: 12 was not an MTP device
nov 15 13:25:58 K2rI kernel: scsi 15:0:0:0: Direct-Access     ASMT     2105             0    PQ: 0 ANSI: 6
nov 15 13:25:58 K2rI kernel: sd 15:0:0:0: Attached scsi generic sg3 type 0
nov 15 13:25:58 K2rI kernel: sd 15:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
nov 15 13:25:58 K2rI kernel: sd 15:0:0:0: [sdc] Write Protect is off
nov 15 13:25:58 K2rI kernel: sd 15:0:0:0: [sdc] Mode Sense: 43 00 00 00
nov 15 13:25:58 K2rI kernel: sd 15:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
nov 15 13:25:58 K2rI kernel:  sdc: sdc1 sdc2
nov 15 13:25:58 K2rI kernel: sd 15:0:0:0: [sdc] Attached SCSI disk
nov 15 13:25:59 K2rI kernel: EXT4-fs (sdc2): mounted filesystem with ordered data mode. Opts: (null)
nov 15 13:25:59 K2rI udisksd[2221]: Mounted /dev/sdc2 at /run/media/pipe/9de4b2f9-1ec9-459c-883e-d479978a52fd on behalf of uid 1000
nov 15 13:25:59 K2rI org.gtk.Private.UDisks2VolumeMonitor[2073]: index_parse.c:191: indx_parse(): error opening /run/media/pipe/9de4b2f9-1ec9-459c-883e-d479978a52fd/BDM
nov 15 13:25:59 K2rI org.gtk.Private.UDisks2VolumeMonitor[2073]: index_parse.c:191: indx_parse(): error opening /run/media/pipe/9de4b2f9-1ec9-459c-883e-d479978a52fd/BDM
nov 15 13:25:59 K2rI /usr/libexec/gdm-x-session[2056]: Activating service name='org.gnome.Shell.HotplugSniffer'
nov 15 13:25:59 K2rI /usr/libexec/gdm-x-session[2056]: Successfully activated service 'org.gnome.Shell.HotplugSniffer'
nov 15 13:26:00 K2rI ntfs-3g[19202]: Version 2014.2.15 external FUSE 29
nov 15 13:26:00 K2rI ntfs-3g[19202]: Mounted /dev/sdc1 (Read-Write, label "", NTFS 3.1)
nov 15 13:26:00 K2rI ntfs-3g[19202]: Cmdline options: rw,nodev,nosuid,uhelper=udisks2
nov 15 13:26:00 K2rI ntfs-3g[19202]: Mount options: rw,nodev,nosuid,uhelper=udisks2,allow_other,nonempty,relatime,fsname=/dev/sdc1,blkdev,blksize=4096
nov 15 13:26:00 K2rI ntfs-3g[19202]: Ownership and permissions disabled, configuration type 7
nov 15 13:26:00 K2rI udisksd[2221]: Mounted /dev/sdc1 at /run/media/pipe/42388D6A388D5E33 on behalf of uid 1000


i found some forums with the same problem:
https://bbs.archlinux.org/viewtopic.php?id=179262