From owner-freebsd-questions@freebsd.org Sat Oct 10 10:13:59 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A9DCDA100D7 for ; Sat, 10 Oct 2015 10:13:59 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 066BE1140 for ; Sat, 10 Oct 2015 10:13:56 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from kw.news4all.se (testbox.usenet4all.se [10.0.0.3]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id t9A9wgmf097889; Sat, 10 Oct 2015 11:58:43 +0200 (CEST) (envelope-from bah@bananmonarki.se) Subject: Re: Can't print to HP LJ 1020 using foo2zjs and CUPS To: Alnis Morics , freebsd-questions@freebsd.org References: <56181D6F.6010200@mail.com> From: Bernt Hansson Message-ID: <5618E152.7060301@bananmonarki.se> Date: Sat, 10 Oct 2015 11:58:42 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <56181D6F.6010200@mail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2015 10:13:59 -0000 On 2015-10-09 22:02, Alnis Morics wrote: > Hi, > > I'm trying to set up HP LaserJet 1020 on 10.2-RELEASE with CUPS and > foo2zjs. That worked on previous versions of FreeBSD, although there > were changes with devices to use (I gues it was ulpt to ugen and back to > ulpt in 10.0). > > But now none of them works for me. > If I use ulpt, the moment I plug in the printer or turn it on: > > ugen3.2: at usbus3 (disconnected) > ugen3.2: at usbus3 > ugen3.2: at usbus3 (disconnected) > ugen3.2: at usbus3 > ulpt0: 2> on usbus3 > ulpt0: using bi-directional mode > ulpt0: offline > > CUPS doesn't find this printer. I can still add it manually but when I > try to print, nothing happens, and there are no error messages. I found > out that it is exactly after the firmware is downloaded that ulpt0 turns > offline (should it?). > > If I use ugen (rebuilt CUPS with LIBUSB, moved away > /boot/kernel/ulpt.ko), then CUPS detects the printer but no firmware > gets downloaded, and, of course, I can't print. When I try to send the > firmware manually > > cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/ugen3.2 (or > /dev/usb/3.2.0) > > the result is an input/output error. > > Any ideas of what might be wrong or how it should work now? > > > Permissions in /etc/devfs.rules: > # Begin printers_foo2zjs (added by foo2zjs/freebsd-install) > [printers_foo2zjs=42] > add path 'ulpt*' mode 0660 group cups > add path 'unlpt*' mode 0660 group cups > add path 'ugen*' mode 0660 group cups > add path 'usb/*' mode 0770 group cups > # End printers_foo2zjs (added by foo2zjs/freebsd-install) Try unlpt instead of ulpt.