Ticket #566 (new new feature)
USB mass storage mode should end when ejected
| Reported by: | hanno | Owned by: | lunohod |
|---|---|---|---|
| Priority: | normal | Milestone: | bluesky |
| Component: | usbwatcher | Version: | post-0.1 snapshot |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
When the N516 is mounted as a mass storage device, it will switch to a blocked mode, featuring a fullscreen USB logo. The N516 will leave this mode only when the user removes the USB cable.
Puzzling about this is that the device still stays in this mode even when it is unmounted, ejected and already safe to unplug the USB cable.
Therefore, the N516 should leave this mode and switch to "charge battery only" when both of the N516 storage devices (SD and internal) are unmounted and ejected by the desktop and the USB cable is safe to unplug.
See the iPod, it behaves as desired: Shows USB screen while mounted, leaves USB screen and shows a brief "it is safe to unplug" message when ejected.


Here are the pointers: http://stackoverflow.com/questions/1345901/detect-usb-mass-storage-eject-unmount-in-linux
Problem seems to be a quite hard (especially given OI marks devices as "non-removable" due to stupid Windows).