HP Laserjet P1102w

Forum rules
Before you post please read this
Post Reply
mint-A-fari
Level 1
Level 1
Posts: 4
Joined: Sun Jul 14, 2019 1:09 pm

HP Laserjet P1102w

Post by mint-A-fari »

Hi,

i somehow messed up the printer installation on mint 18.3 cinnamon.

The initial problem was, that the printer was no longer recognized after installation of the latest run script. No matter what i did, the hp-setup gui was not able to discover my printer. But the printer has been working on this system before. The local User is member of the group lpadmin. The printer is available over network, does answer on ping and its webserver works fine, it does print from iOS - even though discovery via bonjour failed from hp-setup, I have installed the proprietary plugin and installed the printer on CUPS, but was not able to print that way too.

What ever i have tried, it seemed to make things even worse. Now i'm not even able to start hp-setup anymore.

Traceback (most recent call last):
File "/usr/bin/hp-setup", line 45, in <module>
from base import device, utils, tui, models, module, services, os_utils
File "/usr/share/hplip/base/device.py", line 41, in <module>
from . import status
File "/usr/share/hplip/base/status.py", line 49, in <module>
import hpmudext
ImportError: /usr/lib/python3/dist-packages/hpmudext.cpython-35m-x86_64-linux-gnu.so: undefined symbol: hpmud_make_par_uri
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 145, in apport_excepthook
os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), 'wb') as f:
PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_share_hplip_setup.py.0.crash'

Original exception was:
Traceback (most recent call last):
File "/usr/bin/hp-setup", line 45, in <module>
from base import device, utils, tui, models, module, services, os_utils
File "/usr/share/hplip/base/device.py", line 41, in <module>
from . import status
File "/usr/share/hplip/base/status.py", line 49, in <module>
import hpmudext
ImportError: /usr/lib/python3/dist-packages/hpmudext.cpython-35m-x86_64-linux-gnu.so: undefined symbol: hpmud_make_par_uri


Any ideas?
brian_p
Level 6
Level 6
Posts: 1240
Joined: Thu Jan 17, 2019 9:20 am

Re: HP Laserjet P1102w

Post by brian_p »

mint-A-fari wrote:
Sun Jul 14, 2019 1:33 pm
Hi,

i somehow messed up the printer installation on mint 18.3 cinnamon.

The initial problem was, that the printer was no longer recognized after installation of the latest run script. No matter what i did, the hp-setup gui was not able to discover my printer. But the printer ......
"latest run script"? Is that something HP provides? What is wrong with the hplip packages Mint provides?
--
Brian.
mint-A-fari
Level 1
Level 1
Posts: 4
Joined: Sun Jul 14, 2019 1:09 pm

Re: HP Laserjet P1102w

Post by mint-A-fari »

Hi Brian,

maybe i should mention that i'm not a linux native. Just been watching the penguin play in the neighbours garden for years and decided to leave redmond just 2 years ago. So please be indulgent with me.

i have been using this printer after initial installation of the OS without any trouble. Then i did not use it for quite a while. When i tried to, it didn't work. So i followed different threads on different forums, where people had quite similar problems. In some forum i read, that if an hp printer is not working, although the hplip package included in the distrbution is installed (which it was), it might be helpful to download the latest .run Script from https://sourceforge.net/projects/hplip/ ... t/download which is actually provided by HP. In the W***ows-World it's in most cases a good thing to have software from the products manufacturer, if you want to use peripheral devices. So i thought it might be helpful.
brian_p
Level 6
Level 6
Posts: 1240
Joined: Thu Jan 17, 2019 9:20 am

Re: HP Laserjet P1102w

Post by brian_p »

mint-A-fari wrote:
Sun Jul 14, 2019 9:40 pm

