From owner-freebsd-questions@freebsd.org Wed Oct 21 09:36:33 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 4B7A2A1BC29 for ; Wed, 21 Oct 2015 09:36:33 +0000 (UTC) (envelope-from alnis.m@mail.com) Received: from mout.gmx.com (mout.gmx.com [74.208.4.200]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 20A01D2B for ; Wed, 21 Oct 2015 09:36:33 +0000 (UTC) (envelope-from alnis.m@mail.com) Received: from [192.168.2.192] ([78.84.244.14]) by mail.gmx.com (mrgmxus002) with ESMTPSA (Nemesis) id 0MBFQZ-1Zegwu48Cz-00ABOL for ; Wed, 21 Oct 2015 11:36:26 +0200 Message-ID: <56275C96.9090608@mail.com> Date: Wed, 21 Oct 2015 12:36:22 +0300 From: Alnis Morics User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Can't print to HP LJ 1020 using foo2zjs and CUPS References: <56181D6F.6010200@mail.com> <5618E152.7060301@bananmonarki.se> <561A1064.9030009@mail.com> In-Reply-To: <561A1064.9030009@mail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:DkP2oQrgDX7tGV94hqz6slLHiCcKY9jwKmRsF6ozp7HQUC8UNOt yhrm23yGrXF2SsrFGvJs7vj2oTOgyImsKFl5tZ9mRiExePR/FR/1uOj9zLE5NQ03khF9Zs6 qdmmtqS6X49MvyDftjF1PPo2ZpPeQyDSofzGZ04vjjot3w2941wNlEpCeF6if5qU+DuHoBb 3+SHy1obJ45jdvl56dplQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:olIqhsnbCu0=:r2NKWC8IOUgJe34ZQQvQYj IoIDXNJ21skWhhJiwjImPNb57JpiGeQigzEMziCTjuz8pLHLxH/jXh52LgMQHER9kGoYwZXuo WPqGSlmjgO8ElKyBg9Xu26yad2HnDzTuMeDSYGAqBqP945IOUV/Z6P4hqiuAX20SF+KuQUDBa DyGJg0vAZ0v5f95yJoEtrkdZ1EoHfwEt/4lJ2ftofAQn9/9eJK1mIvF4t/9GGO0vZDnxYlt0f OYmW0s4zQ6moEJlcsxyeQjIVntil57qT9q+XpIAPbr5eJB795GEr+NE4c3ACDzCwaYqVxkwpN 0HigrrMQKWo6JVb+gVCEaUN97Y8IZnnX7LcYOccOcY9fYy8MXcF++F3rpXw69WrrmsKOWPYaV f8htHjKSlGkcjObXNPi1pj/ry31myKpQoP5XSded0OdI35igeF5ydOPr2guvxgP6glafc/7P1 ky2E78SsMByd56H/sjmGctarrkKMz3f8SeUcO/LY8jYfzqao8D09u4v3wEZNVJVqIa7QLoZ7d vWML/rKNhCWEgze2cZkHeq8PpoCLSb0/1d0R2t7q/mnkYvRM6oTsW0RmGVST7v6oYehOOlQdi vVf15WTeB3jEqFxr1iL1ZnFg45qUHliW1RknKzrFYGwiQliTWwOPtcSetbDEPzkDaHcqmHTwT tn1EgwowDA59Hdx5GAUOLfyv9CFbUZqJqm/lQeRWouv0gi4VhH8OVVgMi8Rbye669VDggLhtq 0OV4XX1aJsjZC+dGAUx0iF4hX/19dQ859yfiYdfp8JVJinFes+mJd0DrwL7VNmJJB52WxiAX3 Zd0zqCn 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: Wed, 21 Oct 2015 09:36:33 -0000 On 10/11/2015 10:31 AM, Alnis Morics wrote: > > > On 10/10/2015 12:58, Bernt Hansson wrote: >> 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: >> addr >>> 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. >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" > Thank you, Bernt. unlpt results in the same as ulpt: it is possible to > send the firmware but nothing happens when I try to print to unlpt. > > Ok, I rebuilt the kernel without ulpt.ko, as Klaus suggested but the results are the same: From dmesg: [..] ugen4.3: Then # cat sihp1020.dl > /dev/ugen4.3 cat: stdout: Input/output error If I use arm2hpdl /usr/local/share/foo2zjs/firmware/sihp1020.img > /dev/ugen4.3 then no error message is rendered but the printer doesn't reinitialize anyway. The same if I use /dev/usb/4.3.0 instead of /dev/usb4.3. Nothing is connected to any other usb ports at the moment. So, after sending the firmware to ulpt (if it is built), ulpt turns offline, and sending the firmware to ugen results on input/output error. I tried this on two machines with the same printer. The printer, however works ok on Debian with foo2zjs and with exactly the same firmware (checked with md5). FreeBSD version is 10.2-RELEASE-p5 What could be done about this? -Alnis