From owner-freebsd-gnome@FreeBSD.ORG Thu Apr 5 10:18:35 2012 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 169FE106566B; Thu, 5 Apr 2012 10:18:35 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 3BEEF8FC20; Thu, 5 Apr 2012 10:18:34 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 256859895; Thu, 05 Apr 2012 12:13:23 +0200 From: Hans Petter Selasky To: Andriy Gapon Date: Thu, 5 Apr 2012 12:12:04 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <4F749AD1.7020703@FreeBSD.org> <4F78E788.40608@freebsd.org> <4F7D574E.1010506@FreeBSD.org> In-Reply-To: <4F7D574E.1010506@FreeBSD.org> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201204051212.04382.hselasky@c2i.net> Cc: gnome , Joe Marcus Clarke Subject: Re: Fwd: Re: calibre: kindle usb connection problem X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2012 10:18:35 -0000 On Thursday 05 April 2012 10:26:54 Andriy Gapon wrote: > on 02/04/2012 02:40 Joe Marcus Clarke said the following: > > On 4/1/12 5:11 PM, Hans Petter Selasky wrote: > >>> libusb20_be_alloc_default > >>> libusb20_be_device_foreach > >>> > >>> libusb20_dev_get_bus_number > >>> libusb20_dev_get_address > >>> libusb20_dev_get_config_index > >>> libusb20_dev_get_config_index > >> > >> Hi, > >> > >> I think you need to open the device to be allowed to call > >> libusb20_dev_req_string_simple_sync, like shown in the previous function > >> call list. > >> > >> Does that make sense to you? > > > > It does, but I actually had that in there. What this did help me > > recognize is that I wasn't closing the device. Thanks for the hint :-). > > > > Andriy, can you try these two patches? > > > > http://www.marcuscom.com/downloads/patch-hald_freebsd_probing_probe-usb2- > > interface.c > > > > http://www.marcuscom.com/downloads/patch-hald_freebsd_probe-usb2-device.c > > I've tried them, they didn't hurt... :-) > I've put it this way because after doing more tests I've realized that the > correlation between hald running and the disconnect+reconnect behavior was > just a coincidence. I am able to reproduce the disconnect+reconnect > behavior even without hald running. So I guess that this clears hal of > suspicions. Sorry for the noise. > > Hans, > > I've put a usbdump file here: > http://people.freebsd.org/~avg/kindle.usb.dump.gz This is is without hald > running. > The following system log messages correspond to the dump: > Apr 2 10:49:41 trant kernel: ugen2.2: at usbus2 > Apr 2 10:49:41 trant kernel: umass0: on usbus2 > Apr 2 10:49:41 trant kernel: ugen2.2: at usbus2 (disconnected) > Apr 2 10:49:41 trant kernel: umass0: at uhub2, port 5, addr 2 > (disconnected) Apr 2 10:49:43 trant kernel: ugen2.2: at usbus2 > Apr 2 10:49:43 trant kernel: umass0: on usbus2 > Apr 2 10:49:44 trant kernel: da0 at umass-sim0 bus 0 scbus8 target 0 lun 0 > Apr 2 10:49:44 trant kernel: da0: Removable > Direct Access SCSI-2 device > Apr 2 10:49:44 trant kernel: da0: 40.000MB/s transfers > Apr 2 10:49:44 trant kernel: da0: 3090MB (6328768 512 byte sectors: 255H > 63S/T 393C) Hi, You can try: sysctl hw.usb.no_cs_fail=1 Have you installed webcamd? --HPS