[argyllcms] Re: HID issue with libusb on Huey

  • From: "Frédéric Crozat" <fred@xxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Sun, 16 Dec 2007 09:32:18 +0100

On Dec 15, 2007 5:53 AM, Graeme Gill <graeme@xxxxxxxxxxxxx> wrote:
> Here's a patch for spectro/usbio.c that should
> address this issue. The question remains, if the
> device has the right permissions to be opened by
> the user, is there any remaining problem with
> calling usb_detach_kernel_driver_np() ?

Tested, it doesn't work (and it is not a permission problem, I tested
as root and moreover, we are ensuring
/dev/usb/*/* are always readable and writable by user with console privilege).

I'm getting the same error. Using strace, ioctl used in
detach_kernel_driver_np is not working :
open("/dev/bus/usb/002/004", O_RDWR)    = 3

ioctl(3, USBDEVFS_IOCTL, 0xbf7e7814)    = -1 EINVAL (Invalid argument) <======

ioctl(3, USBDEVFS_SETCONFIGURATION, 0xbf7e7834) = -1 EBUSY (Device or
resource busy)

and kernel is reporting :
usb 2-2: usbfs: interface 0 claimed by usbhid while 'dispcal' sets config #1

-- 
Frederic Crozat

Other related posts: