Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

HP LaserJet 1020

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
21 posts • Page 1 of 1
Author
Message
swierke
n00b
n00b
Posts: 1
Joined: Sun Apr 17, 2005 9:07 am

HP LaserJet 1020

  • Quote

Post by swierke » Sun Apr 17, 2005 12:13 pm

I have a HP laserjet 1020 and I'm trying to get this printer working. I tried to find more information on google, http://www.linuxprinting.org/ and http://hpinkjet.sourceforge.net/ but I didn't find anything about this printer. I tried to use it as a laserjet 1010, 1012 or 1015 but the printer just sit there, doing nothing. The device /dev/usb/lp0 is there and dmesg gives me this:

Code: Select all

 usb 1-1: new full speed USB device using uhci_hcd and address 6
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
 
[/code]
Does anybody knows how to get this printer working?
thx,
swier
Top
CodAv
Apprentice
Apprentice
Posts: 171
Joined: Sun May 09, 2004 2:52 pm
Location: Essen, Germany
Contact:
Contact CodAv
Website

  • Quote

Post by CodAv » Mon May 02, 2005 7:45 pm

It's been a while since you posted this, but I've found a solution which may help you at http://support.ideainformatica.com/hplj1020/

Here's the "Gentoo translation" ;)

First, I think you tried to get it working with gimp-print / foomatic, you have hotplug installed, and your CUPSd is configured and works, otherwise, see the tutorials in the Tips&Tricks section or use the search function.

