WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Hplip  (Read 16943 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: Hplip
« Reply #75 on: April 22, 2020, 08:11:12 AM »
imho, the correct ppd file for your printer will be created by hplip on the fly and will be the one at the top of the list.

I believe the colord warning can be ignored.

The trick is how to load the hplip firmware from the hplip-plugins extension into your printer...

What does "hp-firmware -d<device-uri>  -i -ldebug" give (where you substitute your device id from hp-info)?

Offline techsuper

  • Newbie
  • *
  • Posts: 34
Re: Hplip
« Reply #76 on: April 23, 2020, 09:06:21 AM »
hello,
thanks, but before I try that.
I turned on cups debug logging and performed the same steps.

I have reviewed all 3 log files that it generated and combined them into a short text file.
Does this error indicate that a library is missing?

b

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: Hplip
« Reply #77 on: April 23, 2020, 09:28:18 AM »
That error shows that you need to update your copy of the ghostscript extension
« Last Edit: April 23, 2020, 09:39:23 AM by Juanito »

Offline techsuper

  • Newbie
  • *
  • Posts: 34
Re: Hplip
« Reply #78 on: April 24, 2020, 08:02:47 PM »
Hello,
First of all, I am unable to get the device ID.
hp-info has always shown a red colored warning "no device found".

the only way to get any response from hp-firmware was to use
hp-firmware -d <uri> -i -L debug
this yielded a response in light blue,  hp-firmware [7672]:
debug: mode 0
debug: {}
with no response from the printer.

Second: How am I supposed to update the ghostscript extension?
I have ran the tce-audit and tce-update commands with no change.
Opened APPS Check for Updates, nothing found.
Ghostscript looks like its included with hplip.
It can't be deleted by itself and it was removed by deleting hplip and hplip-extensions.

While re-installing hplip, I saw that ghostscript, cups and others dependencies were installed.
I reinstalled hplip-extensions and turned on cups debug.
The same gs: libidn.so.11 error is present with the same filter failed message.

Side note: I have also tested with another distro, Linux Lite.
the p3005 works no matter which one of the four drivers it lists to use.

thx


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: Hplip
« Reply #79 on: April 24, 2020, 11:14:10 PM »
Assuming that you are using CorePure64 11.x, do you get this:
Code: [Select]
$ cat /etc/sysconfig/tcedir/optional/ghostscript.tcz.md5.txt
2f94b893d509661ff85adc5eca9b9d9a  ghostscript.tcz
$ ldd /usr/local/bin/gs | grep idn
        libidn2.so.0 => /usr/local/lib/libidn2.so.0

You can check your md5sum against the server here: http://repo.tinycorelinux.net/11.x/x86_64/tcz/ghostscript.tcz.md5.txt

I tested again with the following:
Code: [Select]
$ tce-load -i hplip
$ sudo passwd
$ sudo /usr/local/etc/init.d/dbus start
$ sudo /usr/local/etc/init.d/cups start

Then in a browser:
http://localhost:631/admin
click on "add printer" button
choose: Discovered Network Printers: Officejet 6700 Premium e-All-in-One (HP Officejet 6700)
choose driver: HP Officejet 6700, hpcups 3.20.3 (en)

configured printer:
Driver: HP Officejet 6700, hpcups 3.20.3 (color, 2-sided printing)
Connection: socket://192.168.1.170:9100

Then:
Code: [Select]
$ hp-makeuri 192.168.1.170
...
CUPS URI: hp:/net/Officejet_6700?ip=192.168.1.170
SANE URI: hpaio:/net/Officejet_6700?ip=192.168.1.170
HP Fax URI: hpfax:/net/Officejet_6700?ip=192.168.1.170

$ hp-probe -bnet
...
Device URI                               Model           Name   
  ---------------------------------------  --------------  --------
  hp:/net/Officejet_6700?ip=192.168.1.170  Officejet_6700  HP86C02B

..and printing and scanning work.

(note that hp-info and many other hp-* commands cannot find my printer)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: Hplip
« Reply #80 on: April 24, 2020, 11:58:33 PM »
This works:
Code: [Select]
$ hp-info -x -dhp:/net/Officejet_6700?ip=192.168.1.170
..where -x = allow device URIs of uninstalled printers  :o

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: Hplip
« Reply #81 on: April 25, 2020, 01:08:16 AM »
Ah-ha - some progress..

"hp-setup -i" complained that /usr/local/share/cups/model was missing. After creating that directory, "hp-setup -i" works and creates another cups printer with the same uri as the existing printer and also creates a file such that:
Code: [Select]
$ cat ~/.hplip/hplip.conf
[last_used]
device_uri = hp:/net/Officejet_6700?ip=192.168.1.170

..and now hp-info, hp-testpage, hp-scan, hp-levels and friends all work  8)
« Last Edit: April 25, 2020, 01:39:12 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: Hplip
« Reply #82 on: April 25, 2020, 01:38:26 AM »
Updated hplip extension posted to x86_64 repo.

