From owner-freebsd-questions@freebsd.org Sun Oct 11 07:32:11 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 47022A11C2C for ; Sun, 11 Oct 2015 07:32:11 +0000 (UTC) (envelope-from alnis.m@mail.com) Received: from mout.gmx.com (mout.gmx.com [74.208.4.201]) (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 164A6120B for ; Sun, 11 Oct 2015 07:32:11 +0000 (UTC) (envelope-from alnis.m@mail.com) Received: from blazon-pc.rw.local ([78.84.244.14]) by mail.gmx.com (mrgmxus002) with ESMTPSA (Nemesis) id 0LrvGC-1ajNcu0GRa-013eez for ; Sun, 11 Oct 2015 09:32:03 +0200 Subject: Re: Can't print to HP LJ 1020 using foo2zjs and CUPS To: freebsd-questions@freebsd.org References: <56181D6F.6010200@mail.com> <5618E152.7060301@bananmonarki.se> From: Alnis Morics Message-ID: <561A1064.9030009@mail.com> Date: Sun, 11 Oct 2015 10:31:48 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <5618E152.7060301@bananmonarki.se> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:EGxXXfz7i24eIvmmmJ172ENFBtnBJwr4UFYd5F/4UqlcBAnwARa uDwDR8ZD02SDSvxSeyaYz6/eExHV9Xcn5KbctLkRmnNeD2KimVWZ1z7U4vVshy62d7rfKH2 eeZJOHz3ZzlrZUWHKvV5Ds2oX8uyydHcIzHV4I8zVfAUliyAWu+vxIyiG4TlzYERRodzl2K vjsIsWT+iyD6rKwBrpKCQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:bLzCEe1ock8=:L5uNNcaKsNOaCAtneFIuwk 77ImBWPCxyLUcHgNi/VLxRudqbGcmXvEggC3SHgFA0iN0p4zO4iwO9epfEwpr0/h6RBDhZBbU A+76h9tkM0+YSDrxmSDgOYut4G8gIyB1KQuL6XjyqJSNIgZqDAUqcwJ5LsL9PTncRBVdqaWvo eL/yVZjnUl+JckEaUAJudefXgL2LXupaBQ6vPRsvzDkMnI1Xlt4urBOuBVulu73i6BYKjWZtf tI9rgx1gCY3ULTP9h1tzY9cLJnIl551kRAgaCW0Kbx+mKVDmssPzIz9fL0zLF8Zpc8TqJO3G1 ZepxqgBOa4M0I2xU1414Aur6Enuc9WW1mza4YdoiMfg5gxtUDm85ZYUfORHXSfufghVGaI/W6 ogD/aPlmpHx6YegfLFcJSt9cHQ25Fwdw8kSFl4BdpRlX+b4zwcjx0f3cNG7Zd8P8B7ULWIQjf ozkpZ/rNusHP2KrX/V3rE5xKmdARu3AJyLeciAe9m7hifhj609VV8h7q7uC/Jx3FQu8dIojGs TpoxXttLTeFDyO8rHefjBFkNOTeI6qpTjiz5sbvXrgxNn68OD7DKUBdxRVSVEJA7EsbqAcBnD O9hmpn8xR4d4iyJKHgKlTfBbUfqAh86UfJ1XsVtvBKw3wUXRuq1syohT5pLnCSIka9ug4YZL1 C/OXiiVZ8id6I31KH83rzN53PsRLhKzr8t2pOBv/Z9t7DqhcTNW+ejC227K1faezdcg1B89Kh 8GlOriE2DWBuqeAvaD6qhnowFQ8EXsjKeJAuMaR31Qdn5xblUPxuETaG8sTLobKMUANk8ieas txe5/bc 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: Sun, 11 Oct 2015 07:32:11 -0000 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: > 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. Klaus, how exactly did you manage to build the kernel without ulpt? I first tried to specify in /etc/make.conf: WITHOUT_MODULES = usb/ulpt then MODULES_OVERRIDE = 3dfx 3dfx_linux Makefile Makefile.inc aac aacraid accf_data accf_dns accf_http acl_nfs4 acl_posix1e acpi ae aesni age agp aha ahb ahci aic aic7xxx aio alc ale alq amdsbwd amdtemp amr an aout apm ar71xx arcmsr arcnet asmc asr ata ath ath_ahb ath_pci autofs auxio bce bfe bge bios bktr bm bridgestp bwi bwn bxe cam canbepm canbus cardbus carp cas cbb cc cd9660 cd9660_iconv ce cfi ciss cm cmx coff coretemp cp cpsw cpuctl cpufreq crypto cryptodev cs ct ctau ctl cx cxgb cxgbe dc dcons dcons_crom de digi dpms dpt drm drm2 dtb dtrace dummynet ed elink em en ep epic esp et ex exca ext2fs fatm fdc fdescfs fe filemon firewire firmware fuse fxp gem geom glxiic glxsb gpio hatm hifn hme hpt27xx hptiop hptmv hptnr hptrr hwpmc hyperv i2c ibcore ibcs2 ichwd ida ie if_bridge if_disc if_edsc if_ef if_epair if_faith if_gif if_gre if_lagg if_me if_ndis if_stf if_tap if_tun if_vlan if_vxlan igb iir imgact_binmisc io ip6_mroute_mod ip_mroute_mod ipdivert ipfilter ipfw ipfw_nat ipmi ipoib ips ipw ipwfw isci iscsi iscsi_initiator isp ispfw iwi iwifw iwn iwnfw ix ixgb ixgbe ixl ixlv ixv jme joy kbdmux kgssapi kgssapi_krb5 khelp krpc ksyms le lge libalias libiconv libmbpool libmchain lindev linprocfs linsysfs linux lmc lpt mac_biba mac_bsdextended mac_ifoff mac_lomac mac_mls mac_none mac_partition mac_portacl mac_seeotheruids mac_stub mac_test malo mcd md mem mfi mii mlx mlx4 mlx4ib mlxen mly mmc mmcsd mpr mps mpt mqueue mrsas msdosfs msdosfs_iconv mse msk mthca mvs mwl mwlfw mxge my nand nandfs nandsim ncv ndis netfpga10g netgraph netmap nfe nfs_common nfscl nfsclient nfscommon nfsd nfslock nfslockd nfsserver nfssvc nge nmdm nsp ntb nullfs nvd nve nvme nvram nxge oce opensolaris padlock patm pccard pcfclock pcn pf pflog pfsync plip pmc pms powermac_nvram ppbus ppc ppi pps procfs pseudofs pst pty puc qlxgb qlxgbe qlxge ral ralfw random rc rc4 rdma re reiserfs rl rndtest rp s3 safe sbni scc scd scsi_low sdhci sdhci_pci sem send sf sfxge sge siba_bwn siftr siis sio sis sk smbfs sn snc snp sound speaker splash sppp ste stg stge streams svr4 sym syscons sysvipc ti tl tmpfs toecore tpm trm twa twe tws tx txp uart ubsec ubser uchcom ucycom udf udf_iconv ufs unionfs utopia vesa vge viawd virtio vkbd vmm vmware vpo vr vte vx vxge wb wbwd wi wlan wlan_acl wlan_amrr wlan_ccmp wlan_rssadapt wlan_tkip wlan_wep wlan_xauth wpi wpifw wtap x86bios xe xl zfs zlib usb/at91dci usb/atmegadci usb/atp usb/aue usb/avr32dci usb/axe usb/axge usb/cdce usb/cue usb/dwc_otg usb/ehci usb/g_audio usb/g_keyboard usb/g_modem usb/g_mouse usb/ipheth usb/kue usb/mos usb/musb usb/ohci usb/quirk usb/rsu usb/rsufw usb/rue usb/rum usb/run usb/runfw usb/smsc usb/template usb/u3g usb/uark usb/uath usb/ubsa usb/ubser usb/uchcom usb/ucom usb/ucycom usb/udav usb/udbp usb/uep usb/uether usb/ufm usb/ufoma usb/uftdi usb/ugensa usb/uhci usb/uhid usb/uhso usb/uipaq usb/ukbd usb/uled usb/umass usb/umcs usb/umct usb/umodem usb/umoscom usb/ums usb/upgt usb/uplcom usb/ural usb/urio usb/urndis usb/urtw usb/urtwn usb/urtwnfw usb/usb usb/usfs usb/usie usb/uslcom usb/uss820dci usb/uvisor usb/uvscom usb/wsp usb/xhci usb/zyd (i.e., all directories in /usr/src/sys/modules except usb, plus all subdirectories of usb, except usb/ulpt) but in both cases ulpt.ko got installed. -Alnis