WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Hplip  (Read 20829 times)

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Hplip
« Reply #60 on: April 14, 2020, 12:20:35 AM »
I can't figure out what/how to do the firmware command. Besides, why do I need to update
the firmware on a working printer?

Usually you need to upload firmware to a device each time it's powered on because it's a "soft" printer, like so many modems, wifi, and sound cards. I have no idea why a standalone networked printer would need soft firmware. That's a question for HP. Once one of the windows computers prints to it, it shouldn't need the firmware part of the driver again until the next time it's reset. Since foomatic and cups both use ppd files, maybe the ppd file on the Mint box would work for cups on the TC box.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14826
Re: Hplip
« Reply #61 on: April 14, 2020, 12:47:12 AM »
I don't know if it relates to this, but there is a  foomatic  extension in TC10:

foomatic-rip is provided by the cups-filters extension.

Offline techsuper

  • Newbie
  • *
  • Posts: 34
Re: Hplip
« Reply #62 on: April 14, 2020, 10:39:11 AM »
guys.
I ran hp-doctor - it's loaded with Red and Pink errors.
sudo /usr/local/etc/init.d/cups status says 'cups is running'.
hplip is running,  since I can type hp-doctor get a result.
I'll attach the hp-doctor text file, it lost all it's pretty colors though.

I read this and it appears that the TC distro isn't supported, but what does a newb like me know!

b

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14826
Re: Hplip
« Reply #63 on: April 14, 2020, 11:08:05 AM »
Unfortunately hp-doctor looks for various things in hard-coded locations rather than using $PATH, so it isn't that much use...

Is there any way you can temporarily connect your printer directly with a usb cable so that hp-info and hp-firmware might work?
« Last Edit: April 14, 2020, 11:09:43 AM by Juanito »

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Hplip
« Reply #64 on: April 14, 2020, 01:54:56 PM »
@techsuper, you need to update your copy of hplip-plugins. It needs /var/lib/hp/hplip.state which was left out of early versions of the extension. Without this file it will fail and not say why.

Offline techsuper

  • Newbie
  • *
  • Posts: 34
Re: Hplip
« Reply #65 on: April 16, 2020, 01:32:54 PM »
thanks for that tip.

On one box, I deleted the plugins using the Apps Maintenance Deletions branch, then used the Apps browse to reinstall it OnBoot.

The other box, I just used the Apps browse, chose it and clicked Go, looks like it reinstalled/updated it.

Neither box and neither printers symptoms have changed.

I can't get the hp-makeuri to work on a usb connected printer. The instructions show in the notes: you may have to run lsusb. which isn't found in the /sbin folder. Using the Locate, as shown, also isn't found. Neither of these files I can find using the sudo find command.

'hp-makeuri 192.168.1.18'  shows the URI as hp:/net/hp_laserjet_p3005?ip=192.168.1.18.
typing 'hp-firmware CUPS hp:/net/hp_laserjet_p3005?ip=192.168.1.18' shows HPLIP Firmware Download Utility, error: no device found.

I am attaching my most recent cups error_log.
Hopefully it can help resolve this - it's starting to get quite frustrating!
thank you much,
b

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Hplip
« Reply #66 on: April 16, 2020, 03:36:44 PM »
One, there was a missing dependency on libidn2. You should use this procedure from @Rich to update your extensions:

Run these commands:
Code: [Select]
tce-audit builddb
tce-audit updatedeps
tce-audit fetchmissing
tce-update
Click the  Exit  icon and select reboot.

Two, try hp-firmware without the word CUPS and put the URI in single quotes so the shell doesn't mangle it. Did hp-makeuri return any other URI's or just this one?

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Hplip
« Reply #67 on: April 19, 2020, 11:50:12 AM »
While working on someone else's chrome request I did come across this:

Code: [Select]
[7416:7431:0419/150553.684207:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
/usr/local/tce.installed/dbus needs a line to create /var/run/dbus as well. When I added the directory and restarted dbus the socket was created. I wonder if this is our phantom dbus problem?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14826
Re: Hplip
« Reply #68 on: April 19, 2020, 12:21:58 PM »
..but starting the dbus daemon creates the socket without the need to create that directory...

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Hplip
« Reply #69 on: April 19, 2020, 12:44:58 PM »
That's the problem. It starts, but it isn't creating that directory or socket:

Code: [Select]
tc@box:~$ ps faux|awk '$5'
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.8  0.0   3936   288 ?        Ss   16:40   0:00 /sbin/init
root       316  2.0  0.0   4816  4332 ?        Ss   16:40   0:01 /sbin/udevd --daemon
root      2448  0.0  0.0   4168  3600 ?        S    16:40   0:00  \_ /sbin/udevd --daemon
root      2452  0.0  0.0   4168  3600 ?        S    16:40   0:00  \_ /sbin/udevd --daemon
root       598  0.0  0.0   3936   108 ?        Ss   16:40   0:00 /sbin/syslogd
root       600  0.0  0.0   3936   104 ?        Ss   16:40   0:00 /sbin/klogd
tc        4981  0.0  0.0   4016  2408 tty1     Ss+  16:40   0:00 -sh
root      5004  0.0  0.0   3936   104 ?        Ss   16:40   0:00 /sbin/udhcpc -b -i eth0 -x hostname:box -p /var/run/udhcpc.eth0.pid
tc        5019  0.0  0.0 100852  2688 ?        Ssl  16:40   0:00 vmhgfs-fuse -o allow_other .host:/andy-home /mnt/hgfs/andy-home
root      5480  2.9  0.6 240892 53036 tty2     Ssl+ 16:40   0:01 /usr/local/lib/xorg/Xorg -nolisten tcp
tc        5484  0.2  0.0  24700  6472 tty1     S    16:40   0:00 flwm
tc        5523  0.6  0.6 232684 49048 tty1     Sl   16:41   0:00 /usr/local/bin/vmtoolsd -n vmusr
tc        5541  0.2  0.1  56376  8732 tty1     S    16:41   0:00 wbar
tc        5562  0.3  0.1  30892  9692 tty1     S    16:41   0:00  \_ urxvt
tc        5563  0.0  0.0   4016  2404 pts/0    Ss   16:41   0:00      \_ sh
tc        5603  0.0  0.0  15092  2820 pts/0    R+   16:41   0:00          \_ ps faux
tc        5604  0.0  0.0   3936  1084 pts/0    S+   16:41   0:00          \_ awk $5
tc        5548  0.0  0.0   6692  2276 tty1     S    16:41   0:00 dbus-launch --autolaunch d873e3f4578a5a99d11c29345e9c7f12 --binary-syntax --close-stderr
tc        5549  0.0  0.0   5280  2056 ?        Ss   16:41   0:00 /usr/local/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
tc        5551  0.0  0.0 230380  5252 ?        Sl   16:41   0:00 /usr/local/lib/at-spi2-core/at-spi-bus-launcher
tc        5555  0.0  0.0   5272  2400 ?        S    16:41   0:00  \_ /usr/local/bin/dbus-daemon --config-file=/usr/local/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
tc        5557  0.0  0.1 162020  8228 ?        Sl   16:41   0:00 /usr/local/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
tc@box:~$ find /var -type s
tc@box:~$ sudo mkdir -m 1777 /var/run/dbus
tc@box:~$ sudo /usr/local/etc/init.d/dbus restart
stopped /usr/local/bin/dbus-daemon (pid 5555 5549)
rm: can't remove '/var/run/dbus/pid': No such file or directory
tc@box:~$ find /var -type s
/var/run/dbus/system_bus_socket
tc@box:~$

Once I create the directory and restart dbus, then there's a socket.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14826
Re: Hplip
« Reply #70 on: April 19, 2020, 01:13:06 PM »
That’s not what I see, I’ll check some more tomorrow.

Offline techsuper

  • Newbie
  • *
  • Posts: 34
Re: Hplip
« Reply #71 on: April 19, 2020, 10:47:17 PM »
@andyj: one box the fetchmissing found libidn2.tcz and updated cairo. glib2, gnutls3.6 and nettle3.
the other box didn't find anything with the same command.
Still, neither of them print and stop with the same filter failed error.

Running the hp-makeuri on either box to either printer, only yields 1 result.
Same result running the hp-firmware 'hp:/net/HP_LaserJet_P3005?ip=192.168.1.18'

b

aus9

  • Guest
Re: Hplip
« Reply #72 on: April 19, 2020, 11:05:20 PM »
Hi

Quote
maybe the ppd file on the Mint box would work for cups on the TC box.

Maybe but I think its borks if the version is wrong...you can read your mint PPD to see what version it is.

the main reason I am posting is...for those having trouble using hplip....gutenprint supports a number of hp printers. It took 10 page downs for me to view all of them in a browser

check out if yours can use it here.
http://gimp-print.sourceforge.net/p_Supported_Printers.php

on 64 bit I have yet to build an update for gutenprint but its on my todo list
« Last Edit: April 19, 2020, 11:07:17 PM by aus9 »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14826
Re: Hplip
« Reply #73 on: April 20, 2020, 01:37:03 AM »
That’s not what I see, I’ll check some more tomorrow.

It looks like creating /var/run/dbus will not (completely) solve the problem, but I don't know enough about dbus to suggest what might solve the problem.

Staring the dbus daemon creates /var/run/dbus and creates the socket. When the daemon is stopped, /var/run/dbus and the socket remain:
Code: [Select]
$ ls /var/run/dbus
ls: /var/run/dbus: No such file or directory
$ sudo /usr/local/etc/init.d/dbus start
$ ls /var/run/dbus
pid                system_bus_socket

$ sudo /usr/local/etc/init.d/dbus stop
stopped /usr/local/bin/dbus-daemon (pid 6203)
$ ls /var/run/dbus
system_bus_socket

Using an app that autostarts dbus (pavucontrol) does not create /var/run/dbus and does not create the socket or pid:
Code: [Select]
$ ls /var/run/dbus
ls: /var/run/dbus: No such file or directory
$ pavucontrol &
$ ls /var/run/dbus
ls: /var/run/dbus: No such file or directory
$ ps aux | grep dbus
 8112 tc       dbus-launch --autolaunch 4b010dc45263d95cfeda85535e9d635f --binary-syntax --close-stderr
 8113 tc       /usr/local/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
 8119 tc       /usr/local/bin/dbus-daemon --config-file=/usr/local/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3

$ sudo /usr/local/etc/init.d/dbus status
dbus is not running.

If /var/run/dbus and the socket are created beforehand, it does not change the behaviour of an app that autostarts dbus and stopping the dbus daemon does not completely kill it:
Code: [Select]
$ ls /var/run/dbus
ls: /var/run/dbus: No such file or directory
$ sudo /usr/local/etc/init.d/dbus start
$ ls /var/run/dbus
pid                system_bus_socket
$ ps aux | grep dbus
 8247 tc       /usr/local/bin/dbus-daemon --system
$ pavucontrol &
$ ps aux | grep dbus
 8247 tc       /usr/local/bin/dbus-daemon --system
 8257 tc       dbus-launch --autolaunch 4b010dc45263d95cfeda85535e9d635f --binary-syntax --close-stderr
 8258 tc       /usr/local/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
 8264 tc       /usr/local/bin/dbus-daemon --config-file=/usr/local/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3

$ sudo /usr/local/etc/init.d/dbus stop
stopped /usr/local/bin/dbus-daemon (pid 8264 8258 8247)
$ ps aux | grep dbus
 8257 tc       dbus-launch --autolaunch 4b010dc45263d95cfeda85535e9d635f --binary-syntax --close-stderr

Offline techsuper

  • Newbie
  • *
  • Posts: 34
Re: Hplip
« Reply #74 on: April 22, 2020, 11:02:42 AM »
I added the p3005 printer and used Browse to the Mint ppd file - Still yields a Filter Failed message.
I also Browsed and tried the Generic - PDF, PostScript, PCL or the IPP anywhere files.
All yield the same annoying Filter Failed message, except the PDF which prints "PDF Status Page. PDF file not printed. 128 MB of memory is required.
 
Does this line in the error_log have a resolution?
"CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files" Searching the web on this yields many hits with no valid resolution.

thx
b