From owner-freebsd-current@FreeBSD.ORG Sat Oct 29 23:31:49 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 669B91065670 for ; Sat, 29 Oct 2011 23:31:49 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id C47E28FC12 for ; Sat, 29 Oct 2011 23:31:48 +0000 (UTC) Received: from ur.dons.net.au (ppp118-210-211-94.lns20.adl6.internode.on.net [118.210.211.94]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id p9TNVLQx029145 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 30 Oct 2011 10:01:27 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: "Daniel O'Connor" In-Reply-To: <4EAC0966.2050607@davenulle.org> Date: Sun, 30 Oct 2011 10:01:21 +1030 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4EAC0966.2050607@davenulle.org> To: David Marec X-Mailer: Apple Mail (2.1251.1) X-Spam-Score: 2.162 (**) BAYES_00,KHOP_DYNAMIC,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [Freebsd 9] [amd64] [USB] [HPLIP] what's the (new) right way to manage hplip usb-plugged printers, running Freebsd 9 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2011 23:31:49 -0000 On 30/10/2011, at 24:40, David Marec wrote: > But, now running FreeBSD 9, I get new usb/devd behavior issues. >=20 > First, the ulpt module is always loaded. Is there any elegant way to = get rid of this 'self loading' behavior, except to remove it from = /boot/modules ? > Anyway, it sounds like HPLIP is now working with the ulpt module = loaded. I'm not sure what would load it automatically - it may be built into the = kernel though. Anyway, as you say it should work with ulpt loaded = anyway. > But, devd never sets the suitable rights on ugen. >=20 > Moreover, switching to the 'action' that only logs something, reveals = that devd never executes this entry. >=20 >=20 > So, what's should be the news group&user's rights required by = HPLIP/cups on FreeBSD 9 ? >=20 > And, how to handle them with devd ? I have a similar problem.. Looking at /etc/devd/uath.conf I see.. notify 100 { match "system" "USB"; match "subsystem" "DEVICE"; match "type" "ATTACH"; match "vendor" "0x168c"; match "product" "0x0002"; action "/usr/sbin/uathload -d /dev/$cdev"; }; Also, I have devd entries for NUT (UPS software) which look like so.. attach 100 { match "vendor" "0x0463"; match "product" "0xffff"; action "chown :uucp /dev/$device-name; chmod 660 = /dev/$device-name"; }; However this doesn't seem to work anymore, it certainly used to.. :( I tried adding the system, subsystem & type parts and changing = device-name to cdev but no luck.. I ran devd -Dd and checked the output but while it says it parses = nut.conf it doesn't seem to match the entries. devd output looks like so.. Processing event '!system=3DUSB subsystem=3DDEVICE type=3DATTACH = ugen=3Dugen1.3 cdev=3Dugen1.3 vendor=3D0x046 3 product=3D0xffff devclass=3D0x00 devsubclass=3D0x00 sernum=3D"000000000"= release=3D0x4241 mode=3Dhost port=3D 3 parent=3Dugen1.1' Pushing table setting system=3DUSB setting subsystem=3DDEVICE setting type=3DATTACH setting ugen=3Dugen1.3 setting cdev=3Dugen1.3 setting vendor=3D0x0463 setting product=3D0xffff setting devclass=3D0x00 setting devsubclass=3D0x00 setting sernum=3D000000000 setting release=3D0x4241 setting mode=3Dhost setting port=3D3 setting parent=3Dugen1.1 Processing notify event -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C