Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Ability to exit and maybe enter USB storage without unplugging
« previous next »
  • Print
Pages: [1]

Author Topic: Ability to exit and maybe enter USB storage without unplugging  (Read 1297 times)

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Ability to exit and maybe enter USB storage without unplugging
« on: November 15, 2011, 12:39:38 AM »
It would be nice to be able exit USB storage mode without unplugging the cable. That allows charging to continue, and it would also make testing a bit easier when developing.

The ability to enter USB storage is probably less useful for most people, and it's currently possible to do that by reloading Rockbox (eg. by selecting rockbox.ipod).

This exit feature existed from r20244 to r20911.  It was removed because with some operating systems it would allow unsafe removal. However, the cable can be unplugged at any moment, and Rockbox and the OS on the computer can do nothing to prevent it. Adding a button which actually does some checking for whether it's safe doesn't seem to make things an worse, as long as accidental activation is unlikely and nothing is encouraging users to disconnect at an unsafe time.

The USB HID mode that has been added since complicates this, but maybe some button combination or long press can be used. A combination or long press would also reduce the chance of accidental disconnects.

Some code is still left over: usb_storage_try_release_storage() in firmware/usbstack/usb_storage.c. It's currently not used for anything, but it seems usable for this feature.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Ability to exit and maybe enter USB storage without unplugging
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.044 seconds with 15 queries.