Date: Sun, 4 Jan 2009 14:31:43 -0300 From: Mario Lobo <mlobo@digiart.art.br> To: freebsd-questions@freebsd.org Subject: Re: USB printer problem Message-ID: <200901041431.43557.mlobo@digiart.art.br> In-Reply-To: <200901041518.06115.gnemmi@gmail.com> References: <200901041321.34688.mlobo@digiart.art.br> <200901041518.06115.gnemmi@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 04 January 2009 14:18:06 Gonzalo Nemmi wrote: > On Sunday 04 January 2009 2:21:34 pm Mario Lobo wrote: > > Hi; > > > > I've been trying for 2 days with no success > > > > Here is the setup: > > > > FreeBSD 6.4-STABLE #0: Wed Dec 10 22:25:05 BRT 200 > > > > -printer detected > > > > kernel: ulpt0: HP Deskjet D1500 series, rev 2.00/1.00, addr 2, iclass 7/1 > > kernel: ulpt0: using bi-directional mode > > > > /etc/devfs.conf > > own ulpt0 root:cups > > perm ulpt0 0660 > > > > /etc/devfs.rules > > [system=10] > > add path lpt[0-9]* mode 0660 group cups > > add path ulpt[0-9]* mode 0660 group cups > > add path unlpt[0-9]* mode 0660 group cups > > > > /etc/rc.conf > > devfs_system_ruleset="system" > > cupsd_enable="YES" > > > > and nothing bellow works ! > > > > # lptest 20 10 > /dev/ulpt0 > > # /usr/local/bin/gs -q -dNOPAUSE -dSAFER -r600x600 -sDEVICE=ijs > > -sIjsServer=/usr/local/bin/hpijs -dIjsUseOutputFD -sOutputFile=- > > -sDeviceManufacturer="HP" -sDeviceModel="DJ3600" /tmp/foomatic-rip.ps > > > > > /dev/ulpt0 > > > > # cat /etc/rc.conf > /dev/ulpt0 > > > > The printer doesn't even move ! > > > > Tried changing usb ports: > > > > Jan 4 12:59:38 kernel: ulpt0: at uhub0 port 1 (addr 2) disconnected > > Jan 4 12:59:38 kernel: ulpt0: detached > > Jan 4 12:59:41 kernel: ulpt0: HP Deskjet D1500 series, rev 2.00/1.00, > > addr 2, iclass 7/1 > > Jan 4 12:59:41 kernel: ulpt0: using bi-directional mode > > > > and nothing happens :( > > > > > > I've been googling for 2 days, read all I could, tried all I read and > > nothing happens. > > > > any suggestions? > > > > Thanks! > > Sure ... > Acording to your mail, you seem to be using hplip as a back end ... > > [gonzalo@inferna ~]% pkg_info -W /usr/local/bin/hpijs > /usr/local/bin/hpijs was installed by package hplip-2.8.2_3 > [gonzalo@inferna ~]% > > Its all there in hplip's installation notes... you need hpssd up and > running and the printer should be attached to ugen ... hplip doesn't work > with ulpt .. > > [gonzalo@inferna ~]% pkg_info -xD hplip > Information for hplip-2.8.2_3: > > Install notice: > ********************************************************** > > **************** UPGRADE FROM 1.X NOTICE ***************** > > NOTE: If you are upgrading from 1.x you will need to > change your devfs ruleset as hpiod is now gone, so remove > it from you rc.conf. The printer communication now runs > through cupsd. You will need to make the devfs ruleset > changes to allow cups to access the usb bus and ugen > devices so that it can enumerate the printers. You will > also need to update your hplip.conf. See the instructions > below. > > **************** UPGRADE FROM 1.X NOTICE ***************** > > Add the following to your rc.conf: > > hpssd_enable="YES" > > So all you have to do if you have a custom ruleset setup > is add the following to that ruleset in devfs.rules: > > add path 'usb*' group cups > add path 'usb*' mode 0660 > add path 'ugen*' group cups > add path 'ugen*' mode 0660 > > If you have never setup devfs.rules please read the > manpage and see: > http://am-productions.biz/docs/devfs.rules.php > > The printer MUST attach as a ugen(4) device. This means > that you must NOT have "device ulpt" in your kernel and > ulpt must NOT be loaded as a kernel module. > > If you are seeing device connection errors restart the > printing chain with the following command. NOTE: It MUST > be restarted in the stated order. > %%PREFIX%%/etc/rc.d/hpssd restart && \ > %%PREFIX%%/etc/rc.d/cupsd restart > > If upgrading from a version < 2.7.9 copy the new > hplip.conf.sample config. > cp %%PREFIX%%/etc/hp/hplip.conf.sample \ > %%PREFIX%%/etc/hp/hplip.conf > > If you are still having problems check: > http://am-productions.biz/docs/hplip.php > If you are still having problems send the relevant part > of your /var/log/messages, console output from the hp-* > utility that you are trying to run, and your rc.conf + > devfs.rules files and the output of "ls -l /dev" to the > maintainer. > ********************************************************** > [gonzalo@inferna ~]% > > I've written a small guide on how to set up a printer using cups and hplip > in f reebsd 7.0 rel, but it is witten in spanish .. anyway ... i still > think it might help you out .. you can find it in here: > http://www.penguinpower.com.ar/foro/viewtopic.php?t=3019 > > Good luck! Thanks Gonzalo ! I will try your suggestion and let you know if I succeed. -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winedows FREE)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901041431.43557.mlobo>