i have been using this printer after initial installation of the OS without any trouble. Then i did not use it for quite a while. When i tried to, it didn't work. So i followed different threads on different forums, where people had quite similar problems. In some forum i read, that if an hp printer is not working, although the hplip package included in the distrbution is installed (which it was), it might be helpful to download the latest .run Script from https://sourceforge.net/projects/hplip/ ... t/download which is actually provided by HP. In the W***ows-World it's in most cases a good thing to have software from the products manufacturer, if you want to use peripheral devices. So i thought it might be helpful.
I haven't a clue what the error messages mean and have no desire to tackle a .run installation that seems not totally to fit your system. Assuming Mint's hplip package is on the system and not affected by your previous efforts, let's have a go with the basic print queue setup technique.
  • Check for hpcups in /usr/lib/cups/filter.
  • Check for files in /usr/share/hplip/prnt/plugins.
  • Get a PPD (beginning drv:///hpcups.drv/) with

    Code: Select all

    lpinfo -m | grep -i p1102w.
  • Execute the command (without angle brackets)

    Code: Select all

    lpadmin -p p1102w -v socket://<IP address_of_printer> -E -m <PPD>
  • Print.
Actually, this should work with what the .run file gives you.

Now for a favour. Please post what you get for

Code: Select all

avahi-browse -rt _ipp._tcp
--
Brian.
mint-A-fari
Level 1
Level 1
Posts: 4
Joined: Sun Jul 14, 2019 1:09 pm

Re: HP Laserjet P1102w

Post by mint-A-fari »

Thanks a lot for your reply. I really appreciate your help.

Ok, here we go:

ls /usr/lib/cups/filter

bannertopdf hpcupsfax pdftoraster rastertopwg
brftoembosser hpps pstopdf rastertosag-gdi
c2esp imagetobrf pstops sys5ippprinter
c2espC imagetopdf pstotiff textbrftoindexv3
command2esp imagetops rastertobrlaser textbrftoindexv4
commandtoescpx imagetoraster rastertodymo textonly
commandtopclx imagetoubrl rastertoepson texttobrf
commandtops imageubrltoindexv3 rastertoescpx texttopdf
foomatic-rip imageubrltoindexv4 rastertohp texttops
gstopxl pdftoijs rastertolabel urftopdf
gstoraster pdftoopvp rastertopclx
gziptoany pdftopdf rastertopdf
hpcups pdftops rastertoptch


But there is no plugins folder in the path /usr/share/hplip/prnt. Is this because the proprietary plugin is missing? I had it installed, but not sure about the actual state:

ls /usr/share/hplip/prnt

colorcal.py cups.py __init__.py ldl.py pcl.py __pycache__

Get a PPD
lpinfo -m | grep -i p1102w.

foo2zjs:0/ppd/foo2zjs/HP-LaserJet_Pro_P1102w.ppd HP LaserJet Pro P1102w Foomatic/foo2zjs-z2 (recommended)
drv:///hpijs.drv/hp-laserjet_professional_p1102w-hpijs.ppd HP LaserJet Professional p1102w hpijs, 3.16.3, requires proprietary plugin
drv:///hpcups.drv/hp-laserjet_professional_p1102w.ppd HP LaserJet Professional p1102w, hpcups 3.16.3, requires proprietary plugin


According to that output i executed the following command:

lpadmin -p p1102w -v socket://192.168.2.3 -E -m drv:///hpijs.drv/hp-laserjet_professional_p1102w-hpijs.ppd

Afterwards i found a new printer called "p1102w" in my system config. Trying to print a test page failed and the device has been stopped. Then i realized that there are now 2 new printers - the second one is called "Laserjet". Trying to open the "Laserjet"-preferences shows the printer connected under the following adress: ipp://Laserjet.local:631/printers/Laserjet. Trying to print a test page on Laserjet also fails.
Now for a favour. Please post what you get for
avahi-browse -rt _ipp._tcp

+ wlp3s0 IPv6 HP LaserJet Professional P1102w Internet Printer local
+ wlp3s0 IPv6 p1102w @ EvergreenTerace742 Internet Printer local
+ wlp3s0 IPv4 HP LaserJet Professional P1102w Internet Printer local
+ wlp3s0 IPv4 p1102w @ EvergreenTerace742 Internet Printer local
= wlp3s0 IPv6 p1102w @ EvergreenTerace742 Internet Printer local
hostname = [EvergreenTerace742.local]
address = [fe80::18c5:d8e1:bffa:99]
port = [631]+ wlp3s0 IPv6 HP LaserJet Professional P1102w Internet Printer local
+ wlp3s0 IPv6 p1102w @ EvergreenTerace742 Internet Printer local
+ wlp3s0 IPv4 HP LaserJet Professional P1102w Internet Printer local
+ wlp3s0 IPv4 p1102w @ EvergreenTerace742 Internet Printer local
= wlp3s0 IPv6 p1102w @ EvergreenTerace742 Internet Printer local
hostname = [EvergreenTerace742.local]
address = [fe80::18c5:d8e1:bffa:99]
port = [631]
txt = ["printer-type=0x80900E" "printer-state=3" "Color=T" "TLS=1.2" "UUID=bb3abd1d-992d-37d8-5e61-1dd37be50995" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HP LaserJet Professional p1102w Printer)" "priority=0" "adminurl=https://EvergreenTerace742.local:631/printers/p1102w" "ty=HP LaserJet Professional p1102w hpijs, 3.16.3, requires proprietary plugin" "rp=printers/p1102w" "qtotal=1" "txtvers=1"]
= wlp3s0 IPv4 p1102w @ EvergreenTerace742 Internet Printer local
hostname = [EvergreenTerace742.local]
address = [192.168.2.51]
port = [631]
txt = ["printer-type=0x80900E" "printer-state=3" "Color=T" "TLS=1.2" "UUID=bb3abd1d-992d-37d8-5e61-1dd37be50995" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HP LaserJet Professional p1102w Printer)" "priority=0" "adminurl=https://EvergreenTerace742.local:631/printers/p1102w" "ty=HP LaserJet Professional p1102w hpijs, 3.16.3, requires proprietary plugin" "rp=printers/p1102w" "qtotal=1" "txtvers=1"]
= wlp3s0 IPv4 HP LaserJet Professional P1102w Internet Printer local
hostname = [Laserjet.local]
address = [192.168.2.3]
port = [631]
txt = ["Staple=F" "Sort=F" "Scan=F" "Punch=0" "PaperCustom=F" "Duplex=F" "Copies=F" "Color=F" "Collate=F" "Bind=F" "Binary=T" "Transparent=T" "UUID=17a8cd2e-c532-5844-ac7a-9e9dae49f446" "note=" "adminurl=http://192.168.2.3" "mac=2C:76:8A:01:D3:FB" "priority=40" "usb_CMD=ZJ/URF" "usb_MDL=HP LaserJet Professional P1102w" "usb_MFG=Hewlett-Packard" "product=(Hewlett-Packard HP LaserJet Professional P1102w)" "ty=HP LaserJet Professional P1102w" "URF=CP1,IS1,OB10,PQ3-4-5,RS600,W8,MT1-2-3-4-5-6" "rp=printers/Laserjet" "pdl=image/urf,application/PCLm" "qtotal=1" "txtvers=1"]
= wlp3s0 IPv6 HP LaserJet Professional P1102w Internet Printer local
hostname = [Laserjet.local]
address = [192.168.2.3]
port = [631]
txt = ["Staple=F" "Sort=F" "Scan=F" "Punch=0" "PaperCustom=F" "Duplex=F" "Copies=F" "Color=F" "Collate=F" "Bind=F" "Binary=T" "Transparent=T" "UUID=17a8cd2e-c532-5844-ac7a-9e9dae49f446" "note=" "adminurl=http://192.168.2.3" "mac=2C:76:8A:01:D3:FB" "priority=40" "usb_CMD=ZJ/URF" "usb_MDL=HP LaserJet Professional P1102w" "usb_MFG=Hewlett-Packard" "product=(Hewlett-Packard HP LaserJet Professional P1102w)" "ty=HP LaserJet Professional P1102w" "URF=CP1,IS1,OB10,PQ3-4-5,RS600,W8,MT1-2-3-4-5-6" "rp=printers/Laserjet" "pdl=image/urf,application/PCLm" "qtotal=1" "txtvers=1"]

txt = ["printer-type=0x80900E" "printer-state=3" "Color=T" "TLS=1.2" "UUID=bb3abd1d-992d-37d8-5e61-1dd37be50995" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HP LaserJet Professional p1102w Printer)" "priority=0" "adminurl=https://EvergreenTerace742.local:631/printers/p1102w" "ty=HP LaserJet Professional p1102w hpijs, 3.16.3, requires proprietary plugin" "rp=printers/p1102w" "qtotal=1" "txtvers=1"]
= wlp3s0 IPv4 p1102w @ EvergreenTerace742 Internet Printer local
hostname = [EvergreenTerace742.local]
address = [192.168.2.51]
port = [631]
txt = ["printer-type=0x80900E" "printer-state=3" "Color=T" "TLS=1.2" "UUID=bb3abd1d-992d-37d8-5e61-1dd37be50995" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HP LaserJet Professional p1102w Printer)" "priority=0" "adminurl=https://EvergreenTerace742.local:631/printers/p1102w" "ty=HP LaserJet Professional p1102w hpijs, 3.16.3, requires proprietary plugin" "rp=printers/p1102w" "qtotal=1" "txtvers=1"]
= wlp3s0 IPv4 HP LaserJet Professional P1102w Internet Printer local
hostname = [Laserjet.local]
address = [192.168.2.3]
port = [631]
txt = ["Staple=F" "Sort=F" "Scan=F" "Punch=0" "PaperCustom=F" "Duplex=F" "Copies=F" "Color=F" "Collate=F" "Bind=F" "Binary=T" "Transparent=T" "UUID=17a8cd2e-c532-5844-ac7a-9e9dae49f446" "note=" "adminurl=http://192.168.2.3" "mac=2C:76:8A:01:D3:FB" "priority=40" "usb_CMD=ZJ/URF" "usb_MDL=HP LaserJet Professional P1102w" "usb_MFG=Hewlett-Packard" "product=(Hewlett-Packard HP LaserJet Professional P1102w)" "ty=HP LaserJet Professional P1102w" "URF=CP1,IS1,OB10,PQ3-4-5,RS600,W8,MT1-2-3-4-5-6" "rp=printers/Laserjet" "pdl=image/urf,application/PCLm" "qtotal=1" "txtvers=1"]
= wlp3s0 IPv6 HP LaserJet Professional P1102w Internet Printer local
hostname = [Laserjet.local]
address = [192.168.2.3]
port = [631]
txt = ["Staple=F" "Sort=F" "Scan=F" "Punch=0" "PaperCustom=F" "Duplex=F" "Copies=F" "Color=F" "Collate=F" "Bind=F" "Binary=T" "Transparent=T" "UUID=17a8cd2e-c532-5844-ac7a-9e9dae49f446" "note=" "adminurl=http://192.168.2.3" "mac=2C:76:8A:01:D3:FB" "priority=40" "usb_CMD=ZJ/URF" "usb_MDL=HP LaserJet Professional P1102w" "usb_MFG=Hewlett-Packard" "product=(Hewlett-Packard HP LaserJet Professional P1102w)" "ty=HP LaserJet Professional P1102w" "URF=CP1,IS1,OB10,PQ3-4-5,RS600,W8,MT1-2-3-4-5-6" "rp=printers/Laserjet" "pdl=image/urf,application/PCLm" "qtotal=1" "txtvers=1"]


I'd really like to understand that output. Are these all printing devices that are actively present in my system as a driver with different protocols?
brian_p
Level 6
Level 6
Posts: 1240
Joined: Thu Jan 17, 2019 9:20 am

Re: HP Laserjet P1102w

Post by brian_p »

mint-A-fari wrote:
Mon Jul 15, 2019 10:45 pm
Thanks a lot for your reply. I really appreciate your help.

Ok, here we go:

ls /usr/lib/cups/filter


hpcups
Fine. Please consider using this filter by adjusting the lpadmin command below. Note there is no pdftoraster filter present in the list. This means you can not set up a driverless print queue. For that you need Mint 19. See later.
But there is no plugins folder in the path /usr/share/hplip/prnt. Is this because the proprietary plugin is missing? I had it installed, but not sure about the actual state:
It is missing. Install the plugin with

Code: Select all

hp-plugin
or follow the advice in steps 2,3 and 4 at https://wiki.debian.org/PrintQueuesCUPS#hp
drv:///hpcups.drv/hp-laserjet_professional_p1102w.ppd HP LaserJet Professional p1102w, hpcups 3.16.3, requires proprietary plugin
I would use this PPD insread of the hpijs one.
Afterwards i found a new printer called "p1102w" in my system config. Trying to print a test page failed and the device has been stopped.
The plugin is needed for printing.
Then i realized that there are now 2 new printers - the second one is called "Laserjet". Trying to open the "Laserjet"-preferences shows the printer connected under the following adress: ipp://Laserjet.local:631/printers/Laserjet. Trying to print a test page on Laserjet also fails.
Ignore it. It is useless to you because your system does not have the pdftoraster filter.
I'd really like to understand that output. Are these all printing devices that are actively present in my system as a driver with different protocols?
Perhaps https://wiki.debian.org/AirPrint , https://wiki.debian.org/IPPEverywhere and https://wiki.debian.org/DriverlessPrinting will help.
= wlp3s0 IPv4 HP LaserJet Professional P1102w Internet Printer local
hostname = [Laserjet.local]
address = [192.168.2.3]
port = [631]
txt = ["Staple=F" "Sort=F" "Scan=F" "Punch=0" "PaperCustom=F" "Duplex=F" "Copies=F" "Color=F" "Collate=F" "Bind=F" "Binary=T" "Transparent=T" "UUID=17a8cd2e-c532-5844-ac7a-9e9dae49f446" "note=" "adminurl=http://192.168.2.3" "mac=2C:76:8A:01:D3:FB" "priority=40" "usb_CMD=ZJ/URF" "usb_MDL=HP LaserJet Professional P1102w" "usb_MFG=Hewlett-Packard" "product=(Hewlett-Packard HP LaserJet Professional P1102w)" "ty=HP LaserJet Professional P1102w" "URF=CP1,IS1,OB10,PQ3-4-5,RS600,W8,MT1-2-3-4-5-6" "rp=printers/Laserjet" "pdl=image/urf,application/PCLm" "qtotal=1" "txtvers=1"]
The txt record for the printer has URF=CP1,IS1,OB10,PQ3-4-5,RS600,W8,MT1-2-3-4-5-6 and pdl=image/urf. iOS produces Apple Raster (image/urf) and knows the printer will accept and process it. The printing system on Mint 18 cannot produce Apple Raster, even though it knows it is acceptable to the printer. You need the hpcups driver and a plugin.
--
Brian.
Bayvista170
Level 1
Level 1
Posts: 16
Joined: Tue Jun 21, 2016 4:28 am

Re: HP Laserjet P1102w

Post by Bayvista170 »

I have exactly the same problem after installing Hplip 3.19.6 on Linux Mint 18.3 on my Desktop. I have two USB printers, a Deskjet 3070A (Colour) and a Laserjet P1102w. The 3070A still works but the 1102 does not. It shows up in Admin/Printers but will not print anything. I have tried most things in this Forum, but still can't get it going. I have checked the printer on my Laptop and it works OK Any suggestions welcome :( :( :(
mint-A-fari
Level 1
Level 1
Posts: 4
Joined: Sun Jul 14, 2019 1:09 pm

Re: HP Laserjet P1102w

Post by mint-A-fari »

Ok. What i did now was to remove the printer from the system and then executed the commend:

lpadmin -p p1102w -v socket://192.168.2.3 -E -m drv:///hpcups.drv/hp-laserjet_professional_p1102w.ppd

Trying to install the plugin leads to:

hp-plugin -i

Traceback (most recent call last):
File "/usr/bin/hp-plugin", line 40, in <module>
from base import device, utils, tui, module, services
File "/usr/share/hplip/base/device.py", line 41, in <module>
from . import status
File "/usr/share/hplip/base/status.py", line 49, in <module>
import hpmudext
ImportError: /usr/lib/python3/dist-packages/hpmudext.cpython-35m-x86_64-linux-gnu.so: undefined symbol: hpmud_make_par_uri
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 145, in apport_excepthook
os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), 'wb') as f:
PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_share_hplip_plugin.py.1000.crash'

