Re: Something wrong with my Gphoto2

Marcus Meissner <[email protected]> Mon, 12 Dec 2022 09:44:55 +0100
Newsgroups gmane.comp.multimedia.gphoto.devel
Organization SUSE Software Solutions Ger many GmbH, Frankenstraße 146, 90461 Nuernberg, Ger many, GF: Ivo Totev, Andrew Myers, Andrew McDonald , Martje Boudien Moerman, HRB 36809, AG Nürnberg
Message-ID <[email protected]>
HI,

On Fri, Dec 09, 2022 at 01:47:38PM +0800, 梁铖玮 wrote:
> Dear developer:
>          I encountered a problem while using gphoto2 to control the camera. When I unplugged the camera from usb and connected it again, it would report an error and display 'An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Device or resource busy). Make sure no other program (gvfs-gphoto2-volume-monitor) or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device'. My debug file is e-mailed as the appendix below. 
>        I'm looking forward to your reply about the resolution. Thank you very much!
> 
> 
> 
> 

> 0.000871 gp_port_library_list        (2): found mtab fsname gvfsd-fuse


> 0.036610 gp_libusb1_open             (2): ()
> 0.036626 gp_libusb1_open             (2): claiming interface 0
> 0.036634 gp_libusb1_open [libusb1.c:437](0): 'libusb_claim_interface (port->pl->dh, port->settings.usb.interface)' failed: Resource busy (-6)
> 0.036640 gp_port_set_error [gphoto2-port.c:1190](0): Could not claim interface 0 (Device or resource busy). Make sure no other program (gvfs-gphoto2-volume-monitor) or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
> 0.036732 gp_context_error            (0): An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Device or resource busy). Make sure no other program (gvfs-gphoto2-volume-monitor) or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.

It is as the message says, very likely blocked by the gvfs slave of
GNOME.

GVFS blocks the camera as soon as it is plugged in.

You can disable this GVFS default gphoto2 mounting temporary by

	gio umount -s gphoto2

as user.

Ciao, Marcus


_______________________________________________
Gphoto-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gphoto-devel