Now do the following steps (# as root, $ as normal user):

Code: Select all

# emerge foo2zjs
$ wget http://support.ideainformatica.com/hplj1020/foo2zjs.tar.gz
$ tar xzpf foo2zjs.tar.gz
$ cd foo2zjs
$ make
# make install
# make install-hotplug
Then, plug your printer, restart cupsd, and use your favorite CUPS interface to add the printer, which is now available in the HP printer list.

That's all, it worked for me, so it should do for anyone else. Hopefully, the package maintainer of foo2zjs will update his package with these drivers.
Debian is available in three different versions: rusty, stale and broken.
Top
gifkins
n00b
n00b
Posts: 12
Joined: Fri Feb 13, 2004 10:49 pm
Location: Calgary/Alberta/Canada

  • Quote

Post by gifkins » Mon Jul 18, 2005 5:12 am

Good to find this post, very helpful
I did everything you said. Here is what I get in /etc/cups/printers.conf
<DefaultPrinter hp1020>
Info
Location
DeviceURI usb://HP/LaserJet%201020
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
however when i tried to print a test page from CUPS, nothing came out, printer is completely silent. The job is 'aborted' after a few seconds and
if I click 'restart' button/link next to that aborted job, I got:
Error:
client-error-not-possible
The dmesg showed:
usb 1-1: new high speed USB device using ehci_hcd and address 6
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
drivers/usb/class/usblp.c: usblp0: failed reading printer status
It appears the last line is where the problem is. But I just can't figure out why.

Also firmware seems loaded okay.
usb_printerid /dev/usb/lp0 shows
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet 1020;CMD:ACL;CLS:PRINTER;DES:HP LaserJet 1020;FWVER:20041129;
Thanks for any help.
Top
CodAv
Apprentice
Apprentice
Posts: 171
Joined: Sun May 09, 2004 2:52 pm
Location: Essen, Germany
Contact:
Contact CodAv
Website

  • Quote

Post by CodAv » Thu Aug 04, 2005 7:36 pm

Hm. About a week ago, my printer worked fine, but now I've getting the same error. Probbly some update broke the support again... damn. But doing the "make install-hotplug" command again solved the problem. Seems hotplug's paths have changed in the recent past.
Debian is available in three different versions: rusty, stale and broken.
Top
ixion
l33t
l33t
User avatar
Posts: 708
Joined: Mon Dec 16, 2002 1:53 pm

  • Quote

Post by ixion » Thu Aug 11, 2005 11:56 am

cheers for this thread!

I finally got the HP1020 installed by following these directions, but when printing the test page, it come out all garbled and blurry. Is there something I've missed possibly?
only the paranoid survive
Top
ixion
l33t
l33t
User avatar
Posts: 708
Joined: Mon Dec 16, 2002 1:53 pm

  • Quote

Post by ixion » Fri Aug 12, 2005 2:14 pm

anyone who got this working, would you mind sharing your USE variables, and related foomatic packages installed. I have hpijs installed as well as gimp-print. Could those be interfering?
only the paranoid survive
Top
ixion
l33t
l33t
User avatar
Posts: 708
Joined: Mon Dec 16, 2002 1:53 pm

  • Quote

Post by ixion » Sat Aug 13, 2005 3:03 pm

I re-ran 'make install-hotplug', but that didn't solve it for me. I still have this in dmesg:

Code: Select all

usb 1-2: usb timed out on ep0in
drivers/usb/class/usblp.c: usblp0: failed reading printer status
and the printer still prints blurred.

Edit: Enabled Loadable Module support in kernel, rebooted, re-ran make, etc, restarted CUPS, reinstalled printer, nogo.
only the paranoid survive
Top
CodAv
Apprentice
Apprentice
Posts: 171
Joined: Sun May 09, 2004 2:52 pm
Location: Essen, Germany
Contact:
Contact CodAv
Website

  • Quote

Post by CodAv » Sun Aug 14, 2005 12:44 pm

That's weird. I've either got my printer to work, or not, but I never had any blurry output. Referring to your PN, I have no special kernel configuration. The only additional USE flags I added for CUPS were cups, foomaticdb and ppds. You should also have the flag usb, but this will probably already be the case.

Please check if the following packages are installed and configured:

- cups (core printing system)
- foomatic (driver repository)
- foo2zjs (foomatic to ZJScript translator)
- hotplug (to support hot plugging)
- coldplug (to support cold plugging)
- psutils (needed by CUPS to convert documents)

If you're not sure about one of those packages, try to re-emerge it, this solved my latest problem.
Debian is available in three different versions: rusty, stale and broken.
Top
ixion
l33t
l33t
User avatar
Posts: 708
Joined: Mon Dec 16, 2002 1:53 pm

  • Quote

Post by ixion » Sun Aug 14, 2005 8:24 pm

Thank you for your reply!

I've done as you suggested with the USE flags, and emerging the above packages, but still same issue, printing blurred. The printer prints fine in Windows. I added coldplug to the runlevel default, and it reports the firmware is already loaded on the printer.

redoing 'make install && make install-hotplug' didn't solve this, either.

do you think that one of my already installed gimp-print, hpijs, foomatic-* packages might be conflicting?

edit: followed the below tutorial to no avail:
http://support.ideainformatica.com/hplj1020/
only the paranoid survive
Top
ixion
l33t
l33t
User avatar
Posts: 708
Joined: Mon Dec 16, 2002 1:53 pm

  • Quote

Post by ixion » Wed Aug 17, 2005 11:48 am

Just FYI, found this article:

http://support.ideainformatica.com/hplj1020/
DISTRIBUTIONS NOTES
NOTE: It seems that printing with a page format other that A4 causes the printer to print blur.
Thanks to Bart de Neuter
I switched to A4, and it seems to print well. It does lock up very easily and requires a reboot, though, but it's doable for now.

Does anyone think there's a chance more official drivers may end up in hpijs, or maybe foo2zjs drivers will get better? If so, then I will end up keeping this printer, but if not, it's getting sold and time to move onto something more stable with Linux. What do you guys think?
only the paranoid survive
Top
oddjobz
n00b
n00b
Posts: 29
Joined: Thu Mar 04, 2004 1:12 pm
Location: UK
Contact:
Contact oddjobz
Website

HP 1020 printer problems

  • Quote

Post by oddjobz » Thu Sep 01, 2005 4:36 pm

Hi,

For what it's worth I'm in the same position.

The printer works fine .. for the first print. Then the organge and green light flash alternately and dmesg says;
[kernel] drivers/usb/class/usblp.c: usblp0: error -110 reading printer status

And the next print just site in the queue ..
Rebooting the printer and restarting the job seems to be the only "cure" ..

Something is going badly wrong with the driver / generic setup , I don't think I'm doing anything wrong according to the docs ...

If anyone's gotten past this, live to hear!

Incidentally, upgrading from 2.6.9 to 2.6.12 got rid of extra "error on pin 40" USB messages, howeber the remaining issue is still a killer ...
(!)
Top
genstef
Retired Dev
Retired Dev
User avatar
Posts: 668
Joined: Sun Jun 13, 2004 10:33 am
Location: M/Bay/Germany
Contact:
Contact genstef
Website

  • Quote

Post by genstef » Mon Sep 26, 2005 5:52 pm

I updated the foo2zjs ebuild with the patch for hplj1020 and a new loading for udev:

http://dev.gentoo.org/~genstef/files/ov ... oo2zjs.tar

Please test and tell me if it is working.
Be sure to remove the hotplug script: /etc/hotplug/usb/hplj*
Top
thebigjc
n00b
n00b
Posts: 3
Joined: Wed Dec 28, 2005 6:51 am

  • Quote

Post by thebigjc » Wed Dec 28, 2005 7:12 am

I posted a fix to the blurry problem on letter paper here:

http://forums.gentoo.org/viewtopic-t-378173.html
Top
nunogt
Tux's lil' helper
Tux's lil' helper
Posts: 134
Joined: Wed Dec 08, 2004 7:45 pm
Location: Lisbon, Portugal

  • Quote

Post by nunogt » Mon Jan 09, 2006 2:27 am

Just emailed HP about this lack of drivers. HPLIP sourceforge page lists almost every printer model EXCEPT this one, the one I bought. Damn it. So, unless HP officially supports this printer under linux (and fast) I'm returning it to the vendor. I don't really consider the mentioned solution efficient, I'd call it a hack, and honestly I need a reliable printer.
Top
genstef
Retired Dev
Retired Dev
User avatar
Posts: 668
Joined: Sun Jun 13, 2004 10:33 am
Location: M/Bay/Germany
Contact:
Contact genstef
Website

  • Quote

Post by genstef » Sat Jan 14, 2006 9:10 am

The driver works pretty well here for me. I do not understand your rant. Just emerge the latest version and be happy.
Top
CodAv
Apprentice
Apprentice
Posts: 171
Joined: Sun May 09, 2004 2:52 pm
Location: Essen, Germany
Contact:
Contact CodAv
Website

  • Quote

Post by CodAv » Thu Feb 09, 2006 12:09 am

After an upgrade to udev-084, the firmware upload is broken again. I'll try to fix this issue when I've got some time, and in the meantime I upload the firmware file manually by executing

Code: Select all

# cat /lib/firmware/sihp1020.dl > /dev/usb/lp0
as root after switching the printer on.
Debian is available in three different versions: rusty, stale and broken.
Top
CodAv
Apprentice
Apprentice
Posts: 171
Joined: Sun May 09, 2004 2:52 pm
Location: Essen, Germany
Contact:
Contact CodAv
Website

  • Quote

Post by CodAv » Fri Feb 10, 2006 10:57 am

Ok, fixed it. Simply the firmware upload script "/sbin/foo2zjs-loadfw" didn't exist anymore. I created it with the following content:

Code: Select all

#!/bin/sh

cat /lib/firmware/sihp${1}.dl > ${DEVNAME}
That's all, now my printer works again. But make sure the file '/etc/udev/rules.d/58-foo2zjs.rules' exists on your system, and contains the following lines:

Code: Select all

BUS=="usb", KERNEL=="lp[0-9]*", SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="0517", RUN+="/sbin/foo2zjs-loadfw 1000"
BUS=="usb", KERNEL=="lp[0-9]*", SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="1317", RUN+="/sbin/foo2zjs-loadfw 1005"
BUS=="usb", KERNEL=="lp[0-9]*", SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="2b17", RUN+="/sbin/foo2zjs-loadfw 1020"
Debian is available in three different versions: rusty, stale and broken.
Top
ugluk
n00b
n00b
Posts: 64
Joined: Fri Oct 06, 2006 2:59 am

  • Quote

Post by ugluk » Sat Oct 21, 2006 12:18 pm

the info on these pages is somewhat misleading, this is what worked for me

Code: Select all

su
cd
emerge cups
emerge foomatic
wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
tar xvf foo2zjs.tar.gz
cd foo2zjs
./getweb 1020
make
make install
<start cupsd and configure>
cat /root/foo2zjs/sihp1020.dl >/dev/usb/lp0 # add this to local.start to forego hotplugging
all works! (with A4 paper) on amd64!

Suppose an ebuild could be made? How to become a developer?
Top
jleejj
n00b
n00b
User avatar
Posts: 57
Joined: Sun Jan 18, 2004 3:19 am
Location: Eugene, OR

  • Quote

Post by jleejj » Sat Jan 27, 2007 6:31 am

Okay, so here's a solution if nothing else has worked for you. I bought an HP1020 and had it working within an hour of getting home. You can still find my positive post somewhere on the forum. Less than a week later it stopped working after an emerge, and 3 months of occasional attempts at fixing it were unsuccessful. I tried the official package and I tried the foo2zjs package in portage. Neither worked. The kernel would see the device, I could see /dev/usb/lp0, the log would record loading the firmware .. but CUPS couldn't see the device, lpinfo -v didn't list a USB device, and the log would get messages like this:

Code: Select all

drivers/usb/class/usblp.c: usblp0: failed reading printer status 
But sometimes with an error 110 or something like that as well. Finally, I read on one of the CUPS sites that the firmware in the official package might be bad. I pulled the firmware from the driver installed in my Windows XP work laptop (the driver package from HP) and that solved it!

Solution:

So, here's my strategy for solving this. First, follow the steps of the post directly above this one. The package from the foo2zjs web site worked for me. The package from Gentoo did not. YMMV. This has the added advantage that your firmware file won't get overwritten by an emerge accidentally. Don't forget this step after the install:

Code: Select all

make install-hotplug
(It's missing in the instructions above.) Now, download the official driver from HP for the 1020. The direct link is here for me, but you can browse around and find it on your own if this doesn't work or you have a slightly different model:

http://h10025.www1.hp.com/ewfrf/wc/soft ... 20&lang=en

Unpack the driver. You can do this in Wine if you don't have a Windows machine around:

Code: Select all

wine ./lj1020-1022-HB-pd-win2kxp-en.exe
Now look in the install directory for the following file: hp1020.img (Once again, pick the correct model firmware as needed.) This the printer firmware file. It is typically found here:

Code: Select all

C:\Program Files\Hewlett-Packard\LaserJet 1020-1022 Drivers
Obviously, if you unpacked this in Wine you should be looking in ~/.wine/drive_c for this path. While you're there, compare that file to the 'official' one installed by the foo2zjs:

Code: Select all

ls -l hp1020.img /usr/share/foo2zjs/firmware/sihp1020.dl
I saw this:

Code: Select all

-rw-r--r--  1 root root 128820 Jan 25 13:01 sihp1020.dl
-rw-r--r--  1 root root 126151 Jan 22 17:10 /usr/share/foo2zjs/firmware/sihp1020.dl
I note that now there is yet another firmware available, at least in my unpacking just now by wine (the sizes are slightly different). Anyway, the important point is that the foo2zjs package pulls in a firmware of about 126k and the package from HP was about 128k. So, simply overwrite your recently installed firmware from foo2zjs with the one you just unpacked:

Code: Select all

cp hp1020.img /usr/share/foo2zjs/firmware/sihp1020.dl
You might want to back-up the old one first. Anyway, from this point I just restarted CUPS, turned on my printer, went to http://localhost:631/, and had my printer working and running off a test page in about 5 clicks.

Hope this helps.
Top
musikaras
n00b
n00b
Posts: 3
Joined: Tue Jun 07, 2005 2:34 pm

  • Quote

Post by musikaras » Fri Feb 09, 2007 4:28 pm

jleejj, did you use the hplip package or are you printing directly to USB?
Top
jleejj
n00b
n00b
User avatar
Posts: 57
Joined: Sun Jan 18, 2004 3:19 am
Location: Eugene, OR

  • Quote

Post by jleejj » Fri Feb 09, 2007 5:10 pm

I'm printing directly. I tried both methods, and the hplip system didn't help any. I would expect that the real problem was the bad ROM though, as it seems that people have got this to work either way.
Top
Post Reply

21 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy