need driver for ubuntu 20.04 (or any linux) hp designjet T130.

Asked by Chililil tester March-Force on 2020-05-29

I recently purchased the HP designjet T130. This works (acceptably) well with windows 10 but I have found no driver for Ubuntu or any linux distro. The printer is discoverable over wireless, and I can "install printer" and even search through the list of presented options.

It ends up being installed as a cups "driverless" printer.

Attempts to print a file, even a "test print" from the systems and settings maintenance menu print garbage, including the characters "PDF-1.3 %PCLm 1.0 1 0 obs <<Contents ; 2 0 R ] /MediaBox [ 0 0 584 764 ] /Parent". This leads me to believe it is printing the raw postcript as opposed to recognizing a pdf. That is just my wild guess.

I need to large print image files, as a minimum svg.

I am willing to tinker if I must. advice? If there is no Designjet T130 driver, is there a linux driver for a reasonably compatible large format printer that I might be able to use?

Any help or advice would be appreciated. Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Chililil tester March-Force
Solved:
2020-06-03
Last query:
2020-06-03
Last reply:
2020-06-01
brian_p (claremont102) said : #1

> It ends up being installed as a cups "driverless" printer.

I cannot find find any sign in the printer's specs that it supports driverless
printing. It also does not appear to be supported by HPLIP. Please provide
outputs from the following commands:

  avahi-browse -rt _ipp._tcp
  driverless
  lpstat -l -e
  lpstat -a

and say how the device is connected.

Brian.

Brian, thank you so much for your response.

+ wlp3s0 IPv4 HP DesignJet T130 24-in Printer [FF9A3C] Internet Printer local
= wlp3s0 IPv4 HP DesignJet T130 24-in Printer [FF9A3C] Internet Printer local
   hostname = [HP9C7BEFFF9A3C.local]
   address = [192.168.1.228]
   port = [631]
   txt = ["Scan=F" "Duplex=F" "Color=T" "hplfpmobileprinter=T" "UUID=abcd08cf-9798-1319-aceb-7db4aa4c7a78" "Fax=F" "note=" "adminurl=http://HP9C7BEFFF9A3C.local." "mac=9c:7b:ef:ff:9a:3d" "priority=20" "usb_MDL=HP DesignJet T130 24-in Printer" "usb_MFG=HP" "product=(HP HP DesignJet T130 24-in Printer)" "ty=HP DesignJet T130 24-in Printer" "kind=document,photo,roll" "rp=ipp/print" "pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm" "qtotal=1" "txtvers=1"]

ipp://HP%20DesignJet%20T130%2024-in%20Printer%20%5BFF9A3C%5D._ipp._tcp.local/

HP_DesignJet_T130_24-in_Printer permanent ipp://localhost/printers/HP_DesignJet_T130_24-in_Printer usb://HP/DesignJet%20T130%2024-in%20Printer?serial=CN9BM2M07J
HP_DesignJet_T130_24_in_Printer_FF9A3C_ permanent ipp://localhost/printers/HP_DesignJet_T130_24_in_Printer_FF9A3C_ implicitclass://HP_DesignJet_T130_24_in_Printer_FF9A3C_/

HP_DesignJet_T130_24-in_Printer accepting requests since Thu 28 May 2020 10:29:55 PM CDT
HP_DesignJet_T130_24_in_Printer_FF9A3C_ accepting requests since Sat 30 May 2020 10:35:32 AM CDT

The device is connected by wireless and is on the same wireless net as my home router and several computers and devices within my home.

I also just found https://openprinting.org/driver/cdnj500 and have generated a ppd file named HP-DesignJet_130-cdnj500.ppd

That was not previously available to me when I installed this printer and I will wait a few hours to see if you are able to respond before I attempt to reinstall with this newly found ppd file.

I got tired of waiting for a response, so decided to press on. I reinstalled with the foomatic ppd file (using the KDE gui, systems & settings) and it now shows connection as socket://192.168.1.228 and driver as Current - HP Designjet 130/cdnj500 (recommended).
I am now able to print the ubuntu printer test page both on sheet and roll paper.

This still has 2 issues. Issue 1 I am having difficulty making it stay with roll as the paper source. I am still tracking this one down and believe I will figure it out. Issue 2 seems to be the same as described in Bug #1404779.

brian_p (claremont102) said : #5

Thanks for the avahi-browse output. It confirms that the T130 is an
IPP printer. The MIME types it accepts are given by

  pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm

I think vnd.hp-PCL,image is HP-PCL image format and would , I
imagine, be handled by the cdnj500 driver. However, there should
have been no need to have resorted to the Ghostscript driver and
its PPD file as application/PCLm can be generated by the driverless
solution offered to you on first install.

  https://wiki.debian.org/CUPSDriverlessPrinting#generator2

You said:

> ...the characters "PDF-1.3 %PCLm 1.0 1 0 obs ...

