Re: [Freebsd 9] [amd64] [USB] [HPLIP] what's the (new) right way to manage hplip usb-plugged printers, running Freebsd 9

From: David Marec <david.marec_at_davenulle.org>
Date: Sun, 30 Oct 2011 14:06:30 +0100
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_at_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/
Received on Sun Oct 30 2011 - 12:06:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:19 UTC