[Thunar-dev] eject usb-harddrive

2008-04-29 Thread Simon Steinbeiß
Hi everyone,

I would like to implement the workaround that Kirill Belokurov wrote for KDE 
for this bug
(https://bugs.launchpad.net/ubuntu/+bug/117713) for thunar. Since this bug 
applies to
only a very limited range of harddrives (I guess it's only the WD Passport 
series) no one
has really cared for a bugfix (yet).

Anyways, I think that it could be sufficient as a workaround to:
- either have a customised action in thunar only be applied to this specific 
drive and
spinning it down
- or trying to hack whatever function is used by thunar to eject media like
usb-harddrives so that it would not just unmount but also spindown the drive.

If anyone here has a suggestion which of the two options is way to go, that 
would be
great. Also I'm not sure whether I could implement either of the two options 
without your
help.

Thanks for taking notice,
Simon
___
Thunar-dev mailing list
Thunar-dev@xfce.org
http://foo-projects.org/mailman/listinfo/thunar-dev


Re: [Thunar-dev] eject usb-harddrive

2008-04-29 Thread Tino Keitel
On Tue, Apr 29, 2008 at 15:33:11 +0200, Simon Steinbeiß wrote:

[...]

 Anyways, I think that it could be sufficient as a workaround to:
 - either have a customised action in thunar only be applied to this specific 
 drive and
 spinning it down
 - or trying to hack whatever function is used by thunar to eject media like
 usb-harddrives so that it would not just unmount but also spindown the drive.

Forgot to ask one thing: do you have an eject button for your drive,
or only unmount? The Xfce 4.4.2 release was somewhat buggy regarding
the detection of removable media and providing the eject funktion in
the GUI. If you only see unmount in the context menu of the drive,
you could try exo-eject in the command line to see if that works for
you.

Regards,
Tino

___
Thunar-dev mailing list
Thunar-dev@xfce.org
http://foo-projects.org/mailman/listinfo/thunar-dev


Re: [Thunar-dev] eject usb-harddrive

2008-04-29 Thread Tino Keitel
On Tue, Apr 29, 2008 at 16:30:10 +0200, Simon Steinbeiß wrote:

[...]

 As mentioned above, I do see the eject button. Anyways, I tried exo-eject 
 to see
 whether this would give me a more comprehensive error message, well here it 
 is (the
 command I ran was exo-eject
 -h SAME_AS_BELOW -e):
 Failed to eject
 /org/freedesktop/Hal/devices/storage_serial_WD_1200BEVExternal_575845333037343330353232_0_0.
 No property info.interfaces on device with
 id 
 /org/freedesktop/Hal/devices/storage_serial_WD_1200BEVExternal_575845333037343330353232_0_0.

Could you post the output of lshal while the drive is attached and
mounted?

Regards,
Tino
___
Thunar-dev mailing list
Thunar-dev@xfce.org
http://foo-projects.org/mailman/listinfo/thunar-dev


Re: [Thunar-dev] eject usb-harddrive

2008-04-29 Thread Simon Steinbeiß
 Could you post the output of lshal while the drive is attached and
 mounted?

here you go: http://pastebin.org/32767
(I tried to highlight the relevant lines)

greetings,
simon
___
Thunar-dev mailing list
Thunar-dev@xfce.org
http://foo-projects.org/mailman/listinfo/thunar-dev


Re: [Thunar-dev] eject usb-harddrive

2008-04-29 Thread Simon Steinbeiß
On Tue, 29 Apr 2008 17:45:40 +0200
Tino Keitel [EMAIL PROTECTED] wrote:

 What about exo-eject /dev/wdpassport ?

tried that before, gives me:
exo-eject: Must specify HAL device UDI or device file.

greetings,
simon
___
Thunar-dev mailing list
Thunar-dev@xfce.org
http://foo-projects.org/mailman/listinfo/thunar-dev


Re: [Thunar-dev] eject usb-harddrive

2008-04-29 Thread Yves-Alexis Perez
On Tue, Apr 29, 2008 at 03:51:07PM +, Simon Steinbeiß wrote:
 On Tue, 29 Apr 2008 17:45:40 +0200
 Tino Keitel [EMAIL PROTECTED] wrote:
 
  What about exo-eject /dev/wdpassport ?
 
 tried that before, gives me:
 exo-eject: Must specify HAL device UDI or device file.

exo-eject -d /dev/wdpassport
-- 
Yves-Alexis
___
Thunar-dev mailing list
Thunar-dev@xfce.org
http://foo-projects.org/mailman/listinfo/thunar-dev


Re: [Thunar-dev] eject usb-harddrive

2008-04-29 Thread Simon Steinbeiß
On Tue, 29 Apr 2008 18:07:59 +0200
Yves-Alexis Perez [EMAIL PROTECTED] wrote:

 On Tue, Apr 29, 2008 at 03:51:07PM +, Simon Steinbeiß wrote:
  On Tue, 29 Apr 2008 17:45:40 +0200
  Tino Keitel [EMAIL PROTECTED] wrote:
  
   What about exo-eject /dev/wdpassport ?
  
  tried that before, gives me:
  exo-eject: Must specify HAL device UDI or device file.
 
 exo-eject -d /dev/wdpassport

Thanks Yves-Alexis; unfortunately I get the same result as with using the HAL 
device
UDI...

greetings,
simon
___
Thunar-dev mailing list
Thunar-dev@xfce.org
http://foo-projects.org/mailman/listinfo/thunar-dev


Re: [Thunar-dev] eject usb-harddrive

2008-04-29 Thread Brian J. Tarricone
Simon Steinbeiß wrote:
 Could you post the output of lshal while the drive is attached and
 mounted?
 
 here you go: http://pastebin.org/32767
 (I tried to highlight the relevant lines)

Your device has storage.requires_eject=false -- so exo-eject won't do 
anything but unmount all volumes.

Give 'eject -v /dev/whatever' a try *as root*.  Often the SCSI eject 
command will work on drives like that.  See if it fixes your problem. 
If it does, you might try adding a HAL .fdi file to your system that 
will set requires_eject properly for your drive.

-brian

___
Thunar-dev mailing list
Thunar-dev@xfce.org
http://foo-projects.org/mailman/listinfo/thunar-dev


Re: [Thunar-dev] eject usb-harddrive

2008-04-29 Thread Tino Keitel
On Tue, Apr 29, 2008 at 20:22:18 +0200, Simon Steinbeiß wrote:

[...]

 Tried sudo eject -v /dev/wdpassport with the output that the eject 
 succeeded. (see the
 full output here: http://pastebin.org/32834)
 Anyhow, when I unplugged the usb-cable (that is also powering the hdd) it 
 made this awful
 sound described in the bugreport mentioned earlier.
 So it seems eject simply doesn't spin down the harddrive. Should it?

From theory, if you use eject -s, eject sends a START STOP UNIT
command, which should spin it down.

I'll try to check it myself tomorrow.

Btw., I attached an example fdi file for my card reader, to add the
requires_eject property. Maybe HAL does the right thing if you adopt it
to your hard disk and copy it to /etc/hal/fdi/policy (check with lshal
if it is really set) and then use exo-eject.

Regards,
Tino
___
Thunar-dev mailing list
Thunar-dev@xfce.org
http://foo-projects.org/mailman/listinfo/thunar-dev