hplip and hpliplite packages

Problems and successes with specific brands/models of printers
Message
Author
linbie
Posts: 64
Joined: Sat 09 Jan 2010, 05:03

Can't switch between print and Scan

#76 Post by linbie »

Hi

I installed the HPlite pet - Printer/Scanner = HP F2280

Printing working fine.

Xsane sees the scanner but says the "device is busy".

Turn printer off and back on - Xsane now finds the scanner and works fine BUT now the device will not print.

Turn printer off and back on - Scanner still OK but printer not working.

Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

#77 Post by Shep »

Okay, after spending another 6 hours attempting to install the printer,
I finally got back to where I was when Ifirst posted to this thread! :cry:

(Along the way I uninstalled the latest hplip-lite pet and downloaded the
official one, hpliplite-3.9.8-mu-p4.pet, but in retrospect I'm confident
this was not necessary.)

I made the "-U" change, and downloaded and installed the necessary
library. It all works, now.

I believe I have identified the problem that was causing the CUPS
firefox installation process to crawl along so slowly. There should be
a way to return CUPS configuration to its 'factory default'. Somehow,
the list of printer names is not being cleared, and it seems each time
that I attempted to install the printer, the manufacturers list of
printers kept being added to the list I had to scroll through. So instead
of scrolling through a list of, say, 500 hp printers, I ended up scrolling
through a list of tens of thousands of printers, the list comprising
groups of up to 81 adjacent identical lines. (Had I really tried to install
it 81 times?? No, I definitely had not.) Now, it wasn't good enough to
highlight just any corresponding printer name, it had to be the first
matching printer name, otherwise it then said unable to copy
ppd file
. Firefox was taking 90% of the CPU just to try to
scroll through this list, and the "blue bar" was not present so I could
not see what was currently selected. What an ordeal! I don't think I
should yet try to tempt windows users to try puppy linux. :(

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#78 Post by disciple »

What an ordeal! I don't think I
should yet try to tempt windows users to try puppy linux.
Dude - it's not normally an ordeal. You seem to have had something uniquely weird go wrong with your CUPS.
Normally one would just download and install hplip-lite, select the printer and be done in about 2 minutes. On Windows it takes me about half an hour to install a hugely bloated set of drivers and programs (can't just install the drivers), which then give me an incredibly slow, memory hungry and user-unfriendly interface to do things. Then when I want to print from a networked computer I can't because it runs a newer version of Windows, so I have to contact HP support to give me a secret link to a secret 80MB drivers only package. Give me CUPS+HPLIP-lite+Sane any day :roll:
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

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

#79 Post by rcrsn51 »

There should be a way to return CUPS configuration to its 'factory default'.
I can't comment on how CUPS is configured in Dpup, but the ususal solution to the multiple-entry issue is to just reboot your machine. Or kill and restart the CUPS daemon.

One of the advantages of CUPS 1.3.x is that you don't need to mess with static PPD files which may get duplicated on your system. They can be generated on-the-fly from a single database, so your particular situation would be avoided.
Last edited by rcrsn51 on Sat 06 Feb 2010, 13:21, edited 1 time in total.

lluamco
Posts: 208
Joined: Fri 16 Mar 2007, 09:10
Location: Banyoles, Spain

possible workaround?

#80 Post by lluamco »

@Shep
Sorry for all your problems getting hpliplite to work. I have reproduced the repetition you mention when trying to install a printer with hpliplite-3.9.8 and 3.9.12 versions. I do not know the reason that causes it, but I guess (fingers crossed) I have found a possible workaround.
If you don't mind trying it and giving feedback, I suggest the following

1. Stop cups with the command

/etc/init.d/cups stop

2. remove a symbolic link (which I believe is the cause of the problem)

rm /usr/share/ppd/ppd

3. Replace the file /etc/cups/ppds.dat (where cups stores the list of the printers), which is corrupted due to the above looping link, by the one I attach in the end of this message. Please note that you have to gunzip it and then copy it at the correct location and file permissions: The sequence of commands is:

gunzip ppds.dat.gz
cp ppds.dat /etc/cups/ppds.dat
chmod 644 /etc/cups/ppds.dat


4. Restart cups issuing

/etc/init.d/cups start

That should be all.
I hope that helps.
Attachments
ppds.dat.gz
(11.99 KiB) Downloaded 638 times

Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

#81 Post by Shep »

disciple wrote:You seem to have had something uniquely weird go wrong
The story of my life!![/size] :wink: :P

Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

Re: possible workaround?

#82 Post by Shep »

lluamco wrote:@Shep
If you don't mind trying it and giving feedback, I suggest the following

1. Stop cups with the command

/etc/init.d/cups stop
I'm not clear on the procedure I should follow. Do you want me to first
uninstall the printer, then click on the CUPS wizard and begin reinstalling
the printer? And at what stage do I go to a terminal screen and stop CUPS?

CUPS is not a constantly running background process here. Should it be??
Last edited by Shep on Tue 09 Feb 2010, 09:03, edited 1 time in total.

Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

#83 Post by Shep »

rcrsn51 wrote:
There should be a way to return CUPS configuration to its 'factory default'.
I can't comment on how CUPS is configured in Dpup, but the ususal solution to the multiple-entry issue is to just reboot your machine.
Are you saying what I tripped up on is a known issue? :x
The machine was shut two nights in a row, and that did nothing to fix
the problem.

lluamco
Posts: 208
Joined: Fri 16 Mar 2007, 09:10
Location: Banyoles, Spain

Re: possible workaround?

#84 Post by lluamco »

Shep wrote:
lluamco wrote:@Shep
If you don't mind trying it and giving feedback, I suggest the following

1. Stop cups with the command

/etc/init.d/cups stop
I'm not clear on the procedure I should follow. Do you want me to first
uninstall the printer, then click on the CUPS wizard and begin reinstalling
the printer? And at what stage do I go to a terminal screen and stop CUPS?
I was suggesting to open a terminal screen and run the commands. Afterwards,
you can install/reinstall your printer using the cups wizard.
In the meantime, I have realized that the commands to be executed in the terminal can be simplified to this four command's sequence:

Code: Select all

/etc/init.d/cups stop
rm /usr/share/ppd/ppd
rm /etc/cups/ppds.dat
/etc/init.d/cups start
Note that there is no need to download the above ppds.dat.gz file, since cups regenerates it.

Edit: cupsd is constantly running in the background in puppy 4.3.1. I do not know in dpup.

Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

Re: possible workaround?

#85 Post by Shep »

lluamco wrote:

Code: Select all

/etc/init.d/cups stop
rm /usr/share/ppd/ppd
rm /etc/cups/ppds.dat
/etc/init.d/cups start
Showing caution, I tentatively tried:

# /etc/init.d/cups stop
cups: stopped scheduler.
# ls -l /usr/share/ppd/ppd
lrwxrwxrwx 1 root root 14 2010-02-04 21:58 /usr/share/ppd/ppd -> /usr/share/ppd
# ls -l /etc/cups/ppds.dat
ls: cannot access /etc/cups/ppds.dat: No such file or directory


Is that informative?

And there is no cups string in `ps a` here, though I don't have a
printer connected right now.

lluamco
Posts: 208
Joined: Fri 16 Mar 2007, 09:10
Location: Banyoles, Spain

Re: possible workaround?

#86 Post by lluamco »

Shep wrote:
lluamco wrote:

Code: Select all

/etc/init.d/cups stop
rm /usr/share/ppd/ppd
rm /etc/cups/ppds.dat
/etc/init.d/cups start
Showing caution, I tentatively tried:

# /etc/init.d/cups stop
cups: stopped scheduler.
# ls -l /usr/share/ppd/ppd
lrwxrwxrwx 1 root root 14 2010-02-04 21:58 /usr/share/ppd/ppd -> /usr/share/ppd
# ls -l /etc/cups/ppds.dat
ls: cannot access /etc/cups/ppds.dat: No such file or directory


Is that informative?

And there is no cups string in `ps a` here, though I don't have a
printer connected right now.
OK, I have been looking at dpup. It uses cups.1.3.8, a more recent version that the one included in puppy.4.3.1. The cups daemon is also permanently running, and you can check it issuing

Code: Select all

ps aux | grep cupsd
On the other hand, the location of the ppds.dat file is changed. In dpup, it is located at /var/cache/cups/ppds.dat. Thus the correct sequence of commands in dpup is:

Code: Select all

/etc/init.d/cups stop
rm /usr/share/ppd/ppd
rm /var/cache/cups/ppds.dat
/etc/init.d/cups start
(You can replace rm /var/cache/cups/ppds.dat by mv /var/cache/cups/ppds.dat /var/cache/cups/ppds.dat.keep if you feel uneasy...)
Finally, when you install the printer, there are still some models repeated, but only a few times (two times, typically). I think this is harmless...

lluamco
Posts: 208
Joined: Fri 16 Mar 2007, 09:10
Location: Banyoles, Spain

hpliplite-3.10.2

#87 Post by lluamco »

hpliplite updated to version 3.10.2
See first post

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

Re: hpliplite-3.10.2

#88 Post by edoc »

lluamco wrote:hpliplite updated to version 3.10.2
See first post

I followed the instructions:

hpliplite-3.10.2 INSTALLATION:

Please install first the package libnetsnmp-15.pet,
http://dotpups.de/puppy4/dotpups/Printi ... nmp-15.pet
or
http://puppyfiles.ca/dotpupsde/puppy4/d ... nmp-15.pet

and afterwards install

http://dotpups.de/puppy4/dotpups/Printi ... 3.10.2.pet or
http://puppyfiles.ca/dotpupsde/puppy4/d ... 3.10.2.pet
I am getting a "Media Tray Empty" error, though there is paper and this printer was recently working on a different pc.

I did try powering the printer down and up again in case it needed to reset.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#89 Post by edoc »

This code does not work for me:
mkdir /usr/share/hplip/prnt/plugins
mkdir /usr/share/hplip/data/firmware
install_hp_plugin name_of_the_correct_plugin
This directory did not exist, so I needed to add a step to create it:
mkdir /usr/share/hplip/prnt/
This was not recognized:
install_hp_plugin name_of_the_correct_plugin
So I tried this:

Code: Select all

install hp_plugin name_of_the_correct_plugin
Here is the output from rxvt:
# install_hp_laserjet_p1006.plugin
bash: install_hp_laserjet_p1006.plugin: command not found
# install hp_laserjet_p1006.plugin
install: missing destination file operand after `hp_laserjet_p1006.plugin'
Try `install --help' for more information.
# cd /usr/share/hplip/prnt/plugins
# install_hp_laserjet_p1006.plugin
bash: install_hp_laserjet_p1006.plugin: command not found
# install hp_laserjet_p1006.plugin
install: missing destination file operand after `hp_laserjet_p1006.plugin'
Try `install --help' for more information.
#
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#90 Post by edoc »

What is this trying to tell me, please?

The "Device URI" looks especially weird.
HP Photosmart c4400 Series hpijs, 3.9.12.29
Description: c4480
Location: dmc
Printer State: idle, accepting jobs.
"/ioerror in --.outputpage--"
Device URI: usb://Q8388A?serial=CN894HZ1660557
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

lluamco
Posts: 208
Joined: Fri 16 Mar 2007, 09:10
Location: Banyoles, Spain

#91 Post by lluamco »

Hi edoc,
I have no experience with printers requiring plugins. However, although you are right that you needed to create the directory you mentioned,
edoc wrote:This directory did not exist, so I needed to add a step to create it:
mkdir /usr/share/hplip/prnt/
it is strange that the command
install_hp_plugin name_of_the_correct_plugin
was not recognized.

1. Did you downloaded your needed plugin

Code: Select all

hp_laserjet_p1006.plugin 
from
http://www.linuxprinting.org/download/p ... P/plugins/ ?

2. Did you install the install_hp_plugin.pet ?(it is available at http://dotpups.de/puppy4/dotpups/Printi ... plugin.pet)
Once this pet is installed, you should be able to execute the command

Code: Select all

 install_hp_plugin hp_laserjet_p1006.plugin 
Can you please try it again and give feedback?

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#92 Post by edoc »

It works fine on my 4.31 Puppy laptop but not on her 4.21 Puppy laptop.

Is that the difference or should I look for something else that may be missing?

I do need to upgrade her laptop but am kinda stalling ... 4.31 is pretty stable ...
but Lighthouse Pup, despite or because of the KDE-bloat, has a lot of features that would be useful to her. Hmmmmm.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#93 Post by edoc »

I am returning to the never-ending battle to coax CUPS into playing nicely with Puppy.

I am running Wary 030 and need either my HP Laserjet P1006 or HP Photosmart C4480 to work.

I would, of course, prefer that both work but at this point after 2-3 weeks without a working printer I will take what I can get.

The HP site lists several versions of Linux when you go to download their Linux driver for the P1006 but sadly, they do not include Puppy as an option. Which of the versions are most likely to be compatible with Wary 030, please?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

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

#94 Post by rcrsn51 »

Check your other post.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#95 Post by edoc »

CUPS generates a blank screen when I go here: http://localhost:631/ then select Manage Printers.

This happened before and after loading the foo2xxx_r220909-0.0-i486.pet

Did I need to do a reboot?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

Post Reply