That looks like a possible issue with the conversion of a file to PCLm.
To rule out another bug source, would you find the driverless PPD in
/etc/cups/ppd and give what you get for

  grep cupsFilter /etc/cups/ppd/DRIVERLESS_PPD

Incidentally, you appear from 'lpstat -l -e' to have both wireless and
USB connections. I do not know what effect that has.

Cheers,

Brian.

The USB connection is just an artifact from a previous attempt to set up the printer using USB. I have never had an issue with being able to commuicate through wireless. I have since deleted that connection.

I have changed the conditions, so I am including your original requested data below
( avahi-browse -rt _ipp._tcp
  driverless
  lpstat -l -e
  lpstat -a)
 again with the new configuration.

There is extraneous information below. The only printer I am using is called thrdtry, which is installed using the System Settings gui within the KDE interface installed with KUbuntu 20.04. It shows as thrdtry for its name. Location shows as porch. Kind shows as HP DesignJet 130 Foomatic/chp2200

I had investigated several options and decided to try the page https://openprinting.org/driver/chp2200 and generated a ppd file by selecting designjet T130 as the printer type. This was suggested as a closer match than the T500. I have just discovered lpadmin and am now planning to remove the previous unused attempts at installing the printer.

avahi-browse -rt _ipp._tcp
+ wlp3s0 IPv4 HP DesignJet T130 24-in Printer [FF9A3C] Internet Printer local
= wlp3s0 IPv4 HP DesignJet T130 24-in Printer [FF9A3C] Internet Printer local
   hostname = [HP9C7BEFFF9A3C.local]
   address = [192.168.1.228]
   port = [631]
   txt = ["Scan=F" "Duplex=F" "Color=T" "hplfpmobileprinter=T" "UUID=abcd08cf-9798-1319-aceb-7db4aa4c7a78" "Fax=F" "note=" "adminurl=http://HP9C7BEFFF9A3C.local." "mac=9c:7b:ef:ff:9a:3d" "priority=20" "usb_MDL=HP DesignJet T130 24-in Printer" "usb_MFG=HP" "product=(HP HP DesignJet T130 24-in Printer)" "ty=HP DesignJet T130 24-in Printer" "kind=document,photo,roll" "rp=ipp/print" "pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm" "qtotal=1" "txtvers=1"]

driverless
ipp://HP%20DesignJet%20T130%2024-in%20Printer%20%5BFF9A3C%5D._ipp._tcp.local/

lpstat -l -e
HP_DesignJet_T130_24-in_Printer permanent ipp://localhost/printers/HP_DesignJet_T130_24-in_Printer usb://HP/DesignJet%20T130%2024-in%20Printer?serial=CN9BM2M07J
HP_DesignJet_T130_24_in_Printer_FF9A3C_ permanent ipp://localhost/printers/HP_DesignJet_T130_24_in_Printer_FF9A3C_ implicitclass://HP_DesignJet_T130_24_in_Printer_FF9A3C_/
<email address hidden> permanent ipp://<email address hidden> socket://192.168.1.228
thrdtry permanent ipp://localhost/printers/thrdtry socket://192.168.1.228:9100

lpstat -a
HP_DesignJet_T130_24-in_Printer accepting requests since Sat 30 May 2020 09:33:36 PM CDT
HP_DesignJet_T130_24_in_Printer_FF9A3C_ accepting requests since Sun 31 May 2020 11:21:33 AM CDT
<email address hidden> accepting requests since Sat 30 May 2020 09:16:39 PM CDT
thrdtry accepting requests since Sat 30 May 2020 09:43:28 PM CDT

The only issue I still have is the fact that I am unable to get an application to print to this printer using the printer default (which I have set up as the roll) paper source. I have been able to use my android phone and the hp app to send a png file as a continuous print dimensions 23" x 135" and the automatic cutter correctly cuts the paper at the end.

I have been unable to figure out how to print from any application through the driver without the output being truncated at the length of one "page". I was able to work around this by setting the page to A1 size and piecing the tiled output together, but I will keep at it until I find where the command is coming from. I got past the previous issue where it was resetting the paper source to the multisheet tray. I lack sufficient information to be able to form a complete picture of all of the potential "actors" that could provide input to the printer. I no longer think I am fighting a bug in any software related to HPLIP. If you have any additional input or advice on where I might look for resources to understand the printer or the processes inside linux and/or the driver or exactly what is between an application and the hardware, I would be interested to know it. I have the same issue from several different applications, so I understand that there is something that I am overlooking.

I have looked at a reference on HP PCL. I have looked at the openprinting.org site, but not sure I have seen everything relevant there. I have looked a a blog entry by someone who made the printer work in 2009 (which is where I got the suggestion to use the designjet 2200 model) but I have found no repository of useful information at the hardware interface level. I understand that the concept of a "print engine" exists but do not completely understand how it works. I understand the difference between "postcript" and PDF and once used the adobe distiller. It has been over 30 years since I wrote device drivers and that was not on linux so my skills are rusty. So, I appreciate any further advise you may give on where to look, but I have figured out most of what I need. Thank you Brian. regards, Kim

