You are not logged in.

#1 2012-07-26 18:55:57

jpsimard
Member
Registered: 2011-04-15
Posts: 41

HP P1005 refusing to work

Since I began using Arch, this printer is the only real problem I've had.  I usually manage to get it running even after an update manages to gleefully surprise me with a new way to stop the printer, but not this time.

I have been trying to figure this one out for a while, but I have been stuck better than a 2 tons truck in 4 feet deep of mud without a winch.  The problem started about the same time ase the move of /lib to /usr/lib.  The only relation was that the udate didn't want to go through because I had hplip-plugin installed and that was the problem.  I updated the package, things got moved, and everything seemed fine, until I needed to print.  For now, the only way I can print is to use an Ubuntu VM and give off control of the printer, but that's not the best of situations.

From the behavior of the printer, I have the impression the firmware is not loaded on to it, as that usually causing some spinning and churning, which isn't happening.  I also had an error stating "printer-state-reasons=hplip.plugin-error" and "STATE: +hplip.plugin-error" in the cups log files, which would support this view I think.

Some more details:

1) I have looked at the permissions, which seem fine

2) I have hplip-plugin installed from the AUR (removing it servers no purpose as hp-setup fails)

3) I have not blacklisted usblp before the break, but doing that changed nothing.

4) using "hp-setup -i" always fails, but then it always has, even when the printer was working.

5) hp-makeuri prints out "device not found".

6) I usually used the cups web interface to add the printer and thing go fine, but not for the last week!

7) The printer does work in the Ubuntu VM and win7 (so it's not broken).

Any solutions or even just an idea as to what to look at would be greatly appreciated.

Last edited by jpsimard (2012-07-26 19:01:32)

Offline

#2 2012-07-27 09:25:38

dare023
Member
Registered: 2010-04-21
Posts: 64

Re: HP P1005 refusing to work

I have same printer,and works just fine,last time I checked (did not print anything for some days).
I use kde and all just install hplip , hplip-plugin,start cups and kde recognizes it.
It was broken  once , about month ago , due to some cups issues,after that I blacklisted cups and hplip and had no problems so far,but will check later.

Offline

#3 2012-07-27 12:26:49

jpsimard
Member
Registered: 2011-04-15
Posts: 41

Re: HP P1005 refusing to work

Yeah, I've used that printer with one distro or another since I bought it a couple of years back.  Overall, it is reliable enough with Linux.  This is just mind boggling right now.  I can't get it work at all, and it does seem like the firmware (provided by the plugin) just doesn't get loaded, but the reason for that is beyond my grasp.  Enven stranger, I did not change a thing to my system personnally, not one package, no changes for blacklisting or any other setting for that matter.

Anyway, I'm on XFCE myself, but for the hell of it, I might actually try KDE and see if that gets the thing working.  I doubt it will help, but I have already waste enough time that a little more wont matter!  Besides, I haven't given KDE a good look in while, so it might be fun even if it doesn't solve anything.  wink

Offline

#4 2012-07-27 16:54:58

dare023
Member
Registered: 2010-04-21
Posts: 64

Re: HP P1005 refusing to work

Guess what,mine is not working either.Just like that.System not even recognizes it as a printer,just like it is not there.
It is very annoying when you cannot rely that such simple thing as printer will just work when needed.
I am getting so tired of this s**t.

Last edited by dare023 (2012-07-27 17:16:40)

Offline

#5 2012-07-27 19:33:23

jpsimard
Member
Registered: 2011-04-15
Posts: 41

Re: HP P1005 refusing to work

An "ah crap" moment wasn't it?

In fact, if Ubuntu can manage to run the printer through a Virtualbox VM, how the hell can it be a problem with Arch itself considering it IS the real OS?  I plan at looking at what's installed on the Ubuntu VM to reproduce things on Arch.  If this yeilds anything interesting, I'll post back.

Offline

#6 2012-07-27 20:31:40

schlumpfimsumpf
Member
Registered: 2011-08-13
Posts: 29

Re: HP P1005 refusing to work

Had a simmilar problem with my hp laserjet 1018 yesterday. Turned out that the firmware was not loaded.Had to make a wired symbolic link from /include linking to /usr/include to get hp-firmware running (cause the python script loading the firmware was needing some include file that had been maybe hardcode to /include or my python environment variables are just wrong but i know to little about them not even if there are any). But i think you should at first try "udevd --debug" and see whats happening after turning on the printer.

Offline

#7 2012-07-27 22:36:48

jpsimard
Member
Registered: 2011-04-15
Posts: 41

Re: HP P1005 refusing to work

Using udevd --debug basically confirms that the problem is identical.  It specifically complains about not finding pyconfig.h.  This does also means that some of that moving things from /lib to usr/lib might be at the origin of this.  So I'm trying to do what you say, but I must be doing something wrong, so I have couple of questions.

1) Since I found only /usr/include, do I understand you correctly that a link must be made from /usr/include to point to /usr/lib/include? 

