From owner-freebsd-net@freebsd.org Mon Jun 25 14:45:31 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 245191011C3A for ; Mon, 25 Jun 2018 14:45:31 +0000 (UTC) (envelope-from ish@amail.plala.or.jp) Received: from msc14.plala.or.jp (msc14.plala.or.jp [60.36.166.24]) by mx1.freebsd.org (Postfix) with ESMTP id 45BC77F9CA for ; Mon, 25 Jun 2018 14:45:29 +0000 (UTC) (envelope-from ish@amail.plala.or.jp) Received: from localhost ([2400:4050:9320:7a00::8]) by msc14.plala.or.jp with ESMTP id <20180625144527.DDJZ1307.msc14.plala.or.jp@localhost> for ; Mon, 25 Jun 2018 23:45:27 +0900 Date: Mon, 25 Jun 2018 23:45:18 +0900 (JST) Message-Id: <20180625.234518.743785892819344523.ish@amail.plala.or.jp> To: freebsd-net@freebsd.org Subject: usb ethernet adapter does not work after reboot From: Masachika ISHIZUKA X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-VirusScan: Outbound; mvir-ac14; Mon, 25 Jun 2018 23:45:27 +0900 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2018 14:45:31 -0000 Hi. I'm using DELL XPS12 notebook pc. This machine has not ethernet card and I use AX88179 usb ethernet adapter. This works well on 11.2-RC3 and 12-current after first bootup. But if I reboot pc, this adapter is not seen any more. So I was using 'shutdown and bootup' instead of reboot. I found that I can use this usb ethernet adapter after reboot with the following sequence . (1) sync the disks (2) usbconfig -d ugenX.Y power_off (3) wait for a few seconds (4) usbconfig -d ugenX.Y power_off (5) reboot I wrote this sequence to shell script as follows. ugen=`/usr/sbin/usbconfig list | /usr/bin/sed -n 's/^\(ugen[0-9]*\.[0-9]*\): .* AX88179\>.*/\1/p'` /bin/sync /bin/sync /bin/sync /usr/sbin/usbconfig -d $ugen power_off /bin/sleep 3 /usr/sbin/usbconfig -d $ugen power_off /sbin/shutdown -r now -- Masachika ISHIZUKA