brian_p (claremont102) said : #7

Hello Kim.

I'm afraid I am unable to help with issues regarding the thirdtry print
queue. I am also unfamiliar with the hp app you mention. However, I
do know that the Android is able to generate PCLm to send to a suitable
printer, which the T130 is. The question would appear to be why PCLm
from the Ubuntu printing system is not being processed by the printer,
as is PCLm from the Android.

At present you have print queues automatically set up by cups-browsed.
Let us set up a queue manually.

A URI is needed. It is given by the output of the driverless command. You
may also use ipp://HP9C7BEFFF9A3C.local/ipp/print. Substitute the URI
in

  lpadmin -p T130 -v URI -E -m driverless:URI

Try printing a simple text file with

  lp -d T130 /etc/nsswitch.conf

Knowing what the *cupsFilters lines in /etc/cups/ppd/T130.ppd are would
be useful.

Cheers,

Brian.

Hi Brian.

lpadmin -p T130 -v ipp://HP%20DesignJet%20T130%2024-in%20Print
er%20%5BFF9A3C%5D._ipp._tcp.local/ -E -m driverless:ipp://HP%20DesignJet%20T130%2024-in%
20Printer%20%5BFF9A3C%5D._ipp._tcp.local/
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUP
S.
kim@kim-Latitude-E6430:~$ lp -d T130 /etc/nsswitch.conf
request id is T130-84 (1 file(s))

lpstat -W not-completed
T130-84                 kim               1024   Mon 01 Jun 2020 08:23:17 AM CDT

and the file etcnsswitch.conf is “stuck” in the queue. The queue is “stopped” and the status message is “Filter failed”.
I am not sure, but I think these are the lines you asked to see:

*cupsFilter2: "application/PCLm application/PCLm 200 -"
*cupsFilter2: "application/vnd.cups-raster application/vnd.hp-pcl 700 rastertopclx"
*cupsFilter2: "image/jpeg image/jpeg 0 -"

The success I have had were not printing "driverless" even though that is the only option offered by the "as shipped" KUbuntu installation (KDE System Settings printer GUI). The partial success I have had is when I installed the either of the PPD files from the www.openprinting.org. The HP DesignJet 130 Foomatic/chp2200 was the more successful of the two.

My only remain issue is that I am unable to print using a continuous roll. The printer "thinks" that it is asked to print on media that is only as long as a page, whether that is a letter sized page or an A1 sized page.

Actually, I think the issue is caused by a combination of:

1) At some point some unintended PCLm getting inserted (causing an override of the roll paper selected on the printer to a page size) even when the gui selection in any of several applications is set to use printer default media source

and

2) The PPD file used contains no combination of PaperDimension ImageableArea PageRegion that describes a roll.

I am fairly sure that I know how to add a very long paper size into the PPD file, but I have not figured out how to deal with the issue of a variable page size. The advantage of that would be that the cutter function of the printer would automatically.

I am still searching online for a concise reference on how to accommodate the roll media type in a PPD file, but I may use trial and error. I am open to any suggestions you may have for where to find technical information.

Thanks again for your help.
regards, Kim

brian_p (claremont102) said : #9

> lpadmin -p T130 -v ipp://HP%20DesignJet%20T130%2024-in%20Print
> er%20%5BFF9A3C%5D._ipp._tcp.local/ -E -m driverless:ipp://HP%
< 20DesignJet%20T130%2024-in%
> 20Printer%20%5BFF9A3C%5D._ipp._tcp.local/
> padmin: Printer drivers are deprecated and will stop working in a future
> version of CUP

That's ok.

> kim@kim-Latitude-E6430:~$ lp -d T130 /etc/nsswitch.conf
> request id is T130-84 (1 file(s))

That's ok; the print job is accepted. However, it is job #84! Probably
nothing to worry about if you have been testing the queue previously.

> ...and the file etcnsswitch.conf is “stuck” in the queue. The queue is “stopped”
> and the status message is “Filter failed”.

Definitely not ok and completely unexpected. See later for a debug method.

> I am not sure, but I think these are the lines you asked to see:

Thanks. All is ok with this section of the PPD. The numerals are costs. The lowest
cost for a submitted text file is 200. That is, PCLM will be sent to the printer. If you
sent a jpeg, it would go directly to the printer because its cost is 0.

Debug: execute

  sudo cupsfilter -p /etc/cups/ppd/T130.ppd -m printer/foo -e /etc/nsswitch.conf > out.pclm 2> log

View log with 'less log'. Do all filters complete successfully? Which ones are they? out.pclm should be viewable with any PDF viewer.

Sorry, but I cannot offer any help on the technical information you seek.

Cheers,

Brian.

thank you for all of your help. I appreciate your efforts.