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
Gphoto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gphoto-devel

Reply via email to