From owner-freebsd-questions@FreeBSD.ORG Sun Jan 4 17:18:10 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D28F1065672 for ; Sun, 4 Jan 2009 17:18:10 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by mx1.freebsd.org (Postfix) with ESMTP id 0FDF38FC0C for ; Sun, 4 Jan 2009 17:18:09 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so3100133yxb.13 for ; Sun, 04 Jan 2009 09:18:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=DwGP9iT1LOqWN0XLkgkGQB3df0TGtGdPv8OcLnEoDXs=; b=Ll0SPc6KkH2pXtTSG8PcSJJnj2IDuqIiDl007E2KLWYtbk6iJU7Jsol07RhI64dmui qaznHcJQYcz6rrqw7vvAHp7UYjvJUi+oLBs235VOXszrJqT2g7+XEukAU7/HWXTg+sit fJnsmKJuZDWD0LH1m7HE/HyvByEefosjf0Bvc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=H7hQFh7TB+n2QTzPe+tiQ+zMUko9N9i3s2FO5YOjapa8ITrUFYzTjxKW9w0V6NgSGN OBjXr94F8umKp/wUobLZo92FXAFasqaKyycy5NYJ05pQR7ehvt2GnMiQvOfDCy1tR27C M+DEODskT7gWmUJ14fVOA3YXi+6/GP5r4pHhI= Received: by 10.90.102.15 with SMTP id z15mr9195583agb.107.1231089488637; Sun, 04 Jan 2009 09:18:08 -0800 (PST) Received: from ?192.168.1.100? ([190.177.208.4]) by mx.google.com with ESMTPS id 9sm31545358agc.31.2009.01.04.09.18.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 04 Jan 2009 09:18:08 -0800 (PST) From: Gonzalo Nemmi To: freebsd-questions@freebsd.org Date: Sun, 4 Jan 2009 15:18:06 -0200 User-Agent: KMail/1.9.10 References: <200901041321.34688.mlobo@digiart.art.br> In-Reply-To: <200901041321.34688.mlobo@digiart.art.br> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901041518.06115.gnemmi@gmail.com> Subject: Re: USB printer problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jan 2009 17:18:11 -0000 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! -- Blessings Gonzalo Nemmi