Original exception was:
Traceback (most recent call last):
File "/usr/bin/hp-plugin", line 40, in <module>
from base import device, utils, tui, module, services
File "/usr/share/hplip/base/device.py", line 41, in <module>
from . import status
File "/usr/share/hplip/base/status.py", line 49, in <module>
import hpmudext
ImportError: /usr/lib/python3/dist-packages/hpmudext.cpython-35m-x86_64-linux-gnu.so: undefined symbol: hpmud_make_par_uri


Needless to say that printing is still not possible. Is there an other way to get the plugin installed?
Bayvista170
Level 1
Level 1
Posts: 16
Joined: Tue Jun 21, 2016 4:28 am

Re: HP Laserjet P1102w - Fixed

Post by Bayvista170 »

I followed this article as I stuffed up my printers by trying to upgrade HPLIP. Nothing worked so I upgraded to LM19.1 and that fixed everything. Both my HP Printers now print! :D :D :D
Bayvista170
Level 1
Level 1
Posts: 16
Joined: Tue Jun 21, 2016 4:28 am

Re: HP Laserjet P1102w

Post by Bayvista170 »

After a regular Linux Mint update to 19.1, my HP printers no longer stay connected to wifi and I have to add them each time I start up. Any suggestions?
brian_p
Level 6
Level 6
Posts: 1240
Joined: Thu Jan 17, 2019 9:20 am

Re: HP Laserjet P1102w

Post by brian_p »

@mint-A-fari

The lpadmin command looks good to go.
Is there an other way to get the plugin installed?
There is. Download it from https://www.openprinting.org/download/p ... P/plugins/ and install with

Code: Select all

sh DOWNLOADED_PLUGIN
--
Brian.
Post Reply

Return to “Printers & Scanners”