Using New HPLIP Drivers in Puppy 4.3.x

Problems and successes with specific brands/models of printers
Message
Author
jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#21 Post by jakfish »

The rub is, any Puppy derivative that can run a current Chrome or use a Google Linux app can probably install a current HPLIP.

Jake

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#22 Post by jakfish »

An interesting turn, perhaps. In Windows, using the 3520's own printer ip--10.0.0.3:9100, I found that the old HP 990c driver works.

With my 4.3 machines, what pets would you recommend to see if this works with Puppy?

I prefer to be as basic as possible, so CUPS 1.1.23 is fine with me--as long as 1.1.23 will accept the ip address (1.3.11 actually found the 3520 in its network section)

Jake

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#23 Post by rcrsn51 »

Are you sure that you are running Puppy 432 and not 431? My copy of 432 has libjpeg.so.7 and yours does not.

The CUPS wizard in 432 is broken, making it difficult to get a printer installed. But the version of Gutenprint in 432 has a Deskjet 990C driver.

Are you using any swap? Is it possible that your problems are due to lack of memory and not drivers?

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#24 Post by jakfish »

Hi, rcrsn51,

Since Puppeee 1.0 runs so much faster on the eee 900 than 432 (on the Vaio, I'm using 4.32 v3, whose CUPS seems in good shape), I'm testing on the eee.

Driver: HP 990c on both XP SP3 and Puppeee
Samba: smb://10.0.0.10/990c
Printer IP: http:/10.0.0.3:9100
CUPS: 1.1.23

The printer is shared, and when I print in puppeee, I get no error message, and I see the document is received by XP/990c, I see the printer come to life, but I get no print out at all.

If I print directly to 3520 printer, I get "Unable to get printer status (client-error-bad-request)!" Printer does not turn on.

When I install CUPS 1.3.11, and print directly to printer, I get error "Unable to get printer status (Bad Request)!" Printer does not turn on.

With 1.3.11 and samba, I get the error: "Can't load /etc/opt/samba/smb.conf - run testparm to debug it"

Jake

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#25 Post by rcrsn51 »

1. Are you using swap?

2. Are you talking about the Gutenprint HP990C driver?

3. You appear to have gone from a scenario where printing partially worked to a new one where nothing works.

4. Jemimah had no interest in printers and there were numerous problems with printing in her builds. I have no way of testing puppeee, so I cannot comment on your problems.

5. However, I now have a procedure in place for running new HPLIP driver packages in Puppy 4.3.1. I got tired of the wonky behaviour in 4.3.2 and scrapped it. If you want to continue with this, you will need a clean install of 431 on some machine. We need to be on the same page to get this working.

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#26 Post by jakfish »

1. Are you using swap? >> No, the eee 900 has 2GB RAM

2. Are you talking about the Gutenprint HP990C driver? >> Yes

3. You appear to have gone from a scenario where printing partially worked to a new one where nothing works. >> Correct, but the HP 990c prints fine XP-to-3520

4. Jemimah had no interest in printers and there were numerous problems with printing in her builds. I have no way of testing puppeee, so I cannot comment on your problems. >> Okay

5. However, I now have a procedure in place for running new HPLIP driver packages in Puppy 4.3.1. I got tired on the wonky behaviour in 4.3.2 and scrapped it. If you want to continue with this, you will need a clean install of 431 on some machine. We need to be on the same page to get this working. >> In light of this, I now have fresh install of 4.31 on 1 GB SD card that I can use on the eee 900

Many thanks,
Jake

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#27 Post by rcrsn51 »

How to install recent HPLIP printer drivers in Puppy 4.3.1

1. Go here and install CUPS 1.3.11.

2. From the same page, install the setdefprn-1.0.pet.

3. Go here. Install the hplip_print-3.13.9.pet and hplip_print_legacy_cups_patch-1.3.11.pet.

4. Go here and install the libusb_4xx-1.0.pet.

5. Download and install the ghostscript_puppy431-8.64.pet.

6. Restart CUPS with: /etc/init.d/cups restart

7. Run the CUPS setup wizard and install your printer. Declare it as the default printer. THIS IS IMPORTANT.

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#28 Post by jakfish »

Success. You did it. W/ a fresh 4.31, a test page prints and so does Abiword. This is a CUPS setup that prints directly to the 3520.

I'm going to see if your setup works with my existing OSs and will post back.

Your determination and assistance really are things for the ages.

Jake

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#29 Post by jakfish »

W/ Puppeee 1.0/eee 900, everything worked as well, using the same steps. I successfully printed a test page and MS Word doc in Wine

But upon reboot, I got this error:

Unable to open file "/var/spool/cups/d00004-001 Permission Denied"

I realize that Puppeee may be problematic, but I was wondering if there is a workaround to this, considering that it did print.

Jake

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#30 Post by rcrsn51 »

This permissions problem also occurred with other users when upgrading to CUPS 1.3.11, particularly with USB installs. It has something to do with the special layered filesystem for PUPMODE=13 messing with the permissions of CUPS folders. It is discussed (at length) starting here.

The eventual solution was to create a script in /root/Startup named "cups-fix"

Code: Select all

/etc/init.d/cups stop
rm -rf /var/spool/cups
rm -rf /var/run/cups
(and maybe) rm -rf /var/cache/cups
/etc/init.d/cups start
This lets CUPS rebuild its folders with the right permissions.

BTW, it is also possible to upgrade the HPLIP scanner driver for Puppy 4.3.x. Once you have your printer installs done, we can look at this.

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#31 Post by jakfish »

Almost there. The script worked once, then not again upon a reboot.

Running each command in console, all work except this:

rm -rf /var/spool/cups

which produces error:

rm: cannot remove /var/spool/cups: input/output error

Jake

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#32 Post by rcrsn51 »

That error suggests some kind of corruption. You may need to reformat the drive and start again.

Are you running off the hard drive or an SD card?

If you check in the file /etc/rc.d/PUPSTATE, what is the value of PUPMODE?

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#33 Post by jakfish »

With Puppeee, I went back to previous save file (it's a frugal install on a sd card, but for speed, pupsave and sfs's are on the ssd drive), and I no longer got that error.

In the cups-fix script (which appeared to cause the
rm: cannot remove /var/spool/cups: input/output error), I put in some "sleep 2" commands and that fixed things.

So drumroll for rcrsn51...with his new HPLIP process for 4.31:


1) ttuuxx's 4.32 v3 will wirelessly print directly to a HP Deskjet 3520 [tested on a Sony Vaio Picturebook PGC-C1VN]