2) If so, I have tried "# ln -d /usr/include /usr/lib/include" but the system keeps saying I can't, what am I doing wrong? (what's a "wired" symbolic link anyway?)

Last edited by jpsimard (2012-07-27 22:38:52)

Offline

#8 2012-07-28 06:31:56

schlumpfimsumpf
Member
Registered: 2011-08-13
Posts: 29

Re: HP P1005 refusing to work

Oh what i did was "ln -s /usr/include /include" but i think it should only be a temporal solution we may have to fill a bug report oder change some environment variables to get a good solution. But actually i really have limited to real do an good solution now.

Offline

#9 2012-07-28 11:12:43

jpsimard
Member
Registered: 2011-04-15
Posts: 41

Re: HP P1005 refusing to work

Yeah, I did something similar.   Using udevd --debug, I notice there's a mistake somewhere because something is looking for files in "//include/...." which of course doesn't exist.  This problem seems so be affecting more than just our printers.  I'll look into it, as I think it's a bug with Arch's python 2 package.  If so, I'll report it.

Now I'm one step closer to getting the printer to work.  My current problem is that the firmware loads, the print job gets sent, the printer actually "clicks" once, than I get an /usr/lib/filter/hpcups failed...  Oh, the joy!

Offline

#10 2012-07-28 13:23:11

jpsimard
Member
Registered: 2011-04-15
Posts: 41

Re: HP P1005 refusing to work

Found this bug, which is certainly related.

https://bugs.archlinux.org/task/30812?s … ect=1&type[0]=&sev[0]=&pri[0]=&due[0]=&reported[0]=&cat[0]=&status[0]=open&percent[0]=&opened=&dev=&closed=&duedatefrom=&duedateto=&changedfrom=&changedto=&openedfrom=&openedto=&closedfrom=&closedto=

Offline

#11 2012-07-28 14:56:41

dare023
Member
Registered: 2010-04-21
Posts: 64

Re: HP P1005 refusing to work

Hope this will be solved somehow.
Edit :

 ln -s /usr/include /include 

After this when I turn printer on,normal starting routine goes (with blinking green/orange light) but printer is nowhere on system.

Last edited by dare023 (2012-07-28 18:49:10)

Offline

#12 2012-07-29 19:22:30

jpsimard
Member
Registered: 2011-04-15
Posts: 41

Re: HP P1005 refusing to work

@ Dare023

You have to add it to your system as you would usually do under KDE (whatever that is...).  The temporary fix with the symbolic link only allows the firmware to be uploaded, it does nothing to add the printer as available.

If you could report back the result, I would very much like that as my printer still doesn't work.

Last edited by jpsimard (2012-07-29 19:23:20)

Offline

#13 2012-07-29 19:45:40

dare023
Member
Registered: 2010-04-21
Posts: 64

Re: HP P1005 refusing to work

I just tried,printer is nowhere on system.I tried adding with printer configuration in kde,and also with cups.I have hplip and hplip-plugin installed,also tried ln command before starting printer.I  do not have a option for usb printer to add,but lsusb shows that is there

 Bus 001 Device 010: ID 03f0:3d17 Hewlett-Packard LaserJet P1005

Last edited by dare023 (2012-07-30 06:01:12)

Offline

#14 2012-07-30 00:58:31

jpsimard
Member
Registered: 2011-04-15
Posts: 41

Re: HP P1005 refusing to work

It wouldn't matter much as there is still a problem for me.  I doubt you would be lucky enough that it would run for you at this point.  Anyway, I reported the problem along with an other user, and hopefully someone more competent than us will solve this slight mess.  This is really beyond me, competent user or not...

Offline

#15 2012-08-07 18:53:54

