HP LaserJet P1005 / P1007 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
P1005 works, but no persistence [solved; Slackware 12.2]
Posted by: business_kid ()
Date: May 14, 2009 07:53AM

I have set up a HP P1005 under Slackware-12.2 and Slamd64-12.2 on 2 separate boxes. Slamd64 is a 64 bit port of slack. For the record, the foo2zjs docs are excellent. Slackware & slamd64 use /etc/rc.d/rc.cups and http://localhost:631 for configuring a printer. It offers kde, not gnome; it also has xfce as a 'low cholesterol window manager' and my personal choice.

This printer replaces my Epson Stylus C70, and works this way: I can turn on, rapidly download the firmware, the cat <fw> >/dev/usb/lp0 >/dev/usb/lp0 (a very simple instruction is erratic). If the firmware goes down (orange light for a few secs) it prints.

After any length of standby, /dev/usb/lp0 vanishes. Here's the transaction in dmesg
usb 1-3: new high speed USB device using ehci_hcd and address 3
usb 1-3: New USB device found, idVendor=03f0, idProduct=3d17
usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-3: Product: HP LaserJet P1005
usb 1-3: Manufacturer: Hewlett-Packard
usb 1-3: SerialNumber: BB08HLP
usb 1-3: configuration #1 chosen from 1 choice
usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x03F0 pid 0x3D17
usbcore: registered new interface driver usblp
usblp0: removed

:-O?
I have no clue why /dev/usb/lp0 is gone and hoped you might know why, if not where. usblp.ko is still loaded. This occurs on 32 bit and 64 bit boxes, and never occurred with the Epson, so I conclude it's printer related. Printing is disabled, of course, and cups jobs vanish I then get

/dev/usb/lp0: No such device in the logs

kernel versions are 2.6.21.5 & 2.6.29.1 hplip never heard of slackware, and bombs out. I tried it before I found foozjs on the 64 bit machine, and it's firmware.py is sometimes the only way to get firmware down to the printer.
The word 'sometimes' is most un-linux like, but this is the situation.

Finally a newbie question: When the P1005 throws an error (e.g. out of paper), and sits there with the orange light on, what's the recovery procedure.



Edited 2 time(s). Last edit at 05/14/2009 02:49PM by rickrich.

Options: ReplyQuote
Re: P1005 works, but no persistence [Slackware 12.2]
Posted by: rickrich ()
Date: May 14, 2009 08:36AM

Remove hplib. It is closed source.

Follow all instructions.

$ make
$ ./getweb P1005
$ su
# make install install-hotplug cups
Power down then up the printer.
# usb_printerid /dev/usb/lp0

What does that say???

Read this

Options: ReplyQuote
Re: P1005 works, but no persistence [Slackware 12.2]
Posted by: rickrich ()
Date: May 14, 2009 08:49AM

"Finally a newbie question: When the P1005 throws an error (e.g. out of paper), and sits there with the orange light on, what's the recovery procedure."
Pop up the printer output tray, then put it down. You should see the firmware getting loaded again, approximately 10 seconds with the orange light.

Options: ReplyQuote
Re: P1005 works, but no persistence [Slackware 12.2]
Posted by: business_kid ()
Date: May 14, 2009 02:15PM

/Sheepish grin
I think I have it sorted. I missed the bit about loading a .dl firmware file instead of a .img. I was loading the firmware from the wrong place. /dev/usb/lp0 is not going away when I install the correct file.

bash-3.1$ sudo usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet P1005;CMD:HBS,PJL,ACL;CLS:PRINTER;DES:HP LaserJet P1005;FWVER:20080415;

Thanks for the newbie tip also. Now I know this is making a pain of myself, but what's the hotplug stuff supposed to do? I'm not sure it's doing anything in Slackware

Options: ReplyQuote
Re: P1005 works, but no persistence [Slackware 12.2]
Posted by: rickrich ()
Date: May 14, 2009 02:41PM

Loads the firmware.

Options: ReplyQuote
Re: P1005 works, but no persistence [solved; Slackware 12.2]
Posted by: business_kid ()
Date: May 15, 2009 05:23AM

Eh . . not here. I'll look into it. I was thinking of something like this in /etc/modprobe.d/

install usblp /sbin/modprobe -i usblp; pause 10; cat /usr/share/foo2xqx/sihpP1005.dl > /dev/usb/lp0

But I will post back if I can recommend something.

Options: ReplyQuote
Re: P1005 works, but no persistence [solved; Slackware 12.2]
Posted by: rickrich ()
Date: May 15, 2009 07:41AM

Works on Slackware 12.1....

Did you do "make install-hotplug"???

Options: ReplyQuote
Re: P1005 works, but no persistence [solved; Slackware 12.2]
Posted by: rickrich ()
Date: May 15, 2009 07:43AM

From Fedora 10:
$ grep P1005 /var/log/messages
May 11 12:03:36 dual kernel: usb 1-5.1.2: Product: HP LaserJet P1005
May 11 12:03:37 dual /etc/hotplug/usb/hpljP1005: foo2zjs: loading HP LaserJet P1005 firmware /usr/share/foo2xqx/firmware/sihpP1005.dl to /dev/usb/lp1 ...
May 11 12:03:37 dual /etc/hotplug/usb/hpljP1005: foo2zjs: ... download successful.
May 14 07:44:20 dual kernel: usb 1-5.1.2: Product: HP LaserJet P1005
May 14 07:44:21 dual /etc/hotplug/usb/hpljP1005: foo2zjs: loading HP LaserJet P1005 firmware /usr/share/foo2xqx/firmware/sihpP1005.dl to /dev/usb/lp1 ...
May 14 07:44:21 dual /etc/hotplug/usb/hpljP1005: foo2zjs: ... download successful.

Options: ReplyQuote
Re: P1005 Fully sorted Slackware 12.2/Slamd64
Posted by: business_kid ()
Date: May 15, 2009 08:20AM

OK, I have this

It works in Slackware 12.2, but not in slamd64. This is because I did the ./getweb bit _after_ the make install, and so no .dl file exists. But I know how to sort that. Thanks for the help!

Options: ReplyQuote
Re: P1005 works, but no persistence [solved; Slackware 12.2]
Posted by: rickrich ()
Date: May 15, 2009 09:04AM

Follow *ALL* instructions!

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.