[Bug 614657] New: libghoto steals and locks access to my MTP device
http://bugzilla.novell.com/show_bug.cgi?id=614657 http://bugzilla.novell.com/show_bug.cgi?id=614657#c0 Summary: libghoto steals and locks access to my MTP device Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Hotplug AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: amcgovern@novell.com QAContact: qa@suse.de Found By: --- Blocker: --- When I plug in my Creative Zen MP3 player it is automounted by libgphoto. This locks access to the device and prevents me from properly managing the music to it with banshee. The only way for banshee to be able to open the device is if I: 0) Install the libmtp package which contains all the helpful tools like "mtp-detect" 1) Plug the device in 2) When prompted about what i should do, choose "unmount" 3) Immediately run "mtp-detect" which will end up doing a reset of the usb bus. When this finishes, libgphoto will have been forcibly removed from holding the lock on the device. 4) Now start up banshee and everything will work. This is a fairly big issue as it prevents all MTP devices from working. In a way, libgphoto is correct to mount my device, but it breaks normal usage of my device completely. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614657 http://bugzilla.novell.com/show_bug.cgi?id=614657#c yang xiaoyu <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |meissner@novell.com |ovo.novell.com | Summary|libghoto steals and locks |libgphoto steals and locks |access to my MTP device |access to my MTP device -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614657 http://bugzilla.novell.com/show_bug.cgi?id=614657#c1 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|meissner@novell.com |bnc-team-gnome@forge.provo. | |novell.com --- Comment #1 from Marcus Meissner <meissner@novell.com> 2010-06-17 07:46:15 UTC --- its gvfs to blame. not libgphoto2. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614657 http://bugzilla.novell.com/show_bug.cgi?id=614657#c2 --- Comment #2 from Alan McGovern <amcgovern@novell.com> 2010-06-22 01:20:46 UTC --- Yup, that's why I filed it under Hotplug, though maybe I didn't explain that clearly. Is there anything I can do to begin to get a resolution on this bug? It'd be a huge shame to ship 11.3 with this rather serious functionality regression for music devices considering this prevents normal usage. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614657 http://bugzilla.novell.com/show_bug.cgi?id=614657#c3 --- Comment #3 from Marcus Meissner <meissner@novell.com> 2010-06-22 09:27:24 UTC --- reading your original comment shows that you have wrong view on this. gvfs umount should release any lock on the device already, so (3) should be unnecessary, so mtp-detect should not be necessary. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614657 http://bugzilla.novell.com/show_bug.cgi?id=614657#c4 --- Comment #4 from Marcus Meissner <meissner@novell.com> 2010-06-22 11:08:48 UTC --- this is not a regression either. i am reproducing right now ... first bug found: - banshee 1.6.1 seems to require hal daemon installed and running, but this is not expressed in RPM requires. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614657 http://bugzilla.novell.com/show_bug.cgi?id=614657#c5 --- Comment #5 from Marcus Meissner <meissner@novell.com> 2010-06-22 11:31:46 UTC --- hmm. - reboot machine into GNOME 11.3 (not 11.2) - plug in Creative Zen 32GB. - icon shows on desktop - start "banshee-1" - "My Zen" shows up ... my mp3s are not detected correctly, but its retrieving the info at least. (even without Nautilus unmount!) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614657 http://bugzilla.novell.com/show_bug.cgi?id=614657#c6 --- Comment #6 from Marcus Meissner <meissner@novell.com> 2010-06-22 11:35:19 UTC --- There was no mtp-detect necessary in between to get it freshened. What Creative do you have? I see pon banshee-1 console output that if banshee is started from nautilus it also says "Received defvice command: action = Activate, device = = /home/tux/.gvfs/ghoto2-Medium on usb%3A002,002 (from DBUS I guess) ... so in that case you could umount the gvfs mount. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614657 http://bugzilla.novell.com/show_bug.cgi?id=614657#c7 --- Comment #7 from Alan McGovern <amcgovern@novell.com> 2010-06-28 09:16:16 UTC --- Hey, You're absolutely right. I figured out this trick a while ago when I couldn't figure out wtf was going wrong with my device and banshee. I assumed the mtp-detect was necessary as unmounting the device in nautilus did not remove the 'syncing' display that creative devices show when they are hooked up. This is still quite an issue because banshee can no longer support hotplugged MTP devices. Can the rule for gphoto be reduced so that it only automounts PTP devices? All devices could be displayed in natilus but if we just refrained from auto-mounting them, instead relying on the user to click on the device to mount, it would save a lot of trouble for media players like banshee. Do you have any better solutions? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614657 http://bugzilla.novell.com/show_bug.cgi?id=614657#c8 --- Comment #8 from Alan McGovern <amcgovern@novell.com> 2010-07-24 16:14:23 UTC --- Created an attachment (id=378206) --> (http://bugzilla.novell.com/attachment.cgi?id=378206) log file of failed connection attempt So after some testing there appears to be no safe way to load an MTP device automatically in banshee if gvfs-gphoto is enabled on the system. What banshee does is call Volume.Unmount () on any mtp devices. This should be the equivalent of clicking 'Unmount' in nautilus or whatever. Banshee then tries to connect to the device using the libmtp library Sometimes this works, sometimes not. The log file attached shows debug spew from failed attempts to connect to the device. Banshee makes 5 attempts separated by 2 seconds each, though it doesn't appear to matter how long is between each attempt. How can this be worked around other than banshee recommending you disable gvfs-gphoto if you have an MTP device? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614657 http://bugzilla.novell.com/show_bug.cgi?id=614657#c9 Gabriel Burt <gburt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gburt@novell.com --- Comment #9 from Gabriel Burt <gburt@novell.com> 2010-07-24 19:02:25 UTC --- Alan, sounds like it's not openSUSE specific, right? Probably time to file it upstream. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614657 http://bugzilla.novell.com/show_bug.cgi?id=614657#c10 --- Comment #10 from Gabriel Burt <gburt@novell.com> 2010-08-09 18:17:39 UTC --- Alan, did you file this on BGO against gvfs? Add the URL here if you did. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=614657 https://bugzilla.novell.com/show_bug.cgi?id=614657#c11 Gabriel Burt <gburt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |amcgovern@novell.com --- Comment #11 from Gabriel Burt <gburt@novell.com> 2010-08-16 22:26:40 UTC --- Ping -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=614657 https://bugzilla.novell.com/show_bug.cgi?id=614657#c12 Alan McGovern <amcgovern@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|amcgovern@novell.com | --- Comment #12 from Alan McGovern <amcgovern@novell.com> 2010-08-23 09:23:30 UTC --- Upstreamed to https://bugzilla.gnome.org/show_bug.cgi?id=627698 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=614657 https://bugzilla.novell.com/show_bug.cgi?id=614657#c Alan McGovern <amcgovern@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.gnome.org/ | |show_bug.cgi?id=627698 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com