From owner-freebsd-current@FreeBSD.ORG Sun Oct 30 13:06:33 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 15DFC106566C for ; Sun, 30 Oct 2011 13:06:33 +0000 (UTC) (envelope-from david.marec@davenulle.org) Received: from smtp23.services.sfr.fr (smtp23.services.sfr.fr [93.17.128.20]) by mx1.freebsd.org (Postfix) with ESMTP id 98EFF8FC19 for ; Sun, 30 Oct 2011 13:06:32 +0000 (UTC) Received: from filter.sfr.fr (localhost [127.0.0.1]) by msfrf2309.sfr.fr (SMTP Server) with ESMTP id E0DEA700031E for ; Sun, 30 Oct 2011 14:06:30 +0100 (CET) Received: from david.marec (209.103.28.93.rev.sfr.net [93.28.103.209]) by msfrf2309.sfr.fr (SMTP Server) with ESMTP id BB92B700031D for ; Sun, 30 Oct 2011 14:06:30 +0100 (CET) X-SFR-UUID: 20111030130630768.BB92B700031D@msfrf2309.sfr.fr Message-ID: <4EAD4BD6.1080701@davenulle.org> Date: Sun, 30 Oct 2011 14:06:30 +0100 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 References: <4EAC0966.2050607@davenulle.org> <4EACFC93.6010309@davenulle.org> In-Reply-To: <4EACFC93.6010309@davenulle.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: 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: Sun, 30 Oct 2011 13:06:33 -0000 Le 30.10.2011 08:28, David Marec a écrit : >> I have a similar problem.. Le 30.10.2011 08:28, David Marec a écrit : >> I have a similar problem.. A new behavior occurs since I updated the world & kernel this morning. `devd` now executes the entry for hplip, as I defined it inside /usr/local/etc/devd/devd.conf. But, with `ulpt0` forwarded as device node. That sounds ok since ulpt has been loaded and attached by devd (or some other stuff, i dont know); What comes now as the major issue. hold it... since the update, ulpt keeps on being quiet while the printer gets plugged.. So, I changed my script to: #!/bin/sh # # set up /dev/$1.$2.* to cups:hplip -rw-rw--- # logger "HPLIP printer found on $1.$2" logger "setting suitable rights for $1.$2" /usr/sbin/chown cups:hplip /dev/usb/$1.$2.[0-9] /bin/chmod g+rw /dev/usb/$1.$2.[0-9] ...and used the "nomatch" key instead of the "attach" key into /usr/local/etc/devd/devd.conf nomatch 100 { match "vendor" "0x03f0"; match "product" "0x4712"; action "/root/sbin/ugen-hdle $port $devaddr"; }; 'looks like it works . -- David Marec, mailto:david.marec@davenulle.org http://user.lamaiziere.net/david/Site http://www.diablotins.org/ A new behavior occurs since i update the world & kernel this morning. `devd` now executes the entry for hplip, as I defined it inside /usr/local/etc/devd/devd.conf. But, with `ulpt0` forwarded as device node. That sounds ok since ulpt has been loaded and attached by devd (or some other stuff, i dont know); What comes now as the major issue. And, up to now, ulpt keep on being stuck. So, i change my script to #!/bin/sh # # set up /dev/$1.$2.* to cups:hplip -rw-rw--- # logger "HPLIP printer found on $1.$2" logger "setting suitable rights for $1.$2" /usr/sbin/chown cups:hplip /dev/usb/$1.$2.[0-9] /bin/chmod g+rw /dev/usb/$1.$2.[0-9] And uses "nomatch" instead of "attach" into /usr/local/etc/devd/devd.conf nomatch 100 { match "vendor" "0x03f0"; match "product" "0x4712"; action "/root/sbin/ugen-hdle $port $devaddr"; }; seems to work finally. -- Délicieuse cette béarnaise. http://user.lamaiziere.net/david/Site http://www.diablotins.org/