Summary: | USB drive is still powered on after disconnecting it in Device Manager | ||
---|---|---|---|
Product: | [Unmaintained] solid | Reporter: | Lexxa <stumper> |
Component: | libsolid-udisks | Assignee: | Lukáš Tinkl <lukas> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | lamarque, tamas.sarga2, unhammer+dill |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Lexxa
2011-03-01 17:49:13 UTC
Looks like "eject" is not called anymore on such devices when teardown() is used on them. UDisks specific though. Can you please post the following (with the appropriate device): $ udisks --dump $ solid-hardware details <udi> lexxa@lexxa-P35-DS3:~$ udisks --dump ======================================================================== Showing information for /org/freedesktop/UDisks/devices/fd0 native-path: /sys/devices/platform/floppy.0/block/fd0 device: 2:0 device-file: /dev/fd0 presentation: /dev/fd0 detected at: Вск 27 Фев 2011 15:20:53 system internal: 0 removable: 1 has media: 0 detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths: mounted by uid: 0 presentation hide: 0 presentation nopolicy: 1 presentation name: presentation icon: size: 0 block size: 0 job underway: no usage: type: version: uuid: label: drive: vendor: Floppy Drive model: revision: serial: WWN: detachable: 0 can spindown: 0 rotational media: Yes, unknown rate write-cache: unknown ejectable: 0 adapter: Unknown ports: similar devices: media: compat: floppy interface: platform if speed: (unknown) ATA SMART: not available ======================================================================== Showing information for /org/freedesktop/UDisks/devices/sda native-path: /sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda device: 8:0 device-file: /dev/sda presentation: /dev/sda by-id: /dev/disk/by-id/ata-WDC_WD20EARS-00S8B1_WD-WCAVY2417590 by-id: /dev/disk/by-id/scsi-SATA_WDC_WD20EARS-00_WD-WCAVY2417590 by-id: /dev/disk/by-id/wwn-0x50014ee2595b0bbf by-path: /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 detected at: Вск 27 Фев 2011 15:20:53 system internal: 1 removable: 0 has media: 1 (detected at Вск 27 Фев 2011 15:20:53) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths: mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name: presentation icon: size: 2000398934016 block size: 512 job underway: no usage: type: version: uuid: label: partition table: scheme: mbr count: 6 drive: vendor: ATA model: WDC WD20EARS-00S8B1 revision: 80.00A08 serial: WD-WCAVY2417590 WWN: 50014ee2595b0bbf detachable: 0 can spindown: 1 rotational media: Yes, unknown rate write-cache: enabled ejectable: 0 adapter: /org/freedesktop/UDisks/adapters/0000_3a00_3a1f_2e2 ports: /org/freedesktop/UDisks/adapters/0000_3a00_3a1f_2e2/host2 similar devices: media: compat: interface: ata if speed: (unknown) ATA SMART: Updated at Срд 02 Мар 2011 16:50:10 overall assessment: Good =============================================================================== Attribute Current|Worst|Threshold Status Value Type Updates =============================================================================== raw-read-error-rate 200|200| 51 good 0 Pre-fail Online spin-up-time 159|139| 21 good 9,1 secs Pre-fail Online start-stop-count 100|100| 0 n/a 76 Old-age Online reallocated-sector-count 200|200|140 good 0 sectors Pre-fail Online seek-error-rate 200|200| 0 n/a 0 Old-age Online power-on-hours 91| 91| 0 n/a 280,7 days Old-age Online spin-retry-count 100|253| 0 n/a 0 Old-age Online calibration-retry-count 100|253| 0 n/a 0 Old-age Online power-cycle-count 100|100| 0 n/a 73 Old-age Online power-off-retract-count 200|200| 0 n/a 57 Old-age Online load-cycle-count 179|179| 0 n/a 64554 Old-age Online temperature-celsius-2 111|106| 0 n/a 41C / 106F Old-age Online reallocated-event-count 200|200| 0 n/a 0 Old-age Online current-pending-sector 200|200| 0 n/a 0 sectors Old-age Online offline-uncorrectable 200|200| 0 n/a 0 sectors Old-age Offline udma-crc-error-count 200|200| 0 n/a 0 Old-age Online multi-zone-error-rate 200|200| 0 n/a 0 Old-age Offline ======================================================================== Showing information for /org/freedesktop/UDisks/devices/sda1 native-path: /sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda/sda1 device: 8:1 device-file: /dev/sda1 presentation: /dev/sda1 by-id: /dev/disk/by-id/ata-WDC_WD20EARS-00S8B1_WD-WCAVY2417590-part1 by-id: /dev/disk/by-id/scsi-SATA_WDC_WD20EARS-00_WD-WCAVY2417590-part1 by-id: /dev/disk/by-id/wwn-0x50014ee2595b0bbf-part1 by-id: /dev/disk/by-uuid/1080572080570C1A by-path: /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part1 detected at: Вск 27 Фев 2011 15:20:53 system internal: 1 removable: 0 has media: 1 (detected at Вск 27 Фев 2011 15:20:53) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 1 mount paths: /media/Windows mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name: presentation icon: size: 104864062464 block size: 512 job underway: no usage: filesystem type: ntfs version: uuid: 1080572080570C1A label: windows partition: part of: /org/freedesktop/UDisks/devices/sda scheme: mbr number: 1 type: 0x07 flags: boot offset: 32256 alignment offset: 0 size: 104864062464 label: uuid: ======================================================================== Showing information for /org/freedesktop/UDisks/devices/sda2 native-path: /sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda/sda2 device: 8:2 device-file: /dev/sda2 presentation: /dev/sda2 by-id: /dev/disk/by-id/ata-WDC_WD20EARS-00S8B1_WD-WCAVY2417590-part2 by-id: /dev/disk/by-id/scsi-SATA_WDC_WD20EARS-00_WD-WCAVY2417590-part2 by-id: /dev/disk/by-id/wwn-0x50014ee2595b0bbf-part2 by-path: /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part2 detected at: Вск 27 Фев 2011 15:20:53 system internal: 1 removable: 0 has media: 1 (detected at Вск 27 Фев 2011 15:20:53) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths: mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name: presentation icon: size: 1024 block size: 512 job underway: no usage: type: version: uuid: label: partition: part of: /org/freedesktop/UDisks/devices/sda scheme: mbr number: 2 type: 0x05 flags: offset: 104864125952 alignment offset: 0 size: 314575802368 label: uuid: ======================================================================== Showing information for /org/freedesktop/UDisks/devices/sda3 native-path: /sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda/sda3 device: 8:3 device-file: /dev/sda3 presentation: /dev/sda3 by-id: /dev/disk/by-id/ata-WDC_WD20EARS-00S8B1_WD-WCAVY2417590-part3 by-id: /dev/disk/by-id/scsi-SATA_WDC_WD20EARS-00_WD-WCAVY2417590-part3 by-id: /dev/disk/by-id/wwn-0x50014ee2595b0bbf-part3 by-id: /dev/disk/by-uuid/7C2365321A9923CE by-path: /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part3 detected at: Вск 27 Фев 2011 15:20:53 system internal: 1 removable: 0 has media: 1 (detected at Вск 27 Фев 2011 15:20:53) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 1 mount paths: /media/Data mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name: presentation icon: size: 1580956392960 block size: 512 job underway: no usage: filesystem type: ntfs version: uuid: 7C2365321A9923CE label: Data partition: part of: /org/freedesktop/UDisks/devices/sda scheme: mbr number: 3 type: 0x07 flags: offset: 419439928320 alignment offset: 0 size: 1580956392960 label: uuid: ======================================================================== Showing information for /org/freedesktop/UDisks/devices/sda5 native-path: /sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda/sda5 device: 8:5 device-file: /dev/sda5 presentation: /dev/sda5 by-id: /dev/disk/by-id/ata-WDC_WD20EARS-00S8B1_WD-WCAVY2417590-part5 by-id: /dev/disk/by-id/scsi-SATA_WDC_WD20EARS-00_WD-WCAVY2417590-part5 by-id: /dev/disk/by-id/wwn-0x50014ee2595b0bbf-part5 by-id: /dev/disk/by-uuid/7740bace-9dc6-4452-a2de-11ef5f1dd16f by-path: /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part5 detected at: Вск 27 Фев 2011 15:20:53 system internal: 1 removable: 0 has media: 1 (detected at Вск 27 Фев 2011 15:20:53) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 1 mount paths: / mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name: presentation icon: size: 10487199744 block size: 512 job underway: no usage: filesystem type: ext4 version: 1.0 uuid: 7740bace-9dc6-4452-a2de-11ef5f1dd16f label: partition: part of: /org/freedesktop/UDisks/devices/sda scheme: mbr number: 5 type: 0x83 flags: offset: 104864126976 alignment offset: 0 size: 10487199744 label: uuid: ======================================================================== Showing information for /org/freedesktop/UDisks/devices/sda6 native-path: /sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda/sda6 device: 8:6 device-file: /dev/sda6 presentation: /dev/sda6 by-id: /dev/disk/by-id/ata-WDC_WD20EARS-00S8B1_WD-WCAVY2417590-part6 by-id: /dev/disk/by-id/scsi-SATA_WDC_WD20EARS-00_WD-WCAVY2417590-part6 by-id: /dev/disk/by-id/wwn-0x50014ee2595b0bbf-part6 by-id: /dev/disk/by-uuid/263f248a-a174-4f33-9321-9cc3839888f5 by-path: /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part6 detected at: Вск 27 Фев 2011 15:20:53 system internal: 1 removable: 0 has media: 1 (detected at Вск 27 Фев 2011 15:20:53) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths: mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name: presentation icon: size: 2623832064 block size: 512 job underway: no usage: other type: swap version: 2 uuid: 263f248a-a174-4f33-9321-9cc3839888f5 label: partition: part of: /org/freedesktop/UDisks/devices/sda scheme: mbr number: 6 type: 0x82 flags: offset: 115351358976 alignment offset: 0 size: 2623832064 label: uuid: ======================================================================== Showing information for /org/freedesktop/UDisks/devices/sda7 native-path: /sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda/sda7 device: 8:7 device-file: /dev/sda7 presentation: /dev/sda7 by-id: /dev/disk/by-id/ata-WDC_WD20EARS-00S8B1_WD-WCAVY2417590-part7 by-id: /dev/disk/by-id/scsi-SATA_WDC_WD20EARS-00_WD-WCAVY2417590-part7 by-id: /dev/disk/by-id/wwn-0x50014ee2595b0bbf-part7 by-id: /dev/disk/by-uuid/16609324-4ae1-41e3-abfe-1d3e46715cce by-path: /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part7 detected at: Вск 27 Фев 2011 15:20:53 system internal: 1 removable: 0 has media: 1 (detected at Вск 27 Фев 2011 15:20:53) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 1 mount paths: /home mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name: presentation icon: size: 301464705024 block size: 512 job underway: no usage: filesystem type: ext4 version: 1.0 uuid: 16609324-4ae1-41e3-abfe-1d3e46715cce label: partition: part of: /org/freedesktop/UDisks/devices/sda scheme: mbr number: 7 type: 0x83 flags: offset: 117975223296 alignment offset: 0 size: 301464705024 label: uuid: ======================================================================== Showing information for /org/freedesktop/UDisks/devices/sdb native-path: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host13/target13:0:0/13:0:0:0/block/sdb device: 8:16 device-file: /dev/sdb presentation: /dev/sdb by-id: /dev/disk/by-id/usb-Kingston_DataTraveler_120_001E4FB711A8C910956A0138-0:0 by-path: /dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0 detected at: Срд 02 Мар 2011 16:53:44 system internal: 0 removable: 1 has media: 1 (detected at Срд 02 Мар 2011 16:53:44) detects change: 1 detection by polling: 1 detection inhibitable: 1 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths: mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name: presentation icon: size: 8011087872 block size: 512 job underway: no usage: type: version: uuid: label: partition table: scheme: mbr count: 1 drive: vendor: Kingston model: DataTraveler 120 revision: 1.00 serial: 001E4FB711A8C910956A0138 WWN: detachable: 1 can spindown: 0 rotational media: Yes, unknown rate write-cache: unknown ejectable: 0 adapter: Unknown ports: similar devices: media: compat: interface: usb if speed: 480000000 bits/s ATA SMART: not available ======================================================================== Showing information for /org/freedesktop/UDisks/devices/sdb1 native-path: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host13/target13:0:0/13:0:0:0/block/sdb/sdb1 device: 8:17 device-file: /dev/sdb1 presentation: /dev/sdb1 by-id: /dev/disk/by-id/usb-Kingston_DataTraveler_120_001E4FB711A8C910956A0138-0:0-part1 by-id: /dev/disk/by-uuid/9C16-7207 by-path: /dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0-part1 detected at: Срд 02 Мар 2011 16:53:44 system internal: 0 removable: 0 has media: 1 (detected at Срд 02 Мар 2011 16:53:44) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 1 mount paths: /media/KINGSTON mounted by uid: 1000 presentation hide: 0 presentation nopolicy: 0 presentation name: presentation icon: size: 8010809856 block size: 512 job underway: no usage: filesystem type: vfat version: FAT32 uuid: 9C16-7207 label: KINGSTON partition: part of: /org/freedesktop/UDisks/devices/sdb scheme: mbr number: 1 type: 0x0b flags: offset: 32256 alignment offset: 0 size: 8010809856 label: uuid: ======================================================================== Showing information for /org/freedesktop/UDisks/devices/sr0 native-path: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.1/host0/target0:0:0/0:0:0:0/block/sr0 device: 11:0 device-file: /dev/sr0 presentation: /dev/sr0 by-path: /dev/disk/by-path/pci-0000:03:00.1-scsi-0:0:0:0 detected at: Вск 27 Фев 2011 15:20:53 system internal: 0 removable: 1 has media: 0 detects change: 1 detection by polling: 1 detection inhibitable: 1 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths: mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name: presentation icon: size: 0 block size: 0 job underway: no usage: type: version: uuid: label: drive: vendor: ASUS model: DRW-1814BL revision: 1.13 serial: WWN: detachable: 0 can spindown: 0 rotational media: Yes, unknown rate write-cache: unknown ejectable: 1 adapter: /org/freedesktop/UDisks/adapters/0000_3a03_3a00_2e1 ports: /org/freedesktop/UDisks/adapters/0000_3a03_3a00_2e1/host0 similar devices: media: compat: optical_cd optical_cd_r optical_cd_rw optical_dvd optical_dvd_plus_r optical_dvd_plus_r_dl optical_dvd_plus_rw optical_dvd_r optical_dvd_ram optical_dvd_rw optical_mrw optical_mrw_w interface: scsi if speed: (unknown) ATA SMART: not available ======================================================================== lexxa@lexxa-P35-DS3:~$ solid-hardware details sdb udi = 'sdb' parent = '' (string) vendor = '' (string) product = '' (string) description = '' (string) Do not know if this is what you want. I need "solid-hardware details /org/freedesktop/UDisks/devices/sdb1" udi = '/org/freedesktop/UDisks/devices/sdb1' parent = '/org/freedesktop/UDisks/devices/sdb' (string) vendor = 'Kingston' (string) product = 'KINGSTON' (string) description = 'KINGSTON' (string) Block.major = 8 (0x8) (int) Block.minor = 17 (0x11) (int) Block.device = '/dev/sdb1' (string) StorageAccess.accessible = true (bool) StorageAccess.filePath = '/media/KINGSTON' (string) StorageAccess.ignored = false (bool) StorageVolume.ignored = false (bool) StorageVolume.usage = 'FileSystem' (0x2) (enum) StorageVolume.fsType = 'vfat' (string) StorageVolume.label = 'KINGSTON' (string) StorageVolume.uuid = '9c16-7207' (string) StorageVolume.size = 8010809856 (0x1dd7b4200) (qulonglong) Ok, thx, I'm looking into it Git commit c12802a067c53d9e00f207afd26e578d19da975f by Lukas Tinkl. Committed on 03/03/2011 at 16:10. Pushed by lukas into branch 'KDE/4.6'. USB drive is still powered on after disconnecting it in Device Manager BUG: 267398 M +15 -4 solid/solid/backends/udisks/udisksstorageaccess.cpp http://commits.kde.org/kdelibs/c12802a067c53d9e00f207afd26e578d19da975f Git commit 585a6c240364bf25b7ac7f3f71320273c33a7b16 by Lukas Tinkl. Committed on 03/03/2011 at 16:10. Pushed by lukas into branch 'master'. USB drive is still powered on after disconnecting it in Device Manager BUG: 267398 M +15 -4 solid/solid/backends/udisks/udisksstorageaccess.cpp http://commits.kde.org/kdelibs/585a6c240364bf25b7ac7f3f71320273c33a7b16 *** Bug 268223 has been marked as a duplicate of this bug. *** It is still a problem in 4.6.3 from openSUSE 11.4 KDE stable. When could this fix be available? TIA. Is this fix supposed to cut device power when suspending to ram too? My bluetooth mouse still gets power from USB when I suspend to ram. |