Date: Sun, 30 Oct 2011 14:06:30 +0100 From: David Marec <david.marec@davenulle.org> To: current@freebsd.org Subject: Re: [Freebsd 9] [amd64] [USB] [HPLIP] what's the (new) right way to manage hplip usb-plugged printers, running Freebsd 9 Message-ID: <4EAD4BD6.1080701@davenulle.org> In-Reply-To: <4EACFC93.6010309@davenulle.org> References: <4EAC0966.2050607@davenulle.org> <C41CBB97-48E5-4C85-B35E-DD9DE0CA8DCB@gsoft.com.au> <4EACFC93.6010309@davenulle.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EAD4BD6.1080701>