From owner-freebsd-usb@freebsd.org Fri Apr 17 13:01:55 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CC7F22B8A96 for ; Fri, 17 Apr 2020 13:01:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 493bpC4Qbcz3NNZ for ; Fri, 17 Apr 2020 13:01:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.nyi.freebsd.org (Postfix) id 97C7E2B8A95; Fri, 17 Apr 2020 13:01:55 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 978ED2B8A94 for ; Fri, 17 Apr 2020 13:01:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 493bpC3HVQz3NNW; Fri, 17 Apr 2020 13:01:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id AE610260357; Fri, 17 Apr 2020 15:01:53 +0200 (CEST) Subject: =?UTF-8?Q?Re=3a_Cheap_UPS_with_USB_=c2=abflicker=c2=bb_with_FreeBSD?= =?UTF-8?Q?_but_not_with_Windows?= To: lev@FreeBSD.org, usb@freebsd.org References: From: Hans Petter Selasky Message-ID: <4a0271c4-edf8-909f-c8d1-894323d1c8d5@selasky.org> Date: Fri, 17 Apr 2020 15:00:47 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 493bpC3HVQz3NNW X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2020 13:01:55 -0000 On 2020-04-17 14:59, Lev Serebryakov wrote: > > Cheap Ippon UPS flickers with USB connection when master is FreeBSD CURRENT: > > .... > Apr 17 15:49:02 gateway kernel: ugen2.2: at usbus2 (disconnected) > Apr 17 15:49:07 gateway kernel: ugen2.2: at usbus2 > Apr 17 15:49:21 gateway kernel: ugen2.2: at usbus2 (disconnected) > Apr 17 15:49:26 gateway kernel: ugen2.2: at usbus2 > Apr 17 15:49:40 gateway kernel: ugen2.2: at usbus2 (disconnected) > Apr 17 15:49:45 gateway kernel: ugen2.2: at usbus2 > Apr 17 15:49:59 gateway kernel: ugen2.2: at usbus2 (disconnected) > Apr 17 15:50:04 gateway kernel: ugen2.2: at usbus2 > .... > > It works stable when connected to Windows notebook. Yes, I understand, that it is different host hardware. > Unfortunately, I can not check other OSes on hardware where it flickers, but maybe it is possible to set (or add) some quirk on our side? > Hi, Are you running -stable / -current? If not, try upgrading the kernel only first. What does usbconfig say about this device. Try monitoring the USB traffic: usbdump -i usbus2 -f 2 -s65536 -vvv Maybe some bad command triggers the disconnect. Last resort: sysctl hw.usb.disable_enumeration=1 Does your device still function? --HPS