From owner-freebsd-usb@freebsd.org Wed Nov 8 08:07:10 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 68C8AE70DA7 for ; Wed, 8 Nov 2017 08:07:10 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 357456F7FB for ; Wed, 8 Nov 2017 08:07:10 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 0212B26090B; Wed, 8 Nov 2017 09:07:07 +0100 (CET) Subject: Re: usb quirks for ugen0.2: at usbus0 To: Kris G , freebsd-usb@freebsd.org References: From: Hans Petter Selasky Message-ID: <51a971f6-2ddc-6a52-c0de-60f37a9207f1@selasky.org> Date: Wed, 8 Nov 2017 09:04:28 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.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-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Nov 2017 08:07:10 -0000 On 11/08/17 08:55, Kris G wrote: > Hi, > > I am finding that I have to run below command each time I plug the USB > device mentioned in subject to have ue0 interface appear. > > usbconfig -d 0.2 set_config 1 > > How do I go about doing this automatically? At the moment I just have the > command above in /etc/rc.local but I prefer to fix it properly. > > Can someone give me some pointers? Hi, Have a look here for example: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221852 There is "UQ_CFG_INDEX_1" and you can also specify it in /boot/loader.conf . man usb_quirk --HPS