There is no need to use the cups browser admin to add a printer, it can be done with:
Code: [Select]
$ sudo passwd
$ sudo /usr/local/etc/init.d/dbus start
$ sudo /usr/local/etc/init.d/cups start
$ hp-setup -i (root password needed to confirm)

Offline andyj

  • Hero Member
  • *****
  • Posts: 1022
Re: Hplip
« Reply #83 on: April 25, 2020, 06:40:29 AM »
"hp-setup -i" complained that /usr/local/share/cups/model was missing. After creating that directory, "hp-setup -i" works and creates another cups printer with the same uri as the existing printer
I wonder if this is why I get duplicate printers in Slackware?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: Hplip
« Reply #84 on: April 25, 2020, 06:55:18 AM »
Maybe, but you'd typically use either cups or hplip to add a printer, but not both?

Offline andyj

  • Hero Member
  • *****
  • Posts: 1022
Re: Hplip
« Reply #85 on: April 25, 2020, 08:36:13 AM »
Slackware comes with cups and hplip, but not the hplip-plugins. Sound familiar? To get the plugins you have to run hp-setup, which seems to be where the second printer is coming from. Next time I will try just hp-setup without setting up cups first and see what happens.

"hp-setup -i" complained that /usr/local/share/cups/model was missing.

I noticed that the hp tools don't complain like they should when they can't find something. I had to use strace to find the missing plugin file.

Offline techsuper

  • Newbie
  • *
  • Posts: 34
Re: Hplip
« Reply #86 on: April 25, 2020, 07:12:55 PM »
no, it's TC 11,1 32 bit.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: Hplip
« Reply #87 on: April 26, 2020, 12:06:33 AM »
hplip and ghostscript updated in the 11.x x86 repo

Tested with:
Code: [Select]
$ tce-load -i hplip
$ sudo passwd
$ sudo /usr/local/etc/init.d/dbus start
$ sudo /usr/local/etc/init.d/cups start
$ hp-setup -i (root password needed to confirm)
$ hp-testpage

You will need the hplip-plugins extension.
« Last Edit: April 26, 2020, 12:18:10 AM by Juanito »

Offline techsuper

  • Newbie
  • *
  • Posts: 34
Re: Hplip
« Reply #88 on: April 28, 2020, 06:46:27 PM »
Ok, thanks.
The updated files fixed the GS dependency error.
hp -setup, -info, -levels work ok now and -testpage looks like works - but nothing is printed.

The error is still 'Filter Failed'. I have tried both boxes, USB and network. Using localhost or
just using the hp-* commands.

Checking the error_log with or without debug on, I can't determine what may be wrong.
Searching the web doesn't seem to provide much help.
I will attach both logs, maybe your trained eye can see something.
(debug log edited to a smaller size)

here are the lines that are questionable:

[cups-deviced] PID 7682 (cups-brf) stopped with status 13!
CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files


Discarding unused printer-state-changed event...
[Job 1] prnt/hpcups/HPCupsFilter.cpp 647: DEBUG: imageProcessorStartPage failed result = 2

[Client 37] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
[Client 37] Closing connection.

[Job 1] PID 7746 (/usr/local/lib/cups/filter/hpcups) crashed on signal 11.


b

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: Hplip
« Reply #89 on: April 28, 2020, 11:39:11 PM »
I believe the problem is that you need to load a firmware plugin into your printer before you try to print.

The file /usr/local/share/hplip/data/firmware/hp_laserjet_p1505.fw.gz in the hplip-plugins extension sounds like it might be the correct one.

Did you load hplip-plugins before you ran the "hplip-setup -i" command? Did you try the "hp-firmware -i" or "hp-plugin -i" commands?

You can ignore the colord error.
« Last Edit: April 29, 2020, 12:15:23 AM by Juanito »