GNOME Bugzilla – Bug 632753
Banshee unmounts my iPhone without warning and for no reason
Last modified: 2020-03-17 08:51:24 UTC
It seems like Banshee is trying really hard to get me to stop using it. Today I discovered that it's auto-unmounting my iPhone right after I connect the iPhone to the PC's USB port. Banshee is unusable with the iPhone anyway (due to bug 631207), and I have the Apple Device Support extension disabled. But nonetheless, when I connect my iPhone to my PC (to charge it, or to copy photos off of it, etc), if Banshee is running, then Banshee will forcibly unmount the iPhone in about 10 seconds, causing the iPhone to disappear from the list of items in Nautilus' "computer:///" view. Because of this, the only way to do anything with the iPhone in Ubuntu is to kill Banshee before connecting the phone to the PC.
Copying Alan.
First I need the debug log from banshee. Start it in a terminal with "--debug" as the parameter and attach the entire output of that. My guess is that the libmtp is claiming that your iPhone is an MTP device. This happens because iPhones implement PTP, which is a subset of MTP. With this (incorrect) knowledge, the MTP extension dutifully unmounts the device so that it can remount it in MTP mode to access the songs. However your device is *not* an MTP device so the subsequent mount in MTP mode fails. Possible immediate solutions you can try: 1) If you leave the AppleDevice extension enabled, this won't happen. 2) If you disable the MTP extension, this also won't happen. Possible long term solutions. 1) File a libmtp bug and get them to stop recognising PTP-only devices as supporting MTP. 2) Put logic in the MTP extension to check for iphones/ipods and ignore them. Are there any better ways of handling this or is #2 the best thing to do for now?
Created attachment 173862 [details] Debug log from when Banshee unmounts my iPhone Debug log is attached. > Possible immediate solutions you can try: > 1) If you leave the AppleDevice extension enabled, this won't happen. That's not an option for me since I don't want to deal with bug 631207. > 2) If you disable the MTP extension, this also won't happen. OK, that's what I'll do. I just tried it and indeed the unmounting now does not happen.
Banshee is not under active development anymore and had its last code changes more than three years ago. Its codebase has been archived. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is being shut down) if anyone takes the responsibility for active development again. See https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/264 for more info.