[Nut-upsuser] FreeBSD usbhid-ups problem

Arjen de Korte nut+users at de-korte.org
Fri Sep 26 05:33:38 UTC 2008


Citeren "Daniel O'Connor" <doconnor at gsoft.com.au>:

> usb_control_msg: 161 1 769 0 0x813310c 2 4000
> USB error: error sending control message: Input/output error
> Can't retrieve Report 1: Input/output error
> upsdrv_updateinfo...
> Got to reconnect!
>
> usb_set_debug: Setting debugging level to 3 (on)
> usb_os_find_busses: Found /dev/usb0
> usb_os_find_busses: Found /dev/usb1
> usb_os_find_busses: Found /dev/usb2
> usb_os_find_busses: Found /dev/usb3
> usb_os_find_busses: Found /dev/usb4
> usb_os_find_devices: couldn't open device /dev/ugen0: Device busy
> No appropriate HID device found
> upsdrv_updateinfo...
> Got to reconnect!

Maybe FreeBSD requires that the existing connection to a USB device is  
closed before it can be opened again. Currently the libusb_open()  
function (in 'drivers/libusb.c') only closes an existing connection if  
SUN_LIBUSB is defined (lines 106-109) to work around a double free  
corruption in Linux if devices are detached (since the kernel will do  
this already). But it could very well be that this is required in  
FreeBSD (or other systems) as well.

Best regards, Arjen
-- 
Please keep list traffic on the list



More information about the Nut-upsuser mailing list