tmoorman
Member
Registered: 2012-08-07
Posts: 22

Re: HP P1005 refusing to work

I had the same problem with my LaserJet P1005.  After upgrading cups and hplip, the printer would appear in cups and hp device manager but refuse to print anything.  Then I found, or refound, the solution.
Edit
  /etc/udev/rules.d/10-usbprinter.rules
to
  ATTR{idVendor}=="03f0", ATTR{idProduct}=="3d17", MODE:="666", GROUP:="lp"
Previously MODE was "0660" which indicates that it is permissions issue.  CUPS did not have permission to write to the device.
idVendor and idProduct are from lsusb.  On my system lsusb gives:
  Bus 005 Device 009: ID 03f0:3d17 Hewlett-Packard LaserJet P1005

Last edited by tmoorman (2012-08-07 18:54:31)

Offline

#16 2012-08-08 16:58:36

dare023
Member
Registered: 2010-04-21
Posts: 64

Re: HP P1005 refusing to work

Nope,not working for me.My  "/etc/udev/rules.d/10-usbprinter.rules" was empty ,added this line , rebooted - still not work.lsusb is

 Bus 001 Device 008: ID 03f0:3d17 Hewlett-Packard LaserJet P1005

Every time printer is turned on kde say "configuring printer",after that cups shows printer,but kde printer configuration does not,CTRL+P shows no printer.

Offline

#17 2012-08-10 21:39:17

looonger
Member
Registered: 2012-05-31
Posts: 3

Re: HP P1005 refusing to work

I had the same problem and solved it by installing foo2zjs from aur and pointing to this driver when setting up my printer via cups web interface.

Offline

#18 2012-08-11 18:00:58

dare023
Member
Registered: 2010-04-21
Posts: 64

Re: HP P1005 refusing to work

This one at least works,but not printing correctly some table borders from calc,while text is printing fine.I used this driver a while ago,and switched to hplip for that reason.Guess this will be a good just to have printer that works in most cases.

Offline

#19 2012-08-12 20:40:26

tmoorman
Member
Registered: 2012-08-07
Posts: 22

Re: HP P1005 refusing to work

Just to be clear, my HP LaserJet P1005 is now working as it should.  When power is turned on, a new usb device is detected and firmware is uploaded (i.e. the orange attention light flashes and the printer churns).  When printing the HPLIP Printer Test Page the page is printed properly and immediately.
I have the following foo packages installed:
foomatic-db
foomatic-db-engine
foomatic-db-nonfree
foomatic-filters
Also, when installing the plugin, it helps to follow the advice of https://bbs.archlinux.org/viewtopic.php?pid=1109516
This is how I do it.
# ln -s /usr/bin/python2 /home/tmoorman/tmp/python
# PATH=/home/tmoorman/tmp:$PATH hp-setup -i
hp-setup will crap out if you use python3 (which is what the default arch install has python pointing to).  This method keeps the default python link and uses a redirected link only for hp-setup.
And make sure that there exists /include.  Apparently, this was moved to /usr/include and hplip can't find the firmware without it.  Well, anyway, that is my educated guess.  When I added the symlink (ln -s /usr/include /include) the printer started responding as expected on power up.

Last edited by tmoorman (2012-08-12 20:54:24)

Offline

#20 2012-08-17 13:12:51

dare023
Member
Registered: 2010-04-21
Posts: 64

Re: HP P1005 refusing to work

I tried and failed,works only with foo2zjs,so far,but printing was better when worked with hplip.

Offline

#21 2012-08-20 23:26:01

jpsimard
Member
Registered: 2011-04-15
Posts: 41

Re: HP P1005 refusing to work

My printer still doesn't work.  With above suggestion, the printer start printing then fails.  Error message are less then helpfull too.  I'll try foo2zjs.

Offline

#22 2013-01-30 21:57:45

nirvanix
Member
From: Saskatoon
Registered: 2005-01-31
Posts: 193

Re: HP P1005 refusing to work

If you've tried everything else and still doesn't work try running /usr/bin/hp-firmware


I've got a lovely bunch of coconuts...

Offline

#23 2013-01-31 14:22:20

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: HP P1005 refusing to work

Do you use hpijs  or hpcups? (in case: try hpcups)
And install the binary plugin via aur - the hp way slightly sucks.

Offline

Board footer

Powered by FluxBB