OpenPrinting / ps-printer-app

PostScript Printer Application
Apache License 2.0
40 stars 13 forks source link

HP LaserJet M227fdn printer is not getting added in the ps-printer-application #5

Closed kavinsivak closed 3 years ago

kavinsivak commented 3 years ago

image

OS Version: Ubuntu 21.04

I have installed ps-printer-app from the snap store. When I try to add the printer, I am getting the error "Unable to use that driver." ps-printer-app.log

tillkamppeter commented 3 years ago

First, is your HP LaserJet M227fdn actually a PostScript printer? The PostScript Printer Application supports only PostScript printers, for other legacy printers we have planned to create further, separate Printer Applications.

Please run the command

avahi-browse -t -r _pdl-datastream._tcp

and post the output here?

Could you also run

/usr/lib/cups/backend/snmp

and post the output here?

kavinsivak commented 3 years ago

Hello tillkamppeter

HP LaserJet M227fdn printer is a postscript printer.

output of - avahi-browse -t -r _pdl-datastream._tcp

+  ens33 IPv4 HP LaserJet MFP M227fdn (D56C58)              PDL Printer          local
=  ens33 IPv4 HP LaserJet MFP M227fdn (D56C58)              PDL Printer          local
   hostname = [NPID56C58.local]
   address = [192.168.2.6]
   port = [9100]
   txt = ["TBCP=T" "Binary=T" "Transparent=T" "note=" "adminurl=http://NPID56C58.local." "priority=40" "product=(HP LaserJet MFP M227-M231)" "ty=HP LaserJet MFP M227-M231" "qtotal=1" "txtvers=1" "UUID=564e4334-3730-3135-3636-ace2d3d56c58"]

Output of - /usr/lib/cups/backend/snmp

network socket://192.168.2.6 "HP LaserJet MFP M227-M231" "HP LaserJet MFP M227fdn" "MFG:HP;CMD:PJL,PML,PCLXL,URP,PCL,PDF,POSTSCRIPT;MDL:HP LaserJet MFP M227-M231;CLS:PRINTER;DES:HP LaserJet MFP M227fdn;MEM:MEM=232MB;PRN:G3Q79A;COMMENT:RES=1200x1;LEDMDIS:USB#ff#04#01;CID:HPLJPDLV1;IPP-E:FF-04-01,FF-04-01,FF-09-01,FF-09-01;eSCL:FF-04-01,FF-04-01,FF-09-01,FF-09-01;MCT:MF;MCL:DL;MCV:3.1;" ""
tillkamppeter commented 3 years ago

Seems that your printer does not somehow tell via DNS-SD that it supports PostScript (mine does, it has a pdl=... entry in its TXT record. So in the Printer Application do not select the "DNS-SD" entry but the "Network Printer" entry which does not mention "DNS-SD". Does this work?

kavinsivak commented 3 years ago

Yes it was working.

tillkamppeter commented 3 years ago

I have changed the PostScript Printer Application now that in case of no "CMD:" field at all in the device ID the model gets accepted. This should solve you problem for all device choices.

See commit c7f2255