2) jemimah's Puppeee 1.0 (Celeron; couldn't test Atom) will wirelessly print directly to a HP Deskjet 3520 [tested on a eee 900]


This is amazing news. Especially that a 1998 116mb RAM netbook, built long before any wireless printer, can wirelessly use a current printer without even Samba as a go-between.

Many, many thanks, rcrsn51. Another of your tours de force.

Jake

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#34 Post by jakfish »

One small detail: I don't get a 3520 listing for printing either in Sylpheed/Geany. There are only:

Print to File
Print to LPR

However, clicking on Print to LPR will send email or text file to the 3520

If TextMaker is used, then "Default Printer Queue [System]" will send doc to printer. In the print menu, TextMaker says the command is "lpr -r %" which does seem connected to similar commands in Sylpheed/Geany.

Jake

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#35 Post by rcrsn51 »

jakfish wrote:One small detail: I don't get a 3520 listing for printing either in Sylpheed/Geany. There are only:
Print to File
Print to LPR
Yes. This is the other downside to upgrading CUPS. It breaks the connection with some GTK apps.

That's why I had you install the setdefprn applet. It lets you print to the default printer through LPR.

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#36 Post by jakfish »

That makes sense. TextMaker has never played well with Puppy printing and I remember having to jiggle the handle in its print menu since the chosen printer wouldn't show up.

The setdefprn would've helped then, too, I bet.

Post Reply