From owner-freebsd-stable@FreeBSD.ORG Fri Jun 15 06:01:28 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17B7C1065674 for ; Fri, 15 Jun 2012 06:01:28 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 98F408FC18 for ; Fri, 15 Jun 2012 06:01:27 +0000 (UTC) Received: by wgbds11 with SMTP id ds11so2521871wgb.31 for ; Thu, 14 Jun 2012 23:01:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=XbTxQ+4xtBFfkb6rPSrsawZCCzMknuajAYTcQp29yhY=; b=tWOnzDAGjycTiedjN7iYMDyRPsoRg12HzqaC0ig6gK0SHIgs0rZkVBuQP3f7Q9UNiD ChrkKUnarqPXQeo3Mj6ARbIoTCITpvP2q96TctfkQRa7i0VPL+xO7Citv+JyylKTj2TN t09tknlR72WXzFwKl9g6U2bkmqKqiNfHtN1sSh7KABadIK/w6K7W5WjAkvdXmR1cFMbE DEYxP3LfHfu7hoBv41FcbWJOGZvlNNs1GEBfEk926sAOjQFyfWg0blZ7bjHfIBTIO++v 3DZIDSQrQYVpWowk6GBAcpF/LbfkC1E9tkF9o2eQEZ6AfwlO7aWA/TvmnnWXZO+WJr0y YxGg== MIME-Version: 1.0 Received: by 10.180.102.9 with SMTP id fk9mr1762074wib.1.1339740081428; Thu, 14 Jun 2012 23:01:21 -0700 (PDT) Received: by 10.223.155.4 with HTTP; Thu, 14 Jun 2012 23:01:21 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 Jun 2012 23:01:21 -0700 Message-ID: From: Kevin Oberman To: Ronald Klop Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: devd problem with 9-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2012 06:01:28 -0000 On Thu, Jun 14, 2012 at 3:11 AM, Ronald Klop wrote: > On Thu, 14 Jun 2012 02:41:58 +0200, Kevin Oberman wro= te: > >> Since updating my systems to 9-Stable, I am not getting my smartcard >> reader attached when hot-plugged. >> >>> From devd.conf >> >> attach 50 { >> =C2=A0 =C2=A0 =C2=A0 =C2=A0device-name "ugen[0-9]+"; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0match "vendor" "0x0529"; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0match "product" "0x0600"; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0action "/usr/local/sbin/openct-control attach= usb:529/600 usb >> /dev/$dev$ >> }; >> detach 50 { >> =C2=A0 =C2=A0 =C2=A0 =C2=A0device-name "ugen[0-9]+"; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0match "vendor" "0x0529"; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0match "product" "0x0600"; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0action "/usr/bin/pkill -fx '/usr/local/sbin/i= fdhandler -H -p >> [a-z0-9]+ $ >> }; >> >> If I manually enter the "action" command, it works fine, but it fails >> when I insert the device. It worked fine under version 8. I have >> confirmed devd is seeing the device inserted just fine. the action >> just does not seem to be carried out. >> >> Any idea where I should look? I saw a couple of threads on current >> from others seeing something similar, but could find no resolution. >> I have seen a > > > Did you run devd with debug messages on? Options -D and -d are helpful. > If you do does devd match the right devd.conf sections and start the acti= on? With debug i get: Processing event '!system=3DUSB subsystem=3DDEVICE type=3DATTACH ugen=3Dugen1.3 cdev=3Dugen1.3 vendor=3D0x0529 product=3D0x0600 devclass=3D0= xff devsubclass=3D0x00 sernum=3D"" release=3D0x0100 mode=3Dhost port=3D1 parent=3Dugen1.2' [long list of "Testing" entries, none of which 'vendor' matched] Executing 'logger Unknown USB device: vendor 0x0529 product 0x0600 bus uhub= 3' So it looks like devd is not matching the vendor. But my devd.conf file contains that vendor. I don't know exactly why it is not being tested against. Nothing in the debug output gives me a clue and I tried grepping for one of the tested vendor IDs in /etc/devd.conf and /etc/devd/*.conf. Not found. I am at a loss. --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com