d983 Setting up USB Printer - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Peripheral Hardware

Peripheral Hardware Stuff that plugs in via USB, FireWire, eSATA, PS/2, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old May 9th, 2012, 18:32
feralape feralape is offline
Member
 
Join Date: Nov 2008
Posts: 146
Thanks: 2
Thanked 4 Times in 4 Posts
Default Setting up USB Printer

Hi, I have the following printer:

Code:
<Hewlett-Packard HP LaserJet 1020, class 0/0, rev 2.00/1.00, addr 2>
It works fine under Windows 7. I went though the handbook and installed CUPs and the foo2zjs driver. Under CUPs web interface I see the printer and add it. Everything appears fine. I even print a test job and CUPs says it was successful, but doesn't print.

In CUPs it shows this:
Code:
HP LaserJet 1020 (HP LaserJet 1020)
HP LaserJet 1020 USB FN22LTV HPLIP (HP LaserJet 1020)
I tried both of them.

dmesg
Code:
uhub4: 8 ports with 8 removable, self powered
ugen1.2: <PIXART> at usbus1
ums0: <PIXART USB OPTICAL MOUSE, class 0/0, rev 1.10/1.00, addr 2> on usbus1
ums0: 3 buttons and [XYZ] coordinates ID=0
ugen4.2: <Hewlett-Packard> at usbus4
ugen4.3: <vendor 0x058f> at usbus4
uhub5: <vendor 0x058f product 0x6254, class 9/0, rev 2.00/1.00, addr 3> on usbus4
ugen1.3: <Lite-On Technology Corp.> at usbus1
ukbd0: <Lite-On Technology Corp. HP Basic USB Keyboard, class 0/0, rev 1.10/1.04, addr 3> on usbus1
kbd0 at ukbd0
uhub5: 4 ports with 4 removable, self powered
ulpt0: <Hewlett-Packard HP LaserJet 1020, class 0/0, rev 2.00/1.00, addr 2> on usbus4
ulpt0: using bi-directional mode
ulpt0: <Hewlett-Packard HP LaserJet 1020, class 0/0, rev 2.00/1.00, addr 2> on usbus4
ulpt0: using bi-directional mode
I also tried building kernel without ulpt (but keeps auto loading it I guess?). I also tried the hplip drivers, but my printer doesn't show up.

/etc/rc.conf
Code:
cupsd_enable="YES"
devfs_system_ruleset="system"
/etc/devfs.rules
Code:
[system=10]
add path 'ulpt0' mode 0660 group cups
add path 'usb/4.2.0' mode 0660 group cups
There are no errors in any of my logs. Everything indicates that it's working fine (test page says "Success"). How do I troubleshoot this?

It's a standard black/white printer, no color, no scanner, no fax, etc. This is FreeBSD 9 btw, most guides I've found on google are for 8 or below.

Last edited by feralape; May 9th, 2012 at 18:58.
Reply With Quote
  #2  
Old May 10th, 2012, 11:18
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,851
Thanks: 445
Thanked 1,829 Times in 1,495 Posts
Default

Try the unlpt0 non-resetting device instead of plain ulpt0.
Reply With Quote
  #3  
Old May 10th, 2012, 20:05
feralape feralape is offline
Member
 
Join Date: Nov 2008
Posts: 146
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by wblock@ View Post
Try the unlpt0 non-resetting device instead of plain ulpt0.
Thanks. I tried that, but same thing. Under CUPS I print test page and still comes back with
Code:
completed at Thu May 10 13:59:47 2012
I tried on 'debug' option for logging, but it just spams a bunch about the http/cgi server.

Also shouldn't this work? lptest > /dev/unlpt0? Should I set up lpr printing first? I was just following the CUPS guide assuming CUPS could print directly?

My goal here is to share it out to windows clients. I don't care much about native printing. What do I need for this? CUPS + foo drivers + samba?

error.log: http://pastebin.com/sC3XSxyk

This is the guide I'm going by: http://www.freebsdonline.com/content/view/645/506/, is it still valid for 9.0?

Last edited by DutchDaemon; May 10th, 2012 at 22:29. Reason: Formatting & Style: http://forums.freebsd.org/showthread.php?t=8816 / http://forums.freebsd.org/showthread.php?t=18043
Reply With Quote
  #4  
Old May 11th, 2012, 11:01
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,851
Thanks: 445
Thanked 1,829 Times in 1,495 Posts
Default

Plain text printing may not work on that printer, it's "host-based". After it is turned on, a firmware download is required before it will work. See http://www.openprinting.org/printer/HP/HP-LaserJet_1020.
Reply With Quote
  #5  
Old May 13th, 2012, 01:19
feralape feralape is offline
Member
 
Join Date: Nov 2008
Posts: 146
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by wblock@ View Post
Plain text printing may not work on that printer, it's "host-based". After it is turned on, a firmware download is required before it will work. See http://www.openprinting.org/printer/HP/HP-LaserJet_1020.
Thanks again for the reply.

Yep, I tried that and it does seem to take. That is, the printer lights starts flashing and realigning heads, etc. But still after firmware is uploaded, can't get it to print in CUPS or in Windows (via Samba share).

Last edited by DutchDaemon; May 13th, 2012 at 02:05.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up USB printer sideburn Peripheral Hardware 35 April 16th, 2013 22:37
Setting up HP IP printer (wifi) forkandwait Peripheral Hardware 5 May 8th, 2012 23:22
How to use a USB printer ? errandonea Peripheral Hardware 21 April 18th, 2011 15:15
Printer help dd1313 Peripheral Hardware 7 January 10th, 2010 16:16
[Solved] Setting up IP Printer (FBSD 7.2r) fuzzynco Peripheral Hardware 9 October 20th, 2009 14:08


All times are GMT +1. The time now is 06:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0