From owner-freebsd-questions@freebsd.org Sat Jul 25 16:42:22 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 E381B9AACAF for ; Sat, 25 Jul 2015 16:42:21 +0000 (UTC) (envelope-from ramirocaso08@gmail.com) Received: from mail-qg0-x231.google.com (mail-qg0-x231.google.com [IPv6:2607:f8b0:400d:c04::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A4EC12C5 for ; Sat, 25 Jul 2015 16:42:21 +0000 (UTC) (envelope-from ramirocaso08@gmail.com) Received: by qgii95 with SMTP id i95so27091603qgi.2 for ; Sat, 25 Jul 2015 09:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=GvwAAKwToaYi5itZ/xDj1FhGbmBglpmWOwsEtV6mNzM=; b=eKfXFt6ATZ2WImaP3l+acYSV6haokhPLJaonKv7de9MqCuYU8czQLMc6F8IEVGBbmg N/FF5Lv7ukUIycF/+KgCH2fD3J3Po+9GKzjTMEDZ2gl8ZDIqi8BivKwvLkJUVewFF1Dz v1U48JeNvLEVRRzMprhEOYfBVvxj66W/m+KOYulgNAs1WWLQSr63+tH1kTPA6bsPYOzD 4veFq5RBpk1SwytsVIX+gu7ecAWd4Sz43uswe72o2fxU1Tt+4Ev8bTS6HiRPL8lkpfUG vdNnQJqibg8KBG+ALN3jUzFrkoEqLeRtCbmK8jJv/vQ9aIlIrRiDJFBKU0yRT6ooRgaK B5Ww== X-Received: by 10.140.147.14 with SMTP id 14mr30374451qht.97.1437842540592; Sat, 25 Jul 2015 09:42:20 -0700 (PDT) Received: from [192.168.1.100] ([186.22.126.147]) by smtp.googlemail.com with ESMTPSA id d10sm5875708qhc.9.2015.07.25.09.42.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Jul 2015 09:42:19 -0700 (PDT) Message-ID: <55B3BC68.2020705@gmail.com> Date: Sat, 25 Jul 2015 13:42:16 -0300 From: Ramiro Caso User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Ulpt problems. References: <55B0BE81.70208@bananmonarki.se> <884706.24465.bm@smtp116.sbc.mail.ne1.yahoo.com> <55B1A2D3.9040707@bananmonarki.se> <55B217F6.1000603@bananmonarki.se> In-Reply-To: <55B217F6.1000603@bananmonarki.se> Content-Type: text/plain; charset=windows-1252; 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, 25 Jul 2015 16:42:22 -0000 Here's how far I got (I have a working printer without ulpt and with cups). On 24/07/2015 07:48, Bernt Hansson wrote: > On 2015-07-24 05:37, Warren Block wrote: >> On Fri, 24 Jul 2015, Bernt Hansson wrote: >> >>> It seems that one needs ulpt, otherwise the printer isn't found. >>> So I added to /boot/loader.conf ulpt_load="YES" then the printer is >>> found by cups and hplip. >>> In order to use a printer with cups and ugen instead of ulpt, you have to put some rules in devfs.rules, something like: add path 'usb*' mode 0770 group cups add path 'ugen*' mode 0660 group cups add path 'usb/4.3.*' mode 0660 group cups Where 4.3 is where the printer appears (just running usbconfig tells you where that is). Maybe the rules are redundant, I don't recall anymore, but again it worked for me. These rules give cups access to the printer device. >>> But I do not want to use cups so I deinstalled it. Cups can't print >>> a testpage so I resorted to lpd. >>> Which can't print anything, so back to cups that too can't print >>> anything. So I'm stuck. >> >> The ulpt module is loaded by /etc/devd/usb.conf. The file says >> "please do not edit", and I don't know how those modules are disabled. >> You have to create a configuration file for devd under /usr/local/etc. What I did is to copy the entries in usb.conf that load the ulpt module into this new file, change the priority to something higher than 32, and change the action from "kldload -n ulpt" to a trivial action, "true". I think there is a better, non hackish thing to do, but it worked for me. >>> Printer is HP laserjet P2055d >> >> That printer supports PostScript directly, so following the LPD setup >> in the Handbook is the easiest course. Deinstall CUPS first, because >> it has not-quite-compatible commands with the same names as the real >> ones. >> >> If the printer has a network interface, that is the preferred >> connection. But USB will work, too. >> >> > Now that it finds the printer it's not printing anything with cups or > lpd. > I'm using apsfilter and lpd. Hplip is deinstalled so is cups. But no > cigar. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"