From owner-freebsd-usb@freebsd.org Mon May 22 12:13:06 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 5196FD77D45 for ; Mon, 22 May 2017 12:13:06 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 1BA371B9C for ; Mon, 22 May 2017 12:13:05 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.129.119]) (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 D205C260823; Mon, 22 May 2017 14:13:03 +0200 (CEST) Subject: Re: GnuPG && card readers From: Hans Petter Selasky To: Matthias Apitz , freebsd-usb@freebsd.org References: <20170509094729.GA3668@c720-r314251> <20170509213637.Horde.u9PInhb6UaNmyy2nhXlnMGr@webmail.leidinger.net> <20170510073903.GA2836@c720-r314251> <20170511065844.GA25086@c720-r314251> <20170511090230.GA26224@c720-r314251> <739d3542-6c62-7ece-6832-81d76a994bc7@selasky.org> Message-ID: <7060c429-2cc6-851b-3aa4-46f09dc7e355@selasky.org> Date: Mon, 22 May 2017 14:11:04 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: <739d3542-6c62-7ece-6832-81d76a994bc7@selasky.org> 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: Mon, 22 May 2017 12:13:06 -0000 On 05/22/17 14:09, Hans Petter Selasky wrote: > On 05/11/17 11:02, Matthias Apitz wrote: >> root@c720-r314251:~ # /usr/local/sbin/pcscd --debug --foreground >> 00000000 pcscdaemon.c:346:main() pcscd set to foreground with debug >> send to stdout >> 00000550 configfile.l:358:DBGetReaderList() Parsing conf file: >> /usr/local/etc/reader.conf.d >> 00000049 pcscdaemon.c:655:main() pcsc-lite 1.8.20 daemon ready. >> >> i.e. the line about hotplug_libusb.c:440:HPEstablishUSBNotifications() >> does not show up; and a truss shows that is is doing/waiting on >> something on a dev; it is very slow doing some ioctls: >> >> openat(AT_FDCWD,"/dev/usbctl",O_RDONLY,00) = 11 (0xb) >> ioctl(11,USB_READ_DIR,0xdfdfcb38) = 0 (0x0) >> openat(AT_FDCWD,"/dev/ugen1.1",O_RDWR,00) = 12 (0xc) >> ioctl(12,USB_GET_PLUGTIME,0xdfdfcb1c) = 0 (0x0) >> ioctl(12,USB_GET_DEVICE_DESC,0xdfdfcb20) = 0 (0x0) >> ioctl(12,USB_GET_DEVICEINFO,0xdfdfccb0) = 0 (0x0) > > Hi, > > Did you try this device with another real machine? > > Maybe it is a bug with the Acer C720 netbook's USB controllers that > someone needs to look into? > There are some debug knobs under: sysctl -a hw.usb |grep debug which you might turn on and compare the output from the two systems, like: sysctl hw.usb.uhub.debug=16 --HPS