From owner-freebsd-usb@FreeBSD.ORG Sat Oct 29 14:26:35 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7122F106564A for ; Sat, 29 Oct 2011 14:26:35 +0000 (UTC) (envelope-from david.marec@davenulle.org) Received: from smtp21.services.sfr.fr (smtp21.services.sfr.fr [93.17.128.1]) by mx1.freebsd.org (Postfix) with ESMTP id 31A4C8FC15 for ; Sat, 29 Oct 2011 14:26:34 +0000 (UTC) Received: from filter.sfr.fr (localhost [127.0.0.1]) by msfrf2102.sfr.fr (SMTP Server) with ESMTP id 2A71D700005C; Sat, 29 Oct 2011 16:10:46 +0200 (CEST) Received: from david.marec (209.103.28.93.rev.sfr.net [93.28.103.209]) by msfrf2102.sfr.fr (SMTP Server) with ESMTP id F00A370000BE; Sat, 29 Oct 2011 16:10:45 +0200 (CEST) X-SFR-UUID: 20111029141045983.F00A370000BE@msfrf2102.sfr.fr Message-ID: <4EAC0966.2050607@davenulle.org> Date: Sat, 29 Oct 2011 16:10:46 +0200 From: David Marec User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111002 Thunderbird/7.0.1 MIME-Version: 1.0 To: current@freebsd.org, freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: [Freebsd 9] [amd64] [USB] [HPLIP] what's the (new) right way to manage hplip usb-plugged printers, running Freebsd 9 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-usb@freebsd.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2011 14:26:35 -0000 Hi list, While I was running Freebsd 8, I used to set the suitable rights for my hplip printer, plugged via usb, in this way: * ulpt removed from the kernel. * scripting /etc/devd.conf, to catch usb printers events, as follows: attach 10 { # device-name "ugen[0-9]+"; match "vendor" "0x03f0"; match "product" "0x4712"; # action "logger Chalut la foule"; action "/root/sbin/ugen-hdle $device-name"; }; with david:~>less /root/sbin/ugen-hdle #!/bin/sh echo "Printer detected on " $1 dev=`echo $1 | /usr/bin/awk 'BEGIN { } { s = substr($0, 5, 99); } END { print s; }'` # echo "setting suitable rights for " $dev /usr/sbin/chown cups:hplip /dev/usb/$dev.[0-9] /bin/chmod g+rw /dev/usb/$dev.[0-9] But, now running FreeBSD 9, I get new usb/devd behavior issues. 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. But, devd never sets the suitable rights on ugen. Moreover, switching to the 'action' that only logs something, reveals that devd never executes this entry. So, what's should be the news group&user's rights required by HPLIP/cups on FreeBSD 9 ? And, how to handle them with devd ? However, there is a new "devd" directory inside of "/etc". Is there new usb&devd procedures for FreeBSD9 ? [fu2 freebsd-usb@freebsd.org] regards -- David Marec, mailto:david.marec@davenulle.org http://user.lamaiziere.net/david/Site http://www.diablotins.org/