This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10011 - The USB disconnect feature disconnects without prior ejecting or savely removing in Windows
Attached to Project:
Rockbox
Opened by Martin Ritter (MartinR) - Thursday, 12 March 2009, 11:17 GMT+2
Last edited by Frank Gevaerts (fg) - Wednesday, 09 September 2009, 20:34 GMT+2
Opened by Martin Ritter (MartinR) - Thursday, 12 March 2009, 11:17 GMT+2
Last edited by Frank Gevaerts (fg) - Wednesday, 09 September 2009, 20:34 GMT+2
|
DetailsThe USB disconnect feature introduced in r20244 disconnects even if the drives are currently in use by Windows. Unlike said in the manual, no eject or savely remove is needed. When pressing Select while copying a file from DAP to PC, it immediately leaves the USB screen and I can browse the menu while the copy operation still goes on. Right after the file has finished (no corruption), the drives get inaccessible.
Also, this feature doesn't respect the 'First Keypress Enables Backlight Only' option. I used to press Select to turn on the backlight to see how far the charging is (or to test the backlight fading). This now kicks me out of MSC mode every time. |
This task depends upon
Closed by Frank Gevaerts (fg)
Wednesday, 09 September 2009, 20:34 GMT+2
Reason for closing: Fixed
Additional comments about closing: Disconnect was removed a while ago
Wednesday, 09 September 2009, 20:34 GMT+2
Reason for closing: Fixed
Additional comments about closing: Disconnect was removed a while ago
The second issue is because I just check for button status in the USB screen event loop, I don't actually get a button press from the button queue. I wouldn't mind (someone) doing this differently, but I definitely don't know much about UI code
IIUC, we should be able to automatically leave MSC mode if either all LUNs are ejected or the USB controller enters suspend mode. But Linux usually doesn't suspend the device on dismounting. We would still have to use the button there. But as Windows doesn't lock the LUNs properly, the button has to be blocked with Windows. So we would need to distinguish between Windows and Linux within Rockbox, which I think is somehow fishy.