Note that there are some explanatory texts on larger screens.

plurals
  1. POEjecting USB devices on linux
    primarykey
    data
    text
    <p>I'm using Udisks via dbus in python to unmount a usb device (in this case a Kindle), but I'd like to send the eject signal to it, as this kicks the Kindle back from USB mode into its usual interface.</p> <p>Udisks won't let me DriveEject, as it's not an actual drive, and I gather this is a feature. The error given is:</p> <pre><code>dbus.exceptions.DBusException: org.freedesktop.UDisks.Error.Failed: Device is not a drive </code></pre> <p>The Udisks <a href="http://hal.freedesktop.org/docs/udisks/udisks.7.html" rel="nofollow">documentation</a> mentions the ejectable property: </p> <blockquote> <p>ID_DRIVE_EJECTABLE</p> <p>Whether the media in the drive is physically ejectable. Only set this to 1 (or 0) if the drive truly uses (or doesn't) ejectable media. In particular, it is not necessary to set this for e.g. iPod or Kindle devices where it is necessary to send a command via eject(1) since the desktop user session will offer this option for removable devices regardless of whether they are ejectable. If this property is not set, a heuristic will be used to determine if the media is ejectable (drives using optical, Zip or Jaz media are considered ejectable).</p> </blockquote> <p>but doesn't explain how to do this from the desktop user session.</p> <p>(Nautilus lets me eject just fine from the desktop shell. The 'eject' shell command will unmount but won't send the eject signal to the device without sudo)</p> <p>Is there any legitimate way to do this with Udisks, and if not, how does nautlius go about doing it?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload